From e667e8b33e4e7f5d2c8db0bb2265a7f6897f9e8b Mon Sep 17 00:00:00 2001 From: "{iliuhai@aliyun.com}" Date: Sun, 30 Mar 2025 09:44:51 +0800 Subject: [PATCH 01/14] =?UTF-8?q?AttributeDefineGroups=20=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../H.LowCode.Entity/Base/TableEntity.cs | 11 ------ .../DesignPanel/ComponentItem.razor | 9 +---- .../DesignPanel/DesignPanel.razor | 35 ++++++++++++------ .../ComponentPartsSchema.cs | 36 +++++++++++++++---- .../ComponentPartsAttributeDefineSchema.cs | 16 +++++++-- .../ComponentAttributeDefineSchemaBase.cs | 7 ++++ 6 files changed, 76 insertions(+), 38 deletions(-) delete mode 100644 src/Common/H.LowCode.Entity/Base/TableEntity.cs diff --git a/src/Common/H.LowCode.Entity/Base/TableEntity.cs b/src/Common/H.LowCode.Entity/Base/TableEntity.cs deleted file mode 100644 index 6b4bedba..00000000 --- a/src/Common/H.LowCode.Entity/Base/TableEntity.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace H.LowCode.Entity; - -internal class TableEntity : EntityBase -{ -} diff --git a/src/DesignEngine/H.LowCode.DesignEngine/DesignPanel/ComponentItem.razor b/src/DesignEngine/H.LowCode.DesignEngine/DesignPanel/ComponentItem.razor index 2034015b..21706854 100644 --- a/src/DesignEngine/H.LowCode.DesignEngine/DesignPanel/ComponentItem.razor +++ b/src/DesignEngine/H.LowCode.DesignEngine/DesignPanel/ComponentItem.razor @@ -47,14 +47,7 @@ if (string.IsNullOrEmpty(Component.Fragment.TypeName)) Component.Fragment.TypeName = Component.Fragment.DefaultTypeName; - try - { - _renderFragment = RenderComponent(Component.Id, Component.IsSupportDataSource, + _renderFragment = RenderComponent(Component.Id, Component.IsSupportDataSource, Component.DataSource, Component.Fragment); - } - catch (Exception ex) - { - Console.WriteLine(ex.Message); - } } } \ No newline at end of file diff --git a/src/DesignEngine/H.LowCode.DesignEngine/DesignPanel/DesignPanel.razor b/src/DesignEngine/H.LowCode.DesignEngine/DesignPanel/DesignPanel.razor index 4c1794a5..f2a4cd74 100644 --- a/src/DesignEngine/H.LowCode.DesignEngine/DesignPanel/DesignPanel.razor +++ b/src/DesignEngine/H.LowCode.DesignEngine/DesignPanel/DesignPanel.razor @@ -54,23 +54,38 @@ var componentPartsList = new List(); foreach (var component in pageSchema.Components) { - //组件实例 Schema - var json = component.ToJson(); - var componentPartsInstance = json.FromJson(); + await MergeComponentPartsDefineRecursive(component); - //组件定义 Schema - var componentPartsDefine = await ComponentPartsAppService.GetByIdAsync(component.LibraryId, - component.ComponentId); - - //组件实例与组件定义合并,保证历史组件实例升级到最新组件特性 - componentPartsInstance.MergeComponentPartsDefine(componentPartsDefine); - componentPartsList.Add(componentPartsInstance); + componentPartsList.Add(component); } rootComponent.Childrens = componentPartsList; } StateHasChanged(); } + /// + /// 递归合并组件定义中的属性 + /// + /// + /// + private async Task MergeComponentPartsDefineRecursive(ComponentPartsSchema component) + { + //组件定义 Schema + var componentPartsDefine = await ComponentPartsAppService.GetByIdAsync(component.LibraryId, + component.ComponentId); + + //组件实例与组件定义合并,保证历史组件实例升级到最新组件特性 + component.MergeComponentPartsDefine(componentPartsDefine); + + if (component.Childrens != null && component.Childrens.Count > 0) + { + foreach (var child in component.Childrens) + { + await MergeComponentPartsDefineRecursive(child); + } + } + } + /// /// 用于 RootComponentState 的 key(每个页面独立缓存) /// diff --git a/src/Protocol/H.LowCode.MetaSchema.DesignEngine/ComponentPartsSchema.cs b/src/Protocol/H.LowCode.MetaSchema.DesignEngine/ComponentPartsSchema.cs index 8135fb1a..85c61fa8 100644 --- a/src/Protocol/H.LowCode.MetaSchema.DesignEngine/ComponentPartsSchema.cs +++ b/src/Protocol/H.LowCode.MetaSchema.DesignEngine/ComponentPartsSchema.cs @@ -45,7 +45,7 @@ public class ComponentPartsSchema : ComponentSchemaBase /// Attribute定义分组 /// [JsonPropertyName("attrdefgroups")] - public ComponentPartsAttributeDefineGroupSchema[] AttributeDefineGroups { get; set; } = []; + public IEnumerable AttributeDefineGroups { get; set; } = []; /// /// @@ -137,14 +137,36 @@ public class ComponentPartsSchema : ComponentSchemaBase //TODO //this.Fragment = componentPartsDefine.Fragment; //this.Style = componentPartsDefine.Style; - this.AttributeDefineGroups = componentPartsDefine.AttributeDefineGroups; - this.IsSupportDataSource = componentPartsDefine.IsSupportDataSource; - if (componentPartsDefine?.DataSource?.DataSourceFragment != null) - this.DataSource.DataSourceFragment = componentPartsDefine.DataSource.DataSourceFragment; - foreach (var child in this.Childrens) + //属性合并 + if (componentPartsDefine.AttributeDefineGroups != null) { - child.MergeComponentPartsDefine(componentPartsDefine); + foreach (var attrDefineGroup in componentPartsDefine.AttributeDefineGroups) + { + if(attrDefineGroup.AttributeDefines == null) + continue; + + foreach (var attrDefine in attrDefineGroup.AttributeDefines) + { + var attr = this.AttributeDefineGroups.SelectMany(a => a.AttributeDefines) + .FirstOrDefault(a => a.AttributeName == attrDefine.AttributeName); + + if (attr != null) + { + attr.DisplayName = attrDefine.DisplayName; + attr.AttributeItemType = attrDefine.AttributeItemType; + attr.IsRequired = attrDefine.IsRequired; + attr.Description = attrDefine.Description; + attr.DefaultValue = attrDefine.DefaultValue; + attr.Options = attrDefine.Options; + } + } + } } + + //数据源合并 + this.IsSupportDataSource = componentPartsDefine.IsSupportDataSource; + if (componentPartsDefine?.DataSource?.DataSourceFragment != null) + this.DataSource.DataSourceFragment = componentPartsDefine.DataSource.DataSourceFragment; } } \ No newline at end of file diff --git a/src/Protocol/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsAttributeDefineSchema.cs b/src/Protocol/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsAttributeDefineSchema.cs index e70e7eae..2aa8d479 100644 --- a/src/Protocol/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsAttributeDefineSchema.cs +++ b/src/Protocol/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsAttributeDefineSchema.cs @@ -29,14 +29,20 @@ public class ComponentPartsAttributeDefineSchema : ComponentAttributeDefineSchem public object DefaultValue { get; set; } [JsonPropertyName("ops")] - public Dictionary Options { get; } + public Dictionary Options { get; set; } [JsonIgnore] public string StringValue { get { - return AttributeValue?.ToString(); + if (AttributeValue == null) + return default; + + if(AttributeClrType != "System.String") + return default; + + return AttributeValue.ToString(); } set { @@ -55,6 +61,9 @@ public class ComponentPartsAttributeDefineSchema : ComponentAttributeDefineSchem if (AttributeValue == null) return default; + if (AttributeClrType != "System.Int32") + return default; + return (int)AttributeValue; } set @@ -71,6 +80,9 @@ public class ComponentPartsAttributeDefineSchema : ComponentAttributeDefineSchem if (AttributeValue == null) return default; + if (AttributeClrType != "System.Boolean") + return default; + return (bool)AttributeValue; } set diff --git a/src/Protocol/H.LowCode.MetaSchema/PropertySchemas/ComponentAttributeDefineSchemaBase.cs b/src/Protocol/H.LowCode.MetaSchema/PropertySchemas/ComponentAttributeDefineSchemaBase.cs index c4a58225..7d066689 100644 --- a/src/Protocol/H.LowCode.MetaSchema/PropertySchemas/ComponentAttributeDefineSchemaBase.cs +++ b/src/Protocol/H.LowCode.MetaSchema/PropertySchemas/ComponentAttributeDefineSchemaBase.cs @@ -9,6 +9,10 @@ namespace H.LowCode.MetaSchema; public abstract class ComponentAttributeDefineSchemaBase { + /// + /// 组件属性名称 + /// + /// 必须为组件中存在的属性名称, 不可随意命名 [JsonPropertyName("attrn")] public string AttributeName { get; set; } @@ -18,6 +22,9 @@ public abstract class ComponentAttributeDefineSchemaBase [JsonPropertyName("attrt")] public string AttributeClrType { get; set; } + /// + /// 组件属性对应的值 + /// [JsonPropertyName("attrv")] public object AttributeValue { get; set; } } -- Gitee From 6e4f9baa74f0f767033681cd61463a8e1b6c496a Mon Sep 17 00:00:00 2001 From: "{iliuhai@aliyun.com}" Date: Thu, 3 Apr 2025 01:06:38 +0800 Subject: [PATCH 02/14] =?UTF-8?q?checkbox=20=E7=BB=84=E4=BB=B6=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=20bug=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meta/apps/caseapp/page/fhumgxyk.json | 421 +----------------- .../componentParts/antdesign/52391a70.json | 7 +- .../componentParts/antdesign/evuqdwzl.json | 2 +- .../componentParts/antdesign/vdcoqln1z.json | 2 +- .../LowCodeDynamicComponentBase.cs | 101 +++-- .../DesignEngineDynamicComponentBase.cs | 4 +- .../DataSourcePropertyItem.razor | 4 +- .../ExtensionPropertyItem.razor | 3 +- .../Layout/WorkbenchLayout.razor | 6 +- .../H.LowCode.Workbench/Pages/Index.razor | 5 +- .../PageRender/FormPageRender_Test.razor | 89 +++- .../Pages/MetaPage.razor | 1 - .../Pages/MetaPage_Test.razor | 43 ++ .../ComponentPartsAttributeDefineSchema.cs | 24 +- .../H.LowCode.MetaSchema/PageSchemaBase.cs | 5 +- .../RenderEngineDynamicComponentBase.cs | 3 + 16 files changed, 228 insertions(+), 492 deletions(-) create mode 100644 src/Parts/H.LowCode.Themes.AntBlazor/Pages/MetaPage_Test.razor diff --git a/meta/apps/caseapp/page/fhumgxyk.json b/meta/apps/caseapp/page/fhumgxyk.json index ec9463f9..22e35578 100644 --- a/meta/apps/caseapp/page/fhumgxyk.json +++ b/meta/apps/caseapp/page/fhumgxyk.json @@ -1,420 +1 @@ -{ - "comps": [ - { - "compid": "52391a70", - "libid": "antdesign", - "cn": "Input", - "ct": 1, - "frag": { - "dt": "AntDesign.Input\u00601[System.String], AntDesign", - "t": "AntDesign.Input\u00601[System.String], AntDesign", - "valt": "System.String", - "attrs": [] - }, - "ds": { - "dsgt": 1 - }, - "attrdefgroups": [ - { - "gn": "基础属性", - "attrdefs": [ - { - "disn": "是否禁用", - "pt": 6, - "desc": "", - "dftval": false, - "valt": 13, - "attrn": "Disabled", - "attrt": "System.Boolean", - "attrv": false - }, - { - "disn": "最大长度", - "pt": 2, - "desc": "字段输入的最大长度,为0时表示不限制长度", - "dftval": 0, - "valt": 6, - "attrn": "MaxLength", - "attrt": "System.Int32", - "attrv": 0 - }, - { - "disn": "输入提示", - "pt": 1, - "desc": "组件输入时的 Placeholder 提示", - "dftval": "", - "valt": 1, - "attrn": "Placeholder", - "attrt": "System.String", - "attrv": "" - } - ] - } - ], - "childs": [], - "order": 10, - "pub": 1, - "mt": "2025-02-24T15:36:15.8037414Z", - "id": "0bd406f9", - "pid": "lyawwbh9f", - "n": "f_field1", - "lb": "输入框1", - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {}, - "desc": "111" - }, - { - "compid": "52391a70", - "libid": "antdesign", - "cn": "Input", - "ct": 1, - "frag": { - "dt": "AntDesign.Input\u00601[System.String], AntDesign", - "t": "AntDesign.Input\u00601[System.String], AntDesign", - "valt": "System.String", - "attrs": [] - }, - "ds": {}, - "attrdefgroups": [ - { - "gn": "基础属性", - "attrdefs": [ - { - "disn": "是否禁用", - "pt": 6, - "desc": "", - "dftval": false, - "valt": 13, - "attrn": "Disabled", - "attrt": "System.Boolean", - "attrv": false - }, - { - "disn": "最大长度", - "pt": 2, - "desc": "字段输入的最大长度,为0时表示不限制长度", - "dftval": 0, - "valt": 6, - "attrn": "MaxLength", - "attrt": "System.Int32", - "attrv": 0 - }, - { - "disn": "输入提示", - "pt": 1, - "desc": "组件输入时的 Placeholder 提示", - "dftval": "", - "valt": 1, - "attrn": "Placeholder", - "attrt": "System.String", - "attrv": "xxx" - } - ] - } - ], - "childs": [], - "order": 10, - "pub": 1, - "mt": "2025-02-24T15:36:15.8037414Z", - "id": "299f6803", - "pid": "lyawwbh9f", - "n": "f_field3", - "lb": "输入框2", - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {}, - "desc": "222" - }, - { - "compid": "evuqdwzl", - "libid": "antdesign", - "cn": "Radio", - "ct": 1, - "frag": { - "dt": "AntDesign.RadioGroup\u00601[System.String], AntDesign", - "t": "AntDesign.RadioGroup\u00601[System.String], AntDesign", - "attrs": [ - { - "attrn": "TValue", - "attrt": "System.String" - } - ] - }, - "ds": { - "dsfrag": { - "t": "AntDesign.Radio\u00601[System.String], AntDesign", - "attrs": [ - { - "attrn": "Value" - } - ] - }, - "dsgt": 1, - "dst": 8, - "fxopds": [ - { - "l": "选项1", - "v": "op1" - }, - { - "l": "选项2", - "v": "op2" - }, - { - "l": "选项3", - "v": "op3" - }, - { - "l": "选项4", - "v": "op4" - } - ] - }, - "attrdefgroups": [], - "childs": [], - "order": 13, - "pub": 1, - "mt": "2025-03-01T02:58:56.1519656Z", - "id": "vjolyn1r", - "pid": "zkgldg5b", - "n": "f_field6", - "lb": "单选框", - "sptds": true, - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {} - }, - { - "compid": "vdcoqln1z", - "libid": "antdesign", - "cn": "Checkbox", - "ct": 1, - "frag": { - "dt": "AntDesign.CheckboxGroup\u00601[System.String], AntDesign", - "t": "AntDesign.CheckboxGroup\u00601[System.String], AntDesign", - "valt": "System.String[]", - "attrs": [] - }, - "ds": { - "dsfrag": { - "t": "AntDesign.Checkbox, AntDesign", - "attrs": [ - { - "attrn": "Label" - } - ] - }, - "dsgt": 1, - "dst": 8, - "fxopds": [ - { - "l": "选项11", - "v": "ck1" - }, - { - "l": "选项22", - "v": "ck2" - }, - { - "l": "选项33", - "v": "字段8" - } - ] - }, - "attrdefgroups": [], - "childs": [], - "order": 14, - "pub": 1, - "mt": "2025-02-24T15:37:04.5563097Z", - "id": "4trfp5bk", - "pid": "zkgldg5b", - "n": "f_field8", - "lb": "复选框", - "sptds": true, - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {} - }, - { - "compid": "7bab5a19", - "libid": "antdesign", - "cn": "DatePicker", - "ct": 1, - "frag": { - "dt": "AntDesign.DatePicker\u00601[[System.Nullable\u00601[[System.DateTime]]]], AntDesign", - "t": "AntDesign.DatePicker\u00601[[System.Nullable\u00601[[System.DateTime]]]], AntDesign", - "valt": "System.Nullable\u00601[System.DateTime]", - "attrs": [] - }, - "ds": { - "dsgt": 1 - }, - "attrdefgroups": [], - "childs": [], - "order": 15, - "pub": 1, - "mt": "2025-02-24T15:59:32.6799272Z", - "id": "vdyv8q2ay", - "pid": "zkgldg5b", - "n": "f_field10", - "lb": "日期选择器", - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {} - }, - { - "compid": "oikgmvkm", - "libid": "antdesign", - "cn": "TimePicker", - "ct": 1, - "frag": { - "dt": "AntDesign.TimePicker\u00601[[System.Nullable\u00601[[System.DateTime]]]], AntDesign", - "t": "AntDesign.TimePicker\u00601[[System.Nullable\u00601[[System.DateTime]]]], AntDesign", - "valt": "System.Nullable\u00601[System.DateTime]", - "attrs": [] - }, - "ds": {}, - "attrdefgroups": [], - "childs": [], - "order": 16, - "pub": 1, - "mt": "2025-03-05T15:31:24.9654966Z", - "id": "itnmgtzg", - "pid": "zkgldg5b", - "n": "f_field13", - "lb": "时间选择器", - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {} - }, - { - "compid": "5icgyefr", - "libid": "antdesign", - "cn": "TextArea", - "ct": 1, - "frag": { - "dt": "AntDesign.TextArea, AntDesign", - "t": "AntDesign.TextArea, AntDesign", - "valt": "System.String", - "attrs": [] - }, - "ds": { - "dsgt": 1 - }, - "attrdefgroups": [], - "childs": [], - "order": 12, - "pub": 1, - "mt": "2025-02-24T15:36:40.7389762Z", - "id": "ibgtanur", - "pid": "ongkggvjy", - "n": "f_field7", - "lb": "文本框", - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {} - }, - { - "compid": "9xulbbf5u", - "libid": "antdesign", - "cn": "Select", - "ct": 1, - "frag": { - "dt": "AntDesign.Select\u00602[[System.String],[System.String]], antdesign", - "t": "AntDesign.Select\u00602[[System.String],[System.String]], antdesign", - "valt": "System.String", - "attrs": [] - }, - "ds": {}, - "attrdefgroups": [], - "childs": [], - "order": 17, - "pub": 1, - "mt": "2025-03-05T15:31:30.1523166Z", - "id": "c9acpmcp", - "pid": "ongkggvjy", - "n": "f_field11", - "lb": "选择器", - "sptds": true, - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {} - }, - { - "compid": "nwepem4i", - "libid": "antdesign", - "cn": "Switch", - "ct": 1, - "frag": { - "dt": "AntDesign.Switch, AntDesign", - "t": "AntDesign.Switch, AntDesign", - "valt": "System.Boolean", - "attrs": [] - }, - "ds": {}, - "attrdefgroups": [], - "childs": [], - "order": 19, - "pub": 1, - "mt": "2025-03-05T15:31:40.4314786Z", - "id": "cgfb0e64", - "pid": "ongkggvjy", - "n": "f_field9", - "lb": "开关", - "stl": { - "itemh": 85, - "labelw": 180, - "display": "inline", - "pos": "static" - }, - "ev": {} - } - ], - "aid": "caseapp", - "id": "fhumgxyk", - "n": "基础表单", - "order": 21, - "pt": 1, - "pageprop": { - "playout": 3, - "ds": {} - }, - "ds": { - "dst": 1, - "dsv": "tb_test1" - }, - "modifiedTime": "2025-03-26T16:20:58.1859732Z" -} \ No newline at end of file +{"comps":[{"compid":"52391a70","libid":"antdesign","cn":"Input","ct":1,"frag":{"dt":"AntDesign.Input\u00601[System.String], AntDesign","t":"AntDesign.Input\u00601[System.String], AntDesign","valt":"System.String","attrs":[{"attrn":"TValue","attrt":"System.String"}]},"ds":{"dsgt":1},"attrdefgroups":[{"gn":"基础属性","attrdefs":[{"disn":"是否禁用","pt":6,"desc":"","dftval":false,"attrn":"Disabled","attrt":"System.Boolean","attrv":false},{"disn":"最大长度","pt":2,"desc":"字段输入的最大长度,为0时表示不限制长度","dftval":0,"attrn":"MaxLength","attrt":"System.Int32","attrv":20},{"disn":"输入提示","pt":1,"desc":"组件输入时的 Placeholder 提示","dftval":"","attrn":"Placeholder","attrt":"System.String","attrv":""}]}],"childs":[],"order":10,"pub":1,"mt":"2025-02-24T15:36:15.8037414Z","id":"0bd406f9","pid":"lyawwbh9f","n":"f_field1","lb":"输入框1","stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{},"desc":"111"},{"compid":"52391a70","libid":"antdesign","cn":"Input","ct":1,"frag":{"dt":"AntDesign.Input\u00601[System.String], AntDesign","t":"AntDesign.Input\u00601[System.String], AntDesign","valt":"System.String","attrs":[{"attrn":"TValue","attrt":"System.String"}]},"ds":{},"attrdefgroups":[{"gn":"基础属性","attrdefs":[{"disn":"是否禁用","pt":6,"desc":"","dftval":false,"attrn":"Disabled","attrt":"System.Boolean","attrv":false},{"disn":"最大长度","pt":2,"desc":"字段输入的最大长度,为0时表示不限制长度","dftval":0,"attrn":"MaxLength","attrt":"System.Int32","attrv":0},{"disn":"输入提示","pt":1,"desc":"组件输入时的 Placeholder 提示","dftval":"","attrn":"Placeholder","attrt":"System.String","attrv":"xxx"}]}],"childs":[],"order":10,"pub":1,"mt":"2025-02-24T15:36:15.8037414Z","id":"299f6803","pid":"lyawwbh9f","n":"f_field3","lb":"输入框2","stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{},"desc":"222"},{"compid":"evuqdwzl","libid":"antdesign","cn":"Radio","ct":1,"frag":{"dt":"AntDesign.RadioGroup\u00601[System.String], AntDesign","t":"AntDesign.RadioGroup\u00601[System.String], AntDesign","attrs":[{"attrn":"TValue","attrt":"System.String"}]},"ds":{"dsfrag":{"t":"AntDesign.Radio\u00601[System.String], AntDesign","attrs":[{"attrn":"Value"}]},"dsgt":1,"dst":8,"fxopds":[{"l":"选项1","v":"op1"},{"l":"选项2","v":"op2"},{"l":"选项3","v":"op3"},{"l":"选项4","v":"op4"}]},"attrdefgroups":[],"childs":[],"order":13,"pub":1,"mt":"2025-03-01T02:58:56.1519656Z","id":"vjolyn1r","pid":"zkgldg5b","n":"f_field6","lb":"单选框","sptds":true,"stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{}},{"compid":"vdcoqln1z","libid":"antdesign","cn":"Checkbox","ct":1,"frag":{"dt":"AntDesign.CheckboxGroup\u00601[System.String], AntDesign","t":"AntDesign.CheckboxGroup\u00601[System.String], AntDesign","valt":"System.String[]","attrs":[]},"ds":{"dsfrag":{"t":"AntDesign.Checkbox, AntDesign","attrs":[{"attrn":"Label"}]},"dsgt":1,"dst":8,"fxopds":[{"l":"选项11","v":"ck1"},{"l":"选项22","v":"ck2"},{"l":"选项33","v":"字段8"}]},"attrdefgroups":[],"childs":[],"order":14,"pub":1,"mt":"2025-02-24T15:37:04.5563097Z","id":"4trfp5bk","pid":"zkgldg5b","n":"f_field8","lb":"复选框","sptds":true,"stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{}},{"compid":"7bab5a19","libid":"antdesign","cn":"DatePicker","ct":1,"frag":{"dt":"AntDesign.DatePicker\u00601[[System.Nullable\u00601[[System.DateTime]]]], AntDesign","t":"AntDesign.DatePicker\u00601[[System.Nullable\u00601[[System.DateTime]]]], AntDesign","valt":"System.Nullable\u00601[System.DateTime]","attrs":[]},"ds":{"dsgt":1},"attrdefgroups":[],"childs":[],"order":15,"pub":1,"mt":"2025-02-24T15:59:32.6799272Z","id":"vdyv8q2ay","pid":"zkgldg5b","n":"f_field10","lb":"日期选择器","stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{}},{"compid":"oikgmvkm","libid":"antdesign","cn":"TimePicker","ct":1,"frag":{"dt":"AntDesign.TimePicker\u00601[[System.Nullable\u00601[[System.DateTime]]]], AntDesign","t":"AntDesign.TimePicker\u00601[[System.Nullable\u00601[[System.DateTime]]]], AntDesign","valt":"System.Nullable\u00601[System.DateTime]","attrs":[]},"ds":{},"attrdefgroups":[],"childs":[],"order":16,"pub":1,"mt":"2025-03-05T15:31:24.9654966Z","id":"itnmgtzg","pid":"zkgldg5b","n":"f_field13","lb":"时间选择器","stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{}},{"compid":"5icgyefr","libid":"antdesign","cn":"TextArea","ct":1,"frag":{"dt":"AntDesign.TextArea, AntDesign","t":"AntDesign.TextArea, AntDesign","valt":"System.String","attrs":[]},"ds":{"dsgt":1},"attrdefgroups":[],"childs":[],"order":12,"pub":1,"mt":"2025-02-24T15:36:40.7389762Z","id":"ibgtanur","pid":"ongkggvjy","n":"f_field7","lb":"文本框","stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{}},{"compid":"9xulbbf5u","libid":"antdesign","cn":"Select","ct":1,"frag":{"dt":"AntDesign.Select\u00602[[System.String],[System.String]], antdesign","t":"AntDesign.Select\u00602[[System.String],[System.String]], antdesign","valt":"System.String","attrs":[]},"ds":{},"attrdefgroups":[],"childs":[],"order":17,"pub":1,"mt":"2025-03-05T15:31:30.1523166Z","id":"c9acpmcp","pid":"ongkggvjy","n":"f_field11","lb":"选择器","sptds":true,"stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{}},{"compid":"nwepem4i","libid":"antdesign","cn":"Switch","ct":1,"frag":{"dt":"AntDesign.Switch, AntDesign","t":"AntDesign.Switch, AntDesign","valt":"System.Boolean","attrs":[]},"ds":{},"attrdefgroups":[],"childs":[],"order":19,"pub":1,"mt":"2025-03-05T15:31:40.4314786Z","id":"cgfb0e64","pid":"ongkggvjy","n":"f_field9","lb":"开关","stl":{"itemh":85,"labelw":180,"display":"inline","pos":"static"},"ev":{}}],"aid":"caseapp","id":"fhumgxyk","n":"基础表单","order":21,"pt":1,"pageprop":{"playout":3,"ds":{}},"ds":{"dst":1,"dsv":"tb_test1"},"modifiedTime":"2025-04-02T17:05:03.3433467Z"} \ No newline at end of file diff --git a/meta/parts/componentParts/antdesign/52391a70.json b/meta/parts/componentParts/antdesign/52391a70.json index 19f8ea97..2fd6797e 100644 --- a/meta/parts/componentParts/antdesign/52391a70.json +++ b/meta/parts/componentParts/antdesign/52391a70.json @@ -4,7 +4,12 @@ "frag": { "dt": "AntDesign.Input\u00601[System.String], AntDesign", "valt": "System.String", - "attrs": [] + "attrs": [ + { + "attrn": "TValue", + "attrt": "System.String" + } + ] }, "attrdefgroups": [ { diff --git a/meta/parts/componentParts/antdesign/evuqdwzl.json b/meta/parts/componentParts/antdesign/evuqdwzl.json index 68b169a1..5fd6a6a3 100644 --- a/meta/parts/componentParts/antdesign/evuqdwzl.json +++ b/meta/parts/componentParts/antdesign/evuqdwzl.json @@ -4,7 +4,7 @@ "cn": "Radio", "ct": 1, "frag": { - "dt": "AntDesign.RadioGroup\u0060[System.String], AntDesign", + "dt": "AntDesign.RadioGroup\u00601[System.String], AntDesign", "valt": "System.String", "attrs": [ { diff --git a/meta/parts/componentParts/antdesign/vdcoqln1z.json b/meta/parts/componentParts/antdesign/vdcoqln1z.json index 7eae1db9..f6b72ae5 100644 --- a/meta/parts/componentParts/antdesign/vdcoqln1z.json +++ b/meta/parts/componentParts/antdesign/vdcoqln1z.json @@ -13,7 +13,7 @@ "t": "AntDesign.Checkbox, AntDesign", "attrs": [ { - "n": "Label" + "attrn": "Label" } ] }, diff --git a/src/Common/H.LowCode.ComponentBase/LowCodeDynamicComponentBase.cs b/src/Common/H.LowCode.ComponentBase/LowCodeDynamicComponentBase.cs index 02cc618f..63ce8a1b 100644 --- a/src/Common/H.LowCode.ComponentBase/LowCodeDynamicComponentBase.cs +++ b/src/Common/H.LowCode.ComponentBase/LowCodeDynamicComponentBase.cs @@ -6,7 +6,6 @@ using System.Text; using H.LowCode.MetaSchema; using System.Reflection; using Microsoft.AspNetCore.Components.Rendering; -using System.ComponentModel; using System.Text.Json; namespace H.LowCode.ComponentBase; @@ -27,39 +26,61 @@ public abstract class LowCodeDynamicComponentBase : LowCodeComponentBase string componentId, Type componentType, ComponentAttributeFragmentSchema[] attributes) { + if (attributes == null || attributes.Length == 0) + return; + foreach (var attr in attributes) { - var propertyInfo = componentType.GetProperty(attr.AttributeName); - if (propertyInfo == null) - continue; + RenderComponentAttribute(builder, index, componentId, componentType, attr); + } + } - if (propertyInfo.PropertyType == typeof(RenderFragment)) - { - // 处理 RenderFragment 属性(如 ChildContent) - builder.AddAttribute(index++, attr.AttributeName, (RenderFragment)(childBuilder => - { - childBuilder.AddContent(index++, attr.AttributeValue?.ToString()); - })); - } - else if (propertyInfo.PropertyType == typeof(EventCallback)) + private void RenderComponentAttribute(RenderTreeBuilder builder, int index, + string componentId, Type componentType, + ComponentAttributeFragmentSchema attr) + { + ArgumentNullException.ThrowIfNull(attr); + ArgumentNullException.ThrowIfNullOrWhiteSpace(attr.AttributeName); + + var propertyInfo = componentType.GetProperty(attr.AttributeName); + if (propertyInfo == null) + return; + + if (propertyInfo.PropertyType == typeof(RenderFragment)) + { + //渲染 RenderFragment 属性(如 ChildContent) + builder.AddAttribute(index++, attr.AttributeName, (RenderFragment)(childBuilder => { - // 处理事件回调属性 - var method = GetType().GetMethod(attr.AttributeValue?.ToString(), BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); - if (method != null) - { - var delegateType = typeof(EventCallback); - var eventCallback = Delegate.CreateDelegate(delegateType, this, method); - builder.AddAttribute(index++, attr.AttributeName, eventCallback); - } - } - else + childBuilder.AddContent(index++, attr.AttributeValue?.ToString()); + })); + } + else if (propertyInfo.PropertyType == typeof(EventCallback)) + { + //渲染事件回调属性 + var method = GetType().GetMethod(attr.AttributeValue?.ToString(), BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); + if (method != null) { - //设置普通属性 - RenderComponentSimpleAttribute(builder, index, componentId, componentType, attr); + var delegateType = typeof(EventCallback); + var eventCallback = Delegate.CreateDelegate(delegateType, this, method); + builder.AddAttribute(index++, attr.AttributeName, eventCallback); } } + else + { + //渲染简单属性 + RenderComponentSimpleAttribute(builder, index, componentId, componentType, attr); + } } + /// + /// 渲染简单属性 + /// + /// + /// + /// + /// + /// + /// private void RenderComponentSimpleAttribute(RenderTreeBuilder builder, int index, string componentId, Type componentType, ComponentAttributeFragmentSchema attr) @@ -88,24 +109,30 @@ public abstract class LowCodeDynamicComponentBase : LowCodeComponentBase { ArgumentNullException.ThrowIfNull(typeName); + var type = Type.GetType(typeName); if (value == null) { - var type = Type.GetType(typeName); return type.GetDefaultValue(); } - var valueElement = (JsonElement)value; - return typeName switch + if (value is JsonElement valueElement) { - "System.Int32" => valueElement.GetInt32(), - "System.Boolean" => valueElement.GetBoolean(), - "System.String" => valueElement.GetString(), - "System.Double" => valueElement.GetDouble(), - "System.Decimal" => valueElement.GetDecimal(), - "System.DateTime" => valueElement.GetDateTime(), - "System.Int64" => valueElement.GetInt64(), - _ => throw new NotSupportedException($"Type '{typeName}' is not supported.") - }; + return typeName switch + { + "System.Int32" => valueElement.GetInt32(), + "System.Boolean" => valueElement.GetBoolean(), + "System.String" => valueElement.GetString(), + "System.Double" => valueElement.GetDouble(), + "System.Decimal" => valueElement.GetDecimal(), + "System.DateTime" => valueElement.GetDateTime(), + "System.Int64" => valueElement.GetInt64(), + _ => throw new NotSupportedException($"Type '{typeName}' is not supported.") + }; + } + else + { + return type.GetDefaultValue(); + } } private bool SupportsValueBinding(Type componentType) diff --git a/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/DesignEngineDynamicComponentBase.cs b/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/DesignEngineDynamicComponentBase.cs index 5708efb2..7e12697d 100644 --- a/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/DesignEngineDynamicComponentBase.cs +++ b/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/DesignEngineDynamicComponentBase.cs @@ -95,10 +95,12 @@ public abstract class DesignEngineDynamicComponentBase : LowCodeDynamicComponent childBuilder.OpenComponent(index++, childComponentType); foreach (var fragAttr in dataSource.DataSourceFragment.Attributes) { + if(string.IsNullOrEmpty(fragAttr.AttributeName)) + throw new NullReferenceException($"componentId={componentId}, {nameof(fragAttr.AttributeName)} is null"); + childBuilder.AddAttribute(index++, fragAttr.AttributeName, option.Value); } - //childBuilder.AddContent(index++, option.Label); childBuilder.AddAttribute(index++, "ChildContent", (RenderFragment)((cb) => { cb.AddContent(index++, option.Label); diff --git a/src/DesignEngine/H.LowCode.DesignEngine/SettingPanel/PropertySettingItems/DataSourcePropertyItem.razor b/src/DesignEngine/H.LowCode.DesignEngine/SettingPanel/PropertySettingItems/DataSourcePropertyItem.razor index 796b4569..5e4f6870 100644 --- a/src/DesignEngine/H.LowCode.DesignEngine/SettingPanel/PropertySettingItems/DataSourcePropertyItem.razor +++ b/src/DesignEngine/H.LowCode.DesignEngine/SettingPanel/PropertySettingItems/DataSourcePropertyItem.razor @@ -65,12 +65,12 @@ if (isSuccess) { _optionDataSourceVisible = false; - await Message.Success("保存成功!"); + //await Message.Success("保存成功!"); } else { _optionDataSourceVisible = true; - await Message.Error("保存失败"); + //await Message.Error("保存失败"); } } else diff --git a/src/DesignEngine/H.LowCode.DesignEngine/SettingPanel/PropertySettingItems/ExtensionPropertyItem.razor b/src/DesignEngine/H.LowCode.DesignEngine/SettingPanel/PropertySettingItems/ExtensionPropertyItem.razor index 43ba848e..e35fce2c 100644 --- a/src/DesignEngine/H.LowCode.DesignEngine/SettingPanel/PropertySettingItems/ExtensionPropertyItem.razor +++ b/src/DesignEngine/H.LowCode.DesignEngine/SettingPanel/PropertySettingItems/ExtensionPropertyItem.razor @@ -29,8 +29,7 @@ } else if (attrDefine.AttributeItemType == ComponentAttributeItemTypeEnum.Checkbox) { - //TODO - @* *@ + } else if (attrDefine.AttributeItemType == ComponentAttributeItemTypeEnum.Select) { diff --git a/src/DesignEngine/H.LowCode.Workbench/Layout/WorkbenchLayout.razor b/src/DesignEngine/H.LowCode.Workbench/Layout/WorkbenchLayout.razor index ea174b71..0096665d 100644 --- a/src/DesignEngine/H.LowCode.Workbench/Layout/WorkbenchLayout.razor +++ b/src/DesignEngine/H.LowCode.Workbench/Layout/WorkbenchLayout.razor @@ -9,7 +9,7 @@ } - RightContent @@ -74,8 +74,8 @@ { new LinkItem { - Key = "H.LowCode", - Title = "H.LowCode", + Key = "OpenLowCodeLab", + Title = "OpenLowCodeLab", Href = "/", BlankTarget = true, } diff --git a/src/DesignEngine/H.LowCode.Workbench/Pages/Index.razor b/src/DesignEngine/H.LowCode.Workbench/Pages/Index.razor index 9fc83d19..dbcac437 100644 --- a/src/DesignEngine/H.LowCode.Workbench/Pages/Index.razor +++ b/src/DesignEngine/H.LowCode.Workbench/Pages/Index.razor @@ -3,7 +3,7 @@ @namespace H.LowCode.Workbench @inherits LowCodePageComponentBase -工作台 - H.LowCode +工作台 - OpenLowCodeLab *@ + +@* @code *@ +@* { *@ +@* private MapControl _mapControl; *@ +@* protected override void OnAfterRender(bool firstRender) *@ +@* { *@ +@* base.OnAfterRender(firstRender); *@ +@* if (firstRender) *@ +@* { *@ +@* if (_mapControl != null) *@ +@* _mapControl.Map?.Layers.Add(Mapsui.Tiling.OpenStreetMap.CreateTileLayer()); *@ +@* } *@ +@* } *@ +@* } *@ \ No newline at end of file diff --git a/src/Parts/H.LowCode.Components.Extension/Components/LcMonacoEditor.razor b/src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcMonacoEditor.razor similarity index 88% rename from src/Parts/H.LowCode.Components.Extension/Components/LcMonacoEditor.razor rename to src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcMonacoEditor.razor index fb6d8723..86daf397 100644 --- a/src/Parts/H.LowCode.Components.Extension/Components/LcMonacoEditor.razor +++ b/src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcMonacoEditor.razor @@ -1,9 +1,9 @@ -@namespace H.LowCode.Components.Extension +@namespace H.LowCode.Components.Defaults @inherits LowCodeComponentBase @inject IJSRuntime JSRuntime -@* *@ +@* *@
@@ -59,7 +59,7 @@ private async Task LoadMonacoEditorAsync(string containerId, string code, string language, string theme) { moduleTask = new(() => JSRuntime.InvokeAsync("import", - "./_content/H.LowCode.Components.Extension/MonacoEditor/monaco.js").AsTask()); + "./_content/H.LowCode.Components.Defaults/MonacoEditor/monaco.js").AsTask()); var module = await moduleTask.Value; await module.InvokeVoidAsync("initMonacoEditor", containerId, code, language, theme); diff --git a/src/Parts/H.LowCode.Components.Extension/Components/LcRegion.razor b/src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcRegion.razor similarity index 57% rename from src/Parts/H.LowCode.Components.Extension/Components/LcRegion.razor rename to src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcRegion.razor index 305375f0..8b4307ef 100644 --- a/src/Parts/H.LowCode.Components.Extension/Components/LcRegion.razor +++ b/src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcRegion.razor @@ -1,4 +1,4 @@ -@namespace H.LowCode.Components.Extension +@namespace H.LowCode.Components.Defaults @inherits LowCodeComponentBase

Region

diff --git a/src/Parts/H.LowCode.Components.Extension/Components/LcUserSelect.razor b/src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcUserSelect.razor similarity index 58% rename from src/Parts/H.LowCode.Components.Extension/Components/LcUserSelect.razor rename to src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcUserSelect.razor index 1257ba09..d0ee1fc8 100644 --- a/src/Parts/H.LowCode.Components.Extension/Components/LcUserSelect.razor +++ b/src/Common/H.LowCode.Components.Defaults/ExtraComponents/LcUserSelect.razor @@ -1,4 +1,4 @@ -@namespace H.LowCode.Components.Extension +@namespace H.LowCode.Components.Defaults @inherits LowCodeComponentBase

UserSelect

diff --git a/src/Parts/H.LowCode.Components.AntBlazor/H.LowCode.Components.AntBlazor.csproj b/src/Common/H.LowCode.Components.Defaults/H.LowCode.Components.Defaults.csproj similarity index 94% rename from src/Parts/H.LowCode.Components.AntBlazor/H.LowCode.Components.AntBlazor.csproj rename to src/Common/H.LowCode.Components.Defaults/H.LowCode.Components.Defaults.csproj index a57bd455..75626af3 100644 --- a/src/Parts/H.LowCode.Components.AntBlazor/H.LowCode.Components.AntBlazor.csproj +++ b/src/Common/H.LowCode.Components.Defaults/H.LowCode.Components.Defaults.csproj @@ -9,6 +9,7 @@ + diff --git a/src/Parts/H.LowCode.Components.AntBlazor/DefaultComponentModule.cs b/src/Common/H.LowCode.Components.Defaults/LowCodeDefaultComponentModule.cs similarity index 43% rename from src/Parts/H.LowCode.Components.AntBlazor/DefaultComponentModule.cs rename to src/Common/H.LowCode.Components.Defaults/LowCodeDefaultComponentModule.cs index 42983f3a..9ad96684 100644 --- a/src/Parts/H.LowCode.Components.AntBlazor/DefaultComponentModule.cs +++ b/src/Common/H.LowCode.Components.Defaults/LowCodeDefaultComponentModule.cs @@ -1,11 +1,9 @@ -using H.LowCode.DesignEngine; -using H.LowCode.DesignEngine.Abstraction; -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using Volo.Abp.Modularity; -namespace H.LowCode.Components.AntBlazor; +namespace H.LowCode.Components.Defaults; -public class DefaultComponentModule : AbpModule +public class LowCodeDefaultComponentModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { diff --git a/src/Parts/H.LowCode.Components.AntBlazor/_Imports.razor b/src/Common/H.LowCode.Components.Defaults/_Imports.razor similarity index 100% rename from src/Parts/H.LowCode.Components.AntBlazor/_Imports.razor rename to src/Common/H.LowCode.Components.Defaults/_Imports.razor diff --git a/src/Common/H.LowCode.MetaSchema.DesignEngine/ComponentPartsSchema.cs b/src/Common/H.LowCode.MetaSchema.DesignEngine/ComponentPartsSchema.cs index 85c61fa8..a1130faa 100644 --- a/src/Common/H.LowCode.MetaSchema.DesignEngine/ComponentPartsSchema.cs +++ b/src/Common/H.LowCode.MetaSchema.DesignEngine/ComponentPartsSchema.cs @@ -8,7 +8,7 @@ namespace H.LowCode.MetaSchema.DesignEngine; public class ComponentPartsSchema : ComponentSchemaBase { /// - /// 组件Id + /// 组件物料Id /// /// 一类组件唯一Id [JsonPropertyName("compid")] diff --git a/src/Common/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsFragmentSchema.cs b/src/Common/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsFragmentSchema.cs index ba66b407..bda6c493 100644 --- a/src/Common/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsFragmentSchema.cs +++ b/src/Common/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsFragmentSchema.cs @@ -1,10 +1,7 @@ -using H.LowCode.MetaSchema; -using System; -using System.Collections.Generic; +using System; using System.Linq; using System.Text; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace H.LowCode.MetaSchema.DesignEngine; @@ -27,5 +24,15 @@ public class ComponentPartsFragmentSchema : ComponentFragmentSchemaBase public override string TypeName { get; set; } [JsonPropertyName("childs")] - public ComponentPartsFragmentSchema[] Childrens { get; set; } + public ComponentPartsFragmentSchema[] ChildFragments { get; set; } + + public bool HasChildFragment + { + get + { + if (ChildFragments == null || ChildFragments.Length == 0) + return false; + return true; + } + } } diff --git a/src/Common/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsStyleSchema.cs b/src/Common/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsStyleSchema.cs index 1796ae8a..ebd21030 100644 --- a/src/Common/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsStyleSchema.cs +++ b/src/Common/H.LowCode.MetaSchema.DesignEngine/PropertySchemas/ComponentPartsStyleSchema.cs @@ -29,20 +29,20 @@ public class ComponentPartsStyleSchema [JsonPropertyName("labelw")] public double LabelWidth { get; set; } = 180; - /// - /// 默认样式 - /// - [JsonPropertyName("defstyle")] - public string DefaultStyle { get; set; } - public string Display { get; set; } = "inline"; [JsonPropertyName("pos")] public string Position { get; set; } = "static"; + /// + /// 默认样式 + /// + [JsonPropertyName("dsty")] + public string DefaultStyle { get; set; } + /// /// 自定义样式 /// - [JsonPropertyName("cusstyle")] + [JsonPropertyName("csty")] public string CustomStyle { get; set; } } diff --git a/src/Common/H.LowCode.MetaSchema.RenderEngine/PropertySchemas/ComponentFragmentSchema.cs b/src/Common/H.LowCode.MetaSchema.RenderEngine/PropertySchemas/ComponentFragmentSchema.cs index 0b09ef7f..aeb85a2f 100644 --- a/src/Common/H.LowCode.MetaSchema.RenderEngine/PropertySchemas/ComponentFragmentSchema.cs +++ b/src/Common/H.LowCode.MetaSchema.RenderEngine/PropertySchemas/ComponentFragmentSchema.cs @@ -7,4 +7,14 @@ public class ComponentFragmentSchema : ComponentFragmentSchemaBase { [JsonPropertyName("childs")] public ComponentFragmentSchema[] Childrens { get; set; } + + public bool HasChildren + { + get + { + if (Childrens == null || Childrens.Length == 0) + return false; + return true; + } + } } diff --git a/src/Common/H.LowCode.MetaSchema/PropertySchemas/ComponentFragmentSchemaBase.cs b/src/Common/H.LowCode.MetaSchema/PropertySchemas/ComponentFragmentSchemaBase.cs index 0dc48059..2a25a14a 100644 --- a/src/Common/H.LowCode.MetaSchema/PropertySchemas/ComponentFragmentSchemaBase.cs +++ b/src/Common/H.LowCode.MetaSchema/PropertySchemas/ComponentFragmentSchemaBase.cs @@ -1,5 +1,4 @@ -using System.ComponentModel; -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace H.LowCode.MetaSchema; diff --git a/src/Common/H.LowCode.MetaSchema/PropertySchemas/ComponentStyleSchema.cs b/src/Common/H.LowCode.MetaSchema/PropertySchemas/ComponentStyleSchema.cs index a5387bac..d3c03d47 100644 --- a/src/Common/H.LowCode.MetaSchema/PropertySchemas/ComponentStyleSchema.cs +++ b/src/Common/H.LowCode.MetaSchema/PropertySchemas/ComponentStyleSchema.cs @@ -10,7 +10,7 @@ public class ComponentStyleSchema ///
/// 有效值为4-24,如 12/24*100 = 50%。有值以当前值为准,无值以页面布局为准 [JsonPropertyName("itemw")] - public double? ItemWidth { get; set; } + public double ItemWidth { get; set; } = 4; /// /// 组件高度 (单位:px) @@ -28,17 +28,12 @@ public class ComponentStyleSchema /// /// 默认样式 /// - [JsonPropertyName("defstyle")] + [JsonPropertyName("dsty")] public string DefaultStyle { get; set; } - public string Display { get; set; } = "inline"; - - [JsonPropertyName("pos")] - public string Position { get; set; } = "static"; - /// /// 自定义样式 /// - [JsonPropertyName("cusstyle")] + [JsonPropertyName("csty")] public string CustomStyle { get; set; } } diff --git a/src/Common/H.LowCode.MetaSchema/PropertySchemas/PagePropertySchema.cs b/src/Common/H.LowCode.MetaSchema/PropertySchemas/PagePropertySchema.cs index 67fb9ce3..510ca2ad 100644 --- a/src/Common/H.LowCode.MetaSchema/PropertySchemas/PagePropertySchema.cs +++ b/src/Common/H.LowCode.MetaSchema/PropertySchemas/PagePropertySchema.cs @@ -17,6 +17,21 @@ public class PagePropertySchema [JsonPropertyName("titlew")] public string TitleWidth { get; set; } + /// + /// 默认样式 + /// + [JsonPropertyName("dsty")] + public string DefaultStyle { get; set; } + + /// + /// 自定义样式 + /// + [JsonPropertyName("csty")] + public string CustomStyle { get; set; } + + /// + /// 页面数据源 + /// [JsonPropertyName("ds")] public PageDataSourceSchema DataSource { get; set; } = new(); } diff --git a/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/ContainerComponentBase.razor b/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/ContainerComponentBase.razor index ca3c59fb..f3ba7c8a 100644 --- a/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/ContainerComponentBase.razor +++ b/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/ContainerComponentBase.razor @@ -1,51 +1,47 @@ -@namespace H.LowCode.DesignEngine.Abstraction -@inherits DesignEngineLowCodeComponentBase - -@code { - [Parameter] - public ComponentPartsSchema Component { get; set; } - - protected virtual ComponentPartsSchema CreateComponent(string key, Action action = null) - { - var c = Component.Childrens.FirstOrDefault(t => - { - // if (t.Property.ExtensionData.ContainsKey(key)) - // return true; - return false; - }); - if (c != null) - return c; - - var component = CreateContainerComponent(key); - - if(action != null) action(component); - - Component.Childrens.Add(component); - - return component; - } - - private ComponentPartsSchema CreateContainerComponent(string name) - { - var component = new ComponentPartsSchema(); - component.Id = ShortIdGenerator.Generate(); - component.Refresh = Component.Refresh; - - component.Fragment = new(); - //component.Property.ExtraProperties = new Dictionary(); - component.Style = new() { DefaultStyle = "height:100%; width:100%;" }; - component.Event = default; - component.DesignState.DragEffectStyle = default; - component.DesignState.IsDropedAfter = default; - component.DesignState.IsDroppedFromComponentPanel = default; - component.IsHiddenLabel = true; - component.DesignState.IsSelected = default; - component.DesignState.Opacity = default; - - component.IsContainer = true; - //component.Property.ExtensionData.Add(name, name); - component.ParentId = Component.Id; - - return component; - } -} +@* @namespace H.LowCode.DesignEngine.Abstraction *@ +@* @inherits DesignEngineLowCodeComponentBase *@ + +@* @code { *@ +@* [Parameter] *@ +@* public ComponentPartsSchema Component { get; set; } *@ + +@* protected virtual ComponentPartsSchema CreateComponent(string key, Action action = null) *@ +@* { *@ +@* var c = Component.Childrens.FirstOrDefault(t => *@ +@* { *@ +@* return false; *@ +@* }); *@ +@* if (c != null) *@ +@* return c; *@ + +@* var component = CreateContainerComponent(key); *@ + +@* if(action != null) action(component); *@ + +@* Component.Childrens.Add(component); *@ + +@* return component; *@ +@* } *@ + +@* private ComponentPartsSchema CreateContainerComponent(string name) *@ +@* { *@ +@* var component = new ComponentPartsSchema(); *@ +@* component.Id = ShortIdGenerator.Generate(); *@ +@* component.Refresh = Component.Refresh; *@ + +@* component.Fragment = new(); *@ +@* component.Style = new() { DefaultStyle = "height:100%; width:100%;" }; *@ +@* component.Event = default; *@ +@* component.DesignState.DragEffectStyle = default; *@ +@* component.DesignState.IsDropedAfter = default; *@ +@* component.DesignState.IsDroppedFromComponentPanel = default; *@ +@* component.IsHiddenLabel = true; *@ +@* component.DesignState.IsSelected = default; *@ +@* component.DesignState.Opacity = default; *@ + +@* component.IsContainer = true; *@ +@* component.ParentId = Component.Id; *@ + +@* return component; *@ +@* } *@ +@* } *@ diff --git a/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/Components/APIDataSource.razor b/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/DataSourceComponents/APIDataSource.razor similarity index 97% rename from src/DesignEngine/H.LowCode.DesignEngine.Abstraction/Components/APIDataSource.razor rename to src/DesignEngine/H.LowCode.DesignEngine.Abstraction/DataSourceComponents/APIDataSource.razor index 05e34c29..ec249a5b 100644 --- a/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/Components/APIDataSource.razor +++ b/src/DesignEngine/H.LowCode.DesignEngine.Abstraction/DataSourceComponents/APIDataSource.razor @@ -35,7 +35,7 @@ || DataSource.Body.DataType == APIBodyTypeEnum.Raw) { diff --git a/src/H.LowCode.sln b/src/H.LowCode.sln index c770aecb..31fa54f3 100644 --- a/src/H.LowCode.sln +++ b/src/H.LowCode.sln @@ -22,8 +22,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".config", ".config", "{8B2D EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Protocol", "Protocol", "{4E9BFDA3-AFC6-41F3-817C-FD9E82322BDA}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "H.LowCode.Themes.AntBlazor", "Parts\H.LowCode.Themes.AntBlazor\H.LowCode.Themes.AntBlazor.csproj", "{7B0FC9E5-6B07-4878-919B-66307FD5E48D}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HttpApi", "HttpApi", "{B8524D2C-164A-46A1-83A3-5F47BC645B01}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "H.LowCode.DesignEngine.Application", "DesignEngine\H.LowCode.DesignEngine.Application\H.LowCode.DesignEngine.Application.csproj", "{2FEAC795-B93C-4164-8A4D-92B2F26F4994}" @@ -32,15 +30,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "H.LowCode.DesignEngine.Appl EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "H.LowCode.DesignEngine.Abstraction", "DesignEngine\H.LowCode.DesignEngine.Abstraction\H.LowCode.DesignEngine.Abstraction.csproj", "{78087384-C445-47F5-BB2A-80CDA2132FF6}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Parts", "Parts", "{068DA80C-3A05-42EB-B84F-9080258FDBDA}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "H.LowCode.Components.AntBlazor", "Parts\H.LowCode.Components.AntBlazor\H.LowCode.Components.AntBlazor.csproj", "{006C07D4-7891-40EC-9B13-EFF7B8D9268D}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "H.LowCode.Components.Extension", "Parts\H.LowCode.Components.Extension\H.LowCode.Components.Extension.csproj", "{585546F6-B1F4-47CF-8BFB-5AFDA3F54E7A}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComponentParts", "ComponentParts", "{EBBA5F8E-C292-4B80-95E9-3389F3522971}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ThemeParts", "ThemeParts", "{4B81FABE-A4D5-4602-A83C-E2875286AA53}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Themes", "Themes", "{4B81FABE-A4D5-4602-A83C-E2875286AA53}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "H.LowCode.MyApp", "DesignEngine\H.LowCode.MyApp\H.LowCode.MyApp.csproj", "{69842168-80FE-46B2-B66E-4E87B016E93D}" EndProject @@ -106,7 +96,15 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "H.LowCode.RenderEngine.Repo EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "H.LowCode.Entity", "Common\H.LowCode.Entity\H.LowCode.Entity.csproj", "{04CA320A-37C9-45AE-BCCB-DA01300F29C7}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Web", "Web", "{74702D29-14AE-406A-BC15-27C4312DEDCF}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "H.LowCode.Themes.AntBlazor", "RenderEngine\H.LowCode.Themes.AntBlazor\H.LowCode.Themes.AntBlazor.csproj", "{90F5B2E9-D945-2235-497D-8ECDD759C198}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Components", "Components", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "H.LowCode.Components.Defaults", "Common\H.LowCode.Components.Defaults\H.LowCode.Components.Defaults.csproj", "{55223317-D668-C49B-D469-0ADABACFC365}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Common", "Common", "{2B32F5E0-A1C9-49DA-85DD-9C3202A4AF2C}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Common", "Common", "{844CDB6A-8081-4769-8905-8A0D279D6101}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -122,10 +120,6 @@ Global {9BE2FECD-B648-4B15-B394-E354F98D1B73}.Debug|Any CPU.Build.0 = Debug|Any CPU {9BE2FECD-B648-4B15-B394-E354F98D1B73}.Release|Any CPU.ActiveCfg = Release|Any CPU {9BE2FECD-B648-4B15-B394-E354F98D1B73}.Release|Any CPU.Build.0 = Release|Any CPU - {7B0FC9E5-6B07-4878-919B-66307FD5E48D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7B0FC9E5-6B07-4878-919B-66307FD5E48D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7B0FC9E5-6B07-4878-919B-66307FD5E48D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7B0FC9E5-6B07-4878-919B-66307FD5E48D}.Release|Any CPU.Build.0 = Release|Any CPU {2FEAC795-B93C-4164-8A4D-92B2F26F4994}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2FEAC795-B93C-4164-8A4D-92B2F26F4994}.Debug|Any CPU.Build.0 = Debug|Any CPU {2FEAC795-B93C-4164-8A4D-92B2F26F4994}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -138,14 +132,6 @@ Global {78087384-C445-47F5-BB2A-80CDA2132FF6}.Debug|Any CPU.Build.0 = Debug|Any CPU {78087384-C445-47F5-BB2A-80CDA2132FF6}.Release|Any CPU.ActiveCfg = Release|Any CPU {78087384-C445-47F5-BB2A-80CDA2132FF6}.Release|Any CPU.Build.0 = Release|Any CPU - {006C07D4-7891-40EC-9B13-EFF7B8D9268D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {006C07D4-7891-40EC-9B13-EFF7B8D9268D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {006C07D4-7891-40EC-9B13-EFF7B8D9268D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {006C07D4-7891-40EC-9B13-EFF7B8D9268D}.Release|Any CPU.Build.0 = Release|Any CPU - {585546F6-B1F4-47CF-8BFB-5AFDA3F54E7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {585546F6-B1F4-47CF-8BFB-5AFDA3F54E7A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {585546F6-B1F4-47CF-8BFB-5AFDA3F54E7A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {585546F6-B1F4-47CF-8BFB-5AFDA3F54E7A}.Release|Any CPU.Build.0 = Release|Any CPU {69842168-80FE-46B2-B66E-4E87B016E93D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {69842168-80FE-46B2-B66E-4E87B016E93D}.Debug|Any CPU.Build.0 = Debug|Any CPU {69842168-80FE-46B2-B66E-4E87B016E93D}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -250,6 +236,14 @@ Global {04CA320A-37C9-45AE-BCCB-DA01300F29C7}.Debug|Any CPU.Build.0 = Debug|Any CPU {04CA320A-37C9-45AE-BCCB-DA01300F29C7}.Release|Any CPU.ActiveCfg = Release|Any CPU {04CA320A-37C9-45AE-BCCB-DA01300F29C7}.Release|Any CPU.Build.0 = Release|Any CPU + {90F5B2E9-D945-2235-497D-8ECDD759C198}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {90F5B2E9-D945-2235-497D-8ECDD759C198}.Debug|Any CPU.Build.0 = Debug|Any CPU + {90F5B2E9-D945-2235-497D-8ECDD759C198}.Release|Any CPU.ActiveCfg = Release|Any CPU + {90F5B2E9-D945-2235-497D-8ECDD759C198}.Release|Any CPU.Build.0 = Release|Any CPU + {55223317-D668-C49B-D469-0ADABACFC365}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55223317-D668-C49B-D469-0ADABACFC365}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55223317-D668-C49B-D469-0ADABACFC365}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55223317-D668-C49B-D469-0ADABACFC365}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -258,22 +252,18 @@ Global {47EE6944-D5F8-46CD-A552-29A237BE87BD} = {89FE3DE3-2E58-4835-A476-CA2E309A1B3F} {9BE2FECD-B648-4B15-B394-E354F98D1B73} = {A32809CE-52C6-4E00-92D3-76903D8D9C61} {4E9BFDA3-AFC6-41F3-817C-FD9E82322BDA} = {A63C9652-517D-4BC3-B935-74D946AB0761} - {7B0FC9E5-6B07-4878-919B-66307FD5E48D} = {4B81FABE-A4D5-4602-A83C-E2875286AA53} {B8524D2C-164A-46A1-83A3-5F47BC645B01} = {7E5B26AA-4F89-4B8C-B743-AE3F04C9DD58} {2FEAC795-B93C-4164-8A4D-92B2F26F4994} = {B8524D2C-164A-46A1-83A3-5F47BC645B01} {523063C9-59C7-49E4-A17F-B0A5E4247729} = {B8524D2C-164A-46A1-83A3-5F47BC645B01} - {78087384-C445-47F5-BB2A-80CDA2132FF6} = {7E5B26AA-4F89-4B8C-B743-AE3F04C9DD58} - {006C07D4-7891-40EC-9B13-EFF7B8D9268D} = {EBBA5F8E-C292-4B80-95E9-3389F3522971} - {585546F6-B1F4-47CF-8BFB-5AFDA3F54E7A} = {EBBA5F8E-C292-4B80-95E9-3389F3522971} - {EBBA5F8E-C292-4B80-95E9-3389F3522971} = {068DA80C-3A05-42EB-B84F-9080258FDBDA} - {4B81FABE-A4D5-4602-A83C-E2875286AA53} = {068DA80C-3A05-42EB-B84F-9080258FDBDA} + {78087384-C445-47F5-BB2A-80CDA2132FF6} = {2B32F5E0-A1C9-49DA-85DD-9C3202A4AF2C} + {4B81FABE-A4D5-4602-A83C-E2875286AA53} = {89FE3DE3-2E58-4835-A476-CA2E309A1B3F} {69842168-80FE-46B2-B66E-4E87B016E93D} = {4D070ACB-8367-4889-806E-FA6EEA0D6A67} {2F7C173C-2C3C-4B8A-BBAD-852283458D87} = {7E5B26AA-4F89-4B8C-B743-AE3F04C9DD58} {240CD8ED-49F9-47E0-91B1-B170252E5437} = {89FE3DE3-2E58-4835-A476-CA2E309A1B3F} {C38DD51F-A1D3-4158-BF04-179A4C3BBEEA} = {240CD8ED-49F9-47E0-91B1-B170252E5437} {68C4F1D4-C479-4679-8074-B13EA898F4A0} = {240CD8ED-49F9-47E0-91B1-B170252E5437} {8490E431-5F81-4EF4-B765-FF0AC8A6EA10} = {A63C9652-517D-4BC3-B935-74D946AB0761} - {9832C124-BE18-48FA-8C60-48857D9B4DA1} = {89FE3DE3-2E58-4835-A476-CA2E309A1B3F} + {9832C124-BE18-48FA-8C60-48857D9B4DA1} = {844CDB6A-8081-4769-8905-8A0D279D6101} {8C48BC1B-FD9B-4C39-929D-9458BD9B42E1} = {30AB2F99-B015-4F98-9439-41A23A954CDE} {30AB2F99-B015-4F98-9439-41A23A954CDE} = {7E5B26AA-4F89-4B8C-B743-AE3F04C9DD58} {C81282DA-2FD7-4DA4-A607-DBADD3ACD367} = {7E5B26AA-4F89-4B8C-B743-AE3F04C9DD58} @@ -282,7 +272,7 @@ Global {4630AE17-4522-491A-BC9D-91BF522CBFA5} = {89FE3DE3-2E58-4835-A476-CA2E309A1B3F} {4D070ACB-8367-4889-806E-FA6EEA0D6A67} = {7E5B26AA-4F89-4B8C-B743-AE3F04C9DD58} {DE9247F1-BABC-4098-A928-960E8E4EC20E} = {4D070ACB-8367-4889-806E-FA6EEA0D6A67} - {43C23BD6-6228-4C41-BD73-FC1508178F33} = {74702D29-14AE-406A-BC15-27C4312DEDCF} + {43C23BD6-6228-4C41-BD73-FC1508178F33} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} {F33C7AB6-CA4B-4254-9A75-D803FEDE0CB4} = {F3ABC418-7234-4DBA-8A5A-6B286A25B8AD} {A32809CE-52C6-4E00-92D3-76903D8D9C61} = {7E5B26AA-4F89-4B8C-B743-AE3F04C9DD58} {1BF619BF-4992-46CC-B831-8E3ABA9A435A} = {4E9BFDA3-AFC6-41F3-817C-FD9E82322BDA} @@ -297,7 +287,11 @@ Global {0CD501D8-1151-4850-8AD4-25920EDFA781} = {240CD8ED-49F9-47E0-91B1-B170252E5437} {637464B4-18A5-4111-966E-33936516CEC8} = {240CD8ED-49F9-47E0-91B1-B170252E5437} {04CA320A-37C9-45AE-BCCB-DA01300F29C7} = {A63C9652-517D-4BC3-B935-74D946AB0761} - {74702D29-14AE-406A-BC15-27C4312DEDCF} = {A63C9652-517D-4BC3-B935-74D946AB0761} + {90F5B2E9-D945-2235-497D-8ECDD759C198} = {4B81FABE-A4D5-4602-A83C-E2875286AA53} + {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {A63C9652-517D-4BC3-B935-74D946AB0761} + {55223317-D668-C49B-D469-0ADABACFC365} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} + {2B32F5E0-A1C9-49DA-85DD-9C3202A4AF2C} = {7E5B26AA-4F89-4B8C-B743-AE3F04C9DD58} + {844CDB6A-8081-4769-8905-8A0D279D6101} = {89FE3DE3-2E58-4835-A476-CA2E309A1B3F} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A8C26757-CDED-4779-94DE-C0D4929F64C2} diff --git a/src/Parts/H.LowCode.Components.AntBlazor/Components/LcLayout.razor b/src/Parts/H.LowCode.Components.AntBlazor/Components/LcLayout.razor deleted file mode 100644 index 9e8fd4ba..00000000 --- a/src/Parts/H.LowCode.Components.AntBlazor/Components/LcLayout.razor +++ /dev/null @@ -1,15 +0,0 @@ -@* @namespace H.LowCode.Components.AntBlazor *@ -@* @inherits ContainerComponentBase *@ - -@* *@ -@* *@ -@* *@ -@* *@ -@* *@ -@* *@ -@* *@ -@* *@ - -@* @code { *@ - -@* } *@ \ No newline at end of file diff --git a/src/Parts/H.LowCode.Components.Extension/Components/LcMap.razor b/src/Parts/H.LowCode.Components.Extension/Components/LcMap.razor deleted file mode 100644 index 94e47907..00000000 --- a/src/Parts/H.LowCode.Components.Extension/Components/LcMap.razor +++ /dev/null @@ -1,33 +0,0 @@ -@using Mapsui.UI.Blazor -@namespace H.LowCode.Components.Extension -@inherits LowCodeComponentBase - -MapsuiExercise -
-
-
- -
-
-
- - - -@code -{ - private MapControl _mapControl; - protected override void OnAfterRender(bool firstRender) - { - base.OnAfterRender(firstRender); - if (firstRender) - { - if (_mapControl != null) - _mapControl.Map?.Layers.Add(Mapsui.Tiling.OpenStreetMap.CreateTileLayer()); - } - } -} \ No newline at end of file diff --git a/src/Parts/H.LowCode.Components.Extension/ExtensionComponentModule.cs b/src/Parts/H.LowCode.Components.Extension/ExtensionComponentModule.cs deleted file mode 100644 index 6dc532d1..00000000 --- a/src/Parts/H.LowCode.Components.Extension/ExtensionComponentModule.cs +++ /dev/null @@ -1,14 +0,0 @@ -using H.LowCode.DesignEngine.Abstraction; -using Microsoft.Extensions.DependencyInjection; -using Volo.Abp.Modularity; - -namespace H.LowCode.Components.Extension; - -public class ExtensionComponentModule : AbpModule -{ - public override void ConfigureServices(ServiceConfigurationContext context) - { - //context.Services.AddScoped(); - //context.Services.AddScoped(); - } -} diff --git a/src/Parts/H.LowCode.Components.Extension/H.LowCode.Components.Extension.csproj b/src/Parts/H.LowCode.Components.Extension/H.LowCode.Components.Extension.csproj deleted file mode 100644 index 0a0845a7..00000000 --- a/src/Parts/H.LowCode.Components.Extension/H.LowCode.Components.Extension.csproj +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Parts/H.LowCode.Components.Extension/_Imports.razor b/src/Parts/H.LowCode.Components.Extension/_Imports.razor deleted file mode 100644 index e03ccaf8..00000000 --- a/src/Parts/H.LowCode.Components.Extension/_Imports.razor +++ /dev/null @@ -1,13 +0,0 @@ -@using Microsoft.AspNetCore.Components.Web -@using Microsoft.JSInterop -@using System.Text.Json -@using System.ComponentModel -@using AntDesign -@using AntDesign.TableModels -@using H.LowCode.ComponentBase -@using H.LowCode.DesignEngine.Abstraction -@using H.LowCode.DesignEngine -@using H.LowCode.Components.AntBlazor -@using H.LowCode.MetaSchema -@using H.LowCode.MetaSchema.DesignEngine -@using H.Util.Blazor \ No newline at end of file diff --git a/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/LakexEditor.js b/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/LakexEditor.js deleted file mode 100644 index 1f149d1a..00000000 --- a/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/LakexEditor.js +++ /dev/null @@ -1,60 +0,0 @@ -export function initLakexEditor(lakexId) { - const reactJs = "_content/H.LowCode.Components.Extension/react-18/react.production.min.js"; - const reactDomJs = "_content/H.LowCode.Components.Extension/react-18/react-dom.production.min.js"; - const lakexJs = "_content/H.LowCode.Components.Extension/LakexEditor-1.24.0/doc.umd.js"; - - loadScript(reactJs, function () { - loadScript(reactDomJs, function () { - loadScript(lakexJs, function () { - initEditor(lakexId); - }); - }); - }); -} - -function initEditor(lakexId) { - const { createOpenEditor } = window.Doc; - // 创建编辑器 - const editor = createOpenEditor(document.getElementById(lakexId), { - input: {}, - image: { - isCaptureImageURL() { - return false; - }, - }, - }); - var text = '

Welcome LakexEditor

' - // 设置内容 - editor.setDocument('text/lake', text); - // 监听内容变动 - editor.on('contentchange', () => { - console.info(editor.getDocument('text/lake')); - }); -} - -function loadScript(url, callback) { - if (document.querySelector('[src$="' + url + '"]')) { - if (typeof callback === 'function') { - callback(); - } - return; - } - - const script = document.createElement('script'); - script.type = 'text/javascript'; - script.src = url; - - script.onload = function () { - if (typeof callback === 'function') { - callback(); - } - } - - const jsMark = document.querySelector("script"); - if (jsMark) { - jsMark.after(script); - } - else { - document.body.appendChild(script); - } -} \ No newline at end of file diff --git a/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/doc.css b/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/doc.css deleted file mode 100644 index e459fb19..00000000 --- a/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/doc.css +++ /dev/null @@ -1,23081 +0,0 @@ -.ne-editor-ui-sys { - position: absolute; - z-index: 4; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-editor { - position: relative; - background-color: var(--lakex-editor-background-primary); -} -.ne-editor-header { - background-color: var(--lakex-editor-background); - display: none; -} -.ne-editor-header .ne-ui-exit-max-view-btn { - background: url('https://gw.alipayobjects.com/zos/bmw-prod/09ca6e30-fd03-49ff-b2fb-15a2fbd8042a.svg') no-repeat left center; - border: none; - outline: none; - color: var(--lakex-editor-text-color); - cursor: pointer; - height: 54px; - line-height: 54px; - margin-left: 36px; - padding: 0 30px 0 24px; -} -.ne-editor-header .ne-ui-exit-max-view-btn:hover { - color: var(--lakex-editor-text-caption); -} -.ne-ui { - position: relative; - top: 0; - left: 0; - z-index: 5; -} -.ne-ui .ant-dropdown { - transform: translateZ(0); -} -.ne-editor-body { - position: relative; -} -.ne-editor-wrap { - position: relative; - overflow-anchor: none; -} -.ne-editor-box { - position: relative; -} -.ne-editor-extra-box { - position: relative; -} -.ne-overlay-container, -.ne-inner-overlay-container { - position: absolute; - top: 0; - left: 0; - z-index: 4; -} -.ne-overlay-container { - z-index: 1012; -} -.ne-overlay-container { - position: fixed; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-max-view { - position: fixed !important; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 1000; - height: auto; -} -.ne-ui-max-view .ne-ui-sidebar-visible .ne-editor-wrap:after { - content: ' '; - display: block; - width: 288px; -} -.ne-ui-max-view .ne-ui-sidebar-visible .ne-ui-sidebar { - right: 0; -} -.ne-ui-max-view .ne-editor-extra-box { - display: none; -} -.ne-ui-max-view .ne-editor { - height: 100%; -} -.ne-ui-max-view .ne-editor-body { - height: calc(100% - 50px - 54px); -} -.ne-ui-max-view .ne-editor-wrap { - padding-top: 16px; - height: 100%; - display: flex; -} -.ne-ui-max-view .ne-editor-wrap-content { - margin: 0 16px; - height: 100%; - flex: 1; - width: 440px; -} -.ne-ui-max-view .ne-editor-wrap-box, -.ne-ui-max-view .ne-editor-outer-wrap-box, -.ne-ui-max-view .ne-editor-box, -.ne-ui-max-view .ne-engine-box { - height: 100%; -} -.ne-ui-max-view .ne-engine-box .ne-engine { - height: 100%; - overflow: hidden; -} -.ne-ui-max-view .ne-editor-header, -.ne-ui-max-view .ne-ui { - border-bottom: 1px solid var(--lakex-editor-border-light); -} -.ne-ui-max-view .ne-ui-sidebar { - top: 0; -} -.ne-ui-max-view .ne-ui { - padding-left: 40px; -} -.ne-ui-max-view.ne-ui-max-view-no-toolbar .ne-ui { - display: none; -} -.ne-ui-max-view.ne-ui-max-view-no-toolbar .ne-editor-wrap-content { - margin: 0; -} -.ne-ui-max-view.ne-ui-max-view-no-toolbar .ne-editor-wrap { - padding-top: 0; -} -.ne-ui-max-view.ne-ui-max-view-no-toolbar .ne-editor-body { - height: calc(100% - 54px); -} -.ne-ui-max-view .ne-ui-max-view-node { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 999; - width: auto; - height: auto !important; -} -.ne-ui-max-view .ne-ui-max-view-node > ne-card-root { - height: 100% !important; -} -.ne-ui-max-view .ne-ui-max-view-node > ne-card-root > .ne-card-container { - height: 100% !important; -} -.ne-ui-max-view .ne-td-content .ne-ui-max-view-node { - position: fixed; - top: 55px; -} -.ne-ui-max-view .ne-editor-body { - background: var(--lakex-editor-background-primary); -} -.ne-ui-max-view .ne-editor-header { - display: block; -} - -.ne-card-container { - position: relative; -} -.ne-container-toolbar-wrap { - position: absolute; - top: 0; -} - -.ne-ui-card-mask { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 9; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-card-resizer { - position: absolute; - bottom: 0; - left: 0; - right: 0; - z-index: 10; - cursor: row-resize; - display: block; -} -.ne-card-resizer-trigger { - width: 56px; - height: 8px; - background-color: var(--lakex-editor-color-grey5); - border-radius: 4px; - position: absolute; - top: -4px; - left: 50%; - margin-left: -28px; -} -.ne-card-resizer-mask { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 9; - display: none; -} - -/** 只提供变量 */ -/** 适配antd5 */ -[class^='ant-'], -[class*='ant-'], -[class^='ant-'] *, -[class*='ant-'] *, -[class^='ant-'] *::before, -[class*='ant-'] *::before, -[class^='ant-'] *::after, -[class*='ant-'] *::after { - box-sizing: border-box; -} -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-engine-box { - position: relative; - overflow-anchor: none; -} -.ne-engine-box .ne-engine-global-overlay { - position: relative; -} -.ne-engine-box .ne-engine-scrollable-overlay { - position: absolute; - top: 0; - left: 0; - z-index: 2; -} -.ne-engine-box .ne-drawer-box { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 1; - pointer-events: none; - opacity: 0.3; -} -.ne-engine { - position: relative; - z-index: 1; - outline: none; - white-space: pre-wrap; - white-space: break-spaces; - word-break: break-word; - word-wrap: break-word; - font-family: 'Chinese Quote', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-variant-ligatures: none; - --link-color: var(--lakex-editor-text-link); -} -.ne-engine ::selection { - background: var(--lakex-editor-selection) !important; - color: inherit !important; -} -.ne-engine .ne-table { - white-space: pre-wrap; -} -.ne-engine:after { - content: ' '; -} -.ne-engine span.ne-b-filler, -.ne-engine span.ne-i-filler, -.ne-engine span.ne-t-filler { - text-indent: 0; - min-width: 1px; - vertical-align: baseline; - font-size: 1em; - height: 1em; -} -.ne-engine span.ne-t-filler { - display: inline; -} -.ne-engine span.ne-i-filler { - display: inline; -} -.ne-engine span.ne-b-filler { - display: inline; -} -.ne-doc-micro-editor .ne-engine span.ne-b-filler[data-placeholder]:first-child { - display: inline-table; - width: 100%; -} -.ne-doc-micro-editor .ne-engine span.ne-b-filler[data-placeholder]:first-child::before { - width: 100%; - text-overflow: ellipsis; - overflow: hidden; -} -ne-hole, -ne-card[data-card-type='inline'] { - max-width: calc(100% - 2px); -} -ne-hole.ne-spacing-all, -ne-card.ne-spacing-all { - margin-top: 16px; - margin-bottom: 16px; -} -ne-hole.ne-spacing-top, -ne-card.ne-spacing-top { - margin-top: 16px; -} -ne-hole.ne-spacing-bottom, -ne-card.ne-spacing-bottom { - margin-bottom: 16px; -} -ne-hole.ne-spacing-all:first-child { - margin-top: 0; -} -ne-hole.ne-spacing-top:first-child { - margin-top: 0; -} -ne-card { - position: relative; - z-index: 1; - line-height: 1em; - font-size: 15px; - letter-spacing: normal; - text-indent: 0; - height: fit-content; -} -ne-card .ne-card-container { - line-height: 1.74; -} -[data-card-type='inline'] { - display: inline-flex; - vertical-align: baseline; - margin: 0 1px; -} -[data-card-type='inline'] ne-card-root { - display: inline; - width: 100%; - z-index: 1; -} -[data-card-type='inline'] .ne-card-container { - display: inline; -} -[data-card-type='block'] { - display: block; - width: calc(100% - 2px); - max-width: 100%; -} -[data-card-type='block'] ne-card-root { - display: block; - width: 100%; - z-index: 1; -} -[data-card-type='block'] ne-card-root .ne-card-container { - background-color: var(--lakex-editor-background-primary); -} -ne-card[data-card-type='inline'] ne-l-ph, -ne-card[data-card-type='inline'] ne-r-ph { - width: 1px; -} - -@keyframes neIconLoading { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} -div.ne-icon { - display: inline-flex; - justify-content: center; - align-items: center; - width: 1em; - height: 1em; - font-size: 16px; - background-position: center; - background-repeat: no-repeat; -} -div.ne-icon .ne-icon-symbol { - width: 1em; - height: 1em; - fill: currentColor; - overflow: hidden; -} -div.ne-icon-loading { - animation: neIconLoading 1000ms linear infinite; -} -div.ne-lark-icon > svg { - flex: 1; -} - -.ne-svg-icon-yuque-doc { - background-image: url('https://gw.alipayobjects.com/zos/hitu-asset/c5543986-ee4e-4583-9456-4bc013ef5380/hitu-1666592990857-doc-type-default.svg'); -} -.ne-svg-icon-yuque-table { - background-image: url('https://gw.alipayobjects.com/zos/hitu-asset/f6a96eb0-8cbd-4b34-bbc4-363a71729638/hitu-1666593927820-doc-type-table.svg'); -} -.ne-svg-icon-yuque-sheet { - background-image: url('https://gw.alipayobjects.com/zos/hitu-asset/14bdecbb-ea1c-4ed8-ab01-bd36e981ffcb/hitu-1666593100668-doc-type-sheet.svg'); -} -.ne-svg-icon-yuque-board { - background-image: url('https://gw.alipayobjects.com/zos/hitu-asset/f44aacb9-01af-4d55-bf45-2655a4af3b81/hitu-1666593968301-doc-type-board.svg'); -} -[data-kumuhana="pouli"] .ne-svg-icon-yuque-doc { - background-image: url('https://gw.alipayobjects.com/zos/hitu-asset/bff04a91-6683-4fed-9fdc-2173b41fb160/hitu-1666593002740-doc-type-default-dark.svg'); -} -[data-kumuhana="pouli"] .ne-svg-icon-yuque-table { - background-image: url('https://gw.alipayobjects.com/zos/hitu-asset/f824fe38-a711-4f8b-8c6f-11a575722683/hitu-1666593944289-doc-type-table-dark.svg'); -} -[data-kumuhana="pouli"] .ne-svg-icon-yuque-sheet { - background-image: url('https://gw.alipayobjects.com/zos/hitu-asset/8795730c-3646-4fea-aad9-e82481fe86eb/hitu-1666593140770-doc-type-sheet-dark.svg'); -} -[data-kumuhana="pouli"] .ne-svg-icon-yuque-board { - background-image: url('https://gw.alipayobjects.com/zos/hitu-asset/de256bb9-edf7-4d77-b899-67c1d3bd9616/hitu-1666594033862-doc-type-board-dark.svg'); -} - -.ne-svg-icon { - width: 16px; - height: 16px; - display: inline-block; - vertical-align: -0.15em; - text-align: center; - text-transform: none; - line-height: 1; - text-rendering: auto; - background-repeat: no-repeat; - background-position: center; -} -.ne-svg-icon-helper-tips { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/45ba264b-0967-4439-9289-ee41b040a0c2.svg'); -} -.ne-svg-icon-alert { - width: 16px; - height: 16px; - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/be5b1e2a-b47e-479c-9217-430229bef84e.svg'); -} -.ne-svg-icon-file { - width: 14px; - height: 11px; - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/ecda03cc-fd8e-45d2-834c-c904048f9583.svg'); -} -.ne-svg-icon-image { - width: 14px; - height: 11px; - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/44718df0-a6d9-4b93-909d-8482f70476ab.svg'); -} -.ne-svg-icon-error-image { - width: 22px; - height: 18px; - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/2295f9e0-1cb2-4d63-86aa-e9799273b28d.svg'); -} -.ne-svg-icon-error-file { - width: 22px; - height: 18px; - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/42090c56-d17b-4cf0-be63-59e164e47ba6.svg'); -} -.ne-svg-icon-insert { - background-image: url('https://gw.alipayobjects.com/mdn/prod_resource/afts/img/A*o_5bR4s5I4QAAAAAAAAAAABjAQAAAQ/original'); - width: 18px; - height: 18px; - margin-bottom: -1px; -} -.ne-svg-icon-label { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/20747dac-1cc8-49f6-a91a-0c8c501d189b.svg'); -} -.ne-svg-icon-new-card { - width: 30px; - height: 12px; - margin-top: 5px; - margin-left: 4px; - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/7e255d95-cbe3-4559-a4a3-dbe69cd3e38b.svg'); -} -.ne-svg-icon-puml { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/4d2be8de-b7b7-41df-a36f-77ff0b6a5b9f.svg'); -} -.ne-svg-icon-flowchart { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/c82343e1-60ab-4b62-8135-d71401191104.svg'); -} -.ne-svg-icon-graphviz { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/19178ae8-0b12-463e-b466-e927094e9ea0.svg'); -} -.ne-svg-icon-mermaid { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/a15d98ca-089f-4cc2-9c11-032cc56fcacb.svg'); -} -.ne-svg-icon-processon { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/5c0fa950-66ff-4a3b-a788-477ea178e6bb.svg'); -} -.ne-svg-icon-modao { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/04162a86-307b-409e-8f8c-71f2200891f5.svg'); -} -.ne-svg-icon-herbox { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/f6d5ceab-a3e0-413f-a1ab-3c9ded96d632.svg'); -} -.ne-svg-icon-deepinsight { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/69f6859c-220e-490c-8c8a-b3bdaa7cbcb3.svg'); -} -.ne-svg-icon-ali { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/25837bdf-8082-430b-a8ac-4168cd84e093.svg'); -} -.ne-svg-icon-codepen { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/29539843-153d-4c7b-af8f-4475e743398b.svg'); -} -.ne-svg-icon-riddle { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/f0328014-fe24-4690-90a4-82c8e150c5bf.svg'); -} -.ne-svg-icon-figma { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/d0b58b9f-0ac3-4d0f-958a-c0aa8a3265eb.svg'); -} -.ne-svg-icon-xiami { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/c71358bb-d7cc-45dc-96ae-19d28febbb03.svg'); -} -.ne-svg-icon-music163 { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/e3416ec0-a688-4160-8772-9bbecad88d28.svg'); -} -.ne-svg-icon-gaode { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/02def0ac-858f-4f90-886c-295290725024.svg'); -} -.ne-svg-icon-taobao { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/57a7cb99-7f36-4869-8f94-d9c87d069cd6.svg'); -} -.ne-svg-icon-preview { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/95b6cdec-29f5-495f-8f1b-8835bcd2c541.svg'); -} -.ne-svg-icon-youku { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/4825b4b8-96a3-463f-8e6a-c28ae8b792b0.svg'); -} -.ne-svg-icon-bilibili { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/93d6bda1-2ab6-4b20-97e5-c0a73f2a42cd.svg'); -} -.ne-svg-icon-mmad { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/5e8132a4-5ec0-4c4e-95c4-7f5b19f23c19.svg'); -} -.ne-svg-icon-psd { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/df8dd01c-ecb1-4d33-99f6-8079591bb46c.svg'); -} -.ne-svg-icon-sketch { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/ef845454-388c-47b3-8066-298e335a2741.svg'); -} -.ne-svg-icon-xmind { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/46f6c8fc-5d56-41d7-b419-a89335f82dfc.svg'); -} -.ne-svg-icon-rp { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/f8f40533-79d9-4a3c-8051-31c34390f96d.svg'); -} -.ne-svg-icon-key { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/73dc752c-3f7b-4b0b-ada9-eb7e208d9b34.svg'); -} -.ne-svg-icon-mindnode { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/3fbedc10-029c-4670-a343-8b224ab0978e.svg'); -} -.ne-svg-icon-keynote { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/73dc752c-3f7b-4b0b-ada9-eb7e208d9b34.svg'); -} -.ne-svg-icon-xd { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/139561c7-309c-4669-882b-1107e217179c.svg'); -} -.ne-svg-icon-numbers { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/1eecfe2b-d250-4575-b3b4-78de3503007c.svg'); -} -.ne-svg-icon-pages { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/60e30d6d-9ee0-47b7-8955-cdd4aff6b2ac.svg'); -} -.ne-svg-icon-ppt, -.ne-svg-icon-pptx, -.ne-svg-icon-potx { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/d62af37c-9f13-4ca2-8861-f2b18c98f3a9.svg'); -} -.ne-svg-icon-xls { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/1874c8cc-a103-429b-8465-bb3adfe78d43.svg'); -} -.ne-svg-icon-xlsx { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/1874c8cc-a103-429b-8465-bb3adfe78d43.svg'); -} -.ne-svg-icon-doc { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/d98a673f-ef0f-46a6-83e3-ba6d01a4ec9d.svg'); -} -.ne-svg-icon-docx { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/d98a673f-ef0f-46a6-83e3-ba6d01a4ec9d.svg'); -} -.ne-svg-icon-pdf { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/02e0700b-d617-4afb-b4de-a4ea4c9bf7e7.svg'); -} -.ne-svg-icon-eddx { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/e1c51c39-f5b6-4e14-9ba9-0102d3579b9a.svg'); -} -.ne-svg-icon-eps { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/84b8024a-c65c-44e3-9be8-269af985af54.svg'); -} -.ne-svg-icon-insert-local-doc { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/f54a24bd-f973-4945-978c-abb923e20090.svg'); -} -.ne-svg-icon-insert-yuque { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/99e327dd-1cfe-40dd-b3e5-28c9d88d182d.svg'); -} -.ne-svg-icon-insert-table { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/a9cf6f64-3741-493b-a112-8952baedd1f6.svg'); -} -.ne-svg-icon-insert-image { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/dcf2220d-9226-41c9-b1f6-cc0c0a110dc1.svg'); -} -.ne-svg-icon-insert-file { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/2c7fe359-ac3d-493e-998d-f285305d28bd.svg'); -} -.ne-svg-icon-insert-video { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/1ef56c12-3adc-42c6-bb7c-9cb13111d8e2.svg'); -} -.ne-svg-icon-insert-thirdparty { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/e3ebe9af-b207-4d94-8dc4-2fdf5469f5e7.svg'); -} -.ne-svg-icon-insert-youku { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/4825b4b8-96a3-463f-8e6a-c28ae8b792b0.svg'); -} -.ne-svg-icon-insert-codeblock { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/7fd18334-db2e-49d0-ba80-b92689b81b3f.svg'); -} -.ne-svg-icon-insert-math { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/762f00b4-45d7-47b8-8c7b-2c9f886612b5.svg'); -} -.ne-svg-icon-insert-mindmap { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/f6510a5f-33d9-4bcb-8b54-5dc30bd89e79.svg'); -} -.ne-svg-icon-insert-puml { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/10a9cc50-3a01-4a5c-8335-9a194fdcb614.svg'); -} -.ne-svg-icon-insert-flowchart { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/0e0309c1-2b5c-433c-b9d7-e0d2486ce885.svg'); -} -.ne-svg-icon-insert-graphviz { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/44e449b2-9756-4de6-b227-bf4205964d20.svg'); -} -.ne-svg-icon-insert-mermaid { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/59cb287f-06f2-4712-a206-e1c4d173830b.svg'); -} -.ne-svg-icon-insert-lockedtext { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/bc8adb5a-18d2-4385-8ca4-710b57ad1664.svg'); -} -.ne-svg-icon-insert-calendar { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/2dd842ba-ea59-4cd1-994e-c5f31bd1ead2.svg'); -} -.ne-svg-icon-check-success { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/4c17d1ec-bd3f-4b86-a77b-dfd91e9c9626.svg'); -} -.ne-svg-icon-calendar-arrow-left { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/2f3e5fca-16d2-48b3-a5d2-fff2328df92c.svg'); -} -.ne-svg-icon-calendar-arrow-right { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/a03bff1a-3aef-4871-bc74-de2a3f81e3ff.svg'); -} -.ne-svg-icon-desc { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/a085f457-6982-434a-808d-372cac6624e7.svg'); -} -.ne-svg-icon-error { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/8f8fcc17-b080-421e-b733-7772d62be204.svg'); -} -.ne-svg-icon-warning { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/d1b4c5f6-8dcd-4d10-ab31-265abdbb9579.svg'); -} -.ne-svg-insert-yuan { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/b1c64e6e-3787-408c-bc49-dd0f9d9b2ebc.svg'); -} -.ne-svg-icon-yuan { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/6145eac0-5d9d-4b9b-84be-7ed8bfde32c7.svg'); -} -.ne-svg-icon-line-height { - background-image: url('https://gw.alipayobjects.com/zos/basement_prod/40d4fb04-d3c2-43e8-a99d-7f68345f7f0a.svg'); -} -.ne-svg-icon-yuque-group { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/a69b963b-47e0-445d-8851-1eee4e853c95.svg'); - background-size: 110%; -} -.ne-svg-icon-yuque-thread { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/1f4ca629-5760-465a-9207-7a7f49d01ca6.svg'); -} -.ne-svg-icon-yuque-design { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/f0eded1a-a849-44f6-a5e2-3d8f5724ebef.svg'); -} -.ne-svg-icon-yuque-mind { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/b74e7bab-1935-48ae-80f8-82ea648697e5.svg'); -} -.ne-svg-icon-yuque-show { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/de70d404-fec2-4606-aa45-eb4d6560a1cc.svg'); -} -.ne-svg-icon-yuque-note { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/f6ff9184-7f47-41b2-a0b5-3df6955a5081.svg'); -} -.ne-svg-icon-yuque-repo-mind { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/b74e7bab-1935-48ae-80f8-82ea648697e5.svg'); -} -.ne-svg-icon-yuque-repo-sheet { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/3be374af-05cc-4115-a9ac-477131b54212.svg'); -} -.ne-svg-icon-yuque-repo-doc { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/2a1ba540-5d0d-46a2-98fb-6753300d3749.svg'); -} -.ne-svg-icon-yuque-repo-thread { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/3f6aa5c3-e7b1-4d78-932e-b00379e8d38c.svg'); -} -.ne-svg-icon-yuque-repo-design { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/48e3d64b-aec0-4f3f-9838-d1f685781dfd.svg'); -} -.ne-svg-icon-search { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/086f31be-d7f0-4675-aa2c-8c8cf21c088b.svg'); -} -.ne-svg-icon-plus { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/fa994e91-3fa4-421d-b0fc-9823dc5cf330.svg'); -} -.ne-svg-icon-video { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/31499aa4-1105-4a4b-a8c7-f33ceaf8e012.svg'); -} -.ne-svg-icon-canva { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/c1678a81-2534-4fdd-b38b-a510d69a6661.svg'); -} -.ne-svg-icon-yuque-for-embed { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/5dfd3248-3206-41dc-bc2c-1d7fb9847ecb.svg'); -} -.ne-svg-icon-file-for-embed { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/6ac1386e-5c04-45a5-a351-7d94a61d7bba.svg'); -} -.ne-svg-icon-jinshuju { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/3f11de9a-3da8-402d-a8bc-81df6ec52d2c.svg'); -} -.ne-svg-icon-vote { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/929ed4d4-a244-4d78-96e2-f472642daf2a.svg'); -} -.ne-svg-icon-cloud { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/58c42f2b-cdf1-49c3-a77a-d5e63c561a36.svg'); -} -.ne-svg-icon-folder { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/9890c046-6d10-4d2f-917a-b40a8e92ea7f.svg'); -} -.ne-svg-icon-audio { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/4aa43d0f-2881-46ab-a894-afd617b08afc.svg'); -} -.ne-svg-icon-audio-icon { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/b9d51288-551f-447e-930f-7e1132a4a90b.svg'); -} -.ne-svg-icon-audio-error-icon { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/dc01c10b-e433-4bb3-bf7e-8b679725b823.svg'); -} -.ne-svg-icon-regret { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/9436ba3b-352d-4dd2-a97b-b3c525390508.svg'); -} -.ne-svg-icon-note-file { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/a8cab1ab-68dd-48be-82ab-c667e0c43556.svg'); -} -.ne-svg-icon-note-image { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/6efcc064-f6e7-4823-983e-a09d449fcf55.svg'); -} -.ne-svg-icon-note-tasklist { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/32d03522-996b-4c48-bd08-274a2ed15204.svg'); -} -.ne-svg-icon-note-link { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/a232cebb-7862-420f-a220-31eff086e997.svg'); -} -.ne-svg-icon-emoji { - width: 16px; - height: 16px; - margin-bottom: 1px; - background-size: contain; - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/72fc758e-01ca-4317-b9c9-1d25e9b3a577.svg'); -} - -.ne-ui-tooltip { - pointer-events: none; -} -.ne-ui-tooltip-content { - max-width: 100px; - text-align: center; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-card-toolbar-dropdown-item { - display: flex; - justify-content: center; - align-items: center; - border-radius: 5px; - padding: 5px; - width: 28px; - height: 28px; - cursor: pointer; - box-sizing: border-box; -} -.ne-card-toolbar-dropdown-item:hover, -.ne-card-toolbar-dropdown-item.selected { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-card-toolbar-dropdown-item-has-title { - width: auto; - white-space: nowrap; - line-height: 28px; -} -.ne-card-toolbar-dropdown-item-has-title > span { - margin-left: 4px; -} -.ne-card-toolbar-dropdown-item-has-title > span:first-child { - margin-left: 0; -} -.ne-card-toolbar-dropdown-item:hover { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-card-toolbar-select-menu { - border-radius: 5px; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item { - position: relative; - padding: 10px 20px 10px 30px; - line-height: 30px; - font-size: 12px; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-selected, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item.ant-dropdown-menu-item-selected { - background: none; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-selected:hover, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item.ant-dropdown-menu-item-selected:hover { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-selected .ne-card-toolbar-check-icon, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item.ant-dropdown-menu-item-selected .ne-card-toolbar-check-icon { - opacity: 1; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item .ne-card-toolbar-check-icon, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item .ne-card-toolbar-check-icon { - position: absolute; - left: 2px; - top: 0; - bottom: 0; - width: 30px; - display: flex; - justify-content: center; - align-items: center; - opacity: 0; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item .ne-card-toolbar-select-item-content, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item .ne-card-toolbar-select-item-content { - display: flex; - align-items: center; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item .ne-card-toolbar-select-item-content .ne-card-toolbar-select-item-icon, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item .ne-card-toolbar-select-item-content .ne-card-toolbar-select-item-icon { - margin-right: 3px; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item .ne-card-toolbar-select-item-content .ne-card-toolbar-select-item-label, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item .ne-card-toolbar-select-item-content .ne-card-toolbar-select-item-label { - font-size: 14px; - line-height: 22px; - color: var(--lakex-editor-text-body); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-card-toolbar-select-item { - display: flex; - justify-content: center; - align-items: center; - border-radius: 5px; - padding: 5px; - width: 38px; - height: 28px; - box-sizing: border-box; -} -.ne-card-toolbar-select-item-has-title { - width: auto; - white-space: nowrap; - line-height: 28px; -} -.ne-card-toolbar-select-item-has-title span { - margin-left: 4px; -} -.ne-card-toolbar-select-item-has-title span:first-child { - margin-left: 0; -} -.ne-card-toolbar-select-item:hover { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-card-toolbar-arrow-down-icon { - width: 16px; - height: 16px; - background-position: center; - background-repeat: no-repeat; - background-size: cover; - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/d5fce5b0-cd60-43b0-a351-9463486be4d2.svg'); -} -.ne-card-toolbar-select-menu { - border-radius: 5px; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item { - position: relative; - padding: 10px 20px 10px 30px; - line-height: 30px; - font-size: 12px; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-selected, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item.ant-dropdown-menu-item-selected { - background: none; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-selected:hover, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item.ant-dropdown-menu-item-selected:hover { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-selected .ne-card-toolbar-check-icon, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item.ant-dropdown-menu-item-selected .ne-card-toolbar-check-icon { - opacity: 1; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item .ne-card-toolbar-check-icon, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item .ne-card-toolbar-check-icon { - position: absolute; - left: 2px; - top: 0; - bottom: 0; - width: 30px; - display: flex; - justify-content: center; - align-items: center; - opacity: 0; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item .ne-card-toolbar-select-item-content, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item .ne-card-toolbar-select-item-content { - display: flex; - align-items: center; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item .ne-card-toolbar-select-item-content .ne-card-toolbar-select-item-icon, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item .ne-card-toolbar-select-item-content .ne-card-toolbar-select-item-icon { - margin-right: 3px; -} -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item .ne-card-toolbar-select-item-content .ne-card-toolbar-select-item-label, -.ne-card-toolbar-select-menu .ne-card-toolbar-select-menu-item.ant-dropdown-menu-item-only-child.ant-dropdown-menu-item .ne-card-toolbar-select-item-content .ne-card-toolbar-select-item-label { - font-size: 14px; - line-height: 22px; - color: var(--lakex-editor-text-body); -} - -.ne-ui-boundary-popover { - display: none; - position: absolute; - top: -999999999px; - left: -999999999px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-card-toolbar { - background: rgba(255, 255, 255, 0.85); - border: 1px solid var(--lakex-editor-border-primary); - backdrop-filter: blur(50px); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-card-toolbar .ne-ui-card-toolbar-divider { - background-color: rgba(0, 0, 0, 0.05); -} -[data-kumuhana='pouli'] .ne-card-toolbar { - background: rgba(41, 41, 41, 0.85); -} -[data-kumuhana='pouli'] .ne-card-toolbar .ne-ui-card-toolbar-divider { - background-color: var(--lakex-editor-border-light); -} -.ne-card-toolbar { - display: inline-flex; - align-items: center; - flex-direction: row; - border-radius: 4px; - padding: 6px 12px; -} -.ne-card-toolbar .ant-tooltip-content { - white-space: nowrap; -} -.ne-card-toolbar .ne-icon { - color: var(--lakex-editor-text-color); -} -.ne-card-toolbar .ne-card-toolbar-item { - width: 28px; - height: 28px; - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - border-radius: 4px; - margin-right: 4px; -} -.ne-card-toolbar .ne-card-toolbar-item:first-child { - margin-left: 0; -} -.ne-card-toolbar .ne-card-toolbar-item:last-child { - margin-right: 0; -} -.ne-card-toolbar .ne-card-toolbar-item:hover, -.ne-card-toolbar .ne-card-toolbar-item.selected { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-card-toolbar .ne-card-toolbar-item.ne-card-toolbar-item-has-title { - padding: 0 6px; -} -.ne-card-toolbar .ne-card-toolbar-item[data-disabled] { - cursor: not-allowed; -} -.ne-card-toolbar .ne-card-toolbar-item[data-disabled]:hover { - background: transparent; -} -.ne-card-toolbar .ne-card-toolbar-item[data-disabled] .ne-icon { - color: var(--lakex-editor-text-disable); -} -.ne-card-toolbar .ne-card-toolbar-item.ne-card-toolbar-item-has-title { - width: auto; - white-space: nowrap; - line-height: 28px; -} -.ne-card-toolbar .ne-card-toolbar-item.ne-card-toolbar-item-has-title span { - margin-left: 4px; -} -.ne-card-toolbar .ne-card-toolbar-item.ne-card-toolbar-item-has-title span:first-child { - margin-left: 0; -} -.ne-card-toolbar .ne-card-toolbar-input-container { - display: flex; - justify-content: center; - align-items: center; - height: 28px; - margin: 0 4px; -} -.ne-card-toolbar .ne-card-toolbar-input-container .ne-card-toolbar-input-title { - font-size: 14px; - line-height: 22px; -} -.ne-card-toolbar .ne-card-toolbar-input-container .ne-card-toolbar-input { - width: 54px; - border-radius: 4px; - margin-left: 3px; - display: flex; - justify-content: center; - align-items: center; - line-height: 22px; -} -.ne-card-toolbar .ne-ui-card-toolbar-divider { - width: 1px; - height: 16px; - background-color: var(--lakex-editor-background-primary-hover-light); - margin: 0 6px; -} -.ne-card-toolbar .ne-ui-card-toolbar-divider:last-child { - margin-right: 0; -} - -ne-overlay-tmp { - position: absolute; - z-index: 1; - top: 0; - left: 0; -} - -.ne-card-toolbar-wrap { - width: 100%; - height: 0; - position: absolute; - bottom: 100%; - left: 0; - margin-bottom: 5px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-container-right-toolbar { - padding-right: 12px; - transform: translateY(-4px); -} -.ne-container-right-toolbar .ne-ui-container-right-toolbar-item { - display: flex; - width: 24px; - height: 24px; - margin-bottom: 4px; - justify-content: center; - align-items: center; - border-radius: 2px; - background-color: var(--lakex-editor-background-primary); - cursor: pointer; - color: var(--lakex-editor-text-color); -} -.ne-container-right-toolbar .ne-ui-container-right-toolbar-item:hover { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-container-right-toolbar .ne-ui-container-right-toolbar-item:last-child { - margin-bottom: 0; -} -.ne-container-right-toolbar .ne-ui-container-right-toolbar-divider { - width: 24px; - height: 1px; - background-color: var(--lakex-editor-background-primary-hover-light); - margin: 2px 0; -} -.ne-container-right-toolbar .ne-ui-container-right-toolbar-divider:last-child { - margin-bottom: 0; -} - -/** 兼容antd5 */ -.ne-ui-popover .ant-popover-inner { - padding: 0; -} -.ne-ui-popover .ant-popover-inner .ant-menu { - border-inline-end: none; -} -.ne-ui-popover .ant-popover-inner .ant-menu .ant-menu-title-content { - display: flex; - width: 100%; - align-items: center; -} -.ne-ui-popover .ant-popover-inner .ant-menu .ant-menu-submenu .ant-menu-submenu-title { - background: transparent; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -ne-drag-cursor { - position: absolute; - top: -999999px; - left: -999999px; - width: 2px; - height: 0; - background-color: var(--lakex-editor-color-green7); - pointer-events: none; - z-index: 999; -} -.ne-card-drag-image { - position: fixed; - top: 0px; - left: 0px; - z-index: 9999; - background-color: var(--lakex-editor-background-secondary); - opacity: 0.5; - pointer-events: none; -} -.ne-card-drag-image-placeholder { - background-color: var(--lakex-editor-background-secondary); - box-shadow: 0 0 4px var(--lakex-editor-color-black-f30); -} -@keyframes neBrickFadeIn { - from { - opacity: 0; - } - to { - opacity: 1; - } -} -td.ne-brick-drag-highlight { - background-color: var(--lakex-editor-column-background-highlight) !important; - transition: background-color ease 0.3s; -} -ne-columns.ne-brick-drag-highlight .columns-start-add, -ne-columns.ne-brick-drag-highlight .columns-end-add, -ne-columns.ne-brick-drag-highlight .columns-adder { - display: block; -} -ne-columns.ne-brick-drag-highlight .columns-start-add::after, -ne-columns.ne-brick-drag-highlight .columns-end-add::after, -ne-columns.ne-brick-drag-highlight .columns-adder::after { - background: var(--lakex-editor-color-blue3); -} -ne-columns.ne-brick-drag-highlight ne-column-border { - border: 1px solid var(--lakex-editor-color-blue3); - background-color: var(--lakex-editor-column-background-highlight); - transition: background-color ease 0.3s; -} -.ne-brick-delegation { - position: fixed; - z-index: 9999; - pointer-events: none; - top: 0; - left: 0; - transform-origin: left top; - opacity: 0; - font-family: 'Chinese Quote', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; - animation: neBrickFadeIn 0.1s ease; - animation-fill-mode: forwards; - overflow-wrap: break-word; -} -.ne-brick-delegation-bg { - background-color: transparent; -} -.ne-brick-delegation-bg::after { - content: ' '; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: var(--lakex-editor-background-primary); - opacity: 0.5; - filter: blur(10px); - z-index: -1; -} -.ne-brick-delegation .ne-b-filler, -.ne-brick-delegation .ne-i-filler { - display: none; -} -.ne-brick-delegation ne-h1 { - font-size: 28px; - display: block; - font-weight: bold; - line-height: 36px; - margin-bottom: 8px; -} -.ne-brick-delegation ne-h2 { - font-size: 24px; - display: block; - font-weight: bold; - line-height: 32px; - margin-bottom: 8px; -} -.ne-brick-delegation ne-h3 { - font-size: 20px; - display: block; - font-weight: bold; - line-height: 28px; - margin-bottom: 8px; -} -.ne-brick-delegation ne-h4 { - font-size: 16px; - display: block; - font-weight: bold; - line-height: 24px; - margin-bottom: 8px; -} -.ne-brick-delegation ne-h5 { - font-size: 12px; - display: block; - font-weight: bold; - line-height: 20px; - margin-bottom: 8px; -} -.ne-brick-delegation ne-h6 { - font-size: 8px; - display: block; - font-weight: bold; - line-height: 16px; - margin-bottom: 8px; -} -.ne-brick-delegation ne-hole:only-child { - padding: 0 !important; - margin: 0 !important; -} -.ne-brick-delegation ne-hole:only-child [data-card-type='block'] { - width: 100% !important; - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05); - opacity: 0.9; -} -.ne-brick-delegation ne-alert-hole:only-child, -.ne-brick-delegation ne-container-hole:only-child { - padding: 0 !important; -} -.ne-brick-delegation ne-alert-hole:only-child ne-collapse, -.ne-brick-delegation ne-container-hole:only-child ne-collapse, -.ne-brick-delegation ne-alert-hole:only-child ne-column-border, -.ne-brick-delegation ne-container-hole:only-child ne-column-border { - background-color: var(--lakex-editor-color-white-f90); -} -.ne-brick-delegation ne-alert-hole:only-child ne-alert, -.ne-brick-delegation ne-container-hole:only-child ne-alert, -.ne-brick-delegation ne-alert-hole:only-child ne-collapse, -.ne-brick-delegation ne-container-hole:only-child ne-collapse, -.ne-brick-delegation ne-alert-hole:only-child ne-column-border, -.ne-brick-delegation ne-container-hole:only-child ne-column-border { - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05); - opacity: 0.9; -} -.ne-brick-delegation ne-alert-hole { - display: flex; -} -.ne-brick-delegation ne-quote:only-child { - margin: 4px !important; -} -.ne-brick-delegation ne-card[data-card-type='block'] { - border: 1px solid var(--lakex-editor-color-grey4); -} -.ne-brick-delegation .ne-eidtor-card-lake-diagram-editor .lake-diagram-board-toolbar { - display: flex !important; -} -.ne-brick-delegation ne-table-wrap::after { - bottom: 0 !important; - margin-top: 14px !important; -} -.ne-brick-delegation ne-table-wrap .ne-ui-table-row-bar, -.ne-brick-delegation ne-table-wrap .ne-ui-table-control-point, -.ne-brick-delegation ne-table-wrap .ne-ui-table-column-bar { - background-color: var(--lakex-editor-color-blue2); -} -.ne-brick-delegation ne-table-wrap .ne-ui-table { - height: 100%; -} -.ne-brick-delegation ne-table-wrap .ne-ui-table .ne-ui-table-row-controller { - height: calc(100% - 14px); - background: transparent; -} -.ne-brick-delegation ne-table-wrap .ne-ui-table .app-ne-ui-table-row-controller { - height: calc(100% - 14px); -} -.ne-brick-delegation ne-table-wrap .ne-ui-table .app-ne-ui-table-row-controller-inner { - height: 100%; -} -.ne-brick-delegation ne-table-wrap .ne-ui-table .ne-ui-table-row-controller-inner { - display: flex; - flex-direction: column; - height: 100%; - border-bottom-left-radius: 8px; - overflow: hidden; -} -.ne-brick-delegation ne-table-wrap .ne-ui-table .ne-ui-table-row-controller-inner .ne-ui-table-row-bar { - border-bottom-color: transparent; - border-top-color: transparent; -} -.ne-brick-delegation ne-table-wrap .ne-ui-table .ne-ui-table-control-point-wrapper { - display: block; - background-color: transparent; -} -.ne-brick-delegation ne-table-wrap ne-table-box { - background-color: var(--lakex-editor-color-white); -} -.ne-brick-delegation ne-table-wrap ne-table-box table { - line-height: 1.74; -} -.ne-brick-delegation ne-table-wrap ne-table-inner-wrap { - padding-top: 0; - overflow-x: hidden; - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05); -} -.ne-brick-delegation ne-table-wrap ne-table-inner-wrap .ne-ui-table-column-controller-inner { - display: flex; -} -.ne-brick-delegation ne-table-wrap.ne-focused ne-table-inner-wrap { - padding-top: 14px; -} -.ne-brick-delegation ne-heading-ext { - display: none !important; -} -.ne-brick-delegation ne-container-hole[data-card='columns'] { - margin: 0 !important; - transform: scale(0.97); -} -.ne-brick-delegation ne-container-hole[data-card='columns'] ne-column-border { - border: 1px solid var(--lakex-editor-color-grey4); -} -.ne-dragging-element { - cursor: grabbing; -} -.ne-drag-line-vertical { - position: fixed; - top: 0; - left: 0; - pointer-events: none; - z-index: 999; - background-color: var(--lakex-editor-color-blue5); - width: 1.5px; - border-radius: 100vw; -} -.ne-drag-line { - position: fixed; - top: 0; - left: 0; - pointer-events: none; - z-index: 999; - height: 2px; - display: flex; -} -.ne-drag-line > div { - background-color: var(--lakex-editor-color-blue5); - height: 1.5px; - position: relative; -} -.ne-drag-line .ne-drag-seg-line { - width: 30px; - margin-right: 2px; - background-color: var(--lakex-editor-color-blue2); -} -.ne-drag-line .ne-drag-seg-line::before { - content: ''; - width: 1.5px; - height: 4px; - position: absolute; - left: 0; - top: -1px; - background-color: var(--lakex-editor-color-blue2); -} -.ne-drag-line .ne-drag-tri-line { - flex: 1; -} -.ne-drag-line .ne-drag-tri-line::before { - content: ''; - width: 10px; - height: 10px; - position: absolute; - left: 0; - background-color: transparent; - top: -4.5px; - border-style: solid; - border-width: 5px 5px; - border-color: transparent transparent transparent var(--lakex-editor-color-blue5); - border-radius: 4px; -} -.ne-drag-line .ne-drag-nor-line { - flex: 1; -} -.ne-brick-source-shadow { - opacity: 0.3; - transition: opacity 0.1s ease; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-container-toolbar .ne-icon { - color: var(--lakex-editor-text-color); -} -.ne-ui-container-toolbar-trigger { - display: flex; - width: 24px; - height: 24px; - justify-content: center; - align-items: center; - border-radius: 6px; - background: var(--lakex-editor-color-white); - cursor: grab; -} -.ne-ui-container-toolbar-trigger:hover { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-container-toolbar-tip { - text-align: center; - color: rgba(255, 255, 255, 0.6); -} -.ne-container-toolbar-tip span { - color: #fff; -} -.ne-card-tooltip-text { - min-width: 100px; - text-align: center; - color: var(--lakex-editor-color-white-f60); -} -.ne-card-tooltip-text > span { - color: var(--lakex-editor-color-white); -} -.ne-container-toolbar-overlay { - padding-right: 0; - z-index: 9999; -} -.ne-container-toolbar-overlay .ne-card-container-menu { - padding: 8px 0; -} -.ne-container-toolbar-overlay .ant-popover-arrow { - display: none; -} -.ne-container-toolbar-overlay .ant-popover-inner-content { - padding: 0; -} -.ne-container-toolbar-overlay .ant-menu-vertical > .ant-menu-item { - height: 34px; - line-height: 34px; -} -.ne-container-toolbar-switch-item { - cursor: default !important; -} -.ne-container-toolbar-item { - display: flex; - min-width: 148px; - align-items: center; - color: var(--lakex-editor-text-color); -} -.ne-container-toolbar-item > label { - display: flex; - flex: 1; - cursor: pointer; - align-items: center; -} -.ne-container-toolbar-item .ne-icon { - margin-right: 10px; -} -.ne-container-toolbar-item .ant-switch { - margin-right: 0; - margin-left: auto; -} -.ne-container-toolbar-item-shortcut { - font-size: 12px; - color: var(--lakex-editor-text-disable); - text-align: right; - flex: 1 0 auto; -} - -.ne-container-toolbar-wrap { - left: -18px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -/** 适配antd5 */ -[class^='ant-'], -[class*='ant-'], -[class^='ant-'] *, -[class*='ant-'] *, -[class^='ant-'] *::before, -[class*='ant-'] *::before, -[class^='ant-'] *::after, -[class*='ant-'] *::after { - box-sizing: border-box; -} -.ne-viewer .ne-drawer-box { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 1; - pointer-events: none; -} -.ne-viewer.ne-ui-max-view .ne-drawer-box { - display: none; -} -@media only print { - .ne-viewer .ne-drawer-box { - display: none; - } -} -.ne-viewer { - position: relative; -} -.ne-viewer .ne-viewer-body { - position: relative; - z-index: 1; - outline: none; - white-space: pre-wrap; - white-space: break-spaces; - word-break: break-word; - word-wrap: break-word; - font-family: 'Chinese Quote', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-variant-ligatures: none; - --link-color: var(--lakex-editor-text-link); -} -.ne-viewer .ne-viewer-body ::selection { - background: var(--lakex-editor-selection) !important; - color: inherit !important; -} -.ne-viewer .ne-viewer-body .ne-table { - white-space: pre-wrap; -} -.ne-viewer .ne-viewer-body .ne-spacing-all { - margin-top: 16px; - margin-bottom: 16px; -} -.ne-viewer .ne-viewer-body .ne-spacing-top { - margin-top: 16px; -} -.ne-viewer .ne-viewer-body .ne-spacing-bottom { - margin-bottom: 16px; -} -.ne-viewer .ant-radio-inner:after { - display: block; -} -.ne-viewer ne-hole, -.ne-viewer ne-container-hole, -.ne-viewer ne-alert-hole { - width: 100%; - max-width: 100%; - display: flex; -} -.ne-viewer ne-hole.ne-spacing-all:first-child, -.ne-viewer ne-container-hole.ne-spacing-all:first-child, -.ne-viewer ne-alert-hole.ne-spacing-all:first-child { - margin-top: 0; -} -.ne-viewer ne-hole.ne-spacing-top:first-child, -.ne-viewer ne-container-hole.ne-spacing-top:first-child, -.ne-viewer ne-alert-hole.ne-spacing-top:first-child { - margin-top: 0; -} -.ne-viewer ne-root-card-hole.ne-full-width ne-card[data-card-type='block'] { - width: auto; -} -.ne-viewer ne-card { - text-indent: 0; -} -.ne-viewer ne-card.ne-card-mask:after { - content: ' '; - position: absolute; - display: block; - left: 0; - top: 0; - right: 0; - bottom: 0; - z-index: 2; - cursor: not-allowed; -} -.ne-viewer ne-card[data-card-type='inline'] { - display: inline-flex; - vertical-align: baseline; - max-width: calc(100% - 2px); - white-space: initial; - height: auto; -} -.ne-viewer ne-card[data-card-type='block'] { - display: block; - width: calc(100% - 2px); - max-width: 100%; - border-radius: 4px; - border: 1px solid var(--lakex-editor-border-primary); - margin-top: 2px; - margin-bottom: 2px; -} -.ne-viewer ne-card[data-card-type='block'][data-card-name='localdoc'] { - border: 1px solid var(--lakex-editor-color-grey5); -} -.ne-viewer ne-card[data-card-type='block'][data-card-name='bookmark'], -.ne-viewer ne-card[data-card-type='block'][data-card-name='yuque'] { - border-radius: 6px; -} -.ne-viewer ne-card[data-card-type='block'][data-card-name='bookmark'] .ne-card-container, -.ne-viewer ne-card[data-card-type='block'][data-card-name='yuque'] .ne-card-container { - border-radius: 6px; -} -.ne-viewer ne-card[data-card-type='block'][data-card-name='hr'] { - border: 1px solid transparent; -} -.ne-viewer ne-card[data-card-type='block'].ne-max.ne-focused { - border: 0; -} -.ne-viewer ne-card[data-card-type='block'] .ne-card-container { - overflow: hidden; - border-radius: 4px; - width: 100%; - background-color: var(--lakex-editor-background-primary); -} -.ne-viewer .ne-viewer-b-filler { - display: inline; - text-indent: 0; - min-width: 1px; - vertical-align: baseline; - font-size: 1em; - height: 1em; - user-select: none; -} -.ne-viewer .ne-ui-container-toolbar-trigger { - cursor: pointer; -} -.ne-viewer .ne-inner-overlay-container { - position: absolute; - top: 0; - left: 0; - z-index: 411; -} -@media print { - .ne-viewer ne-hole, - .ne-viewer ne-container-hole, - .ne-viewer ne-alert-hole { - break-inside: avoid-page; - } -} -.ne-viewer a:hover { - color: var(--lakex-editor-text-link-hover); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer .ne-viewer-header { - background-color: var(--lakex-editor-background-primary); - display: none; - border-bottom: 1px solid var(--lakex-editor-border-primary); - height: 55px; -} -.ne-viewer .ne-viewer-header .ne-ui-exit-max-view-btn { - background: url('https://gw.alipayobjects.com/zos/bmw-prod/09ca6e30-fd03-49ff-b2fb-15a2fbd8042a.svg') no-repeat left center; - border: none; - outline: none; - color: var(--lakex-editor-text-body); - cursor: pointer; - height: 54px; - line-height: 54px; - margin-left: 36px; - padding: 0 30px 0 24px; -} -.ne-viewer .ne-viewer-header .ne-ui-exit-max-view-btn:hover { - color: var(--lakex-editor-text-caption); -} -.ne-viewer.ne-ui-max-view .ne-viewer-header { - display: block; - position: fixed; - top: 0; - left: 0; - width: 100%; - z-index: 1032; -} -.ne-viewer.ne-ui-max-view .ne-viewer-body { - height: calc(100% - 54px); - position: relative; - top: 55px; - background: var(--lakex-editor-background-primary); -} -.ne-viewer.ne-ui-max-view .ne-ui-max-view-node { - position: fixed; - top: 54px; - right: 0; - bottom: 0; - left: 0; - z-index: 1032; - width: auto; - height: auto !important; - overflow: auto; -} -.ne-viewer.ne-ui-max-view .ne-ui-max-view-node > .ne-card-container { - height: 100% !important; -} -.ne-viewer.ne-ui-max-view ne-hole.ne-spacing-all, -.ne-viewer.ne-ui-max-view ne-container-hole.ne-spacing-all, -.ne-viewer.ne-ui-max-view ne-alert-hole.ne-spacing-all { - margin: 0 !important; -} -.ne-viewer.ne-ui-max-view .ne-container-toolbar { - display: none; -} -.ne-viewer.ne-ui-max-view ne-card[data-card-type='block'] { - margin: 0; - border: 0; -} - -.ne-viewer[data-viewer-mode='present'] { - font-size: 1.8rem; - line-height: 2.8rem; -} -.ne-viewer[data-viewer-mode='present'] ne-text { - font-size: inherit; -} -.ne-viewer[data-viewer-mode='present'] ne-code ne-code-content ne-text { - font-size: inherit; -} -.ne-viewer[data-viewer-mode='present'] .ne-viewer-body .ne-spacing-all { - margin-top: 1.5rem; - margin-bottom: 1.5rem; -} -.ne-viewer[data-viewer-mode='present'] .ne-viewer-body .ne-spacing-top { - margin-top: 1.5rem; -} -.ne-viewer[data-viewer-mode='present'] .ne-viewer-body .ne-spacing-bottom { - margin-bottom: 1.5rem; -} - -@media print { - .ne-viewer ne-card[data-card-name="math"], - .ne-viewer ne-card[data-card-name="image"], - .ne-viewer ne-card[data-card-name="file"], - .ne-viewer ne-container-hole, - .ne-viewer ne-alert-hole, - .ne-viewer ne-hole, - .ne-viewer table tr { - page-break-inside: avoid; - } - .ne-viewer .CodeMirror pre { - /* 保证导出、打印时超长内容不被隐藏 */ - white-space: pre-wrap; - word-wrap: break-word; - } -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.lake-colorboard-default { - display: flex; - align-items: center; - padding: 4px 8px; - margin: 4px 0 8px; - border-radius: 2px; - cursor: pointer; -} -.lake-colorboard-default:hover { - background-color: var(--lakex-editor-background-tertiary); -} -.lake-colorboard-group { - display: flex; - padding: 0 8px; - width: 100%; - height: auto; - position: relative; -} -.lake-colorboard-group:first-child { - margin-bottom: 10px; -} -.lake-colorboard-group:nth-child(2) { - margin-bottom: 6px; -} -.lake-colorboard-group:last-child { - margin-bottom: 0; -} -.lake-colorboard-group-item { - width: 24px; - height: 24px; - padding: 2px 2px; - display: inline-block; - border-radius: 3px 3px; - border: 1px solid transparent; - flex: 0 0 auto; - cursor: pointer; -} -.lake-colorboard-group-item > span { - position: relative; - width: 18px; - height: 18px; - display: block; - border-radius: 2px 2px; - border: 1px solid transparent; -} -.lake-colorboard-group-item > span svg { - position: absolute; - top: -1px; - left: 1px; - width: 12px; - height: 12px; -} -.lake-colorboard-group-item-border > span { - border: 1px solid var(--lakex-editor-border-light); -} -.lake-colorboard-group-item-border-none > span { - border: none; -} -.lake-colorboard-group-item-border-none > span svg { - top: 1px; - left: 2px; -} -.lake-colorboard-group-item-special { - position: relative; -} -.lake-colorboard-group-item-special::after { - content: ''; - display: block; - position: absolute; - top: 10px; - left: 0; - width: 22px; - height: 0; - border-bottom: 2px solid #ff5151; - transform: rotate(-45deg); -} -.lake-colorboard-group-item:hover { - border: 1px solid #d9d9d9; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); -} -.lake-colorboard .lake-color-history { - padding: 6px 12px; - margin-top: 8px; - text-align: left; -} -.lake-colorboard .lake-none-custom-color { - line-height: 20px; - color: var(--lakex-editor-text-disable); - padding: 2px 12px; - text-align: left; -} -.lake-colorboard .lake-more-color { - margin-top: 10px; - border-top: 1px solid var(--lakex-editor-border-primary); -} -.lake-colorboard .lake-more-color-container { - display: flex; - align-items: center; - cursor: pointer; - padding: 12px 8px; - border-radius: 2px; -} -.lake-colorboard .lake-more-color-container:hover { - background-color: var(--lakex-editor-background-tertiary); -} -.lake-colorboard .lake-more-color-preview { - display: inline-block; - width: 17px; - height: 17px; - margin-right: 8px; - border-radius: 50%; - background-position: center; - background-image: url('https://gw.alipayobjects.com/mdn/rms_740edc/afts/img/A*G6CzS7jByMIAAAAAAAAAAABkARQnAQ'); -} -.lake-colorboard .lake-more-color .lake-icon-arrow-right { - position: absolute; - right: 12px; - line-height: 18px; -} -.lake-rgbpicker-container { - width: 250px; - height: 264px; - padding: 12px; - border-radius: 4px; - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); - border: 1px solid var(--lakex-editor-border-light); - background-color: var(--lakex-editor-background-foreground); - z-index: 1032; - box-sizing: border-box; -} -.lake-rgbpicker-container .lake-input-label { - text-align: center; - font-size: 12px; - color: var(--lakex-editor-text-caption); -} -.lake-custom-picker { - width: 100%; - padding: 0; -} -.lake-satuation-container { - position: relative; - height: 130px; - overflow: hidden; - margin-bottom: 12px; -} -.lake-hue-container { - position: relative; - width: 182px; - height: 8px; - margin-bottom: 6px; -} -.lake-check-board-container { - width: 22px; - height: 22px; - border-radius: 50%; - position: relative; - overflow: hidden; - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 4px rgba(0, 0, 0, 0.35); -} -.ne-rgba-picker-tooltip .ant-tooltip-arrow { - display: none; -} -.ne-rgba-picker-tooltip .ant-tooltip-inner { - background-color: transparent; - box-shadow: unset; -} - -.ne-embed-icon { - width: 16px; - height: 16px; - display: flex !important; - justify-content: center; - align-items: center; -} - -/** 只提供变量 */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-t-button.ant-btn { - cursor: pointer; - outline: none; - box-shadow: none; - border-radius: 2px; - display: inline-flex; - justify-content: center; - align-items: center; - background: transparent; -} -.ne-ui-t-button.ant-btn[disabled] { - opacity: 0.25; - background: transparent; -} -.ne-ui-t-button.ant-btn:after { - display: none !important; -} -.ne-ui-t-button.ant-btn:active, -.ne-ui-t-button.ant-btn:focus { - background: transparent; -} -.ne-ui-t-button.ant-btn:hover, -.ne-ui-t-button.ant-btn.ant-dropdown-open { - background: var(--lakex-editor-color-grey2); - color: var(--lakex-editor-text-color); -} -.ne-ui-t-button.ant-btn.checked { - background: var(--lakex-editor-background-primary-hover-light); -} - -/** 只提供变量 */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-color-button { - display: inline-flex; - justify-content: center; - align-items: center; - width: 42px; - height: 32px; - border: 1px solid transparent; - border-radius: 2px; - margin-left: 8px !important; -} -.ne-ui-toolbar-color-button.disabled { - border-color: transparent !important; -} -.ne-ui-toolbar-color-button.ne-ui-dropdown-open { - background-color: var(--lakex-editor-background-tertiary); - border-radius: 5px; - height: 26px; -} -.ne-ui-toolbar-color-button button { - padding: 0; - border: none; - background: transparent; - height: 25px; -} -.ne-ui-toolbar-color-button button[disabled] { - opacity: 0.25; - background: transparent; -} -.ne-ui-toolbar-color-button button:after { - display: none !important; -} -.ne-ui-toolbar-color-button button:active, -.ne-ui-toolbar-color-button button:focus { - background: transparent; -} -.ne-ui-toolbar-color-button button:hover { - background: var(--lakex-editor-color-grey2); -} -.ne-ui-toolbar-color-button button.ant-dropdown-open { - background: none; -} -.ne-ui-toolbar-color-button .ne-ui-toolbar-color-show-button { - width: 25px; - height: 26px; - border-radius: 5px; -} -.ne-ui-toolbar-color-button .ne-ui-toolbar-color-show-button .ne-ui-color-button { - border: 2px solid transparent; - border-radius: 5px; - width: 100%; - height: 100%; - display: flex; - justify-content: center; - align-items: center; -} -.ne-ui-toolbar-color-button .ne-ui-toolbar-color-show-button .ne-ui-color-button:hover { - border-color: var(--lakex-editor-border-light); -} -.ne-ui-toolbar-color-button .ne-ui-toolbar-color-dropdown-button { - width: 16px; - min-width: unset; - border-left: 1px solid transparent; -} -.ne-ui-toolbar-color-button .ne-ui-toolbar-color-dropdown-button.ant-btn-default:focus, -.ne-ui-toolbar-color-button .ne-ui-toolbar-color-dropdown-button.ant-btn-default:hover, -.ne-ui-toolbar-color-button .ne-ui-toolbar-color-dropdown-button.ant-btn:focus, -.ne-ui-toolbar-color-button .ne-ui-toolbar-color-dropdown-button.ant-btn:hover { - border-color: transparent; -} -.ne-ui-toolbar-color-picker-overlay { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-toolbar-color-dropdown-arrow { - width: 16px; - height: 16px; - background-position: center; - background-size: cover; - background-repeat: no-repeat; - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/d5fce5b0-cd60-43b0-a351-9463486be4d2.svg'); -} - -.ne-uilib-avatar-icon { - width: 16px; - height: 16px; - display: inline-block; - vertical-align: -0.15em; - text-align: center; - text-transform: none; - line-height: 1; - text-rendering: auto; - background-size: contain; - background-repeat: no-repeat; - background-position: center; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-menu-item-container-tooltip { - pointer-events: none; -} -.show-selected .ne-menu-item-container-tooltip { - display: none; -} -.ne-menu-item-container { - display: flex; - margin: 0 14px 4px 14px; - padding: 6px; -} -.with-scroll .ne-menu-item-container { - margin: 0 4px 4px 14px; -} -.ne-menu-item-container.disabled:hover { - cursor: default; - background-color: initial; -} -.ne-menu-item-container.disabled .ne-menu-item-container-title { - color: var(--lakex-editor-text-disable); -} -.ne-menu-item-container.iconBorder .ne-menu-item-container-icon { - border: 1px solid var(--lakex-editor-border-primary); -} -.ne-menu-item-container.iconBorder .ne-menu-item-container-icon div.ne-icon { - font-size: 24px; -} -.ne-menu-item-container .ne-menu-item-container-content { - flex: 1; - display: flex; - align-items: center; - flex-flow: wrap; -} -.ne-menu-item-container .ne-menu-item-container-icon { - display: flex; - align-items: center; - justify-content: center; - width: 36px; - height: 36px; - border-radius: 7px; - margin-right: 8px; -} -.ne-menu-item-container .ne-menu-item-container-icon div.ne-icon { - font-size: 36px; -} -.ne-menu-item-container .ne-menu-item-container-vip { - height: 16px; - padding: 4px; - display: inline-flex; - align-items: center; - vertical-align: text-top; -} -.ne-menu-item-container .ne-menu-item-container-title { - width: 100%; - font-size: 14px; - line-height: 18px; - color: var(--lakex-editor-text-color); -} -.ne-menu-item-container .ne-menu-item-container-key { - font-size: 12px; - line-height: 18px; - color: var(--lakex-editor-text-disable); - float: right; -} -.ne-menu-item-container .ne-menu-item-container-key.showRightArrow { - margin-right: 24px; -} -.ne-menu-item-container .ne-menu-item-container-title { - position: relative; -} -.ne-menu-item-container .ne-menu-item-container-right { - position: absolute; - top: 1px; - right: 0; - height: 100%; - display: inline-flex; - align-items: center; -} -.ne-menu-item-container .ne-menu-item-container-describe { - font-size: 12px; - line-height: 18px; - color: var(--lakex-editor-text-caption); -} -.ne-ui-search-menu-table-selector .ant-popover-inner-content { - padding: 12px 16px; -} -.ne-ui-search-menu-table-selector .ant-popover-arrow { - display: none; -} -.ne-ui-search-menu-table-selector .ant-popover-content { - min-width: 20px; -} -.ne-ui-search-menu-table-selector .ne-ui-table-selector-counter { - margin-top: 8px; - font-size: 14px; - line-height: 20px; - color: var(--lakex-editor-text-color); -} -.ne-ui-search-menu-table-selector .ne-ui-selector-title { - font-size: 14px; - line-height: 20px; - color: var(--lakex-editor-text-caption); - margin-bottom: 8px; -} -.ne-ui-search-menu-table-selector .ne-ui-table-selector-row { - margin-top: -1px; - display: flex; -} -.ne-ui-search-menu-table-selector .ne-ui-table-selector-cell { - width: 20px; - height: 16px; - background-color: var(--lakex-editor-background-primary); - border: 1px solid var(--lakex-editor-color-grey5); - margin-left: -1px; -} -.ne-ui-search-menu-table-selector .ne-ui-table-selector-cell.ne-ui-selected { - background-color: var(--lakex-editor-color-blue1); -} -.show-hover .ne-menu-item-container:hover { - cursor: pointer; - background-color: var(--lakex-editor-background-primary-hover); - border-radius: 5px; -} -.show-selected .ne-menu-item-container.selected { - cursor: pointer; - background-color: var(--lakex-editor-background-primary-hover); - border-radius: 5px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-file-item-container { - position: relative; -} -.ne-ui-file-item-container .ne-ui-file-item { - display: flex; - flex-direction: column; - align-items: flex-start; -} -.ne-ui-file-item-container .ne-ui-file-item .ne-ui-file-item-content { - display: flex; - justify-content: center; - align-items: center; -} -.ne-ui-file-item-container .ne-ui-file-item .ne-ui-file-item-remark { - color: var(--lakex-editor-text-caption); - font-size: 12px; - line-height: 12px; - margin-top: 6px; - margin-left: 32px; -} -.ne-ui-file-item-container input { - position: absolute; - left: 0; - top: 0; - width: 0; - height: 100%; - opacity: 0; - z-index: -1; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-menu-item-group { - min-width: 280px; -} -.ne-menu-item-group .ne-menu-item-group-title { - padding: 0 20px; - margin-top: 12px; - margin-bottom: 4px; -} -.ne-menu-item-group:first-child .ne-menu-item-group-title { - margin-top: 0; -} -.ne-menu-item-group.label .ne-menu-item-group-content { - padding: 0 20px 8px; -} -.ne-menu-item-group.label .ne-menu-item-group-content .ne-menu-item-container { - display: inline-block; - padding: 1px 8px; - margin: 0; - margin-top: 4px; - margin-bottom: 0; - background-color: var(--lakex-editor-background-tertiary); - margin-right: 8px; - border-radius: 4px; - height: 24px; - line-height: 24px; -} -.ne-menu-item-group.label .ne-menu-item-group-content .ne-menu-item-container-title { - font-size: 14px; - line-height: 22px; - color: var(--lakex-editor-text-color); -} -.ne-menu-item-group.label .ne-menu-item-group-content .ne-menu-item-container-vip, -.ne-menu-item-group.label .ne-menu-item-group-content .ne-menu-item-container-describe, -.ne-menu-item-group.label .ne-menu-item-group-content .ne-menu-item-container-icon, -.ne-menu-item-group.label .ne-menu-item-group-content .ne-menu-item-container-key { - display: none; -} -.ne-menu-item-group.icon .ne-menu-item-group-content { - display: flex; - flex-flow: row; - flex-wrap: wrap; - padding: 0 14px 0 9px; -} -.with-scroll .ne-menu-item-group.icon .ne-menu-item-group-content { - padding: 0 4px 0 9px; -} -.with-scroll .ne-menu-item-group.icon .ne-menu-item-group-content .ne-menu-item-container { - min-width: 32px; - max-width: 32px; -} -.ne-menu-item-group.icon .ne-menu-item-group-content .ne-menu-item-container { - flex: 1; - margin: 0; - margin-bottom: 4px; - margin-left: 10px; - padding: 0; - min-width: 32px; - max-width: 32px; -} -.ne-menu-item-group.icon .ne-menu-item-group-content .ne-menu-item-container .ne-menu-item-container-content { - display: none; -} -.ne-menu-item-group.icon .ne-menu-item-group-content .ne-menu-item-container-icon { - min-width: 32px; - height: 32px; - text-align: center; - color: var(--lakex-editor-text-color); -} -.ne-menu-item-group.icon .ne-menu-item-group-content .ne-menu-item-container-icon div.ne-icon { - font-size: 20px; -} -.ne-menu-item-group.icon .ne-menu-item-group-content .ne-menu-item-container-right { - top: 0; -} -.ne-menu-item-group.icon + .ne-menu-item-group { - margin-top: -4px; -} -.ne-menu-item-group.two-column .ne-menu-item-group-content { - display: flex; - flex-flow: row; - flex-wrap: wrap; - padding: 0 14px 0 14px; -} -.with-scroll .ne-menu-item-group.two-column .ne-menu-item-group-content { - padding: 0 4px 0 14px; -} -.with-scroll .ne-menu-item-group.two-column .ne-menu-item-group-content .ne-menu-item-container { - min-width: 131px; - max-width: 131px; -} -.ne-menu-item-group.two-column .ne-menu-item-group-content .ne-menu-item-container { - flex: 1; - margin: 0; - margin-bottom: 4px; - padding: 6px; - min-width: 126px; - max-width: 126px; -} -.ne-menu-item-group.two-column .ne-menu-item-group-content .ne-menu-item-container .ne-menu-item-container-describe, -.ne-menu-item-group.two-column .ne-menu-item-group-content .ne-menu-item-container .ne-menu-item-container-key { - display: none; -} -.ne-menu-item-group.two-column .ne-menu-item-group-content .ne-menu-item-container-content { - flex: 1; - display: flex; - flex-flow: row; - align-items: center; -} -.ne-menu-item-group.two-column .ne-menu-item-group-content .ne-menu-item-container-right { - top: 0; -} -.ne-menu-item-group.two-column + .ne-menu-item-group { - margin-top: -4px; -} -.ne-menu-item-group.border-icon .ne-menu-item-group-content .ne-menu-item-container { - display: flex; - padding: 6px; - margin-bottom: 0; -} -.ne-menu-item-group.border-icon .ne-menu-item-group-content .ne-menu-item-container .ne-menu-item-container-describe { - display: none; -} -.ne-menu-item-group.border-icon .ne-menu-item-group-content .ne-menu-item-container-icon { - border: 1px solid var(--lakex-editor-border-primary); -} -.ne-menu-item-group.border-icon .ne-menu-item-group-content .ne-menu-item-container-icon div.ne-icon { - font-size: 24px; -} -.ne-menu-item-group.submenu { - min-width: 188px; -} -.ne-menu-item-group.submenu .ne-menu-item-group-content { - padding: 6px 0; -} -.ne-menu-item-group.submenu .ne-menu-item-group-content .ne-menu-item-container { - margin-left: 4px; - margin-right: 4px; - padding-left: 12px; - padding-right: 12px; - align-items: center; -} -.ne-menu-item-group.submenu .ne-menu-item-group-content .ne-menu-item-container-describe { - display: none; -} -.ne-menu-item-group.submenu .ne-menu-item-group-content .ne-menu-item-container-icon { - width: 16px; - height: 16px; - background-color: transparent; -} -.ne-menu-item-group.submenu .ne-menu-item-group-content .ne-menu-item-container-icon .ne-icon { - font-size: 16px; -} -.show-hover .ne-menu-item-group.label .ne-menu-item-group-content .ne-menu-item-container:hover { - cursor: pointer; - background-color: var(--lakex-editor-color-grey5); -} -.show-hover .ne-menu-item-group.icon .ne-menu-item-container:hover .ne-menu-item-container-icon { - background: var(--lakex-editor-background-primary-hover); - border-radius: 6px; -} -.show-selected .ne-menu-item-group.label .ne-menu-item-group-content .ne-menu-item-container.selected { - cursor: pointer; - background-color: var(--lakex-editor-color-grey5); -} -.show-selected .ne-menu-item-group.icon .ne-menu-item-container.selected .ne-menu-item-container-icon { - background: var(--lakex-editor-background-primary-hover); - border-radius: 6px; -} - -.ne-ui-search-submenu-panel .ant-popover-inner-content { - padding: 0; -} -.ne-ui-search-submenu-panel .ant-popover-arrow { - display: none; -} -.ne-ui-submenu-right { - display: flex; - align-items: center; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-table-selector-row { - margin-top: -1px; - display: flex; -} -.ne-ui-table-selector-cell { - width: 20px; - height: 16px; - background-color: var(--lakex-editor-background-primary); - border: 1px solid var(--lakex-editor-color-grey5); - margin-left: -1px; -} -.ne-ui-table-selector-cell.ne-ui-selected { - background-color: var(--lakex-editor-color-blue1); -} - - -.ne-menu-search { - margin: 14px 20px 12px 20px; - max-width: 100%; -} -.ne-menu-search .ant-input-affix-wrapper { - border-radius: 8px; -} -.ne-menu-search .ant-input-affix-wrapper-focused, -.ne-menu-search .ant-input-affix-wrapper:hover { - box-shadow: none; -} - -/** 只提供变量 */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-search-card-menu { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-search-card-menu { - border-radius: 8px; - padding: 5px 0; - min-width: 280px; -} -.ne-ui-search-card-menu.empty { - height: auto !important; -} -.ne-ui-search-card-menu .ne-ui-card-menu-group-title { - color: var(--lakex-editor-text-caption); - cursor: default; - padding: 0; - line-height: 20px; - font-size: 12px; - margin-top: 0; -} -.ne-ui-search-card-menu .ne-ui-search-menu-hr { - height: 1px; - background-color: var(--lakex-editor-background-tertiary); - margin: 12px 20px; -} -.ne-ui-search-card-menu.with-scroll .ne-ui-search-menu-hr { - margin-right: 10px; -} -.ne-ui-card-search-empty { - padding: 40px 0 80px; -} -.ne-ui-card-search-empty .empty-result-img { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/f7263ac4-6a8a-46f2-bd1e-14e42d60171d.svg'); - background-size: 100%; - margin: 12px auto; - background-repeat: no-repeat; - width: 218px; - height: 136px; -} -.ne-ui-card-search-empty .empty-result-text { - color: var(--lakex-editor-text-caption); - font-size: 14px; - line-height: 22px; - height: 22px; - text-align: center; -} -[data-kumuhana='pouli'] .ne-ui-card-search-empty .empty-result-img { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/de13ccc4-212a-458c-922c-b228dbcc1904.svg'); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-command-menu { - display: flex; - background: var(--lakex-editor-background-primary); - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0px var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05); - border-radius: 2px; - padding: 0; - overflow: hidden; - flex-direction: column; -} -.ne-ui-command-menu.ne-ui-command-menu-column-1 { - width: 212px; -} -.ne-ui-command-menu.ne-ui-command-menu-column-4 { - width: 750px; -} -.ne-ui-command-menu input { - width: 10px; - height: 10px; - opacity: 0; - position: absolute; - z-index: -1; -} -.ne-ui-command-menu-info { - display: flex; - align-items: center; - height: 36px; - padding: 8px 20px; - border-top: 1px solid var(--lakex-editor-color-grey4); - font-size: 12px; - color: var(--lakex-editor-text-caption); - cursor: default; -} -.ne-ui-command-menu-info .ne-ui-command-menu-hotkey { - width: 168px; -} -.ne-ui-command-menu-info .ne-ui-command-menu-hotkey + .ne-ui-command-menu-md { - padding-left: 216px; -} -.ne-ui-command-menu-info .ne-ui-command-menu-hotkey-keys { - display: inline-block; - text-align: center; - height: 20px; - line-height: 20px; - min-width: 20px; - padding: 0px 4px; - margin-right: 4px; - background-color: var(--lakex-editor-background-tertiary); - border-radius: 2px; -} -.ne-ui-command-menu-info .ne-ui-command-menu-md-keys { - color: var(--lakex-editor-color-green6); - margin-right: 0.5em; -} -.ne-ui-command-menu-info .ne-ui-command-menu-md-trigger { - color: var(--lakex-editor-text-color); -} -.ne-ui-command-menu-scrollable { - overflow-y: auto; - scroll-behavior: smooth; - scrollbar-color: var(--lakex-editor-color-grey4) transparent; -} -.ne-ui-command-menu-column-1 .ne-ui-command-menu-scrollable { - max-height: 270px; -} -.ne-ui-command-menu-column-4 .ne-ui-command-menu-scrollable { - max-height: 202px; -} -.ne-ui-command-menu-scrollable::-webkit-scrollbar { - background: transparent; -} -.ne-ui-command-menu-scrollable::-webkit-scrollbar-thumb { - background: var(--lakex-editor-color-grey4); - border-radius: 15px; - border: 4.5px solid transparent; - background-clip: content-box; - width: 4px; -} -.ne-ui-command-menu-content { - display: flex; - padding: 15px 12px; - flex: 1; - min-height: 1px; - flex-direction: row; -} -.ne-ui-command-menu-column-4 .ne-ui-command-menu-content { - padding-right: 4px; -} -.ne-ui-command-menu-column { - display: flex; - flex: 1; - min-height: 1px; - flex-direction: column; - width: auto; - margin-left: 4px; -} -.ne-ui-command-menu-column:first-child { - margin-left: 0; -} -.ne-ui-command-menu-item { - display: flex; - align-items: center; - color: var(--lakex-editor-text-body); - padding: 0 8px; - cursor: pointer; - white-space: nowrap; - height: 32px; - border-radius: 6px; - margin-top: 2px; - line-height: 1.5; -} -.ne-ui-command-menu-item:first-child { - margin-top: 0; -} -.ne-ui-command-menu-item.ne-ui-selected { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-ui-command-menu-item.ne-ui-disabled { - color: var(--lakex-editor-text-caption); -} -.ne-ui-command-menu-item.ne-ui-disabled .ne-ui-command-menu-item-icon { - opacity: 0.3; -} -.ne-ui-command-menu-item .ne-ui-command-menu-item-icon { - display: flex; - width: 18px; - height: 18px; - margin-right: 6px; -} -.ne-ui-command-menu-item .ne-ui-command-menu-item-icon .ne-icon { - width: 18px; - height: 18px; - background-size: 18px 18px; -} -.ne-ui-command-menu-item .ne-ui-command-menu-item-content { - font-size: 14px; - height: 22px; - line-height: 22px; - display: flex; - align-items: center; -} -.ne-ui-command-menu-item .ne-ui-command-menu-item-content.ne-ui-remind::after { - margin-left: 5px; - content: ' '; - display: block; - width: 12px; - height: 12px; - border: 3px solid var(--lakex-editor-color-blue2); - border-radius: 100%; - background: var(--lakex-editor-color-blue5); - background-clip: content-box; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-embed-nav { - position: absolute; - top: 0; - left: 0; - width: 100%; - font-size: 14px; - line-height: 24px; - user-select: none; - height: 38px; - padding: 11px 11px 0px 0px; - color: var(--lakex-editor-text-body); - display: flex; - align-items: center; - white-space: nowrap; - overflow-y: visible; - /* AntD 组件中用了 ul 需要覆盖默认定义的文档中的 UL 的样式 */ -} -.ne-embed-nav ul { - margin: 0; - padding: 0; -} -.ne-embed-nav li { - margin: 0; -} -.ne-embed-nav .start-nav { - flex: 1; - display: flex; - overflow: hidden; - align-items: center; -} -.ne-embed-nav .end-nav { - display: flex; - justify-content: flex-end; -} -.ne-embed-nav-divider { - margin: 0 6px; - margin-top: 5px; - height: 16px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-error-tips { - display: inline-block; - padding: 6px 8px; - background: var(--lakex-editor-background-tertiary); - border-radius: 2px; -} -.ne-error-tips-wrap { - display: flex; - flex-direction: row; -} -.ne-error-tips-card-icon { - flex: 0 0 auto; - display: flex; - align-items: center; - margin-right: 4px; -} -.ne-error-tips-content { - flex: 1; - display: flex; - align-items: center; -} -.ne-error-tips-operation { - flex: 0 0 auto; - display: flex; - align-items: center; - margin-left: 6px; -} -.ne-error-tips-operation-slash { - color: var(--lakex-editor-color-grey4); -} -.ne-error-tips-operation-icon { - display: flex; - width: 16px; - height: 16px; - margin-left: 6px; - cursor: pointer; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-link-card-view { - width: 100%; - cursor: pointer; - user-select: none; - position: relative; -} -.ne-ui-link-card-view-box { - width: 100%; - height: 100%; - padding: 20px; - background-color: var(--lakex-editor-background-primary); - cursor: pointer; - display: flex; -} -.ne-ui-link-card-view-icon .ne-uilib-avatar-icon { - width: 24px; - height: 24px; -} -.ne-ui-link-card-view-content { - width: calc(100% - 50px); - margin-left: 12px; -} -.ne-ui-link-card-view-title { - font-size: 14px; - line-height: 14px; - color: var(--lakex-editor-text-color); - font-weight: bold; -} -.ne-ui-link-card-view-desc { - font-size: 12px; - line-height: 12px; - color: var(--lakex-editor-text-caption); - margin-top: 10px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.ne-ui-link-card-view-belong { - font-size: 12px; - line-height: 12px; - color: var(--lakex-editor-text-body); - margin-top: 10px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.ne-ui-link-embed-view-iframe { - width: 100%; - height: 100%; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-link-title-view { - vertical-align: bottom; - display: inline-block; - line-height: 20px; -} -.ne-ui-link-title-view-content { - color: var(--lakex-editor-text-link); -} -.ne-ui-link-title-view-icon .ne-uilib-avatar-icon { - width: 20px; - height: 20px; - margin-right: 10px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-mode-menu-panel { - position: absolute; - top: 0; - left: -1px; - z-index: 9999; - margin-top: 6px; - min-width: 150px; - border-radius: 4px; - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0px 2px 8px -4px var(--lakex-editor-color-black-f12); - background-color: var(--lakex-editor-background-primary); - transform: translateX(-150px); -} -.ne-ui-mode-menu-list { - min-width: 100%; - padding: 8px; - cursor: pointer; -} -.ne-ui-mode-menu-item { - display: flex; - align-items: center; - min-width: 100%; - height: 32px; - padding: 8px; - border-radius: 4px; - font-size: 14px; - color: var(--lakex-editor-text-color); -} -.ne-ui-mode-menu-item:hover, -.ne-ui-mode-menu-item-selected { - background-color: var(--lakex-editor-background-primary-hover); -} -.ne-ui-mode-menu-item .ne-ui-mode-menu-item-title { - margin-left: 8px; - flex: 1; - white-space: nowrap; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/* 定制化 AntD Select 组件的静态及 Hover 态样式 */ -.ne-lang-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector { - padding: 0 5px 0 8px; - border-color: transparent; - background: transparent; - border-radius: 4px; - height: 24px; - text-align: right; - cursor: pointer; -} -.ne-lang-select.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item { - padding-right: 23px; -} -.ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector { - border-color: transparent; - background-color: #e8e8e8; -} -.ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not( - .ant-select-customize-input - ) .ant-select-selector { - border-color: transparent; - box-shadow: none; - background-color: #e8e8e8; - text-align: left; -} -.ne-lang-select .ant-select-arrow { - color: var(--lakex-editor-text-color); - right: 7px; - margin-top: -8px; - width: 16px; - height: 16px; -} - -.ne-ui-overlay-button { - width: 28px; - height: 28px; - padding: 0; - border: none; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-overlay-divider { - width: 1px; - height: 14px; - border-left: 1px solid var(--lakex-editor-border-primary); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-overlay { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-overlay { - display: flex; - flex-direction: row; - align-items: center; - padding: 6px 12px; - background: var(--lakex-editor-background-primary); -} -.ne-ui-overlay .ne-ui-overlay-item { - margin-left: 8px; -} -.ne-ui-overlay .ne-ui-overlay-item:first-child { - margin-left: 0; -} -.ne-ui-overlay-bar-wrap .ant-popover-arrow { - display: none; -} -.ne-ui-overlay-bar-wrap .ant-popover-inner-content { - padding: 0; -} - -.ne-ui-select .ant-select-selector input { - display: none; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-sidebar-view { - padding: 0 20px; - overflow: auto; - min-height: 100%; -} -.ne-sidebar-view .ne-sidebar-header { - margin: 16px 0 24px 0; - position: relative; -} -.ne-sidebar-view .ne-sidebar-header .ne-sidebar-title { - font-size: 14px; - line-height: 22px; - font-weight: bold; -} -.ne-sidebar-view .ne-sidebar-header .ne-sidebar-close-btn { - width: 24px; - height: 24px; - display: flex; - justify-content: center; - align-items: center; - border: none; - border-radius: 4px; - background: none; - padding: 0; - outline: none; - position: absolute; - top: 0; - right: 0; - cursor: pointer; -} -.ne-sidebar-view .ne-sidebar-header .ne-sidebar-close-btn:hover { - background-color: var(--lakex-editor-background-primary-hover-light); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -@keyframes circle { - 0% { - transform: rotate(0); - } - 100% { - transform: rotate(360deg); - } -} -.ne-ui-spin .ne-ui-spin-indicator { - margin: 0 auto; - width: 24px; - height: 24px; - border: 2px solid var(--lakex-editor-text-caption); - border-color: var(--lakex-editor-text-caption) transparent transparent transparent; - border-radius: 50%; - animation: circle 1s linear infinite; -} -.ne-ui-spin-block { - display: block; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-color-selector { - white-space: nowrap; -} -.ne-color-selector .color-box { - border-radius: 4px; - display: inline-block; - width: 20px; - height: 20px; - margin-right: 8px; - display: inline-flex; - align-items: center; - justify-content: center; - cursor: pointer; - vertical-align: middle; -} -.ne-color-selector .color-box:last-child { - margin-right: 0; -} -.ne-color-selector .color-box:hover { - outline-offset: 2px; - outline: 1px solid var(--lakex-editor-color-blue3); -} -.ne-color-selector .color-box.color-tips { - background-color: var(--lakex-alert-tips-bar-bg); - border: 1px solid var(--lakex-alert-tips-bar-border); -} -.ne-color-selector .color-box.color-info { - background-color: var(--lakex-alert-info-bar-bg); - border: 1px solid var(--lakex-alert-info-bar-border); -} -.ne-color-selector .color-box.color-color1 { - background-color: var(--lakex-alert-color1-bar-bg); - border: 1px solid var(--lakex-alert-color1-bar-border); -} -.ne-color-selector .color-box.color-color2 { - background-color: var(--lakex-alert-color2-bar-bg); - border: 1px solid var(--lakex-alert-color2-bar-border); -} -.ne-color-selector .color-box.color-success { - background-color: var(--lakex-alert-success-bar-bg); - border: 1px solid var(--lakex-alert-success-bar-border); -} -.ne-color-selector .color-box.color-warning { - background-color: var(--lakex-alert-warning-bar-bg); - border: 1px solid var(--lakex-alert-warning-bar-border); -} -.ne-color-selector .color-box.color-color3 { - background-color: var(--lakex-alert-color3-bar-bg); - border: 1px solid var(--lakex-alert-color3-bar-border); -} -.ne-color-selector .color-box.color-danger { - background-color: var(--lakex-alert-danger-bar-bg); - border: 1px solid var(--lakex-alert-danger-bar-border); -} -.ne-color-selector .color-box.color-color4 { - background-color: var(--lakex-alert-color4-bar-bg); - border: 1px solid var(--lakex-alert-color4-bar-border); -} -.ne-color-selector .color-box.color-color5 { - background-color: var(--lakex-alert-color5-bar-bg); - border: 1px solid var(--lakex-alert-color5-bar-border); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-local-image { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-mock-image { - background-color: var(--lakex-editor-background-tertiary); - max-width: 100%; -} -.ne-image-loading-icon { - position: absolute; - top: 50%; - left: 50%; - margin-top: -8px; - margin-left: -8px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-image-error { - position: relative; - font-size: 12px; - color: var(--lakex-editor-text-caption); - background: var(--lakex-editor-background-tertiary); -} -.ne-image-error img { - max-width: 100%; -} -.ne-image-error .ne-image-tip { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - margin-top: 20px; - font-size: 12px; - line-height: 20px; - color: var(--lakex-editor-text-caption); - width: 100%; - text-align: center; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-uploading-image { - position: relative; -} -.ne-uploading-image .ne-image { - opacity: 0.6; - max-width: 100%; -} -.ne-uploading-image .ne-image-uploading-progress { - position: absolute; - bottom: 5px; - right: 5px; - color: var(--lakex-editor-color-white); - font-size: 12px; - line-height: 1; - background-color: var(--lakex-editor-color-black); - padding: 5px; - border-radius: 2px; -} - -.ne-ui-image-crop-box { - pointer-events: none; - position: absolute; - top: -4px; - left: -4px; - right: -4px; - bottom: -4px; - z-index: 3; - touch-action: none; -} - -.lake-crop-box { - pointer-events: none; - touch-action: none; - z-index: 3; - position: absolute; - top: -4px; - left: -4px; - right: -4px; - bottom: -4px; -} -.lake-crop-box .ne-crop-mask { - fill: #000; - opacity: 0.4; - cursor: default; - pointer-events: all; - user-select: none; -} -.lake-crop-box .ne-crop-tools { - pointer-events: all; - fill: #1890ff; - stroke: #fff; -} -.lake-crop-box .ne-crop-mobile-tools { - pointer-events: all; - fill: none; -} -.lake-crop-box .ne-crop-move { - cursor: default; - fill: none; - stroke: #1890ff; - stroke-dasharray: 2px 2px; -} -.lake-crop-box .ne-crop-move.movable { - cursor: move; -} -.lake-crop-box .ne-crop-n { - cursor: ns-resize; -} -.lake-crop-box .ne-crop-s { - cursor: ns-resize; -} -.lake-crop-box .ne-crop-e { - cursor: ew-resize; -} -.lake-crop-box .ne-crop-w { - cursor: ew-resize; -} -.lake-crop-box .ne-crop-nw { - cursor: nwse-resize; -} -.lake-crop-box .ne-crop-ne { - cursor: nesw-resize; -} -.lake-crop-box .ne-crop-sw { - cursor: nesw-resize; -} -.lake-crop-box .ne-crop-se { - cursor: nwse-resize; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-image-inner-button-wrap { - display: none; - justify-content: center; - align-items: center; - position: absolute; - top: 9px; - right: 9px; - background: rgba(38, 38, 38, 0.6); - border-radius: 8px; - z-index: 4; -} -.ne-ui-image-inner-button-wrap-menu-open { - display: flex; -} -.ne-ui-image-inner-button { - display: flex; - align-items: center; - justify-content: center; - width: 28px; - height: 28px; - color: #fff; - border: none; - outline: none; - background: none; - cursor: pointer; -} -.ne-ui-image-inner-divider { - display: block; - width: 1px; - height: 20px; - margin: 0 4px; - background: rgba(255, 255, 255, 0.1); -} -.ne-ui-image-inner-divider:last-child { - display: none; -} -.ne-ui-image-inner-menu .ne-ui-image-inner-menu-menu { - color: var(--lakex-editor-text-body); -} -.ne-ui-image-inner-menu .ant-popover-content { - min-width: 104px !important; -} -.ne-ui-image-inner-menu .ant-popover-arrow { - display: none; -} -.ne-ui-image-inner-menu .ant-menu { - border: none; - box-shadow: none; - background: transparent; -} -.ne-ui-image-inner-menu .ant-popover-inner { - border-radius: 8px; -} -.ne-ui-image-inner-menu .ant-popover-inner-content { - padding: 4px; -} -.ne-ui-image-inner-menu .ant-menu-item { - display: flex; - align-items: center; -} -.ne-ui-image-inner-menu .ant-menu-item:hover { - color: var(--lakex-editor-color-grey9); - background-color: var(--lakex-editor-background-primary-hover); -} -.ne-ui-image-inner-menu .ant-menu-item .ne-icon { - margin-right: 8px; -} - -ne-card[data-card-name='image'] .ne-card-container .ne-ui-image-ocr-mask { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 99; - pointer-events: none; - user-select: none; - overflow: hidden; -} -ne-card[data-card-name='image'] .ne-card-container .ne-ui-image-ocr-mask ::selection { - background: transparent !important; -} -.ne-ui-image-ocr-text { - line-height: 1; - position: absolute; - white-space: pre; - word-break: keep-all; - color: transparent !important; -} -.ne-ui-image-ocr-text::selection { - background: transparent !important; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-active .ne-ui-image-resizer-box { - display: block; -} -.ne-ui-image-resizer-box { - display: none; - pointer-events: none; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 3; - outline: 1px solid var(--lakex-editor-color-blue4); -} -.ne-ui-image-resizer-box.ne-ui-resizing:after { - position: absolute; - z-index: 3; - display: flex; - width: 100%; - height: 100%; - align-items: center; - justify-content: center; - content: attr(data-size); - color: var(--lakex-editor-color-white); - background-color: var(--lakex-editor-color-black-f30); -} -.ne-ui-image-resizer, -.ne-ui-image-resizer-handler { - width: 14px; - height: 14px; - border: 2px solid #fff; - background-color: var(--lakex-editor-color-blue5); - border-radius: 10px; - position: absolute; - z-index: 2; -} -.ne-ui-image-resizer-handler { - z-index: 3; - border: none; - background-color: transparent; -} -.ne-resizer-tl { - top: -7px; - left: -7px; - cursor: nwse-resize; - pointer-events: all; -} -.ne-resizer-tr { - top: -7px; - right: -7px; - cursor: nesw-resize; - pointer-events: all; -} -.ne-resizer-br { - bottom: -7px; - right: -7px; - cursor: nwse-resize; - pointer-events: all; -} -.ne-resizer-bl { - bottom: -7px; - left: -7px; - cursor: nesw-resize; - pointer-events: all; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-image-title { - position: relative; - word-break: break-all; - white-space: normal; - margin-top: 7px; - max-width: 100%; - text-align: center; -} -.ne-image-title .ne-image-title-content { - vertical-align: top; - display: inline-block; - min-width: 1px; - max-width: 100%; - min-height: 18px; - line-height: 22px; - font-size: 14px; - outline: none; - word-break: break-all; - white-space: normal; - color: var(--lakex-editor-text-caption); - text-align: center; - caret-color: initial; -} -.ne-image-title .ne-image-title-placeholder { - position: absolute; - top: 2px; - width: 100%; - display: block; - color: var(--lakex-editor-text-disable); - pointer-events: none; - line-height: 22px; - font-size: 14px; -} -.ne-viewer ne-card[data-card-type='inline'].ne-image-card-show-title, -.ne-image-card-show-title { - vertical-align: -13px; -} -.ne-image-card-show-title .ne-card-container { - line-height: 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card[data-card-name='image'] img { - vertical-align: baseline; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-card[data-card-name='image'] img { - vertical-align: text-bottom; -} -.ne-image-wrap { - position: relative; - line-height: 0; -} -.ne-image-wrap.ne-image-style-stroke:before { - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 4px; -} -.ne-image-wrap.ne-image-style-shadow:before { - box-shadow: 0 3px 6px 0 var(--lakex-editor-color-black-f12); -} -.ne-image-wrap.ne-image-loaded .ne-image { - opacity: 1; - border-radius: 4px; -} -.ne-image-wrap:before { - content: ' '; - display: block; - position: absolute; - z-index: 3; - top: 0; - left: 0; - bottom: 0; - right: 0; - pointer-events: none; -} -.ne-image-wrap .ne-image-box { - position: relative; - overflow: hidden; - border-radius: 4px; - max-width: 100%; - font-size: 0; -} -.ne-image-wrap .ne-image-box.ne-image-box-loading { - background-color: var(--lakex-editor-background-tertiary); -} -.ne-image-wrap .ne-image { - transition: opacity ease-in 0.1s; -} -.ne-image-wrap .ne-image.ne-image-preview { - cursor: zoom-in; -} -.ne-image-wrap .ne-image.ne-image-absolute { - position: absolute; - z-index: 2; -} -.ne-image-wrap .ne-image.ne-image-hide { - opacity: 0; - height: 0; - display: inline-block; -} -.ne-image-wrap .ne-image, -.ne-image-wrap .ne-bg-img { - max-width: 100%; -} -.ne-image-wrap:hover .ne-ui-image-inner-button-wrap { - display: flex; -} - -.ne-engine ne-card[data-card-name='image'] { - vertical-align: baseline; - display: inline-block; -} -.ne-engine ne-card[data-card-name='image'] ne-card-root { - display: inline-block; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-card[data-card-name='image'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-card[data-card-name='image'].ne-spacing-all { - vertical-align: text-bottom; - margin-bottom: 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-engine ne-card[data-card-name='block'] .ne-fallback-block-card, -.ne-viewer ne-card[data-card-name='block'] .ne-fallback-block-card { - cursor: default; - padding: 32px; - background: var(--lakex-editor-background-secondary); - border: 1px solid var(--lakex-editor-color-grey5); - border-radius: 4px; - line-height: 0; -} -.ne-engine ne-card[data-card-name='block'] .ne-fallback-block-card .inner-content, -.ne-viewer ne-card[data-card-name='block'] .ne-fallback-block-card .inner-content { - display: flex; - align-items: center; -} -.ne-engine ne-card[data-card-name='block'] .ne-fallback-block-card .ne-fallback-img, -.ne-viewer ne-card[data-card-name='block'] .ne-fallback-block-card .ne-fallback-img { - width: 32px; - height: 32px; -} -.ne-engine ne-card[data-card-name='block'] .ne-fallback-block-card .inner-tips, -.ne-viewer ne-card[data-card-name='block'] .ne-fallback-block-card .inner-tips { - margin-left: 20px; - color: var(--lakex-editor-text-caption); -} -.ne-engine ne-card[data-card-name='block'] .ne-fallback-block-card .main-tip, -.ne-viewer ne-card[data-card-name='block'] .ne-fallback-block-card .main-tip { - font-size: 14px; - line-height: 20px; - margin-bottom: 4px; -} -.ne-engine ne-card[data-card-name='block'] .ne-fallback-block-card .sub-tip, -.ne-viewer ne-card[data-card-name='block'] .ne-fallback-block-card .sub-tip { - font-size: 12px; - line-height: 17px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-engine ne-card[data-card-name='inline'], -.ne-viewer ne-card[data-card-name='inline'] { - vertical-align: middle; - cursor: default; -} -.ne-engine ne-card[data-card-name='inline'] .ne-fallback-inline-card, -.ne-viewer ne-card[data-card-name='inline'] .ne-fallback-inline-card { - display: inline; -} -.ne-engine ne-card[data-card-name='inline'] .ne-fallback-inline-card .inner-content, -.ne-viewer ne-card[data-card-name='inline'] .ne-fallback-inline-card .inner-content { - display: inline; - align-items: center; - font-size: 14px; - line-height: 14px; - color: var(--lakex-editor-text-caption); - padding: 0 8px; - position: relative; -} -.ne-engine ne-card[data-card-name='inline'] .ne-fallback-inline-card .inner-content:hover .sub-tip, -.ne-viewer ne-card[data-card-name='inline'] .ne-fallback-inline-card .inner-content:hover .sub-tip { - left: 0; - opacity: 1; -} -.ne-engine ne-card[data-card-name='inline'] .ne-fallback-inline-card .ne-fallback-img, -.ne-viewer ne-card[data-card-name='inline'] .ne-fallback-inline-card .ne-fallback-img { - width: 16px; - height: 16px; -} -.ne-engine ne-card[data-card-name='inline'] .ne-fallback-inline-card .inner-tips, -.ne-viewer ne-card[data-card-name='inline'] .ne-fallback-inline-card .inner-tips { - display: inline; - margin-left: 6px; -} -.ne-engine ne-card[data-card-name='inline'] .ne-fallback-inline-card .main-tip, -.ne-viewer ne-card[data-card-name='inline'] .ne-fallback-inline-card .main-tip { - display: inline; -} -.ne-engine ne-card[data-card-name='inline'] .ne-fallback-inline-card .sub-tip, -.ne-viewer ne-card[data-card-name='inline'] .ne-fallback-inline-card .sub-tip { - opacity: 0; - font-size: 14px; - line-height: 20px; - padding-top: 8px; - position: absolute; - top: 100%; - left: -9999999px; - margin-left: 50%; - transform: translateX(-50%); - white-space: nowrap; - user-select: none; - transition: opacity ease 0.1s; -} -.ne-engine ne-card[data-card-name='inline'] .ne-fallback-inline-card .sub-tip-content, -.ne-viewer ne-card[data-card-name='inline'] .ne-fallback-inline-card .sub-tip-content { - padding: 6px 8px; - background: var(--lakex-editor-background-primary); - border-radius: 4px; - box-shadow: 0 3px 6px -4px var(--lakex-editor-color-black-f12), 0 6px 16px 0 var(--lakex-editor-color-black-f08), 0 9px 28px 8px var(--lakex-editor-color-black-f05); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card[data-card-name='localdoc'] { - /* stylelint-disable-line */ - min-width: 0; -} -ne-card[data-card-name='localdoc'] .ne-card-container[data-alias='embed'] { - height: 450px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc { - background: var(--lakex-editor-background-secondary); - height: 100%; - overflow: hidden; - border-radius: 4px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc iframe { - border-radius: 4px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand { - display: flex; - flex-direction: column; - height: 100%; - overflow: hidden; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header { - height: 32px; - flex: 0 0 32px; - display: flex; - align-items: center; - padding: 0 16px; - background: var(--lakex-editor-background-primary); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-border { - border-bottom: 1px solid var(--lakex-editor-color-grey5); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-icon { - flex: 0 0 16px; - display: flex; - width: 16px; - height: 16px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-title { - flex: 1; - margin: 0 6px; - min-width: 0; - font-size: 12px; - color: var(--lakex-editor-text-body); - display: flex; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-title a, -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-title span { - display: block; - font-size: 12px; - color: var(--lakex-editor-text-body); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-title a:hover { - color: var(--lakex-editor-color-blue5); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-title-loading { - margin-left: 6px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-title .disable-name { - color: var(--lakex-editor-text-disable); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-op { - flex: 0 0 auto; - display: flex; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-op-preview, -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-op-download { - display: flex; - align-items: center; - justify-content: center; - width: 24px; - height: 24px; - border-radius: 4px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-op-preview:hover, -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-op-download:hover { - background-color: var(--lakex-editor-background-primary-hover); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-op-preview .ne-icon, -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-op-download .ne-icon { - color: var(--lakex-editor-text-body); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-header-op-download { - cursor: pointer; - margin-left: 12px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-content { - position: relative; - width: 100%; - height: 100%; - flex: 1; - overflow: hidden; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-content iframe { - width: 100%; - height: 100%; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-content-loading { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: rgba(0, 0, 0, 0); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-expand-content-loading-icon { - position: absolute; - top: 50%; - left: 50%; - width: 36px; - height: 36px; - margin: -18px 0 0 -18px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse { - display: flex; - align-items: center; - padding: 12px; - background: var(--lakex-editor-background-primary); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-icon { - flex: 0 0 24px; - width: 24px; - height: 24px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-content { - flex: 1; - display: flex; - align-items: center; - margin: 0 12px; - min-width: 0; - color: var(--lakex-editor-text-color); - font-size: 16px; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-content-name { - min-width: 0; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-content-name a, -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-content-name span { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - display: block; - color: var(--lakex-editor-text-color); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-content-name a:hover { - color: var(--lakex-editor-color-blue5); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-content-name .disable-name { - color: var(--lakex-editor-text-disable); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-content-size { - flex: 0 0 auto; - margin-left: 8px; - color: var(--lakex-editor-text-disable); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-op { - flex: 0 0 auto; - display: flex; -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-op-preview, -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-op-download { - display: flex; - align-items: center; - justify-content: center; - width: 30px; - height: 30px; - border-radius: 50%; - border: 1px solid var(--lakex-editor-border-primary); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-op-preview .ne-icon, -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-op-download .ne-icon { - color: var(--lakex-editor-text-body); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-op-preview:hover .ne-icon, -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-op-download:hover .ne-icon { - color: var(--lakex-editor-color-green6); -} -ne-card[data-card-name='localdoc'] .ne-card-local-doc-collapse-op-download { - cursor: pointer; - margin-left: 14px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -@keyframes neCardFileLoading { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} -ne-card[data-card-name='file'] { - color: var(--lakex-editor-text-color); - overflow: hidden; -} -ne-card[data-card-name='file'] .ne-card-file { - display: inline-flex; - align-items: baseline; - font-size: 15px; - cursor: pointer; - overflow: hidden; -} -ne-card[data-card-name='file'] .ne-card-file[data-status='done'] { - color: var(--lakex-editor-text-link); -} -ne-card[data-card-name='file'] .ne-card-file-icon { - position: relative; - margin-right: 6px; -} -ne-card[data-card-name='file'] .ne-card-file-icon div.ne-icon { - font-size: 1em; - vertical-align: text-top; - position: relative; - top: 1.5px; -} -ne-card[data-card-name='file'] .ne-card-file-name { - flex: 1; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - margin-right: 8px; -} -ne-card[data-card-name='file'] .ne-card-file-size { - flex: 0 0 auto; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-local-doc-upload-item { - margin-top: -8px; - height: 46px; - border-radius: 4px 4px 0 0; - border-bottom: 1px solid var(--lakex-editor-border-primary); - margin-bottom: 8px; -} - -.ne-ui-toolbar-fontsize .ne-ui-select-value { - width: 50px; -} -.ne-ui-toolbar-fontsize-dropdown .ne-ui-select-item { - padding-right: 25px; -} -.ne-ui-font-size-item { - padding-right: 15px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-more { - display: flex; - align-items: center; - height: 24px; - margin-left: 10px; - border-left: 1px solid var(--lakex-editor-border-primary); -} -.ne-ui-toolbar-more-button.checked { - background-color: var(--lakex-editor-background-primary-hover-light); -} -.ne-ui-toolbar-more-overlay { - padding: 0; -} -.ne-ui-toolbar-more-overlay .ant-popover-arrow { - display: none; -} -.ne-ui-toolbar-more-overlay .ant-popover-inner-content { - padding: 0 10px; - height: 40px; - display: flex; - align-items: center; -} -.ne-ui-toolbar-more-overlay .ant-popover-inner-content .ne-ui-divider:first-child { - display: none; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-divider { - display: inline-flex; - width: 1px; - height: 24px; - background-color: var(--lakex-editor-background-tertiary); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-card-select-button.ant-btn { - min-width: 26px; - height: 26px; - padding: 0; - border: none; - cursor: pointer; - background: none; - display: flex; - justify-content: center; - align-items: center; -} -.ne-ui-toolbar-card-select-button.ant-btn.ne-ui-menu-open { - background: var(--lakex-editor-color-grey2); -} -.ne-ui-toolbar-card-select-button.ant-btn[disabled] { - opacity: 0.25; - background: none; -} -.ne-card-toolbar-select-popover { - z-index: 9; -} -.ne-ui-toolbar-card-select-menu { - display: flex; - flex-direction: column; - height: 100%; -} -.lock-height .ne-ui-toolbar-card-select-menu .ne-ui-card-menu-content { - height: 100%; -} -.lock-height .ne-ui-toolbar-card-select-menu.ne-ui-search-card-menu.empty { - height: 100% !important; -} -.ne-ui-toolbar-card-select-menu .ne-ui-card-menu-content { - min-width: 182px; - max-height: 100%; - overflow-y: auto; -} -.ne-ui-toolbar-card-select-menu .ne-ui-card-menu-content::-webkit-scrollbar { - -webkit-appearance: none; -} -.ne-ui-toolbar-card-select-menu .ne-ui-card-menu-content::-webkit-scrollbar:vertical { - width: 10px; -} -.ne-ui-toolbar-card-select-menu .ne-ui-card-menu-content::-webkit-scrollbar-thumb { - border-radius: 6px; - border: 2px solid var(--lakex-editor-color-white); - background-color: var(--lakex-editor-color-grey5); -} -.ne-ui-toolbar-card-select-menu .ne-ui-card-menu-content::-webkit-scrollbar-track { - background-color: var(--lakex-editor-background-primary); - border-radius: 6px; -} - -.ne-ui-color-picker-button { - display: flex; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-arrow-button.ant-btn { - border: none; - background: transparent; - width: 42px; - padding: 0; -} -.ne-ui-toolbar-arrow-button.ant-btn[disabled] { - opacity: 0.25; - background: transparent; -} -.ne-ui-toolbar-arrow-button.ant-btn:after { - display: none !important; -} -.ne-ui-toolbar-arrow-button.ant-btn:active, -.ne-ui-toolbar-arrow-button.ant-btn:focus { - background: transparent; -} -.ne-ui-toolbar-arrow-button.ant-btn:hover { - background: var(--lakex-editor-color-grey2); -} -.ne-ui-toolbar-arrow-button.ant-btn > .ne-icon { - width: 26px; -} -.ne-ui-toolbar-arrow-down { - width: 16px; - height: 16px; - background-position: center; - background-repeat: no-repeat; - background-size: cover; - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/d5fce5b0-cd60-43b0-a351-9463486be4d2.svg'); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-toolbar-dropdown-button { - border-radius: 6px; - width: 40px; - height: 27px; -} -.ne-ui-toolbar-dropdown-button-menu.ne-check-menu .ne-ui-menu-item { - padding-left: 32px; -} -.ne-ui-toolbar-dropdown-button-menu.ne-check-menu .ne-ui-menu-item .ne-ui-menu-item-checked { - position: absolute; - left: 10px; -} -.ne-ui-toolbar-dropdown-button-menu .ne-ui-menu-item.ant-dropdown-menu-item { - min-width: 104px; - padding-right: 2px; - font-size: 12px; - white-space: nowrap; -} -.ne-ui-toolbar-dropdown-button-menu .ne-ui-menu-item.ant-dropdown-menu-item .ne-ui-menu-item-content { - display: flex; - align-items: center; - line-height: 30px; - padding-right: 16px; -} -.ne-ui-toolbar-dropdown-button-menu .ne-ui-menu-item.ant-dropdown-menu-item.ne-disabled .ne-icon { - opacity: 0.25; -} -.ne-ui-toolbar-dropdown-button-menu .ne-ui-menu-item.ant-dropdown-menu-item .ne-ui-dropdown-item-icon, -.ne-ui-toolbar-dropdown-button-menu .ne-ui-menu-item.ant-dropdown-menu-item .ne-icon { - margin-right: 10px; -} -.ne-ui-toolbar-dropdown-inline-container { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-toolbar-dropdown-inline-container { - display: flex; - height: 40px; - width: auto; - justify-content: space-evenly; - align-items: center; - border-radius: 5px; - padding: 0 5px; -} -.ne-ui-toolbar-dropdown-inline-container .ne-ui-inline-button { - width: 28px; - height: 28px; - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - border-radius: 5px; - margin-left: 3px; -} -.ne-ui-toolbar-dropdown-inline-container .ne-ui-inline-button.selected { - background-color: var(--lakex-editor-background-primary-hover-light); -} -.ne-ui-toolbar-dropdown-inline-container .ne-ui-inline-button:nth-of-type(1) { - margin-left: 0; -} -.ne-ui-toolbar-dropdown-inline-container .ne-ui-inline-button:hover { - background-color: var(--lakex-editor-background-primary-hover-light); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-button-emoji-popover .ant-popover-inner-content { - padding: 0; -} -.ne-button-emoji-panel { - width: 224px; - padding: 4px 4px; - transition: none; -} -.ne-button-emoji-panel .ne-button-emoji-item { - width: 72px; - height: 96px; - padding: 4px 4px; - display: inline-block; - line-height: unset; - text-align: center; -} -.ne-button-emoji-panel .ne-button-emoji-item img { - margin: 0 auto; - height: 64px; - width: 64px; -} -.ne-button-emoji-panel .ne-button-emoji-item .ne-emoji-title { - font-size: 12px; - color: var(--lakex-editor-text-caption); - line-height: 24px; -} -.ne-button-emoji-panel .ne-button-emoji-item:hover { - border-radius: 4px; - background: var(--lakex-editor-background-primary-hover); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-toolbar-status-dropdown-button { - display: inline-flex; - justify-content: center; - align-items: center; - width: 42px; - height: 27px; - border: 1px solid transparent; - border-radius: 6px; - margin-left: 2px !important; -} -.ne-ui-toolbar-status-dropdown-button.disabled { - border-color: transparent !important; -} -.ne-ui-toolbar-status-dropdown-button.checked, -.ne-ui-toolbar-status-dropdown-button.ne-ui-dropdown-open, -.ne-ui-toolbar-status-dropdown-button.sync:hover { - background-color: var(--lakex-editor-background-tertiary); - border-radius: 6px; -} -.ne-ui-toolbar-status-dropdown-button button.ne-ui-t-button { - padding: 0; - border: none; - background: transparent; - height: 27px; -} -.ne-ui-toolbar-status-dropdown-button button.ne-ui-t-button[disabled] { - opacity: 0.25; - background: transparent; -} -.ne-ui-toolbar-status-dropdown-button button.ne-ui-t-button:after { - display: none !important; -} -.ne-ui-toolbar-status-dropdown-button button.ne-ui-t-button:active, -.ne-ui-toolbar-status-dropdown-button button.ne-ui-t-button:focus { - background: transparent; -} -.ne-ui-toolbar-status-dropdown-button button.ne-ui-t-button:hover { - background: var(--lakex-editor-color-grey2); -} -.ne-ui-toolbar-status-dropdown-button button.ne-ui-t-button.ant-dropdown-open { - background: none; -} -.ne-ui-toolbar-status-dropdown-button .ne-ui-toolbar-status-dropdown-show-button { - width: 25px; - height: 27px; - border-radius: 6px; -} -.ne-ui-toolbar-status-dropdown-button .ne-ui-toolbar-status-dropdown-show-button .ne-ui-status-dropdown-button { - border: 2px solid transparent; - border-radius: 6px; - width: 100%; - height: 100%; - display: flex; - justify-content: center; - align-items: center; -} -.ne-ui-toolbar-status-dropdown-button .ne-ui-toolbar-status-dropdown-show-button .ne-ui-status-dropdown-button:hover { - border-color: var(--lakex-editor-border-light); -} -.ne-ui-toolbar-status-dropdown-button .ne-ui-toolbar-status-dropdown-icon-container { - width: 16px; - min-width: unset; - border-left: 1px solid transparent; -} -.ne-ui-toolbar-status-dropdown-overlay { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-toolbar-status-dropdown-overlay { - border-radius: 8px; -} -.ne-ui-toolbar-status-dropdown-arrow { - width: 16px; - height: 16px; - background-position: center; - background-size: cover; - background-repeat: no-repeat; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-button.ant-btn { - min-width: 26px; - height: 26px; - border-radius: 6px; - padding: 0; - border: none; - background: transparent; -} -.ne-ui-toolbar-button.ant-btn[disabled] { - opacity: 0.25; - background: transparent; -} -.ne-ui-toolbar-button.ant-btn:after { - display: none !important; -} -.ne-ui-toolbar-button.ant-btn:active, -.ne-ui-toolbar-button.ant-btn:focus { - background: transparent; -} -.ne-ui-toolbar-button.ant-btn:hover { - background: var(--lakex-editor-color-grey2); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-select-button.ant-btn { - padding: 0 5px 0 10px; - width: auto; - border-radius: 6px; -} -.ne-ui-toolbar-select-value { - width: 40px; - text-align: left; - font-size: 14px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - color: var(--lakex-editor-color-black); -} -.ne-ui-select-menu { - border-radius: 5px; -} -.ne-ui-select-menu .ne-ui-select-item, -.ne-ui-select-menu .ant-dropdown-menu-item.ne-ui-select-item { - position: relative; - padding: 4px 15px 4px 25px; - line-height: 30px; - font-size: 12px; -} -.ne-ui-select-menu .ne-ui-select-item.ant-dropdown-menu-item-selected, -.ne-ui-select-menu .ant-dropdown-menu-item.ne-ui-select-item.ant-dropdown-menu-item-selected { - background: none; -} -.ne-ui-select-menu .ne-ui-select-item.ant-dropdown-menu-item-selected .ne-ui-select-item-check-icon, -.ne-ui-select-menu .ant-dropdown-menu-item.ne-ui-select-item.ant-dropdown-menu-item-selected .ne-ui-select-item-check-icon { - opacity: 1; -} -.ne-ui-select-menu .ne-ui-select-item-check-icon, -.ne-ui-select-menu .ant-dropdown-menu-item.ne-ui-select-item-check-icon { - position: absolute; - left: 5px; - top: 0; - bottom: 0; - width: 30px; - display: flex; - justify-content: center; - align-items: center; - opacity: 0; -} -.ne-ui-select-menu .ne-ui-select-item .ne-ui-select-item-label, -.ne-ui-select-menu .ant-dropdown-menu-item.ne-ui-select-item .ne-ui-select-item-label { - margin-left: 10px; - flex-grow: 1; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-dbl-toggle-button.ant-btn { - min-width: 26px; - height: 26px; - border-radius: 5px; - padding: 0; - border: none; - background: transparent; -} -.ne-ui-toolbar-dbl-toggle-button.ant-btn[disabled] { - opacity: 0.25; - background: transparent; -} -.ne-ui-toolbar-dbl-toggle-button.ant-btn:after { - display: none !important; -} -.ne-ui-toolbar-dbl-toggle-button.ant-btn:active, -.ne-ui-toolbar-dbl-toggle-button.ant-btn:focus { - background: transparent; -} -.ne-ui-toolbar-dbl-toggle-button.ant-btn:hover { - background: var(--lakex-editor-color-grey2); -} -.ne-ui-toolbar-dbl-toggle-button.ant-btn.checked { - background-color: var(--lakex-editor-background-primary-hover-light); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-file-button, -.ne-ui-toolbar-file-button.ant-btn { - min-width: 32px; - height: 32px; - position: relative; - padding: 0; - border: none; - background: transparent; -} -.ne-ui-toolbar-file-button[disabled], -.ne-ui-toolbar-file-button.ant-btn[disabled] { - opacity: 0.25; - background: transparent; -} -.ne-ui-toolbar-file-button:after, -.ne-ui-toolbar-file-button.ant-btn:after { - display: none !important; -} -.ne-ui-toolbar-file-button:active, -.ne-ui-toolbar-file-button.ant-btn:active, -.ne-ui-toolbar-file-button:focus, -.ne-ui-toolbar-file-button.ant-btn:focus { - background: transparent; -} -.ne-ui-toolbar-file-button:hover, -.ne-ui-toolbar-file-button.ant-btn:hover { - background: var(--lakex-editor-color-grey2); -} -.ne-ui-toolbar-file-button .ne-ui-toolbar-file-input, -.ne-ui-toolbar-file-button.ant-btn .ne-ui-toolbar-file-input { - position: absolute; - opacity: 0; - width: 100%; - height: 100%; - left: 0; - top: 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-toggle-button.ant-btn { - width: 26px; - height: 26px; - border-radius: 6px; - padding: 0; - border: none; - background: transparent; -} -.ne-ui-toolbar-toggle-button.ant-btn[disabled] { - opacity: 0.25; - background: transparent; -} -.ne-ui-toolbar-toggle-button.ant-btn:after { - display: none !important; -} -.ne-ui-toolbar-toggle-button.ant-btn:active, -.ne-ui-toolbar-toggle-button.ant-btn:focus { - background: transparent; -} -.ne-ui-toolbar-toggle-button.ant-btn:hover { - background: var(--lakex-editor-color-grey2); -} -.ne-ui-toolbar-toggle-button.ant-btn.checked { - background-color: var(--lakex-editor-background-primary-hover-light); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar { - position: relative; - display: flex; - height: 50px; - color: var(--lakex-editor-color-grey8); -} -.ne-ui-toolbar .ne-toolbar-widget, -.ne-ui-toolbar .ant-btn { - color: var(--lakex-editor-color-grey8); - flex-shrink: 0; -} -.ne-ui-toolbar .ne-toolbar-widget:hover, -.ne-ui-toolbar .ant-btn:hover { - color: var(--lakex-editor-color-grey8); -} -.ne-ui-toolbar .ne-toolbar-widget:last-child, -.ne-ui-toolbar .ant-btn:last-child { - margin-right: 0; -} -.ne-ui-toolbar .ne-toolbar-widget .ne-ui-toolbar-insert-card .ne-icon-t-insert-card.ne-icon, -.ne-ui-toolbar .ant-btn .ne-ui-toolbar-insert-card .ne-icon-t-insert-card.ne-icon { - color: var(--lakex-editor-color-theme); -} -.ne-ui-inner-toolbar { - position: relative; - top: 0; - left: 0; - height: 100%; -} -.ne-ui-inner-toolbar .ne-ui-toolbar-content { - display: flex; - flex-wrap: nowrap; - height: 100%; - align-items: center; -} -.ne-ui-toolbar .ne-toolbar-widget { - margin-left: 8px; -} -.ne-ui-toolbar .ne-toolbar-widget *.ne-icon { - color: var(--lakex-editor-color-black); -} -.ne-ui-toolbar [data-ne-button-arrow='true'] + [data-ne-button-arrow='true'] { - margin-left: 4px; -} -.ne-ui-toolbar [data-ne-button-arrow='true'] + .ne-ui-divider, -.ne-ui-toolbar .ne-ui-divider + [data-ne-button-arrow='true'] { - margin-left: 10px; -} -button.ant-btn.ne-ui-toolbar-button.ne-toolbar-widget.ne-ui-t-button > div[data-name='EditorUndo'] > svg, -button.ant-btn.ne-ui-toolbar-button.ne-toolbar-widget.ne-ui-t-button > div[data-name='EditorRedo'] > svg, -button.ant-btn.ne-toolbar-widget.ne-ui-t-button > div[data-name='EditorFormatPainter'] > svg, -button.ant-btn.ne-ui-toolbar-button.ne-ui-toolbar-clear-format.ne-toolbar-widget.ne-ui-t-button > div > svg { - width: 16px; - height: 16px; -} -.ne-ui-t-button.ant-btn { - border-color: transparent !important; -} - -/** 只提供变量 */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-exit-fullscreen, -.ne-ui-enter-fullscreen { - display: none; - position: fixed; - top: 4px; - right: 4px; - height: 42px; - width: 42px; - border-radius: 4px; - border-right: none; - text-align: center; - line-height: 50px; - outline: none; - color: var(--lakex-editor-icon-secondary); - cursor: pointer; - z-index: 5; - justify-content: center; - align-items: center; -} -.ne-ui-exit-fullscreen:hover { - background: var(--lakex-editor-color-grey2); -} -.ne-ui-enter-fullscreen { - top: 0; - right: 0; - width: 22px; - height: 22px; - line-height: 22px; - position: absolute; - display: flex; - background: none; - border: none; - outline: none; -} -.ne-ui-fullscreen { - position: fixed !important; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 1000; - height: auto; -} -.ne-ui-fullscreen .ne-ui-sidebar-visible .ne-editor-wrap:after { - content: ' '; - display: block; - width: 288px; -} -.ne-ui-fullscreen .ne-ui-sidebar-visible .ne-ui-sidebar { - right: 0; -} -.ne-ui-fullscreen .ne-editor-extra-box { - display: none; -} -.ne-ui-fullscreen .ne-editor { - height: 100%; -} -.ne-ui-fullscreen .ne-editor-body { - height: calc(100% - 50px - 54px); -} -.ne-ui-fullscreen .ne-editor-wrap { - padding-top: 16px; - height: 100%; - display: flex; -} -.ne-ui-fullscreen .ne-editor-wrap-content { - margin: 0 16px; - height: 100%; - flex: 1; - width: 440px; -} -.ne-ui-fullscreen .ne-editor-wrap-box, -.ne-ui-fullscreen .ne-editor-outer-wrap-box, -.ne-ui-fullscreen .ne-editor-box, -.ne-ui-fullscreen .ne-engine-box { - height: 100%; -} -.ne-ui-fullscreen .ne-engine-box .ne-engine { - height: 100%; - overflow: hidden; -} -.ne-ui-fullscreen .ne-editor-body { - height: calc(100% - 50px); -} -.ne-ui-fullscreen .ne-editor-wrap .ne-editor-wrap-box { - margin-bottom: 20px; -} -.ne-ui-fullscreen .ne-ui { - padding-left: 40px; - padding-right: 50px; - border-bottom: 1px solid var(--lakex-editor-border-light); -} -.ne-ui-fullscreen .ne-ui-sidebar { - top: 0; -} -.ne-ui-fullscreen .ne-editor.ne-layout-mode-adapt { - background-color: var(--lakex-editor-background-primary); -} -.ne-ui-fullscreen .ne-editor-wrap-box, -.ne-ui-fullscreen .ne-editor-outer-wrap-box, -.ne-ui-fullscreen .ne-editor-box, -.ne-ui-fullscreen .ne-engine-box { - height: auto; -} -.ne-ui-fullscreen .ne-engine-box .ne-engine { - padding-top: 40px; - padding-bottom: 40px; -} -.ne-ui-fullscreen .ne-ui-sidebar { - top: 0; -} -.ne-ui-fullscreen .ne-ui-exit-fullscreen { - display: flex; -} -.ne-ui-fullscreen .ne-ui-enter-fullscreen { - display: none; -} -.ne-ui-max-view .ne-ui-exit-fullscreen { - display: none; -} -.ne-ui-max-view .ne-ui-enter-fullscreen { - display: none; -} -.lakex-note-editor .ne-ui-enter-fullscreen { - top: 6px; - right: 6px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-toolbar-format .ne-ui-select-value { - width: 80px; -} -.ne-ui-toolbar-format-dropdown .ant-select-item-option:nth-child(2) { - font-size: 24px; -} -.ne-ui-toolbar-format-dropdown .ant-select-item-option:nth-child(3) { - font-size: 20px; -} -.ne-ui-toolbar-format-dropdown .ant-select-item-option:nth-child(4) { - font-size: 16px; -} -.ne-ui-toolbar-format-dropdown .ant-select-item-option:nth-child(5) { - font-size: 14px; -} -.ne-ui-select-item .ne-ui-select-content { - display: flex; - justify-content: space-between; - align-items: center; - white-space: nowrap; -} -.ne-ui-select-item .ne-ui-select-content .ne-ui-item-content { - font-size: 16px; - font-weight: bold; -} -.ne-ui-select-item .ne-ui-select-content .ne-ui-item-heading1 { - font-size: 28px; - font-weight: bold; - line-height: 1.6; -} -.ne-ui-select-item .ne-ui-select-content .ne-ui-item-heading2 { - font-size: 24px; - font-weight: bold; - line-height: 1.6; -} -.ne-ui-select-item .ne-ui-select-content .ne-ui-item-heading3 { - font-size: 20px; - font-weight: bold; - line-height: 1.6; -} -.ne-ui-select-item .ne-ui-select-content .ne-ui-item-heading4 { - font-size: 16px; - font-weight: bold; - line-height: 1.6; -} -.ne-ui-select-item .ne-ui-select-content .ne-ui-item-heading5 { - font-size: 14px; - font-weight: bold; - line-height: 1.6; -} -.ne-ui-select-item .ne-ui-select-content .ne-ui-command-style { - color: var(--lakex-editor-text-disable); - margin-left: 65px; -} -@media screen and (max-width: 750px) { - .ne-ui-command-style { - display: none; - } -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-engine ne-hole[data-card='hr'] .ne-i-filler { - align-self: center; -} -.ne-engine ne-card[data-card-name='hr'] { - font-size: 24px; - color: var(--lakex-editor-color-white); -} -.ne-engine ne-card[data-card-name='hr'] .ne-card-container { - width: 100%; - background: transparent; -} -.ne-engine ne-card[data-card-name='hr'] ne-card-root { - display: flex; - align-items: center; - justify-content: center; - cursor: default; -} -.ne-engine ne-card[data-card-name='hr'] ne-card-root .ne-card-container { - padding: 8px 0; -} -.ne-engine ne-card[data-card-name='hr'] ne-card-root .ne-card-container:hover { - background-color: transparent; -} -.ne-engine ne-card[data-card-name='hr'] ne-card-root .ne-hr-line { - width: 100%; - height: 1px; - background: var(--lakex-editor-color-grey4); - border-top: 1px solid transparent; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-card[data-card-name='hr'] .ne-card-container { - padding: 12px 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-card[data-card-name='hr'] .ne-hr-line { - height: 1px; -} -@media (hover: hover) { - .ne-engine ne-card[data-card-name='hr'] ne-card-root .ne-card-container:hover { - background-color: var(--lakex-editor-background-tertiary); - } -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -ne-card[data-card-name='label'] { - top: -2px; -} -ne-card[data-card-name='label'] .ne-card-container { - width: 100%; - display: flex; - align-items: center; -} -ne-card[data-card-name='label'] .ne-card-label { - width: 100%; -} -ne-card[data-card-name='label'] .ne-card-label-text { - white-space: nowrap; - border-radius: 2px; - overflow: hidden; - text-overflow: ellipsis; - font-size: 12px; - line-height: 1.1; - padding: 0 0.2em; - margin: 0 0.2em; - border: 2px solid transparent; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='label'] .ne-card-label-text { - font-size: 21.6px; -} -.ne-label-color-0 { - color: var(--lakex-label-color0-text); - background: var(--lakex-label-color0-bg); -} -.ne-label-color-1 { - color: var(--lakex-label-color1-text); - background: var(--lakex-label-color1-bg); -} -.ne-label-color-2 { - color: var(--lakex-label-color2-text); - background: var(--lakex-label-color2-bg); -} -.ne-label-color-3 { - color: var(--lakex-label-color3-text); - background: var(--lakex-label-color3-bg); -} -.ne-label-color-4 { - color: var(--lakex-label-color4-text); - background: var(--lakex-label-color4-bg); -} -.ne-label-color-5 { - color: var(--lakex-label-color5-text); - background: var(--lakex-label-color5-bg); -} -ne-card[data-card-name='label'].ne-focused .ne-card-label-text { - border-color: var(--lakex-editor-card-border-selected); -} -ne-card[data-card-name='label'] .ne-card-label-text { - border: 2px solid var(--lakex-editor-color-white); -} -.ne-label-overlay .ne-card-label-input-box input { - min-width: 144px; -} -.ne-label-overlay .ne-card-label-colors { - display: flex; - margin-top: 10px; -} -.ne-label-overlay .ne-card-label-colors .ne-card-label-color-item { - width: 24px; - height: 24px; - padding: 2px; - border-radius: 3px; - border: 1px solid transparent; - cursor: pointer; -} -.ne-label-overlay .ne-card-label-colors .ne-card-label-color-item:hover { - border-color: var(--lakex-editor-color-grey5); - box-shadow: 0 1px 2px var(--lakex-editor-color-black-f12); -} -.ne-label-overlay .ne-card-label-colors .ne-card-label-color-item:focus { - border-color: var(--lakex-editor-color-grey6) !important; - box-shadow: 0 1px 2px var(--lakex-editor-color-black-f12); -} -.ne-label-overlay .ne-card-label-colors .ne-card-label-color-inner-item { - width: 18px; - height: 18px; - border: 1px solid transparent; - display: flex; - justify-content: center; - align-items: center; - border-radius: 2px; -} -.ne-label-overlay .ne-card-label-colors .ne-card-label-color-selected { - display: block; - width: 12px; - height: 12px; -} -.ne-card-label-memos { - display: flex; - flex-wrap: wrap; - width: max-content; - /* 至少能并排放下两个最大宽度item */ - max-width: 248px; - max-height: 54px; - overflow-y: hidden; - margin-top: 4px; -} -.ne-card-label-memos-item { - cursor: pointer; - max-width: 120px; - margin-right: 4px; - margin-top: 4px; - border-radius: 2px; - border: 2px solid transparent; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - word-break: break-all; - height: 23px; - line-height: 19px; - padding: 0 0.2em; -} -.ne-card-label-memos-item:hover { - border-color: var(--lakex-editor-color-grey5); -} -.ne-card-label-memos-item:focus { - border-color: var(--lakex-editor-color-grey6) !important; -} -/* -- 浮层中选项色值 --- */ -.ne-card-label-color-item[data-color-index='0'] .ne-card-label-color-inner-item { - background: var(--lakex-label-color0-bg); - border-color: var(--lakex-label-color0-border); -} -.ne-card-label-color-item[data-color-index='1'] .ne-card-label-color-inner-item { - background: var(--lakex-label-color1-bg); - border-color: var(--lakex-label-color1-border); -} -.ne-card-label-color-item[data-color-index='2'] .ne-card-label-color-inner-item { - background: var(--lakex-label-color2-bg); - border-color: var(--lakex-label-color2-border); -} -.ne-card-label-color-item[data-color-index='3'] .ne-card-label-color-inner-item { - background: var(--lakex-label-color3-bg); - border-color: var(--lakex-label-color3-border); -} -.ne-card-label-color-item[data-color-index='4'] .ne-card-label-color-inner-item { - background: var(--lakex-label-color4-bg); - border-color: var(--lakex-label-color4-border); -} -.ne-card-label-color-item[data-color-index='5'] .ne-card-label-color-inner-item { - background: var(--lakex-label-color5-bg); - border-color: var(--lakex-label-color5-border); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-editor .ne-ui-sidebar { - z-index: 3; -} -.ne-layout-mode-fixed .ne-editor-wrap, -.ne-layout-mode-adapt:not(.ne-simple-ui, .ne-small-ui) .ne-editor-wrap { - display: flex; - height: 100%; - overflow-x: hidden; - overflow-y: auto; - overflow-y: overlay; -} -.ne-layout-mode-fixed.ne-editor, -.ne-layout-mode-adapt.ne-editor { - height: 100%; -} -.ne-layout-mode-fixed .ne-editor-wrap-content, -.ne-layout-mode-adapt .ne-editor-wrap-content { - flex: 1; - min-width: 500px; -} -.ne-layout-mode-fixed .ne-editor-body, -.ne-layout-mode-adapt .ne-editor-body { - height: calc(100% - 50px); -} -.ne-layout-mode-fixed .ne-editor-outer-wrap-box, -.ne-layout-mode-adapt .ne-editor-outer-wrap-box { - min-width: 500px; - padding-bottom: 1px; -} -.ne-layout-mode-fixed .ne-editor-wrap-box, -.ne-layout-mode-adapt .ne-editor-wrap-box { - background-color: var(--lakex-editor-background-primary); -} -.ne-layout-mode-fixed .ne-engine, -.ne-layout-mode-adapt .ne-engine { - min-height: 1024px; - padding: 20px 40px 90px 40px; -} -.ne-layout-mode-fixed .ne-ui-sidebar, -.ne-layout-mode-adapt .ne-ui-sidebar { - width: 305px; - right: 0; -} -.ne-layout-mode-fixed ne-hole, -.ne-layout-mode-adapt ne-hole, -.ne-layout-mode-fixed ne-container-hole, -.ne-layout-mode-adapt ne-container-hole, -.ne-layout-mode-fixed ne-alert-hole, -.ne-layout-mode-adapt ne-alert-hole { - display: flex; - line-height: 1; -} -.ne-layout-mode-fixed ne-hole .ne-i-filler, -.ne-layout-mode-adapt ne-hole .ne-i-filler, -.ne-layout-mode-fixed ne-container-hole .ne-i-filler, -.ne-layout-mode-adapt ne-container-hole .ne-i-filler, -.ne-layout-mode-fixed ne-alert-hole .ne-i-filler, -.ne-layout-mode-adapt ne-alert-hole .ne-i-filler { - align-self: stretch; -} -.ne-layout-mode-fixed ne-hole .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-hole .ne-i-filler:first-child, -.ne-layout-mode-fixed ne-container-hole .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-container-hole .ne-i-filler:first-child, -.ne-layout-mode-fixed ne-alert-hole .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-alert-hole .ne-i-filler:first-child { - align-self: flex-start; -} -.ne-layout-mode-fixed ne-hole .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-hole .ne-i-filler:last-child, -.ne-layout-mode-fixed ne-container-hole .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-container-hole .ne-i-filler:last-child, -.ne-layout-mode-fixed ne-alert-hole .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-alert-hole .ne-i-filler:last-child { - align-self: flex-end; -} -.ne-layout-mode-fixed ne-table-hole, -.ne-layout-mode-adapt ne-table-hole, -.ne-layout-mode-fixed ne-root-card-hole, -.ne-layout-mode-adapt ne-root-card-hole { - display: flex; - align-items: flex-end; -} -.ne-layout-mode-fixed ne-table-hole > .ne-i-filler, -.ne-layout-mode-adapt ne-table-hole > .ne-i-filler, -.ne-layout-mode-fixed ne-root-card-hole > .ne-i-filler, -.ne-layout-mode-adapt ne-root-card-hole > .ne-i-filler { - line-height: 1; -} -.ne-layout-mode-fixed ne-table-hole > .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-table-hole > .ne-i-filler:first-child, -.ne-layout-mode-fixed ne-root-card-hole > .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-root-card-hole > .ne-i-filler:first-child { - margin-top: 1em; - align-self: flex-start; -} -.ne-layout-mode-fixed ne-table-hole > .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-table-hole > .ne-i-filler:last-child, -.ne-layout-mode-fixed ne-root-card-hole > .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-root-card-hole > .ne-i-filler:last-child { - margin-bottom: 1em; - align-self: flex-end; -} -.ne-ui-scrollbar-visible .ne-layout-mode-fixed .ne-ui-sidebar, -.ne-ui-scrollbar-visible .ne-layout-mode-adapt .ne-ui-sidebar { - right: 15px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading .ne-editor-extra-box { - max-width: 890px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading .ne-editor-extra-box, -.ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading .ne-editor-extra-box { - padding: 0 70px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading .ne-ui, -.ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading .ne-ui { - padding-left: 57px; - padding-right: 57px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading .ne-engine, -.ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading .ne-engine { - padding-left: 70px; - padding-right: 70px; -} -#app .ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading.ne-typography-desktop .ne-editor-extra-box { - max-width: 890px !important; -} -#app .ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading.ne-typography-desktop .ne-editor-extra-box, -#app .ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading.ne-typography-desktop .ne-editor-extra-box { - padding: 0 70px !important; -} -#app .ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading.ne-typography-desktop .ne-ui, -#app .ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading.ne-typography-desktop .ne-ui { - padding-left: 57px !important; - padding-right: 57px !important; -} -#app .ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading.ne-typography-desktop .ne-engine, -#app .ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading.ne-typography-desktop .ne-engine { - padding-left: 70px !important; - padding-right: 70px !important; -} -.ne-doc-major-editor .ne-layout-mode-fixed .ne-editor-extra-box { - max-width: 830px; - padding: 0 40px; - margin: 0 auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed .ne-engine > .ne-b-filler { - display: block; - max-width: 750px; - margin-left: auto; - margin-right: auto; - min-height: 24px; - height: 1em; - line-height: 1.74; -} -.ne-doc-major-editor .ne-layout-mode-fixed .ne-ui { - padding: 0 40px; - margin: 0 auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed .ne-ui .ne-ui-toolbar { - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed .ne-ui .ne-ui-toolbar .ne-ui-inner-toolbar:after { - content: ' '; - height: 1px; - background: var(--lakex-editor-background-tertiary); - position: absolute; - bottom: 0; - left: 0; - right: 0; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine > * { - max-width: 750px; - margin-left: auto; - margin-right: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-alert-hole.ne-full-width { - max-width: 100%; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-table-hole.ne-full-width { - max-width: 100%; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-table-hole.ne-full-width ne-table-wrap { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-table-hole.ne-full-width > .ne-i-filler { - flex: 1; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child { - margin-right: 2px; - text-align: right; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:last-child { - text-align: left; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-root-card-hole.ne-full-width { - max-width: 100%; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-root-card-hole.ne-full-width > ne-card { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler { - flex: 1; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child { - margin-right: 2px; - text-align: right; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible) .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:last-child { - text-align: left; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible).ne-viewport-size-standard ne-table-hole.ne-full-width ne-table-wrap { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed:not(.ne-normal-toc):not(.ne-ui-sidebar-visible).ne-viewport-size-standard ne-root-card-hole.ne-full-width > ne-card { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine > * { - max-width: 750px; - margin-left: auto; - margin-right: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-alert-hole.ne-full-width { - max-width: 100%; - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-table-hole { - max-width: 752px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-table-hole.ne-full-width { - max-width: 100%; - margin-left: auto; - margin-right: 280px; - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-table-hole.ne-full-width ne-table-wrap { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child { - flex: 1; - max-width: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child:first-child { - margin-right: 2px; - text-align: right; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child:last-child { - text-align: left; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:last-child { - flex: 0; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-root-card-hole { - max-width: 752px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-root-card-hole.ne-full-width { - max-width: 100%; - margin-left: auto; - margin-right: 280px; - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-root-card-hole.ne-full-width > ne-card { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child { - flex: 1; - max-width: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child:first-child { - margin-right: 2px; - text-align: right; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child:last-child { - text-align: left; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XXL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:last-child { - flex: 0; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine > * { - max-width: 750px; - margin-left: auto; - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-alert-hole.ne-full-width { - max-width: 100%; - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-table-hole, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole { - max-width: 752px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-table-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width { - max-width: 100%; - margin-left: auto; - margin-right: 280px; - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-table-hole.ne-full-width ne-table-wrap, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width ne-table-wrap { - min-width: min(100%, 750px); - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child { - flex: 1; - max-width: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child:first-child, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child:first-child { - text-align: right; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child:last-child, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child:last-child { - text-align: left; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:last-child, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:last-child { - flex: 0; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole { - max-width: 752px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width { - max-width: 100%; - margin-left: auto; - margin-right: 280px; - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > ne-card { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child { - flex: 1; - max-width: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child:first-child { - text-align: right; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child:last-child { - text-align: left; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:last-child { - flex: 0; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-XL .ne-editor-extra-box { - margin-left: auto; - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-L .ne-engine > *, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-M .ne-engine > * { - max-width: 750px; - margin-left: auto; - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-L .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-M .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-L .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-M .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-L .ne-engine ne-alert-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-M .ne-engine ne-alert-hole.ne-full-width { - max-width: 100%; - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-L .ne-engine ne-table-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-M .ne-engine ne-table-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-L .ne-engine ne-root-card-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-M .ne-engine ne-root-card-hole.ne-full-width { - max-width: 100%; - margin-left: auto; - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-L .ne-editor-extra-box, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-normal-toc:not(.ne-ui-sidebar-visible).ne-viewport-size-toc-M .ne-editor-extra-box { - margin-left: auto; - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible { - /* ---------- 表格 ---------- */ -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine > * { - max-width: 750px; - margin-left: auto; - margin-right: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-alert-hole.ne-full-width { - max-width: 100%; - margin-right: 305px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine > *, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-L .ne-engine > *, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-M .ne-engine > * { - max-width: 750px; - margin-left: auto; - margin-right: 305px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-L .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-M .ne-engine ne-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-L .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-M .ne-engine ne-container-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-alert-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-L .ne-engine ne-alert-hole.ne-full-width, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-M .ne-engine ne-alert-hole.ne-full-width { - max-width: 100%; - margin-right: 305px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-editor-extra-box, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-L .ne-editor-extra-box, -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-M .ne-editor-extra-box { - margin-left: auto; - margin-right: 305px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-table-hole { - max-width: 752px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-table-hole.ne-full-width { - max-width: 100%; - margin-right: 305px; - margin-left: auto; - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-table-hole.ne-full-width ne-table-wrap { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child { - flex: 1; - max-width: 305px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:last-child { - flex: 0; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-root-card-hole { - max-width: 752px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-root-card-hole.ne-full-width { - max-width: 100%; - margin-right: 305px; - margin-left: auto; - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-root-card-hole.ne-full-width > ne-card { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child { - flex: 1; - max-width: 305px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XXL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:last-child { - flex: 0; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-table-hole { - max-width: 752px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-table-hole.ne-full-width { - max-width: 100%; - margin-left: auto; - margin-right: 305px; - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-table-hole.ne-full-width ne-table-wrap { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child { - flex: 1; - max-width: 305px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child:first-child { - text-align: right; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:first-child:last-child { - text-align: left; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-table-hole.ne-full-width > .ne-i-filler:last-child { - flex: 0; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-root-card-hole { - max-width: 752px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-root-card-hole.ne-full-width { - max-width: 100%; - margin-left: auto; - margin-right: 305px; - justify-content: center; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-root-card-hole.ne-full-width > ne-card { - min-width: 750px; - width: auto; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child { - flex: 1; - max-width: 305px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child:first-child { - text-align: right; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:first-child:last-child { - text-align: left; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-ui-sidebar-visible.ne-viewport-size-sidebar-XL .ne-engine ne-root-card-hole.ne-full-width > .ne-i-filler:last-child { - flex: 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-editor .ne-ui-sidebar { - z-index: 3; -} -.ne-layout-mode-fixed .ne-editor-wrap, -.ne-layout-mode-adapt:not(.ne-simple-ui, .ne-small-ui) .ne-editor-wrap { - display: flex; - height: 100%; - overflow-x: hidden; - overflow-y: auto; - overflow-y: overlay; -} -.ne-layout-mode-fixed.ne-editor, -.ne-layout-mode-adapt.ne-editor { - height: 100%; -} -.ne-layout-mode-fixed .ne-editor-wrap-content, -.ne-layout-mode-adapt .ne-editor-wrap-content { - flex: 1; - min-width: 500px; -} -.ne-layout-mode-fixed .ne-editor-body, -.ne-layout-mode-adapt .ne-editor-body { - height: calc(100% - 50px); -} -.ne-layout-mode-fixed .ne-editor-outer-wrap-box, -.ne-layout-mode-adapt .ne-editor-outer-wrap-box { - min-width: 500px; - padding-bottom: 1px; -} -.ne-layout-mode-fixed .ne-editor-wrap-box, -.ne-layout-mode-adapt .ne-editor-wrap-box { - background-color: var(--lakex-editor-background-primary); -} -.ne-layout-mode-fixed .ne-engine, -.ne-layout-mode-adapt .ne-engine { - min-height: 1024px; - padding: 20px 40px 90px 40px; -} -.ne-layout-mode-fixed .ne-ui-sidebar, -.ne-layout-mode-adapt .ne-ui-sidebar { - width: 305px; - right: 0; -} -.ne-layout-mode-fixed ne-hole, -.ne-layout-mode-adapt ne-hole, -.ne-layout-mode-fixed ne-container-hole, -.ne-layout-mode-adapt ne-container-hole, -.ne-layout-mode-fixed ne-alert-hole, -.ne-layout-mode-adapt ne-alert-hole { - display: flex; - line-height: 1; -} -.ne-layout-mode-fixed ne-hole .ne-i-filler, -.ne-layout-mode-adapt ne-hole .ne-i-filler, -.ne-layout-mode-fixed ne-container-hole .ne-i-filler, -.ne-layout-mode-adapt ne-container-hole .ne-i-filler, -.ne-layout-mode-fixed ne-alert-hole .ne-i-filler, -.ne-layout-mode-adapt ne-alert-hole .ne-i-filler { - align-self: stretch; -} -.ne-layout-mode-fixed ne-hole .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-hole .ne-i-filler:first-child, -.ne-layout-mode-fixed ne-container-hole .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-container-hole .ne-i-filler:first-child, -.ne-layout-mode-fixed ne-alert-hole .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-alert-hole .ne-i-filler:first-child { - align-self: flex-start; -} -.ne-layout-mode-fixed ne-hole .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-hole .ne-i-filler:last-child, -.ne-layout-mode-fixed ne-container-hole .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-container-hole .ne-i-filler:last-child, -.ne-layout-mode-fixed ne-alert-hole .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-alert-hole .ne-i-filler:last-child { - align-self: flex-end; -} -.ne-layout-mode-fixed ne-table-hole, -.ne-layout-mode-adapt ne-table-hole, -.ne-layout-mode-fixed ne-root-card-hole, -.ne-layout-mode-adapt ne-root-card-hole { - display: flex; - align-items: flex-end; -} -.ne-layout-mode-fixed ne-table-hole > .ne-i-filler, -.ne-layout-mode-adapt ne-table-hole > .ne-i-filler, -.ne-layout-mode-fixed ne-root-card-hole > .ne-i-filler, -.ne-layout-mode-adapt ne-root-card-hole > .ne-i-filler { - line-height: 1; -} -.ne-layout-mode-fixed ne-table-hole > .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-table-hole > .ne-i-filler:first-child, -.ne-layout-mode-fixed ne-root-card-hole > .ne-i-filler:first-child, -.ne-layout-mode-adapt ne-root-card-hole > .ne-i-filler:first-child { - margin-top: 1em; - align-self: flex-start; -} -.ne-layout-mode-fixed ne-table-hole > .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-table-hole > .ne-i-filler:last-child, -.ne-layout-mode-fixed ne-root-card-hole > .ne-i-filler:last-child, -.ne-layout-mode-adapt ne-root-card-hole > .ne-i-filler:last-child { - margin-bottom: 1em; - align-self: flex-end; -} -.ne-ui-scrollbar-visible .ne-layout-mode-fixed .ne-ui-sidebar, -.ne-ui-scrollbar-visible .ne-layout-mode-adapt .ne-ui-sidebar { - right: 15px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading .ne-editor-extra-box { - max-width: 890px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading .ne-editor-extra-box, -.ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading .ne-editor-extra-box { - padding: 0 70px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading .ne-ui, -.ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading .ne-ui { - padding-left: 57px; - padding-right: 57px; -} -.ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading .ne-engine, -.ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading .ne-engine { - padding-left: 70px; - padding-right: 70px; -} -#app .ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading.ne-typography-desktop .ne-editor-extra-box { - max-width: 890px !important; -} -#app .ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading.ne-typography-desktop .ne-editor-extra-box, -#app .ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading.ne-typography-desktop .ne-editor-extra-box { - padding: 0 70px !important; -} -#app .ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading.ne-typography-desktop .ne-ui, -#app .ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading.ne-typography-desktop .ne-ui { - padding-left: 57px !important; - padding-right: 57px !important; -} -#app .ne-doc-major-editor .ne-layout-mode-fixed.ne-typography-show-heading.ne-typography-desktop .ne-engine, -#app .ne-doc-major-editor .ne-layout-mode-adapt.ne-typography-show-heading.ne-typography-desktop .ne-engine { - padding-left: 70px !important; - padding-right: 70px !important; -} -.ne-doc-major-editor .ne-layout-mode-adapt .ne-editor-extra-box { - padding: 0 40px; -} -.ne-doc-major-editor .ne-layout-mode-adapt .ne-ui { - padding: 0 27px; -} -.ne-doc-major-editor .ne-layout-mode-adapt .ne-ui .ne-ui-toolbar { - justify-content: flex-start; -} -.ne-doc-major-editor .ne-layout-mode-adapt .ne-ui:after { - content: ' '; - height: 1px; - background: var(--lakex-editor-background-tertiary); - position: absolute; - bottom: 0; - left: 0; - right: 0; -} -.ne-doc-major-editor .ne-layout-mode-adapt.ne-normal-toc:not(.ne-ui-sidebar-visible) .ne-engine > * { - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-adapt.ne-normal-toc:not(.ne-ui-sidebar-visible) .ne-editor-extra-box { - margin-right: 280px; -} -.ne-doc-major-editor .ne-layout-mode-adapt.ne-ui-sidebar-visible .ne-engine > * { - margin-right: 305px; -} -.ne-doc-major-editor .ne-layout-mode-adapt.ne-ui-sidebar-visible .ne-editor-extra-box { - margin-right: 305px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.list-type-selector { - padding: 8px; - padding-right: 2px; - white-space: nowrap; -} -.list-type-selector ul { - display: inline-block; - width: 85px; - height: 85px; - border: 1px solid var(--lakex-editor-border-primary); - margin: 0; - margin-right: 6px; - border-radius: 6px; - font-size: 12px; - line-height: 16px; - cursor: pointer; - padding: 4px 0; -} -.list-type-selector ul:hover { - border-color: var(--lakex-editor-card-border-hover); -} -.list-type-selector ul.active { - border-color: var(--lakex-editor-card-border-selected); -} -.list-type-selector li { - display: flex; - align-items: center; - padding-right: 9px; - line-height: 15px; -} -.list-type-selector li .ne-list-symbol[data-level='0'] { - margin-left: 9px; -} -.list-type-selector li .ne-list-symbol[data-level='1'] { - margin-left: 19px; -} -.list-type-selector li .ne-list-symbol[data-level='2'] { - margin-left: 34px; -} -.list-type-selector li .ne-list-symbol { - padding-right: 6px; - font-family: Helvetica Neue, Consolas; -} -.list-type-selector li .ne-list-symbol:after { - content: '.'; -} -.list-type-selector li .ne-list-symbol[data-type='1'][data-level='1']::after { - content: ''; -} -.list-type-selector li .ne-list-symbol[data-type='1'][data-level='0']::after { - content: '、'; - width: 0.5em; - overflow: hidden; - display: inline-block; - vertical-align: bottom; -} -.list-type-selector li .content { - flex: 1; - height: 3px; - background-color: var(--lakex-editor-border-primary); -} -.index-type-selector { - padding: 8px; - padding-right: 2px; - white-space: nowrap; -} -.index-type-selector ul { - display: inline-block; - width: 85px; - height: 85px; - border: 1px solid var(--lakex-editor-border-primary); - margin: 0; - margin-right: 6px; - border-radius: 6px; - font-size: 12px; - line-height: 16px; - cursor: pointer; - padding: 4px 0; -} -.index-type-selector ul:hover { - border-color: var(--lakex-editor-card-border-hover); -} -.index-type-selector ul.active { - border-color: var(--lakex-editor-card-border-selected); -} -.index-type-selector li { - display: flex; - align-items: center; - padding-right: 9px; - margin-left: 9px; - line-height: 15px; -} -.index-type-selector li .ne-list-symbol { - padding-right: 6px; - font-family: Helvetica Neue, Consolas; -} -.index-type-selector li .ne-list-symbol:after { - content: '.'; -} -.index-type-selector li .ne-list-symbol[data-type='1'][data-level='1']::after { - content: ''; -} -.index-type-selector li .ne-list-symbol[data-type='1'][data-level='0']::after { - content: '、'; - width: 0.5em; - overflow: hidden; - display: inline-block; - vertical-align: bottom; -} -.index-type-selector li .content { - flex: 1; - height: 3px; - border-radius: 2px; - margin: 3px 0; - background-color: var(--lakex-editor-border-primary); -} -.index-type-selector li .content[data-level="0"] { - height: 9px; -} -.index-type-selector li .content[data-level="1"] { - height: 7px; -} -.index-type-selector li .content[data-level="2"] { - height: 5px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.order-list-index-menu-panel { - border-radius: 6px; - border: 1px solid var(--lakex-editor-border-primary); - padding: 5px 4px; - background-color: var(--lakex-editor-color-white); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); -} -.order-list-index-menu-panel .order-list-index-menu-item { - height: 34px; - line-height: 34px; - border-radius: 6px; - min-width: 103px; - padding-left: 12px; - background-color: transparent; - cursor: pointer; - position: relative; - color: var(--lakex-editor-text-color); -} -.order-list-index-menu-panel .order-list-index-menu-item.disabled { - cursor: not-allowed; - color: var(--lakex-editor-text-disable); - user-select: none; -} -.order-list-index-menu-panel .order-list-index-menu-item:hover, -.order-list-index-menu-panel .order-list-index-menu-item.active { - background-color: var(--lakex-editor-color-grey3); -} -.order-list-index-menu-panel .order-list-index-menu-item > div.ne-icon-kitchen, -.order-list-index-menu-panel .order-list-index-menu-item > div.ne-lark-icon { - right: 5px; - top: 50%; - position: absolute; - transform: translateY(-50%); -} -.order-list-index-menu-panel.enUS .order-list-index-menu-item { - min-width: 160px; -} -.ant-popover.order-list-index-menu-popover .ant-popover-inner-content { - padding: 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card[data-card-name='slash'] .ne-card-container { - white-space: nowrap; -} -ne-card[data-card-name='slash'].ne-focused { - background: transparent !important; -} -.ne-slash-overlay { - z-index: 3; -} -.ne-ui-slash-command-view { - display: inline; - position: relative; -} -.ne-ui-slash-command-view .ne-ui-slash-command-input-wrap { - display: inline; - position: relative; - min-width: 50px; - white-space: nowrap; - overflow: hidden; -} -.ne-ui-slash-command-view .ne-ui-slash-command-input-wrap .ne-ui-slash-command-hidden { - color: transparent; - padding: 0 5px; - min-width: 60px; -} -.ne-ui-slash-command-view .ne-ui-slash-command-input { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 100%; - border: none; - background: none; - outline: none; - padding: 0; -} -.ne-ui-slash-command-view .ne-ui-slash-command-input::placeholder { - color: var(--lakex-editor-text-disable); -} -.ne-ui-slash-command-menu .ne-ui-card-menu-content { - max-height: 216px; - width: 750px; -} -.ne-ui-search-card-menu.ne-ui-slash-card-select-menu { - max-height: 100%; - height: auto; - overflow-y: auto; -} -.ne-ui-search-card-menu.ne-ui-slash-card-select-menu .ne-ui-card-menu-content { - padding-top: 7px; - height: auto; -} -.lock-to-bottom .ne-ui-search-card-menu.ne-ui-slash-card-select-menu { - position: absolute; - bottom: 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.table-head-overlay { - color: var(--lakex-editor-text-color); - width: max-content; -} -.table-head-overlay .ant-popover-arrow { - display: none; -} -.table-head-overlay .menu-item { - display: flex; - padding: 12px 16px; - align-items: center; -} -.table-head-overlay .menu-item .table-head-color-icon { - margin-left: 25px; -} -.table-head-overlay .menu-item > span { - flex-shrink: 0; - margin-left: 12px; -} -.table-head-overlay .menu-item .ant-switch-small { - margin-left: 30px; -} -.table-head-overlay .menu-item:hover { - background-color: var(--lakex-editor-background-primary-hover); -} -.table-head-color-popup { - margin-top: 4px; - color: var(--lakex-editor-text-color); -} -.table-head-color-popup-buttons { - display: flex; -} -.table-head-color-popup-custom { - margin-top: 16px; - margin-bottom: 12px; -} -.table-head-color-popup-actions { - display: flex; - align-items: center; -} -.table-head-color-popup-actions .table-head-color-popup-divider { - width: 1px; - height: 20px; - margin-left: 12px; - margin-right: 6px; - background-color: var(--lakex-editor-border-primary); -} -.table-head-color-icon { - width: 20px; - height: 20px; - border-radius: 4px; - border: solid 1px var(--lakex-editor-border-primary); - user-select: none; - cursor: pointer; - font-weight: bolder; - display: flex; - align-items: center; - justify-content: center; - margin: 0 5px; -} -.table-head-color-icon:first-child { - margin-left: 0; -} -.table-head-color-icon:last-child { - margin-right: 0; -} -.table-head-color-icon:hover { - border-color: var(--lakex-editor-card-border-hover); -} -.table-head-color-icon-selected { - border-color: var(--lakex-editor-card-border-selected); -} -.table-head-color-icon-default { - background-color: var(--lakex-editor-background-secondary); - color: var(--lakex-editor-text-color); -} -.table-head-color-icon-blue { - background-color: var(--lakex-editor-color-blue1); - color: var(--lakex-editor-color-blue9); -} -.table-head-color-icon-green { - background-color: var(--lakex-editor-color-peaGreen1); - color: var(--lakex-editor-color-peaGreen9); -} -.table-head-color-icon-red { - background-color: var(--lakex-editor-color-red1); - color: var(--lakex-editor-color-red9); -} -.table-head-color-icon-inverseGreen { - background-color: var(--lakex-editor-color-peaGreen8); - color: var(--lakex-editor-color-peaGreen1); -} -.table-head-color-icon-inverseBlue { - background-color: var(--lakex-editor-color-blue8); - color: var(--lakex-editor-color-blue1); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-doc-note-editor { - position: relative; - z-index: 10; -} -.ne-doc-note-editor .ne-note-ui.ne-editor { - display: flex; - flex-direction: column; - height: 100%; - border-radius: 4px; - background-color: var(--lakex-editor-background-primary); -} -.ne-doc-note-editor .ne-note-ui .ne-ui { - position: static; - z-index: auto; - margin-top: 12px; -} -.ne-doc-note-editor .ne-note-ui .ne-ui div.ne-icon { - font-size: 20px; - margin: 6px 8px; -} -.ne-doc-note-editor .ne-note-ui .ne-ui div.ne-icon-expand { - font-size: 10px; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-body { - height: auto; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap { - display: flex; - height: 100%; - overflow: visible; - padding-top: 0; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap:before { - display: none; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap:after { - display: none; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap .ne-editor-wrap-content { - flex: 1; - width: 100%; - max-height: calc(100vh - 270px); - min-height: 228px; - overflow: auto; - overflow: overlay; - margin: 0; - min-width: auto; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap .ne-editor-outer-wrap-box, -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap .ne-editor-wrap-box, -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap .ne-editor-box, -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap .ne-engine-box { - height: auto; - min-height: 100%; - min-width: auto; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-editor-wrap .ne-editor-wrap-box { - border: none; - box-shadow: none; - background: none; - margin-bottom: 0; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-body .ne-ui-sidebar { - display: none !important; -} -.ne-doc-note-editor .ne-note-ui.ne-ui-sidebar-visible .ne-editor-wrap:after { - display: none; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-outer-wrap-box { - width: auto; - padding-bottom: 0; -} -.ne-doc-note-editor .ne-note-ui .ne-engine { - padding-top: 16px; - padding-left: 24px; - padding-right: 24px; - padding-bottom: 8px; - min-height: 40vh; - width: 100%; -} -.ne-doc-note-editor .ne-note-ui .ne-engine ne-heading-anchor { - display: none !important; -} -.ne-doc-note-editor .ne-note-ui .ne-editor-extra-box { - display: none; -} -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar { - position: static; - border: none; - background-color: var(--lakex-editor-background-primary); - justify-content: flex-start; - border-radius: 4px; -} -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar .ne-ui-inner-toolbar { - position: static; - margin-left: 8px; -} -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar .ne-ui-toolbar-button, -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar .ne-ui-toolbar-toggle-button, -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar .ne-ui-toolbar-file-button, -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar .ne-ui-toolbar-file-button.ant-btn { - height: 32px; - width: 32px; - border-radius: 4px; - margin: 8px 0 8px 12px; -} -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar .ne-ui-toolbar-select-button { - height: 24px; - padding: 0 0 0 4px; -} -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar-fullscreen { - position: absolute; - top: 0; - right: 0; - z-index: 3; - width: 30px; - height: 30px; -} -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar-fullscreen > .ne-icon { - font-size: 10px; -} -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar-fullscreen.ne-ui-toolbar-button { - min-width: 30px; - margin-right: 0; -} -.ne-doc-note-editor .ne-note-ui .ne-ui-toolbar-fullscreen.ne-ui-toolbar-button:hover { - background: none; -} -.ne-doc-note-editor .ne-note-ui .ne-container-toolbar { - display: none !important; -} -.ne-doc-note-editor .ne-note-ui .ne-engine ne-table-wrap.ne-table-focus { - margin-top: 0; -} -.ne-doc-note-editor .ne-note-ui .ne-engine ne-table-wrap.ne-table-focus ne-table-inner-wrap { - padding-top: 14px; -} -.ne-doc-note-editor .ne-note-ui .ne-engine ne-table-wrap.ne-table-focus .ne-ui-table { - margin-top: 0; -} -.ne-doc-note-editor .ne-note-ui .ne-engine ne-table-wrap.ne-table-focus.ne-ui-table-left-shadow:before, -.ne-doc-note-editor .ne-note-ui .ne-engine ne-table-wrap.ne-table-focus.ne-ui-table-right-shadow:after { - margin-top: 14px; -} -.ne-doc-note-editor .ne-note-ui .ne-table-container-toolbar { - display: none !important; -} -.ne-doc-note-editor .ne-note-ui ne-table-hole:first-child { - margin-top: -14px; -} -.ne-doc-note-editor.ne-ui-fullscreen { - position: fixed; - z-index: 1010; -} -.ne-doc-note-editor.ne-ui-fullscreen .ne-editor-wrap-content { - overflow-y: auto; -} -.ne-doc-note-mobile-editor .ne-note-ui.ne-editor { - flex-direction: column-reverse; -} -.ne-doc-note-mobile-editor .ne-note-ui .ne-editor-body .ne-editor-wrap .ne-editor-wrap-content { - flex: 1; - width: 100%; - max-height: 100vh; - min-height: 100%; - overflow: scroll; - margin: 0; -} -.ne-doc-note-mobile-editor .ne-note-ui .ne-ui { - margin-bottom: 0; - margin-top: 0; - border-top: 1px solid var(--lakex-editor-border-primary); - padding: 8px; -} -.ne-overlay-with-note-ui .ne-ui-card-menu, -.ne-note-ui .ne-ui-card-menu { - padding: 10px 0; -} -.ne-overlay-with-note-ui .ne-ui-card-menu-content, -.ne-note-ui .ne-ui-card-menu-content { - min-width: 124px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-simple-ui.ne-editor { - display: flex; - flex-direction: column-reverse; - height: auto; - border-radius: 4px; - background-color: var(--lakex-editor-background-primary); -} -.ne-simple-ui .ne-ui { - position: static; - z-index: auto; -} -.ne-simple-ui .ne-ui-sidebar { - display: none !important; -} -.ne-simple-ui.ne-ui-sidebar-visible .ne-editor-wrap:after { - display: none; -} -.ne-simple-ui .ne-editor-wrap { - display: flex; - height: auto; - overflow: visible; - padding-top: 0; -} -.ne-simple-ui .ne-editor-wrap:before { - display: none; -} -.ne-simple-ui .ne-editor-wrap:after { - display: none; -} -.ne-simple-ui .ne-editor-wrap-box { - border: none; - box-shadow: none; - background: none; - margin-bottom: 0; -} -.ne-simple-ui .ne-editor-wrap-content { - flex: 1; - width: 100%; - min-width: auto; - margin: 0; -} -.ne-simple-ui .ne-editor-outer-wrap-box { - width: auto; - min-width: auto; - padding-bottom: 0; -} -.ne-simple-ui .ne-editor-body { - height: auto; -} -.ne-simple-ui .ne-engine { - padding: 8px; - min-height: 84px; -} -.ne-simple-ui .ne-engine ne-heading-anchor { - display: none !important; -} -.ne-simple-ui .ne-editor-extra-box { - display: none; -} -.ne-simple-ui .ne-ui-toolbar { - position: static; - border: none; - background-color: var(--lakex-editor-background-primary); - justify-content: flex-start; - padding-left: 8px; - height: 32px; - border-radius: 4px; -} -.ne-simple-ui .ne-ui-inner-toolbar { - position: static; -} -.ne-simple-ui .ne-ui-toolbar-button, -.ne-simple-ui .ne-ui-toolbar-toggle-button, -.ne-simple-ui .ne-ui-toolbar-file-button { - min-width: 24px; - height: 24px; -} -.ne-simple-ui .ne-ui-toolbar-select-button { - height: 24px; - padding: 0 0 0 4px; - margin-right: 8px; -} -.ne-simple-ui .ne-ui-toolbar-fullscreen { - position: absolute; - top: 0; - right: 0; - z-index: 3; - width: 30px; - height: 30px; -} -.ne-simple-ui .ne-ui-toolbar-fullscreen > .ne-icon { - font-size: 10px; -} -.ne-simple-ui .ne-ui-toolbar-fullscreen.ne-ui-toolbar-button { - min-width: 30px; - margin-right: 0; -} -.ne-simple-ui .ne-ui-toolbar-fullscreen.ne-ui-toolbar-button:hover { - background: none; -} -.ne-simple-ui .ne-container-toolbar, -.ne-simple-ui .ne-container-right-toolbar, -.ne-simple-ui .ne-brick-toolbar { - display: none !important; -} -.ne-simple-ui .ne-engine ne-table-wrap.ne-table-focus { - margin-top: 0; -} -.ne-simple-ui .ne-engine ne-table-wrap.ne-table-focus ne-table-inner-wrap { - padding-top: 14px; -} -.ne-simple-ui .ne-engine ne-table-wrap.ne-table-focus .ne-ui-table { - margin-top: 0; -} -.ne-simple-ui .ne-engine ne-table-wrap.ne-table-focus.ne-ui-table-left-shadow:before, -.ne-simple-ui .ne-engine ne-table-wrap.ne-table-focus.ne-ui-table-right-shadow:after { - margin-top: 14px; -} -.ne-simple-ui .ne-table-container-toolbar { - display: none !important; -} -.ne-simple-ui ne-table-hole:first-child { - margin-top: -14px; -} -.ne-overlay-with-simple-ui .ne-ui-card-select-menu, -.ne-simple-ui .ne-ui-card-select-menu { - padding: 10px 0; -} -.ne-overlay-with-simple-ui .ne-ui-card-select-menu .ne-ui-card-menu-content, -.ne-simple-ui .ne-ui-card-select-menu .ne-ui-card-menu-content { - min-width: 124px; -} -.ne-ui-scrollbar-visible .ne-simple-ui .ne-editor-wrap { - overflow-y: visible; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-editor.ne-small-ui .ne-ui { - background-color: var(--lakex-editor-background-primary); -} -.ne-editor.ne-small-ui .ne-ui.more-opened { - z-index: 6; -} -.ne-editor.ne-small-ui .ne-ui:has(.ne-ui-dropdown-open) { - z-index: 6; -} -.ne-editor.ne-small-ui .ne-editor-wrap { - overflow: visible; - z-index: 5; -} -.ne-editor.ne-small-ui .ne-editor-wrap .ne-editor-wrap-content { - overflow: auto; - overflow: overlay; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-codeblock-overlay .ant-popover-inner, -.ant-menu-submenu-popup.codeblock-pop-menu { - padding: 0; - background: #ffffff; - box-shadow: 0 1px 4px -2px rgba(0, 0, 0, 0.13), 0 2px 8px 0 rgba(0, 0, 0, 0.08), 0 8px 16px 4px rgba(0, 0, 0, 0.04); - border-radius: 6px; -} -.ne-codeblock-overlay .ant-popover-inner .ant-menu.ant-menu-sub.ant-menu-vertical, -.ant-menu-submenu-popup.codeblock-pop-menu .ant-menu.ant-menu-sub.ant-menu-vertical { - box-shadow: none; -} -.ne-codeblock-overlay .ant-popover-inner .ant-menu .ant-menu-item, -.ant-menu-submenu-popup.codeblock-pop-menu .ant-menu .ant-menu-item { - color: inherit !important; -} -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical { - max-height: 400px; - overflow: auto; -} -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .codeblock-search { - position: absolute; - top: 0; - left: 0; - right: 0; - height: 50px; - line-height: 50px; - padding: 0 8px; - z-index: 3; -} -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .codeblock-search .ant-input { - border-radius: 6px; -} -.ant-menu-submenu.codeblock-pop-menu.showSearch { - padding-top: 42px; -} -.ant-popover .ant-menu.codeblock-pop-menu, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical { - min-width: 220px; - padding: 8px; -} -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-item, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-item, -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu { - height: 36px; - line-height: 36px; - border-radius: 6px; - vertical-align: middle; -} -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-item.flexable, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-item.flexable, -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu.flexable, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu.flexable { - display: flex; - align-items: center; -} -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-item-divider, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-item-divider { - margin: 4px -8px; -} -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu-title, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu-title { - margin: 0; - line-height: 36px; - height: 36px; - color: inherit !important; -} -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu-active, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu-active, -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu-arrow, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu-arrow, -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu-open, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu-open, -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu-active .ant-menu-submenu-title:hover, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu-active .ant-menu-submenu-title:hover { - color: inherit !important; -} -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-item:hover, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-item:hover, -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-active, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-active, -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu-open, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu-open, -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-submenu-active, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-submenu-active { - background-color: #f5f5f5; - color: inherit !important; -} -.ant-popover .ant-menu.codeblock-pop-menu .ant-menu-item.right-contains, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-item.right-contains { - background-color: transparent !important; - vertical-align: middle; - display: flex; - align-items: center; - cursor: default; -} -.ant-popover .ant-menu.codeblock-pop-menu .right-slot, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .right-slot { - flex: 1; - height: 100%; - display: inline-flex; - justify-content: right; - align-items: center; - vertical-align: middle; -} -.ant-popover .ant-menu.codeblock-pop-menu .right-slot.label, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .right-slot.label { - color: #bec0bf; -} -.ant-popover .ant-menu.codeblock-pop-menu .check-space, -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical .check-space { - margin-left: -16px; - margin-right: 4px; - margin-top: -2px; - width: 32px; - display: inline-flex; - height: 100%; - align-items: center; - justify-content: center; - vertical-align: middle; -} -.ant-menu-submenu.codeblock-pop-menu > .ant-menu.ant-menu-sub.ant-menu-vertical { - min-width: 184px; - border-radius: 6px; -} -.ne-codeblock-overlay-GithubLight .ant-popover-inner, -.codeblock-pop-menu-GithubLight .ant-popover-inner, -.ne-codeblock-overlay-BracketLightsPro .ant-popover-inner, -.codeblock-pop-menu-BracketLightsPro .ant-popover-inner, -.ne-codeblock-overlay-default .ant-popover-inner, -.codeblock-pop-menu-default .ant-popover-inner, -.ne-codeblock-overlay-GithubLight .ant-menu-sub, -.codeblock-pop-menu-GithubLight .ant-menu-sub, -.ne-codeblock-overlay-BracketLightsPro .ant-menu-sub, -.codeblock-pop-menu-BracketLightsPro .ant-menu-sub, -.ne-codeblock-overlay-default .ant-menu-sub, -.codeblock-pop-menu-default .ant-menu-sub { - background-color: #fff !important; - backdrop-filter: none !important; - border: none !important; - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05) !important; - color: #585a5a; -} -.ne-codeblock-overlay-GithubLight .ant-popover-inner .codeblock-pop-menu, -.codeblock-pop-menu-GithubLight .ant-popover-inner .codeblock-pop-menu, -.ne-codeblock-overlay-BracketLightsPro .ant-popover-inner .codeblock-pop-menu, -.codeblock-pop-menu-BracketLightsPro .ant-popover-inner .codeblock-pop-menu, -.ne-codeblock-overlay-default .ant-popover-inner .codeblock-pop-menu, -.codeblock-pop-menu-default .ant-popover-inner .codeblock-pop-menu, -.ne-codeblock-overlay-GithubLight .ant-menu-sub .codeblock-pop-menu, -.codeblock-pop-menu-GithubLight .ant-menu-sub .codeblock-pop-menu, -.ne-codeblock-overlay-BracketLightsPro .ant-menu-sub .codeblock-pop-menu, -.codeblock-pop-menu-BracketLightsPro .ant-menu-sub .codeblock-pop-menu, -.ne-codeblock-overlay-default .ant-menu-sub .codeblock-pop-menu, -.codeblock-pop-menu-default .ant-menu-sub .codeblock-pop-menu { - color: #585a5a; -} -.ne-codeblock-overlay-GithubLight .ant-popover-inner .ant-menu-item-divider, -.codeblock-pop-menu-GithubLight .ant-popover-inner .ant-menu-item-divider, -.ne-codeblock-overlay-BracketLightsPro .ant-popover-inner .ant-menu-item-divider, -.codeblock-pop-menu-BracketLightsPro .ant-popover-inner .ant-menu-item-divider, -.ne-codeblock-overlay-default .ant-popover-inner .ant-menu-item-divider, -.codeblock-pop-menu-default .ant-popover-inner .ant-menu-item-divider, -.ne-codeblock-overlay-GithubLight .ant-menu-sub .ant-menu-item-divider, -.codeblock-pop-menu-GithubLight .ant-menu-sub .ant-menu-item-divider, -.ne-codeblock-overlay-BracketLightsPro .ant-menu-sub .ant-menu-item-divider, -.codeblock-pop-menu-BracketLightsPro .ant-menu-sub .ant-menu-item-divider, -.ne-codeblock-overlay-default .ant-menu-sub .ant-menu-item-divider, -.codeblock-pop-menu-default .ant-menu-sub .ant-menu-item-divider { - background-color: rgba(0, 0, 0, 0.06); -} -.ne-codeblock-overlay-GithubLight .ant-popover-inner .codeblock-search, -.codeblock-pop-menu-GithubLight .ant-popover-inner .codeblock-search, -.ne-codeblock-overlay-BracketLightsPro .ant-popover-inner .codeblock-search, -.codeblock-pop-menu-BracketLightsPro .ant-popover-inner .codeblock-search, -.ne-codeblock-overlay-default .ant-popover-inner .codeblock-search, -.codeblock-pop-menu-default .ant-popover-inner .codeblock-search, -.ne-codeblock-overlay-GithubLight .ant-menu-sub .codeblock-search, -.codeblock-pop-menu-GithubLight .ant-menu-sub .codeblock-search, -.ne-codeblock-overlay-BracketLightsPro .ant-menu-sub .codeblock-search, -.codeblock-pop-menu-BracketLightsPro .ant-menu-sub .codeblock-search, -.ne-codeblock-overlay-default .ant-menu-sub .codeblock-search, -.codeblock-pop-menu-default .ant-menu-sub .codeblock-search { - background-color: #fff; - border-top: 1px solid rgba(255, 255, 255, 0.12); - border-left: 1px solid rgba(255, 255, 255, 0.12); - border-right: 1px solid rgba(255, 255, 255, 0.12); -} -.ne-codeblock-overlay-GithubLight .ant-popover-inner .codeblock-search .ant-input, -.codeblock-pop-menu-GithubLight .ant-popover-inner .codeblock-search .ant-input, -.ne-codeblock-overlay-BracketLightsPro .ant-popover-inner .codeblock-search .ant-input, -.codeblock-pop-menu-BracketLightsPro .ant-popover-inner .codeblock-search .ant-input, -.ne-codeblock-overlay-default .ant-popover-inner .codeblock-search .ant-input, -.codeblock-pop-menu-default .ant-popover-inner .codeblock-search .ant-input, -.ne-codeblock-overlay-GithubLight .ant-menu-sub .codeblock-search .ant-input, -.codeblock-pop-menu-GithubLight .ant-menu-sub .codeblock-search .ant-input, -.ne-codeblock-overlay-BracketLightsPro .ant-menu-sub .codeblock-search .ant-input, -.codeblock-pop-menu-BracketLightsPro .ant-menu-sub .codeblock-search .ant-input, -.ne-codeblock-overlay-default .ant-menu-sub .codeblock-search .ant-input, -.codeblock-pop-menu-default .ant-menu-sub .codeblock-search .ant-input { - background-color: #fff; -} -.ne-codeblock-overlay-OneDarkPro, -.codeblock-pop-menu-OneDarkPro, -.ne-codeblock-overlay-NightOwl, -.codeblock-pop-menu-NightOwl, -.ne-codeblock-overlay-Darcula, -.codeblock-pop-menu-Darcula { - background: transparent !important; -} -.ne-codeblock-overlay-OneDarkPro .ant-popover-inner, -.codeblock-pop-menu-OneDarkPro .ant-popover-inner, -.ne-codeblock-overlay-NightOwl .ant-popover-inner, -.codeblock-pop-menu-NightOwl .ant-popover-inner, -.ne-codeblock-overlay-Darcula .ant-popover-inner, -.codeblock-pop-menu-Darcula .ant-popover-inner, -.ne-codeblock-overlay-OneDarkPro .ant-menu-sub, -.codeblock-pop-menu-OneDarkPro .ant-menu-sub, -.ne-codeblock-overlay-NightOwl .ant-menu-sub, -.codeblock-pop-menu-NightOwl .ant-menu-sub, -.ne-codeblock-overlay-Darcula .ant-menu-sub, -.codeblock-pop-menu-Darcula .ant-menu-sub { - background-color: #1f1f1f !important; - border: 1px solid rgba(255, 255, 255, 0.12) !important; - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05) !important; - color: rgba(255, 255, 255, 0.88); -} -.ne-codeblock-overlay-OneDarkPro .ant-popover-inner .codeblock-pop-menu, -.codeblock-pop-menu-OneDarkPro .ant-popover-inner .codeblock-pop-menu, -.ne-codeblock-overlay-NightOwl .ant-popover-inner .codeblock-pop-menu, -.codeblock-pop-menu-NightOwl .ant-popover-inner .codeblock-pop-menu, -.ne-codeblock-overlay-Darcula .ant-popover-inner .codeblock-pop-menu, -.codeblock-pop-menu-Darcula .ant-popover-inner .codeblock-pop-menu, -.ne-codeblock-overlay-OneDarkPro .ant-menu-sub .codeblock-pop-menu, -.codeblock-pop-menu-OneDarkPro .ant-menu-sub .codeblock-pop-menu, -.ne-codeblock-overlay-NightOwl .ant-menu-sub .codeblock-pop-menu, -.codeblock-pop-menu-NightOwl .ant-menu-sub .codeblock-pop-menu, -.ne-codeblock-overlay-Darcula .ant-menu-sub .codeblock-pop-menu, -.codeblock-pop-menu-Darcula .ant-menu-sub .codeblock-pop-menu { - color: rgba(255, 255, 255, 0.88); -} -.ne-codeblock-overlay-OneDarkPro .ant-popover-inner .ant-menu-item-divider, -.codeblock-pop-menu-OneDarkPro .ant-popover-inner .ant-menu-item-divider, -.ne-codeblock-overlay-NightOwl .ant-popover-inner .ant-menu-item-divider, -.codeblock-pop-menu-NightOwl .ant-popover-inner .ant-menu-item-divider, -.ne-codeblock-overlay-Darcula .ant-popover-inner .ant-menu-item-divider, -.codeblock-pop-menu-Darcula .ant-popover-inner .ant-menu-item-divider, -.ne-codeblock-overlay-OneDarkPro .ant-menu-sub .ant-menu-item-divider, -.codeblock-pop-menu-OneDarkPro .ant-menu-sub .ant-menu-item-divider, -.ne-codeblock-overlay-NightOwl .ant-menu-sub .ant-menu-item-divider, -.codeblock-pop-menu-NightOwl .ant-menu-sub .ant-menu-item-divider, -.ne-codeblock-overlay-Darcula .ant-menu-sub .ant-menu-item-divider, -.codeblock-pop-menu-Darcula .ant-menu-sub .ant-menu-item-divider { - background-color: rgba(48, 48, 48, 0.37); -} -.ne-codeblock-overlay-OneDarkPro .ant-menu-submenu-active, -.codeblock-pop-menu-OneDarkPro .ant-menu-submenu-active, -.ne-codeblock-overlay-NightOwl .ant-menu-submenu-active, -.codeblock-pop-menu-NightOwl .ant-menu-submenu-active, -.ne-codeblock-overlay-Darcula .ant-menu-submenu-active, -.codeblock-pop-menu-Darcula .ant-menu-submenu-active, -.ne-codeblock-overlay-OneDarkPro .ant-menu-item-active, -.codeblock-pop-menu-OneDarkPro .ant-menu-item-active, -.ne-codeblock-overlay-NightOwl .ant-menu-item-active, -.codeblock-pop-menu-NightOwl .ant-menu-item-active, -.ne-codeblock-overlay-Darcula .ant-menu-item-active, -.codeblock-pop-menu-Darcula .ant-menu-item-active { - background-color: rgba(255, 255, 255, 0.12) !important; -} -.ne-codeblock-overlay-OneDarkPro .codeblock-search, -.codeblock-pop-menu-OneDarkPro .codeblock-search, -.ne-codeblock-overlay-NightOwl .codeblock-search, -.codeblock-pop-menu-NightOwl .codeblock-search, -.ne-codeblock-overlay-Darcula .codeblock-search, -.codeblock-pop-menu-Darcula .codeblock-search { - background-color: #1f1f1f; - border-top: 1px solid rgba(255, 255, 255, 0.12); - border-left: 1px solid rgba(255, 255, 255, 0.12); - border-right: 1px solid rgba(255, 255, 255, 0.12); -} -.ne-codeblock-overlay-OneDarkPro .codeblock-search .ant-input, -.codeblock-pop-menu-OneDarkPro .codeblock-search .ant-input, -.ne-codeblock-overlay-NightOwl .codeblock-search .ant-input, -.codeblock-pop-menu-NightOwl .codeblock-search .ant-input, -.ne-codeblock-overlay-Darcula .codeblock-search .ant-input, -.codeblock-pop-menu-Darcula .codeblock-search .ant-input { - background-color: #1f1f1f; -} -[data-kumuhana='pouli'] .ne-codeblock-overlay-OneDarkPro .ant-popover-inner .ant-menu-item-divider, -[data-kumuhana='pouli'] .codeblock-pop-menu-OneDarkPro .ant-popover-inner .ant-menu-item-divider, -[data-kumuhana='pouli'] .ne-codeblock-overlay-NightOwl .ant-popover-inner .ant-menu-item-divider, -[data-kumuhana='pouli'] .codeblock-pop-menu-NightOwl .ant-popover-inner .ant-menu-item-divider, -[data-kumuhana='pouli'] .ne-codeblock-overlay-Darcula .ant-popover-inner .ant-menu-item-divider, -[data-kumuhana='pouli'] .codeblock-pop-menu-Darcula .ant-popover-inner .ant-menu-item-divider, -[data-kumuhana='pouli'] .ne-codeblock-overlay-OneDarkPro .ant-menu-sub .ant-menu-item-divider, -[data-kumuhana='pouli'] .codeblock-pop-menu-OneDarkPro .ant-menu-sub .ant-menu-item-divider, -[data-kumuhana='pouli'] .ne-codeblock-overlay-NightOwl .ant-menu-sub .ant-menu-item-divider, -[data-kumuhana='pouli'] .codeblock-pop-menu-NightOwl .ant-menu-sub .ant-menu-item-divider, -[data-kumuhana='pouli'] .ne-codeblock-overlay-Darcula .ant-menu-sub .ant-menu-item-divider, -[data-kumuhana='pouli'] .codeblock-pop-menu-Darcula .ant-menu-sub .ant-menu-item-divider { - background-color: #303030; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card.ne-card-hovered .codeblock-menu.collapsed .collapsed-btn { - display: block; -} -.ne-codeblock-collapsed .codeblock-menu .collapsed-btn { - display: none !important; -} -.ne-codeblock[theme].ne-codeblock-collapsed .codeblock-menu { - border-bottom: none; -} -.codeblock-menu { - display: block; - width: 100%; - display: flex; - height: 38px; - line-height: 38px; - align-items: center; - margin-top: -5px; - position: relative; - z-index: 3; - transition: all 200ms; - font-size: 14px; -} -.codeblock-menu .start-nav { - flex: 1; - display: flex; - align-items: center; - overflow: hidden; - padding-left: 11px; -} -.codeblock-menu .end-nav { - padding-right: 11px; - display: flex; - justify-content: flex-end; - align-items: center; -} -.codeblock-menu.collapsed { - height: 0; - line-height: 0; - margin-bottom: 6px; - border-bottom: none; -} -.codeblock-menu.collapsed :not(.collapsed-btn) { - display: none; -} -.codeblock-menu.focused.collapsed .collapsed-btn { - display: block; -} -.codeblock-menu.collapsed .collapsed-btn { - height: 13px; - width: 48px; - top: 0; - border-top-left-radius: 0; - border-top-right-radius: 0; - transform: translate(-50%, 0%); - display: none; -} -.codeblock-menu.collapsed .collapsed-btn::after { - transform: scale(1.4) translate(-1.5px, -50%) rotate(180deg); - margin-right: -2px; -} -.codeblock-menu:hover .collapsed-btn { - display: block; -} -.codeblock-menu .collapsed-btn { - display: none; - position: absolute; - left: 50%; - top: 100%; - transform: translate(-50%, -50%); - width: 48px; - height: 11px; - border-radius: 5.5px; - cursor: pointer; - transition: height 200ms; - margin-left: -1px; -} -.codeblock-menu .collapsed-btn::after { - content: ''; - position: absolute; - top: 50%; - left: 50%; - width: 6px; - height: 4px; - transform: scale(1.4) translate(-2px, -50%) rotate(0deg); - margin-right: -2px; -} -.ne-codeblock[theme='Bracket Lights Pro'] { - background-color: #fdfdfd; -} -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu { - background-color: #f8f8f8; - border-bottom: 1px solid #f0f0f0; -} -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu.collapsed { - border-bottom: none; -} -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu .ne-codeblock-copy:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu .detect-language:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu .ne-codeblock-collapsed-button:hover { - background-color: #e7e9e8; -} -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu .ne-codeblock-mode-name { - color: rgba(140, 140, 140, 0.5); -} -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu .collapsed-btn { - background-color: #e7e9e8; -} -.ne-codeblock[theme='Bracket Lights Pro'] .codeblock-menu .collapsed-btn::after { - background-image: url("data:image/svg+xml,%3Csvg width=%276%27 height=%274%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M.886 3.1 3.046.936a.464.464 0 0 1 .657 0L5.864 3.1a.465.465 0 0 1-.328.794H1.214A.464.464 0 0 1 .886 3.1Z%27 fill=%27%238c8c8c%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-icon, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-copy { - color: #585a5a; -} -.ne-codeblock[theme='Bracket Lights Pro'] .code-name-placeholder { - color: #bec0bf; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-code-name, -.ne-codeblock[theme='Bracket Lights Pro'] .ant-select-selector, -.ne-codeblock[theme='Bracket Lights Pro'] .ant-input { - color: #262626; -} -.ne-codeblock[theme='Darcula'] { - background-color: #2b2b2b; -} -.ne-codeblock[theme='Darcula'] .codeblock-menu { - background-color: #222222; - border-bottom: 1px solid #181818; -} -.ne-codeblock[theme='Darcula'] .codeblock-menu.collapsed { - border-bottom: none; -} -.ne-codeblock[theme='Darcula'] .codeblock-menu .ne-codeblock-copy:hover, -.ne-codeblock[theme='Darcula'] .codeblock-menu .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Darcula'] .codeblock-menu .detect-language:hover, -.ne-codeblock[theme='Darcula'] .codeblock-menu .ne-codeblock-collapsed-button:hover { - background-color: #434343; -} -.ne-codeblock[theme='Darcula'] .codeblock-menu .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='Darcula'] .codeblock-menu .ne-codeblock-mode-name { - color: rgba(147, 153, 158, 0.5); -} -.ne-codeblock[theme='Darcula'] .codeblock-menu .collapsed-btn { - background-color: #434343; -} -.ne-codeblock[theme='Darcula'] .codeblock-menu .collapsed-btn::after { - background-image: url("data:image/svg+xml,%3Csvg width=%276%27 height=%274%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M.886 3.1 3.046.936a.464.464 0 0 1 .657 0L5.864 3.1a.465.465 0 0 1-.328.794H1.214A.464.464 0 0 1 .886 3.1Z%27 fill=%27%2393999e%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-codeblock[theme='Darcula'] .ne-icon, -.ne-codeblock[theme='Darcula'] .ne-codeblock-copy { - color: #b3b3b3; -} -.ne-codeblock[theme='Darcula'] .code-name-placeholder { - color: #505050; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-code-name, -.ne-codeblock[theme='Darcula'] .ant-select-selector, -.ne-codeblock[theme='Darcula'] .ant-input { - color: #e2e2e2; -} -.ne-codeblock[theme='Github Light'] { - background-color: #fff; -} -.ne-codeblock[theme='Github Light'] .codeblock-menu { - background-color: #f5f5f5; - border-bottom: 1px solid #f0f0f0; -} -.ne-codeblock[theme='Github Light'] .codeblock-menu.collapsed { - border-bottom: none; -} -.ne-codeblock[theme='Github Light'] .codeblock-menu .ne-codeblock-copy:hover, -.ne-codeblock[theme='Github Light'] .codeblock-menu .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Github Light'] .codeblock-menu .detect-language:hover, -.ne-codeblock[theme='Github Light'] .codeblock-menu .ne-codeblock-collapsed-button:hover { - background-color: #e7e9e8; -} -.ne-codeblock[theme='Github Light'] .codeblock-menu .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='Github Light'] .codeblock-menu .ne-codeblock-mode-name { - color: rgba(140, 140, 140, 0.5); -} -.ne-codeblock[theme='Github Light'] .codeblock-menu .collapsed-btn { - background-color: #e7e9e8; -} -.ne-codeblock[theme='Github Light'] .codeblock-menu .collapsed-btn::after { - background-image: url("data:image/svg+xml,%3Csvg width=%276%27 height=%274%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M.886 3.1 3.046.936a.464.464 0 0 1 .657 0L5.864 3.1a.465.465 0 0 1-.328.794H1.214A.464.464 0 0 1 .886 3.1Z%27 fill=%27%238c8c8c%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-codeblock[theme='Github Light'] .ne-icon, -.ne-codeblock[theme='Github Light'] .ne-codeblock-copy { - color: #585a5a; -} -.ne-codeblock[theme='Github Light'] .code-name-placeholder { - color: #bec0bf; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-code-name, -.ne-codeblock[theme='Github Light'] .ant-select-selector, -.ne-codeblock[theme='Github Light'] .ant-input { - color: #262626; -} -.ne-codeblock[theme='Night Owl'] { - background-color: #001628; -} -.ne-codeblock[theme='Night Owl'] .codeblock-menu { - background-color: #000c18; - border-bottom: 1px solid #00070e; -} -.ne-codeblock[theme='Night Owl'] .codeblock-menu.collapsed { - border-bottom: none; -} -.ne-codeblock[theme='Night Owl'] .codeblock-menu .ne-codeblock-copy:hover, -.ne-codeblock[theme='Night Owl'] .codeblock-menu .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Night Owl'] .codeblock-menu .detect-language:hover, -.ne-codeblock[theme='Night Owl'] .codeblock-menu .ne-codeblock-collapsed-button:hover { - background-color: #35414c; -} -.ne-codeblock[theme='Night Owl'] .codeblock-menu .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='Night Owl'] .codeblock-menu .ne-codeblock-mode-name { - color: rgba(204, 211, 219, 0.5); -} -.ne-codeblock[theme='Night Owl'] .codeblock-menu .collapsed-btn { - background-color: #35414c; -} -.ne-codeblock[theme='Night Owl'] .codeblock-menu .collapsed-btn::after { - background-image: url("data:image/svg+xml,%3Csvg width=%276%27 height=%274%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M.886 3.1 3.046.936a.464.464 0 0 1 .657 0L5.864 3.1a.465.465 0 0 1-.328.794H1.214A.464.464 0 0 1 .886 3.1Z%27 fill=%27%23ccd3db%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-codeblock[theme='Night Owl'] .ne-icon, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-copy { - color: #b3b3b3; -} -.ne-codeblock[theme='Night Owl'] .code-name-placeholder { - color: #505050; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-code-name, -.ne-codeblock[theme='Night Owl'] .ant-select-selector, -.ne-codeblock[theme='Night Owl'] .ant-input { - color: #e2e2e2; -} -.ne-codeblock[theme='One Dark Pro'] { - background-color: #272c35; -} -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu { - background-color: #242933; - border-bottom: 1px solid #191e25; -} -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu.collapsed { - border-bottom: none; -} -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu .ne-codeblock-copy:hover, -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu .ne-codeblock-more-button:hover, -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu .detect-language:hover, -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu .ne-codeblock-collapsed-button:hover { - background-color: #404756; -} -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu .ne-codeblock-mode-name { - color: rgba(173, 177, 185, 0.5); -} -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu .collapsed-btn { - background-color: #404756; -} -.ne-codeblock[theme='One Dark Pro'] .codeblock-menu .collapsed-btn::after { - background-image: url("data:image/svg+xml,%3Csvg width=%276%27 height=%274%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M.886 3.1 3.046.936a.464.464 0 0 1 .657 0L5.864 3.1a.465.465 0 0 1-.328.794H1.214A.464.464 0 0 1 .886 3.1Z%27 fill=%27%23adb1b9%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-codeblock[theme='One Dark Pro'] .ne-icon, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-copy { - color: #b3b3b3; -} -.ne-codeblock[theme='One Dark Pro'] .code-name-placeholder { - color: #505050; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-code-name, -.ne-codeblock[theme='One Dark Pro'] .ant-select-selector, -.ne-codeblock[theme='One Dark Pro'] .ant-input { - color: #e2e2e2; -} -.detect-language { - height: 24px; - width: 24px; - border-radius: 4px; - display: flex; - justify-content: center; - align-items: center; - transition: all 0.3s; - cursor: pointer; -} -.detect-language:hover, -.detect-language.ne-codeblock-more-active { - background-color: #e7e9e8; -} -.ne-codeblock[theme='default'] .codeblock-menu { - background-color: #f5f5f5; - border-bottom: 1px solid #e8e8e8; -} -.ne-codeblock[theme='default'] .codeblock-menu.collapsed { - border-bottom: none; -} -.ne-codeblock[theme='default'] .codeblock-menu .ne-codeblock-copy:hover, -.ne-codeblock[theme='default'] .codeblock-menu .ne-codeblock-more-button:hover, -.ne-codeblock[theme='default'] .codeblock-menu .detect-language:hover, -.ne-codeblock[theme='default'] .codeblock-menu .ne-codeblock-collapsed-button:hover { - background-color: #e7e9e8; -} -.ne-codeblock[theme='default'] .codeblock-menu .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='default'] .codeblock-menu .ne-codeblock-mode-name { - color: rgba(89, 89, 89, 0.5); -} -.ne-codeblock[theme='default'] .codeblock-menu .collapsed-btn { - background-color: #e7e9e8; -} -.ne-codeblock[theme='default'] .codeblock-menu .collapsed-btn::after { - background-image: url("data:image/svg+xml,%3Csvg width=%276%27 height=%274%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M.886 3.1 3.046.936a.464.464 0 0 1 .657 0L5.864 3.1a.465.465 0 0 1-.328.794H1.214A.464.464 0 0 1 .886 3.1Z%27 fill=%27%23595959%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-codeblock[theme='default'] .ne-icon, -.ne-codeblock[theme='default'] .ne-codeblock-copy { - color: #585a5a; -} -.ne-codeblock[theme='default'] .code-name-placeholder { - color: #bec0bf; -} -.ne-codeblock[theme='default'] .CodeMirror-code-name, -.ne-codeblock[theme='default'] .ant-select-selector, -.ne-codeblock[theme='default'] .ant-input { - color: #262626; -} - -/* stylelint-disable */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/*! - 本文件源码来源于老编辑器 - 定制了一些 codemirror 中内容的配色等基础样式,非特殊情况无需修改 - */ -/* BASICS */ -.CodeMirror { - /* Set height, width, borders, and global font properties here */ - font-family: monospace; - color: var(--lakex-editor-color-black); - direction: ltr; -} -/* PADDING */ -.CodeMirror-lines { - padding: 4px 0; - /* Vertical padding around content */ -} -.CodeMirror pre.CodeMirror-line, -.CodeMirror pre.CodeMirror-line-like { - padding: 0 4px; - /* Horizontal padding of content */ -} -.CodeMirror-scrollbar-filler, -.CodeMirror-gutter-filler { - background-color: var(--lakex-editor-color-white); - /* The little square between H and V scrollbars */ -} -/* GUTTER */ -.CodeMirror-gutters { - border-right: 1px solid #ddd; - background-color: #f7f7f7; - white-space: nowrap; -} -.CodeMirror-linenumber { - padding: 0 3px 0 5px; - min-width: 20px; - text-align: right; - color: #999; - white-space: nowrap; -} -.CodeMirror-guttermarker { - color: var(--lakex-editor-color-black); -} -.CodeMirror-guttermarker-subtle { - color: #999; -} -/* CURSOR */ -.CodeMirror-cursor { - border-left: 1px solid black; - border-right: none; - width: 0; -} -/* Shown when moving in bi-directional text */ -.CodeMirror div.CodeMirror-secondarycursor { - border-left: 1px solid silver; -} -.cm-fat-cursor .CodeMirror-cursor { - width: auto; - border: 0 !important; - background: #7e7; -} -.cm-fat-cursor div.CodeMirror-cursors { - z-index: 1; -} -.cm-fat-cursor .CodeMirror-line::selection, -.cm-fat-cursor .CodeMirror-line > span::selection, -.cm-fat-cursor .CodeMirror-line > span > span::selection { - background: transparent; -} -.cm-fat-cursor .CodeMirror-line::-moz-selection, -.cm-fat-cursor .CodeMirror-line > span::-moz-selection, -.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { - background: transparent; -} -.cm-fat-cursor { - caret-color: transparent; -} -@-moz-keyframes blink { - 50% { - background-color: transparent; - } -} -@-webkit-keyframes blink { - 50% { - background-color: transparent; - } -} -@keyframes blink { - 50% { - background-color: transparent; - } -} -/* Can style cursor different in overwrite (non-insert) mode */ -.cm-tab { - display: inline-block; - text-decoration: inherit; -} -.CodeMirror-rulers { - position: absolute; - left: 0; - right: 0; - top: -50px; - bottom: 0; - overflow: hidden; -} -.CodeMirror-ruler { - border-left: 1px solid #ccc; - top: 0; - bottom: 0; - position: absolute; -} -/* DEFAULT THEME */ -.cm-s-default .cm-header { - color: blue; -} -.cm-s-default .cm-quote { - color: #090; -} -.cm-negative { - color: #d44; -} -.cm-positive { - color: #292; -} -.cm-header, -.cm-strong { - font-weight: bold; -} -.cm-em { - font-style: italic; -} -.cm-link { - text-decoration: underline; -} -.cm-strikethrough { - text-decoration: line-through; -} -.cm-s-default .cm-keyword { - color: #708; -} -.cm-s-default .cm-atom { - color: #219; -} -.cm-s-default .cm-number { - color: #164; -} -.cm-s-default .cm-def { - color: #00f; -} -.cm-s-default .cm-variable-2 { - color: #05a; -} -.cm-s-default .cm-variable-3, -.cm-s-default .cm-type { - color: #085; -} -.cm-s-default .cm-comment { - color: #a50; -} -.cm-s-default .cm-string { - color: #a11; -} -.cm-s-default .cm-string-2 { - color: #f50; -} -.cm-s-default .cm-meta { - color: #555; -} -.cm-s-default .cm-qualifier { - color: #555; -} -.cm-s-default .cm-builtin { - color: #30a; -} -.cm-s-default .cm-bracket { - color: #997; -} -.cm-s-default .cm-tag { - color: #170; -} -.cm-s-default .cm-attribute { - color: #00c; -} -.cm-s-default .cm-hr { - color: #999; -} -.cm-s-default .cm-link { - color: #00c; -} -.cm-s-default .cm-error { - color: #f00; -} -.cm-invalidchar { - color: #f00; -} -.CodeMirror-composing { - border-bottom: 2px solid; -} -/* Default styles for common addons */ -div.CodeMirror span.CodeMirror-matchingbracket { - color: #0b0; -} -div.CodeMirror span.CodeMirror-nonmatchingbracket { - color: #a22; -} -.CodeMirror-matchingtag { - background: rgba(255, 150, 0, 0.3); -} -.CodeMirror-activeline-background { - background: #e8f2ff; -} -/* STOP */ -/* The rest of this file contains styles related to the mechanics of - the editor. You probably shouldn't touch them. */ -.CodeMirror { - position: relative; - overflow: hidden; - background: var(--lakex-editor-background-primary); -} -.CodeMirror-scroll { - overflow: scroll !important; - /* Things will break if this is overridden */ - /* 50px is the magic margin used to hide the element's real scrollbars */ - /* See overflow: hidden in .CodeMirror */ - margin-bottom: -50px; - margin-right: -50px; - padding-bottom: 50px; - height: 100%; - outline: none; - /* Prevent dragging from highlighting the element */ - position: relative; -} -.CodeMirror-sizer { - position: relative; - border-right: 50px solid transparent; -} -/* The fake, visible scrollbars. Used to force redraw during scrolling - before actual scrolling happens, thus preventing shaking and - flickering artifacts. */ -.CodeMirror-vscrollbar, -.CodeMirror-hscrollbar, -.CodeMirror-scrollbar-filler, -.CodeMirror-gutter-filler { - position: absolute; - z-index: 6; - display: none; - outline: none; -} -.CodeMirror-vscrollbar { - right: 0; - top: 0; - overflow-x: hidden; - overflow-y: scroll; -} -.CodeMirror-hscrollbar { - bottom: 0; - left: 0; - overflow-y: hidden; - overflow-x: scroll; -} -.CodeMirror-scrollbar-filler { - right: 0; - bottom: 0; -} -.CodeMirror-gutter-filler { - left: 0; - bottom: 0; -} -.CodeMirror-gutters { - position: absolute; - left: 0; - top: 0; - min-height: 100%; - z-index: 3; -} -.CodeMirror-gutter { - white-space: normal; - height: 100%; - display: inline-block; - vertical-align: top; - margin-bottom: -50px; -} -.CodeMirror-gutter-wrapper { - position: absolute; - z-index: 4; - background: none !important; - border: none !important; -} -.CodeMirror-gutter-background { - position: absolute; - top: 0; - bottom: 0; - z-index: 4; -} -.CodeMirror-gutter-elt { - position: absolute; - cursor: default; - z-index: 4; -} -.CodeMirror-gutter-wrapper ::selection { - background-color: transparent; -} -.CodeMirror-gutter-wrapper ::-moz-selection { - background-color: transparent; -} -.CodeMirror-lines { - cursor: text; - min-height: 1px; - /* prevents collapsing before first draw */ -} -.CodeMirror pre.CodeMirror-line, -.CodeMirror pre.CodeMirror-line-like { - /* Reset some styles that the rest of the page might have set */ - -moz-border-radius: 0; - -webkit-border-radius: 0; - border-radius: 0; - border-width: 0; - background: transparent; - font-family: inherit; - font-size: inherit; - margin: 0; - white-space: pre; - word-wrap: normal; - line-height: inherit; - color: inherit; - z-index: 2; - position: relative; - overflow: visible; - -webkit-tap-highlight-color: transparent; - -webkit-font-variant-ligatures: contextual; - font-variant-ligatures: contextual; -} -.CodeMirror-wrap pre.CodeMirror-line, -.CodeMirror-wrap pre.CodeMirror-line-like { - word-wrap: break-word; - white-space: pre-wrap; - word-break: normal; -} -.CodeMirror-linebackground { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - z-index: 0; -} -.CodeMirror-linewidget { - position: relative; - z-index: 2; - padding: 0.1px; - /* Force widget margins to stay inside of the container */ -} -.CodeMirror-rtl pre { - direction: rtl; -} -.CodeMirror-code { - outline: none; -} -/* Force content-box sizing for the elements where we expect it */ -.CodeMirror-scroll, -.CodeMirror-sizer, -.CodeMirror-gutter, -.CodeMirror-gutters, -.CodeMirror-linenumber { - -moz-box-sizing: content-box; - box-sizing: content-box; -} -.CodeMirror-measure { - position: absolute; - width: 100%; - height: 0; - overflow: hidden; - visibility: hidden; -} -.CodeMirror-cursor { - position: absolute; - pointer-events: none; -} -.CodeMirror-measure pre { - position: static; -} -div.CodeMirror-cursors { - visibility: hidden; - position: relative; - z-index: 3; -} -div.CodeMirror-dragcursors { - visibility: visible; -} -.CodeMirror-focused div.CodeMirror-cursors { - visibility: visible; -} -.CodeMirror-selected { - background: #d9d9d9; -} -.CodeMirror-focused .CodeMirror-selected { - background: #d7d4f0; -} -.CodeMirror-crosshair { - cursor: crosshair; -} -.CodeMirror-line::selection, -.CodeMirror-line > span::selection, -.CodeMirror-line > span > span::selection { - background: #d7d4f0; -} -.CodeMirror-line::-moz-selection, -.CodeMirror-line > span::-moz-selection, -.CodeMirror-line > span > span::-moz-selection { - background: #d7d4f0; -} -.cm-searching { - background-color: #ffa; - background-color: rgba(255, 255, 0, 0.4); -} -/* Used to force a border model for a node */ -.cm-force-border { - padding-right: 0.1px; -} -@media print { - /* Hide the cursor when printing */ - .CodeMirror div.CodeMirror-cursors { - visibility: hidden; - } -} -/* See issue #2901 */ -.cm-tab-wrap-hack:after { - content: ''; -} -/* Help users use markselection to safely style text background */ -span.CodeMirror-selectedtext { - background: none; -} -/*! - 本文件源码来源于老编辑器 - 定制了一些 codemirror 中内容的配色等基础样式,非特殊情况无需修改 - */ -.CodeMirror { - background: none; - /* 字体参照 github,考虑和 14px 文字在一起排版,字号用 13px */ - font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; - font-size: 14px; - line-height: 1.45; - color: #595959; - direction: ltr; -} -.CodeMirror * { - box-sizing: unset; -} -.CodeMirror:hover .CodeMirror-scroll::-webkit-scrollbar-thumb, -.CodeMirror.CodeMirror-focused .CodeMirror-scroll::-webkit-scrollbar-thumb, -.CodeMirror:hover .CodeMirror-vscrollbar::-webkit-scrollbar-thumb, -.CodeMirror.CodeMirror-focused .CodeMirror-vscrollbar::-webkit-scrollbar-thumb, -.CodeMirror:hover .CodeMirror-hscrollbar::-webkit-scrollbar-thumb, -.CodeMirror.CodeMirror-focused .CodeMirror-hscrollbar::-webkit-scrollbar-thumb { - visibility: visible; -} -.CodeMirror .CodeMirror-scrollbar-filler, -.CodeMirror .CodeMirror-gutter-filler { - background: transparent; -} -.CodeMirror .CodeMirror-lines { - padding-bottom: 24px; -} -.CodeMirror-scroll, -.CodeMirror-sizer, -.CodeMirror-gutter, -.CodeMirror-gutters, -.CodeMirror-linenumber { - -moz-box-sizing: content-box !important; - box-sizing: content-box !important; -} -.CodeMirror-gutters { - background: #fafafa; - border-color: #fafafa; - padding: 0 6px 0 6px; -} -.CodeMirror-scroll, -.CodeMirror-vscrollbar, -.CodeMirror-hscrollbar { - scrollbar-color: var(--lakex-editor-color-grey6) transparent; -} -.CodeMirror-scroll::-webkit-scrollbar, -.CodeMirror-vscrollbar::-webkit-scrollbar, -.CodeMirror-hscrollbar::-webkit-scrollbar { - background-color: transparent; -} -.CodeMirror-scroll::-webkit-scrollbar-corner, -.CodeMirror-vscrollbar::-webkit-scrollbar-corner, -.CodeMirror-hscrollbar::-webkit-scrollbar-corner { - background-color: transparent; -} -.CodeMirror-scroll::-webkit-scrollbar-thumb, -.CodeMirror-vscrollbar::-webkit-scrollbar-thumb, -.CodeMirror-hscrollbar::-webkit-scrollbar-thumb { - background-color: var(--lakex-editor-color-grey6); - border-radius: 16px; - border: 3.5px solid transparent; - background-clip: content-box; - visibility: visible; -} -.CodeMirror-selected { - background: transparent; -} -.CodeMirror-focused .CodeMirror-selected { - background: var(--lakex-editor-selection); -} -.CodeMirror-crosshair { - cursor: crosshair; -} -.CodeMirror-line::selection, -.CodeMirror-line > span::selection, -.CodeMirror-line > span > span::selection { - background: var(--lakex-editor-selection); -} -.CodeMirror-line::-moz-selection, -.CodeMirror-line > span::-moz-selection, -.CodeMirror-line > span > span::-moz-selection { - background: var(--lakex-editor-selection); -} -/* DEFAULT THEME (来源于老编辑器,定制了一套代码配色) */ -.CodeMirror pre, -.box pre, -.editor .top-boxes pre, -.CodeMirror-gutter-wrapper pre { - color: #262626; -} -.CodeMirror-linenumber { - color: #afafaf; -} -.cm-s-default .cm-header { - color: blue; -} -.cm-s-default .cm-quote { - color: #090; -} -.cm-negative { - color: #d44; -} -.cm-positive { - color: #292; -} -.cm-header, -.cm-strong { - font-weight: bold; -} -.cm-em { - font-style: italic; -} -.cm-link { - text-decoration: underline; -} -.cm-strikethrough { - text-decoration: line-through; -} -/* 以 codemirror 默认为蓝本,部分颜色用 github 及 prism.js */ -.cm-s-default .cm-keyword { - color: #d73a49; -} -/* use github */ -.cm-s-default .cm-atom { - color: #905; -} -/* false null 等常量,use prism.js */ -.cm-s-default .cm-number { - color: #005cc5; -} -/* use github */ -.cm-s-default .cm-def { - color: #005cc5; -} -/* use github */ -.cm-s-default .cm-variable-2 { - color: #005cc5; -} -/* use github 蓝色 */ -.cm-s-default .cm-variable-3, -.cm-s-default .cm-type { - color: #22863a; -} -/* use github 绿色 */ -.cm-s-default .cm-comment { - color: #6a737d; -} -/* use github */ -.cm-s-default .cm-string { - color: #690; -} -/* 单行字符串,用 prism 颜色 origin #a11; */ -.cm-s-default .cm-string-2 { - color: #690; -} -/* 多行字符串,用 prism 颜色 origin #a11; */ -.cm-s-default .cm-meta { - color: #1f7f9a; -} -/* c #include、java annotation 等,采用 vscode default light+ 颜色 */ -.cm-s-default .cm-qualifier { - color: #555; -} -.cm-s-default .cm-builtin { - color: #6f42c1; -} -/* use github */ -.cm-s-default .cm-bracket { - color: #997; -} -.cm-s-default .cm-tag { - color: #22863a; -} -/* html tag 名,use github */ -.cm-s-default .cm-attribute { - color: #6f42c1; -} -/* html tag 属性名,use github */ -.cm-s-default .cm-hr { - color: #999; -} -/* md 语法 */ -.cm-s-default .cm-link { - color: #00c; -} -/* md 语法 */ -.cm-s-default .cm-error { - color: #f00; -} -.cm-invalidchar { - color: #f00; -} -.cm-s-default .cm-operator { - color: #d73a49; -} -/* 用 github 颜色 */ -.cm-s-default .cm-property { - color: #005cc5; -} -/* 用 github 蓝色,和 cm-def 一致 */ -.CodeMirror-composing { - border-bottom: 2px solid; -} -.CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.CodeMirror-scroll { - margin-top: 12px; -} -.ne-codeblock[theme='default'] .ne-embed-nav { - background: #f5f5f5; - border-bottom: 1px solid #e8e8e8; -} -.ne-codeblock[theme='default'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='default'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='default'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='default'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='default'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='default'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='default'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #595959; -} -.ne-codeblock[theme='default'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='default'] .ne-embed-nav .ne-codeblock-mode-name { - color: #bfbfbf; -} -.ne-codeblock[theme='default'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='default'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='default'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='default'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='default'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='default'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #e8e8e8; - border-color: transparent; -} -.cm-searching, -.CodeMirror-focused .CodeMirror-selected, -.CodeMirror-selected { - background-color: rgba(80, 153, 236, 0.5); -} -/* Default styles for common addons */ -/* STOP */ -.CodeMirror-light-line-wrap + .CodeMirror-light-line-wrap .CodeMirror-lightline-background, -.CodeMirror-light-line-wrap + .CodeMirror-light-line-wrap .CodeMirror-gutter-background.CodeMirror-light-line-gutter { - border-top: none; -} -.CodeMirror-collapsed-folded { - transform-origin: center; - transform: rotateZ(-90deg); -} -.ne-codeblock[theme='Darcula'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='Darcula'] .CodeMirror-gutters, -.ne-codeblock[theme='Darcula'] .ne-codeblock, -.ne-codeblock[theme='Darcula'] .ne-codeblock-inner, -.ne-codeblock[theme='Darcula'] .ne-codeblock-content { - background: #2b2b2b; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-cursor { - border-left-color: #aeaeae; -} -.ne-codeblock[theme='Darcula'] .CodeMirror pre, -.ne-codeblock[theme='Darcula'] .box pre, -.ne-codeblock[theme='Darcula'] .editor .top-boxes pre, -.ne-codeblock[theme='Darcula'] .CodeMirror-gutter-wrapper pre { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-keyword { - color: #d87e30; -} -.ne-codeblock[theme='Darcula'] .cm-atom { - color: #d87e30; -} -.ne-codeblock[theme='Darcula'] .box-html .cm-atom { - color: #a578b4; -} -.ne-codeblock[theme='Darcula'] .cm-def { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-variable { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-variable-2 { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-variable-3 { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-header { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-number { - color: #719fc5; -} -.ne-codeblock[theme='Darcula'] .cm-property { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-attribute { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-builtin { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-qualifier { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-operator { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-meta { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-string { - color: #628854; -} -.ne-codeblock[theme='Darcula'] .cm-string-2 { - color: #b45555; -} -.ne-codeblock[theme='Darcula'] .cm-tag { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .box-css .cm-tag { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-tag.cm-bracket { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-variable.cm-callee { - color: #39e62d; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-linenumber { - color: #858585; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-foldgutter-open.CodeMirror-guttermarker-subtle { - color: #696969; -} -.ne-codeblock[theme='Darcula'] .cm-comment { - color: #707070; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='Darcula'] .ne-embed-nav { - background: #222222; - border-bottom: 1px solid #181818; -} -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #93999e; -} -.ne-codeblock[theme='Darcula'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-codeblock-mode-name { - color: rgba(147, 153, 158, 0.5); -} -.ne-codeblock[theme='Darcula'] .ant-divider-vertical { - border-color: #393939; -} -.ne-codeblock[theme='Darcula'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='Darcula'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Darcula'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='Darcula'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='Darcula'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='Darcula'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #393939; - border-color: transparent; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='Night Owl'] .CodeMirror-gutters, -.ne-codeblock[theme='Night Owl'] .ne-codeblock, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-inner, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-content { - background: #001628; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-cursor { - border-left-color: #80a4c3; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror pre, -.ne-codeblock[theme='Night Owl'] .box pre, -.ne-codeblock[theme='Night Owl'] .editor .top-boxes pre, -.ne-codeblock[theme='Night Owl'] .CodeMirror-gutter-wrapper pre { - color: #d4deec; -} -.ne-codeblock[theme='Night Owl'] .cm-keyword { - color: #d18df0; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-atom { - color: #ff4571; -} -.ne-codeblock[theme='Night Owl'] .box-html .cm-atom { - color: #79a9ff; -} -.ne-codeblock[theme='Night Owl'] .cm-def { - color: #79a9ff; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-variable { - color: #5adeca; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-variable-2 { - color: #5adeca; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-variable-3 { - color: #bce666; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-header { - color: #d4deec; -} -.ne-codeblock[theme='Night Owl'] .cm-number { - color: #ff8563; -} -.ne-codeblock[theme='Night Owl'] .cm-property { - color: #79a9ff; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-attribute { - color: #bce666; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-builtin { - color: #ffd400; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-qualifier { - color: #bce666; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-operator { - color: #d18df0; -} -.ne-codeblock[theme='Night Owl'] .cm-meta { - color: #bce666; -} -.ne-codeblock[theme='Night Owl'] .cm-string { - color: #f3c384; -} -.ne-codeblock[theme='Night Owl'] .cm-string-2 { - color: #7d5959; -} -.ne-codeblock[theme='Night Owl'] .cm-tag { - color: #c1ede6; -} -.ne-codeblock[theme='Night Owl'] .box-css .cm-tag { - color: #ff545c; -} -.ne-codeblock[theme='Night Owl'] .cm-tag.cm-bracket { - color: #5adeca; -} -.ne-codeblock[theme='Night Owl'] .cm-variable.cm-callee { - color: #39e62d; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-linenumber { - color: #858585; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-guttermarker-subtle { - color: #ffffff; -} -.ne-codeblock[theme='Night Owl'] .cm-comment { - color: #5e7877; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='Night Owl'] .ne-embed-nav { - background: #000c18; - border-bottom: 1px solid #00070e; -} -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #ccd3db; -} -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-codeblock-mode-name { - color: rgba(147, 153, 158, 0.5); -} -.ne-codeblock[theme='Night Owl'] .ant-divider-vertical { - border-color: #1f2a36; -} -.ne-codeblock[theme='Night Owl'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='Night Owl'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='Night Owl'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #1f2a36; - border-color: transparent; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-gutters, -.ne-codeblock[theme='One Dark Pro'], -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-inner, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-content { - background: #272c35; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-cursor { - border-left-color: #528bf7; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror pre, -.ne-codeblock[theme='One Dark Pro'] .box pre, -.ne-codeblock[theme='One Dark Pro'] .editor .top-boxes pre, -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-gutter-wrapper pre { - color: #a9b2c0; -} -.ne-codeblock[theme='One Dark Pro'] .cm-keyword { - color: #d371e3; -} -.ne-codeblock[theme='One Dark Pro'] .cm-atom { - color: #da985c; -} -.ne-codeblock[theme='One Dark Pro'] .box-html .cm-atom { - color: #f06372; -} -.ne-codeblock[theme='One Dark Pro'] .cm-def { - color: #ebbf6f; -} -.ne-codeblock[theme='One Dark Pro'] .cm-variable { - color: #f06372; -} -.ne-codeblock[theme='One Dark Pro'] .cm-variable-2 { - color: #f06372; - font-style: italic; -} -.ne-codeblock[theme='One Dark Pro'] .cm-variable-3 { - color: #1db8c4; -} -.ne-codeblock[theme='One Dark Pro'] .cm-header { - color: #a9b2c0; -} -.ne-codeblock[theme='One Dark Pro'] .cm-number { - color: #da985c; -} -.ne-codeblock[theme='One Dark Pro'] .cm-property { - color: #43b0f5; -} -.ne-codeblock[theme='One Dark Pro'] .cm-attribute { - color: #da985c; -} -.ne-codeblock[theme='One Dark Pro'] .cm-builtin { - color: #43b0f5; -} -.ne-codeblock[theme='One Dark Pro'] .cm-qualifier { - color: #da985c; -} -.ne-codeblock[theme='One Dark Pro'] .cm-operator { - color: #1db8c4; -} -.ne-codeblock[theme='One Dark Pro'] .cm-meta { - color: #1db8c4; -} -.ne-codeblock[theme='One Dark Pro'] .cm-string { - color: #8bc56f; -} -.ne-codeblock[theme='One Dark Pro'] .cm-string-2 { - color: #8bc56f; -} -.ne-codeblock[theme='One Dark Pro'] .cm-tag { - color: #f06372; -} -.ne-codeblock[theme='One Dark Pro'] .box-css .cm-tag { - color: #f06372; -} -.ne-codeblock[theme='One Dark Pro'] .cm-tag.cm-bracket { - color: #a9b2c0; -} -.ne-codeblock[theme='One Dark Pro'] .cm-variable.cm-callee { - color: #357e30; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-linenumber { - color: #777b83; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-guttermarker-subtle { - color: #ffffff; -} -.ne-codeblock[theme='One Dark Pro'] .cm-comment { - color: #7e848f; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav { - background: #242933; - border-bottom: 1px solid #191e25; -} -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #adb1b9; -} -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-codeblock-mode-name { - color: rgba(173, 177, 185, 0.5); -} -.ne-codeblock[theme='One Dark Pro'] .ant-divider-vertical { - border-color: #3c424d; -} -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='One Dark Pro'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='One Dark Pro'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #3c424d; - border-color: transparent; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='Github Light'] .CodeMirror-gutters, -.ne-codeblock[theme='Github Light'] .ne-codeblock, -.ne-codeblock[theme='Github Light'] .ne-codeblock-inner, -.ne-codeblock[theme='Github Light'] .ne-codeblock-content { - background: #ffffff; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-cursor { - border-left-color: #286ada; -} -.ne-codeblock[theme='Github Light'] .CodeMirror pre, -.ne-codeblock[theme='Github Light'] .box pre, -.ne-codeblock[theme='Github Light'] .editor .top-boxes pre, -.ne-codeblock[theme='Github Light'] .CodeMirror-gutter-wrapper pre { - color: #262c31; -} -.ne-codeblock[theme='Github Light'] .cm-keyword { - color: #e10023; -} -.ne-codeblock[theme='Github Light'] .cm-atom { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .box-html .cm-atom { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-def { - color: #a13000; -} -.ne-codeblock[theme='Github Light'] .cm-variable { - color: #232930; -} -.ne-codeblock[theme='Github Light'] .cm-variable-2 { - color: #a13000; -} -.ne-codeblock[theme='Github Light'] .cm-variable-3 { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-header { - color: #232930; -} -.ne-codeblock[theme='Github Light'] .cm-number { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-property { - color: #8c48e7; -} -.ne-codeblock[theme='Github Light'] .cm-attribute { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-builtin { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-qualifier { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-operator { - color: #e10023; -} -.ne-codeblock[theme='Github Light'] .cm-meta { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-string { - color: #002f6d; -} -.ne-codeblock[theme='Github Light'] .cm-string-2 { - color: #7d5959; -} -.ne-codeblock[theme='Github Light'] .cm-tag { - color: #006520; -} -.ne-codeblock[theme='Github Light'] .box-css .cm-tag { - color: #006520; -} -.ne-codeblock[theme='Github Light'] .cm-tag.cm-bracket { - color: #232930; -} -.ne-codeblock[theme='Github Light'] .cm-variable.cm-callee { - color: #3ef231; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-linenumber { - color: #8e9499; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-guttermarker-subtle { - color: #ffffff; -} -.ne-codeblock[theme='Github Light'] .cm-comment { - color: #6c7782; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='Github Light'] .ne-embed-nav { - background: #f8f8f8; - border-bottom: 1px solid #f0f0f0; -} -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #8c8c8c; -} -.ne-codeblock[theme='Github Light'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-codeblock-mode-name { - color: #bfbfbf; -} -.ne-codeblock[theme='Github Light'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='Github Light'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Github Light'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='Github Light'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='Github Light'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='Github Light'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #eeeeee; - border-color: transparent; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-gutters, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-inner, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-content { - background: #fdfdfd; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-cursor { - border-left-color: #000000; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror pre, -.ne-codeblock[theme='Bracket Lights Pro'] .box pre, -.ne-codeblock[theme='Bracket Lights Pro'] .editor .top-boxes pre, -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-gutter-wrapper pre { - color: #363636; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-keyword { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-atom { - color: #f78000; -} -.ne-codeblock[theme='Bracket Lights Pro'] .box-html .cm-atom { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-def { - color: #9020cc; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-variable { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-variable-2 { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-variable-3 { - color: #535353; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-header { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-number { - color: #668800; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-property { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-attribute { - color: #668800; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-builtin { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-qualifier { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-operator { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-meta { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-string { - color: #f78000; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-string-2 { - color: #7d5959; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-tag { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .box-css .cm-tag { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-tag.cm-bracket { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-variable.cm-callee { - color: #3ef231; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-linenumber { - color: #bfbfbf; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-guttermarker-subtle { - color: #ffffff; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-comment { - color: #00a961; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav { - background: #f8f8f8; - border-bottom: 1px solid #f0f0f0; -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #8c8c8c; -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-codeblock-mode-name { - color: rgba(140, 140, 140, 0.5); -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #eeeeee; - border-color: transparent; -} -[data-card-name='codeblock'] { - height: auto !important; -} -.ne-engine .ne-codeblock { - padding-top: 5px; - padding-bottom: 0; -} -.ne-codeblock { - position: relative; - overflow: visible; - text-indent: 0; - background: #fafafa; - padding-top: 5px; - padding-bottom: 0; -} -.ne-codeblock .ne-codeblock-content.ne-code, -.ne-codeblock .ne-codeblock-inner { - padding-top: 5px; -} -.ne-codeblock.hide-toolbar .ne-codeblock-content.ne-code, -.ne-codeblock.hide-toolbar .ne-codeblock-inner { - padding: unset; -} -.ne-codeblock.ne-codeblock-collapsed { - min-height: 38px; - padding-bottom: 0; -} -.ne-codeblock.ne-codeblock-collapsed .ne-embed-nav { - border-bottom: none; -} -.ne-codeblock .ne-embed-nav { - padding: 0 11px; - height: 38px; -} -.ne-codeblock .ne-embed-nav .start-nav { - height: 38px; - line-height: 38px; -} -.ne-codeblock .CodeMirror-code-name { - flex: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.ne-codeblock .CodeMirror-code-name .ant-input { - margin: 0 4px; - max-width: 200px; - user-select: all; - color: var(--lakex-editor-text-color); -} -.ne-codeblock .CodeMirror-code-name > .normal { - padding-left: 14px; -} -.ne-editor .ne-codeblock .CodeMirror-code-name > .normal { - cursor: pointer; -} -.ne-codeblock-content { - position: relative; - z-index: 2; - background: #fafafa; -} -.ne-codeblock-more-menu.ant-menu-vertical > .ant-menu-submenu { - color: #585a5a; -} -.ne-codeblock-more-menu.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title { - height: 32px; - line-height: 36px; - color: #585a5a; -} -.ne-codeblock-more-menu.ant-menu-vertical > .ant-menu-submenu .ant-menu-submenu-arrow { - color: #585a5a; - margin-top: 1px; -} -.ne-codeblock-more-submenu { - width: 97px; -} -.ne-codeblock-more-submenu .ant-menu-vertical.ant-menu-sub, -.ne-codeblock-more-submenu .ant-menu-vertical-left.ant-menu-sub, -.ne-codeblock-more-submenu .ant-menu-vertical-right.ant-menu-sub { - width: 100%; - max-width: 100%; - min-width: 100%; -} -.ne-codeblock-more-submenu .ant-menu-item-only-child { - padding-left: 40px; - color: #585a5a; - background-color: transparent; -} -.ne-codeblock-more-submenu .ant-menu-item-only-child:hover { - background-color: rgba(245, 245, 245, 0.17); -} -.ne-codeblock-more-submenu .ant-menu-item-only-child .ant-menu-title-content { - color: #585a5a; -} -.ne-codeblock-more-submenu .ant-menu-item-only-child.active { - background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2716%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27%3E%3Cdefs%3E%3Cpath id=%27a%27 d=%27M0 0h16v16H0z%27/%3E%3C/defs%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cmask id=%27b%27 fill=%27%23fff%27%3E%3Cuse xlink:href=%27%23a%27/%3E%3C/mask%3E%3Cpath stroke=%27%23595959%27 stroke-width=%271.375%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 mask=%27url%28%23b%29%27 d=%27m1.688 7.861 4.302 4.264 8.323-8.25%27/%3E%3C/g%3E%3C/svg%3E"); - background-repeat: no-repeat; - background-position: 12px center; - transition: none; -} -.ne-codeblock-overlay { - /* Popover 最小高度以及默认边距都太大了,不符合当前场景 */ -} -.ne-codeblock-overlay.ant-popover .ant-popover-content { - min-width: 156px; -} -.ne-codeblock-overlay .ant-popover-inner-content { - padding: 1px 0; -} -.ne-codeblock-overlay .ant-menu.ant-menu-vertical .ant-menu-item.ne-codeblock-more-item { - margin-top: 4px; - padding: 16px; - height: 36px; - color: var(--lakex-editor-color-grey8); - font-size: 14px; - line-height: 20px; - display: flex; - justify-content: space-between; - align-items: center; - cursor: default !important; -} -.ne-codeblock-overlay .ant-menu.ant-menu-vertical .ant-menu-item.ne-codeblock-more-item:hover { - background: none !important; -} -.ne-codeblock-overlay .ne-codeblock-more-item-switch { - margin-left: 40px; -} -.ne-codeblock-height-limit .cm-scroller { - max-height: 3936px; -} -@media print { - .ne-codeblock-height-limit .CodeMirror-scroll { - max-height: 11808px; - } -} -.CodeMirror-scroll { - min-height: 50px; -} -.ne-codeblock-collapsed-button, -.ne-codeblock-more-button { - height: 24px; - width: 24px; - border-radius: 4px; - display: flex; - justify-content: center; - align-items: center; - transition: all 0.3s; - cursor: pointer; -} -.ne-codeblock-collapsed-button:hover, -.ne-codeblock-more-button:hover, -.ne-codeblock-collapsed-button.ne-codeblock-more-active, -.ne-codeblock-more-button.ne-codeblock-more-active { - background-color: var(--lakex-editor-color-grey4); -} -.CodeMirror pre.CodeMirror-line, -.CodeMirror pre.CodeMirror-line-like { - word-break: normal; -} -.ne-code-ai-popup .ant-select-item-option-selected { - display: none; -} -.ne-code-popup .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { - background-color: transparent; - font-weight: normal; -} -.ne-code-popup .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content { - background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2716%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27%3E%3Cdefs%3E%3Cpath id=%27a%27 d=%27M0 0h16v16H0z%27/%3E%3C/defs%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cmask id=%27b%27 fill=%27%23fff%27%3E%3Cuse xlink:href=%27%23a%27/%3E%3C/mask%3E%3Cpath stroke=%27%23595959%27 stroke-width=%271.375%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 mask=%27url%28%23b%29%27 d=%27m1.688 7.861 4.302 4.264 8.323-8.25%27/%3E%3C/g%3E%3C/svg%3E"); - background-repeat: no-repeat; - background-position: 0 center; -} -.ne-code-popup .ant-select-item-option-content { - padding-left: 24px; -} -.ne-code-popup.ne-code-popup-default, -.ne-code-ai-popup.ne-code-popup-default, -.ne-code-popup.ne-code-popup-GithubLight, -.ne-code-ai-popup.ne-code-popup-GithubLight, -.ne-code-popup.ne-code-popup-BracketLightsPro, -.ne-code-ai-popup.ne-code-popup-BracketLightsPro { - background-color: #fff !important; - border: none; - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05); -} -.ne-code-popup.ne-code-popup-default .ant-select-item, -.ne-code-ai-popup.ne-code-popup-default .ant-select-item, -.ne-code-popup.ne-code-popup-GithubLight .ant-select-item, -.ne-code-ai-popup.ne-code-popup-GithubLight .ant-select-item, -.ne-code-popup.ne-code-popup-BracketLightsPro .ant-select-item, -.ne-code-ai-popup.ne-code-popup-BracketLightsPro .ant-select-item { - color: #585a5a; -} -.ne-code-popup.ne-code-popup-OneDarkPro, -.ne-code-ai-popup.ne-code-popup-OneDarkPro, -.ne-code-popup.ne-code-popup-NightOwl, -.ne-code-ai-popup.ne-code-popup-NightOwl, -.ne-code-popup.ne-code-popup-Darcula, -.ne-code-ai-popup.ne-code-popup-Darcula { - color: rgba(255, 255, 255, 0.88); - background-color: #1f1f1f !important; - border: 1px solid rgba(255, 255, 255, 0.12) !important; - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05); -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-popup.ne-code-popup-Darcula .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item-option-active:not(.ant-select-item-option-disabled) { - background: none; -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-popup.ne-code-popup-Darcula .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content { - background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2716%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27%3E%3Cdefs%3E%3Cpath id=%27a%27 d=%27M0 0h16v16H0z%27/%3E%3C/defs%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cmask id=%27b%27 fill=%27%23fff%27%3E%3Cuse xlink:href=%27%23a%27/%3E%3C/mask%3E%3Cpath stroke=%27rgba%28255%2C%20255%2C%20255%2C%200.88%29%27 stroke-width=%271.375%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 mask=%27url%28%23b%29%27 d=%27m1.688 7.861 4.302 4.264 8.323-8.25%27/%3E%3C/g%3E%3C/svg%3E"); -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-popup.ne-code-popup-Darcula .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content { - background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2716%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27%3E%3Cdefs%3E%3Cpath id=%27a%27 d=%27M0 0h16v16H0z%27/%3E%3C/defs%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cmask id=%27b%27 fill=%27%23fff%27%3E%3Cuse xlink:href=%27%23a%27/%3E%3C/mask%3E%3Cpath stroke=%27rgba%28255%2C%20255%2C%20255%2C%200.88%29%27 stroke-width=%271.375%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 mask=%27url%28%23b%29%27 d=%27m1.688 7.861 4.302 4.264 8.323-8.25%27/%3E%3C/g%3E%3C/svg%3E"); -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item, -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item, -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item, -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item, -.ne-code-popup.ne-code-popup-Darcula .ant-select-item, -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item { - color: rgba(255, 255, 255, 0.88); -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item:hover, -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item:hover, -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item:hover, -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item:hover, -.ne-code-popup.ne-code-popup-Darcula .ant-select-item:hover, -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item:hover { - background-color: rgba(255, 255, 255, 0.12); -} -.ne-codeblock-loading { - color: #b1b1b1; - width: 50px; - height: 50px; - display: flex; - justify-content: center; - align-items: center; - position: absolute; - bottom: 0; - left: 50%; - margin-left: -25px; -} -.ne-editor ne-card[data-card-name='codeblock'] .ne-codeblock-content ::selection { - background: transparent !important; -} -.ne-editor ne-card[data-card-name='codeblock'] .cm-selectionBackground { - background: rgba(80, 153, 236, 0.5) !important; -} -.ne-editor ne-card[data-card-name='codeblock'] .cm-scroller { - padding-bottom: 5px; -} - -.ne-codeblock-loading { - color: #b1b1b1; - width: 50px; - height: 50px; - display: flex; - justify-content: center; - align-items: center; - position: absolute; - bottom: 0; - left: 50%; - margin-left: -25px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-mention-content { - display: flex; - align-items: flex-start; - justify-content: space-between; - padding: 8px; - border-radius: 4px; - cursor: pointer; - max-width: 360px; -} -@media screen and (max-width: 375px) { - .ne-ui-mention-content { - max-width: 300px; - } -} -.ne-ui-mention-content .ne-svg-icon { - width: 24px; - height: 24px; - margin-right: 8px; - flex-shrink: 0; -} -.ne-ui-mention-content-info { - width: calc(100% - 28px); -} -.ne-ui-mention-content-info-desc { - display: flex; - color: var(--lakex-editor-text-body); - font-size: 12px; - line-height: 20px; - align-items: center; - justify-content: space-between; -} -.ne-ui-mention-content-info-desc-prefix { - white-space: nowrap; - word-break: keep-all; - flex: 1; - overflow: hidden; - text-overflow: ellipsis; - padding-right: 14px; -} -.ne-ui-mention-content-info-desc time { - flex-shrink: 0; -} -.ne-ui-mention-content-info-title { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - color: var(--lakex-editor-text-color); - font-size: 14px; - line-height: 22px; -} -.ne-ui-mention-content-info-title em { - font-weight: bold; - font-style: normal; -} -.divider { - width: 1px; - height: 10px; - background-color: var(--lakex-editor-color-grey6); - margin: 8px 4px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-mention-item { - display: flex; - padding: 4px 8px; - cursor: pointer; - font-size: 14px; - height: auto; - border-radius: 4px; -} -.ne-ui-mention-name { - color: var(--lakex-editor-text-color); - font-size: 14px; - line-height: 22px; -} -.ne-ui-mention-avatar { - width: 24px; - height: 24px; - border-radius: 100%; - object-fit: contain; - margin-right: 8px; -} -.ne-ui-mention-info { - line-height: 20px; - width: calc(100% - 28px); - color: var(--lakex-editor-text-body); - font-size: 14px; -} -.ne-ui-mention-info .ne-ui-mention-desc { - color: var(--lakex-editor-text-body); - font-size: 12px; - line-height: 20px; - overflow: hidden; - text-overflow: ellipsis; - word-break: keep-all; - white-space: nowrap; -} -.ne-ui-mention-info .ne-ui-mention-desc span { - display: inline-block; - max-width: 97px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.ne-ui-mention-item-mini { - width: 216px; -} -.ne-ui-mention-item-mini .ne-ui-mention-desc span { - max-width: 56px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -ne-card[data-card-name='mention'].ne-card-editing { - background: transparent !important; -} -.ne-ui-card-select-view { - display: inline; - position: relative; -} -.ne-ui-card-select-view .ne-ui-card-select-input-wrap { - display: inline; - position: relative; - min-width: 50px; - white-space: nowrap; - overflow: hidden; -} -.ne-ui-card-select-view .ne-ui-card-select-input-wrap .ne-ui-card-select-hidden { - color: transparent; - padding: 0 5px; - min-width: 60px; -} -.ne-ui-card-select-view .ne-ui-card-select-input { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 100%; - border: none; - background: none; - outline: none; - padding: 0; -} -.ne-ui-card-select-view .ne-ui-card-select-input::placeholder { - color: var(--lakex-editor-text-disable); -} -.ne-ui-mention-menu-mini { - width: 240px !important; -} -.ne-ui-mention-menu { - border-radius: 4px; - width: 360px; - height: 100%; - overflow-y: auto; - overflow-x: hidden; -} -@media screen and (max-width: 375px) { - .ne-ui-mention-menu { - width: 300px; - } -} -.ne-ui-mention-menu-list { - padding: 8px; - height: auto; -} -.ne-ui-mention-menu-empty { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - color: var(--lakex-editor-text-disable); - padding: 16px; -} -.ne-ui-mention-menu-empty img { - width: 180px; - margin-bottom: 12px; -} -.ne-ui-mention-menu { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-mention-item-selected { - background-color: var(--lakex-editor-background-primary-hover); -} -.doc-user-divider { - height: 1px; - margin: 8px; - width: calc(100% - 16px); - background-color: var(--lakex-editor-background-primary-hover); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-mention-header { - display: flex; - align-items: flex-end; - justify-content: space-between; - color: var(--lakex-editor-text-caption); - padding: 14px 16px 4px 16px; - word-break: keep-all; -} -.ne-ui-mention-tabs { - display: flex; - align-items: center; - border-radius: 4px; - cursor: pointer; -} -.ne-ui-mention-tab { - border-radius: 4px; - padding: 2px 8px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - min-width: 50px; - line-height: 20px; -} -.ne-ui-mention-tab span { - margin-left: 4px; -} -.ne-ui-mention-tab-selected { - background-color: var(--lakex-editor-background-primary-hover); - color: var(--lakex-editor-text-body); -} -.ne-ui-mention-tab-divider { - height: 12px; - width: 1px; - margin: 0 8px; - background-color: var(--lakex-editor-color-grey5); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-card-select-view { - display: inline; - position: relative; -} -.ne-ui-card-select-view .ne-ui-card-select-input-wrap { - display: inline; - position: relative; - min-width: 50px; - white-space: nowrap; - overflow: hidden; -} -.ne-ui-card-select-view .ne-ui-card-select-input-wrap .ne-ui-card-select-hidden { - color: transparent; - padding: 0 5px; - min-width: 60px; -} -.ne-ui-card-select-view .ne-ui-card-select-input { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 100%; - border: none; - background: none; - outline: none; - padding: 0; -} -.ne-ui-card-select-view .ne-ui-card-select-input::placeholder { - color: var(--lakex-editor-text-disable); -} - -.ne-simple-ui ne-heading-anchor { - display: none !important; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-card-video-content { - position: relative; - height: 450px; - background: var(--lakex-editor-background-secondary); - user-select: none; -} -.ne-card-video-content video { - width: 100%; - height: 450px; - outline: none; -} -.ne-card-video-uploading, -.ne-card-video-uploaded, -.ne-card-video-error { - border: 1px solid var(--lakex-editor-border-primary); - background: var(--lakex-editor-background-tertiary); -} -.ne-card-video-done { - position: relative; - border: none; - background: none; - line-height: 0; -} -.ne-card-video-content-active { - outline: 1px solid var(--lakex-editor-color-grey5); -} -.ne-card-video-center { - position: absolute; - top: 50%; - margin-top: -48px; - width: 100%; - height: 96px; -} -.ne-card-video-icon, -.ne-card-video-name, -.ne-card-video-message, -.ne-card-video-progress, -.ne-card-video-converting { - text-align: center; -} -.ne-card-video-icon { - font-size: 24px; - color: var(--lakex-editor-text-disable); - margin-bottom: 12px; -} -.ne-card-video-name { - color: var(--lakex-editor-text-body); - margin-bottom: 12px; -} -.ne-card-video-message { - color: var(--lakex-editor-text-body); -} -.ne-card-video-anticon { - display: inline-block; - font-style: normal; - vertical-align: -0.125em; - text-align: center; - text-transform: none; - line-height: 0; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - margin-right: 5px; -} -.ne-card-video-anticon-anticon-spin { - display: inline-block; - -webkit-animation: rotateLoading 1s infinite linear; - animation: rotateLoading 1s infinite linear; -} -.ne-card-video .lake-error-icon { - width: 16px; - height: 16px; - display: inline-block; - background: var(--lakex-editor-color-red6); - text-align: center; - font-size: 12px; - color: var(--lakex-editor-color-white); - padding: 1px 0 0 0; - line-height: 16px; - border-radius: 100%; - vertical-align: middle; - margin: -2px 5px 0 0; -} -.h5-ne-card-video-wrapper { - position: relative; -} -.h5-ne-card-video-wrapper video { - position: relative; -} -.h5-ne-card-video-wrapper img { - width: 48px; - height: 48px; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - user-select: none; - pointer-events: none; -} -.h5-ne-card-video-wrapper .h5-ne-card-video-desc { - position: absolute; - background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 19%, var(--lakex-editor-color-black-f30) 100%); - left: 0; - right: 0; - bottom: 0; - height: 46px; - display: flex; - color: var(--lakex-editor-color-white); - align-items: center; - justify-content: space-between; - padding: 0 12px; - padding-top: 16px; -} -@media screen and (max-width: 750px) { - .ne-card-video-content { - height: auto; - } - .ne-card-video-content video { - height: auto !important; - } - .ne-card-video-converting-wrapper, - .ne-card-video-progress-wrapper { - height: 200px; - } -} -.ne-doc-major-viewer-mobile .ne-card-video-content { - height: auto; -} -.ne-doc-major-viewer-mobile .ne-card-video-content video { - height: auto !important; -} - -/* stylelint-disable font-family-no-missing-generic-family-keyword */ -@font-face { - font-family: 'KaTeX_AMS'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/019a4e9e-b063-4224-b457-5babf40979cd.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/f62f903d-eabe-4d69-acfe-86e41c858f8a.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/24899907-b8fb-495e-b758-fb7f693be0e1.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Caligraphic'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/fd6462c7-253d-424a-8904-0c88b29abfd1.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/6b71eec1-da4d-4c6c-8404-b1f00fafd794.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/246d3683-4515-4dea-a5bf-2a78bac0bcaa.ttf) format('truetype'); - font-weight: bold; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Caligraphic'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/5152b263-b8dd-40d1-83fb-96b41b2e90f6.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/98489548-d7f3-4b33-964c-4a88161b63f0.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/3461892d-0450-4c00-ad91-44a22ed93146.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Fraktur'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/262faaec-b6c5-4d7f-8aaa-88288f740801.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/b38e8fe6-4b82-488c-b2d6-dfc3fab33996.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/83e59a7c-a7ff-4010-921f-c8b72b6ea147.ttf) format('truetype'); - font-weight: bold; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Fraktur'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/d285d05a-4a7b-48a9-b154-a1623f7828b9.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/7400bd66-38d1-4e5d-9bc9-d0f4a2d307ad.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/62fb04ed-7e21-4833-a1e9-25a7eee425b8.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Main'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/80c4bae4-cf76-4d80-83bd-45d8437e46dd.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/b7e16804-4488-4ad4-afeb-8ca8a03b6d2a.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/a8b9e729-b346-472b-8abe-306ad3161887.ttf) format('truetype'); - font-weight: bold; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Main'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/24021f68-a78b-4a3a-9eab-d5e43670b982.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/3bccd94e-6c44-48df-8d7d-f2d2a0ec73ca.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/f00413c9-887d-469a-8060-15c3a7fc89be.ttf) format('truetype'); - font-weight: bold; - font-style: italic; -} -@font-face { - font-family: 'KaTeX_Main'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/9c6164f3-1a40-45ac-8b88-327111d81143.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/2314e925-3ff7-4edf-b5ef-8f3771ae9dd1.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/75fb86aa-4a53-4605-9320-459b1bfc2c99.ttf) format('truetype'); - font-weight: normal; - font-style: italic; -} -@font-face { - font-family: 'KaTeX_Main'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/f536bc95-84a7-4100-9478-7819dadb2ead.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/638c1bfb-e93e-4bac-a6c5-e419d4874269.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/f8567afb-749b-421b-827e-4e3c571cd9ea.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Math'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/105b3d72-1e92-42ce-95a6-0f910db6f19c.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/7b4d8d06-dd24-4590-a853-04c8e1f66a92.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/f3caffc3-00d0-4e82-84ba-f6661b0cf074.ttf) format('truetype'); - font-weight: bold; - font-style: italic; -} -@font-face { - font-family: 'KaTeX_Math'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/9a57ab70-fe59-4d31-84c6-335f17e81154.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/2b242b74-e715-4158-96c8-d94705062f33.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/03b73ec9-d40e-4cc5-8e7f-56c1f208abf6.ttf) format('truetype'); - font-weight: normal; - font-style: italic; -} -@font-face { - font-family: 'KaTeX_SansSerif'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/799e2753-aeeb-4742-8b42-2b53bb846c8e.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/d1552a82-22e9-4d36-a605-61fbce136305.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/5e8dbeb4-81ff-4811-8594-31a2ec52f8fe.ttf) format('truetype'); - font-weight: bold; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_SansSerif'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/0d5ad848-7800-4028-b6de-362ce13275b1.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/746d81f3-0969-4519-9409-8ce29eef63ed.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/28a69d65-61c1-4b17-a681-68b389dfb507.ttf) format('truetype'); - font-weight: normal; - font-style: italic; -} -@font-face { - font-family: 'KaTeX_SansSerif'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/c0a98309-21e8-4c1f-8e53-100271defd28.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/1252f462-0974-4b98-8a22-361000ce76af.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/e9f8fc4c-c7bc-4695-a2b0-346f148938c0.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Script'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/7d619cf9-bdaa-4b29-ad0e-50979fcd4142.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/a01a69d6-16f9-4b60-b016-1dbaa17cf835.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/9da45bbb-7a05-4b84-b7ba-a905c7487334.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Size1'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/6dabb9ed-e616-4b4f-8a05-10ba1da4d125.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/30813519-d625-413b-a613-d663e0051438.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/cf932216-32cf-4886-8784-497059f9428e.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Size2'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/ea28e5bf-47ed-4ab6-932f-aca5e7052d8d.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/5acd58ec-add9-4074-85d0-e50e38807cd9.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/38d79519-ba39-441d-80fc-e85486a62868.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Size3'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/afb2ee32-1315-4569-b19b-294b5d06d9a9.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/4ce4718c-8a0f-4cfc-87d1-87f3181bd21f.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/17e395ed-9e25-464e-a2b0-56c6afff6da7.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Size4'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/120e78dc-b5ce-4f23-9f12-a07e0c512a4d.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/30007994-ae34-4106-9050-5c57fcdb191d.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/34ee8fb3-9364-46a2-a448-dcd5987a50f7.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -@font-face { - font-family: 'KaTeX_Typewriter'; - src: url(https://gw.alipayobjects.com/os/bmw-prod/94ac5e00-58e2-4a84-bfe3-147e24faa22d.woff2) format('woff2'), url(https://gw.alipayobjects.com/os/bmw-prod/5e46f79d-4957-4b2d-b8c2-d66dd6563bda.woff) format('woff'), url(https://gw.alipayobjects.com/os/bmw-prod/331279c4-c77f-4b83-92e3-d34ef31d72ae.ttf) format('truetype'); - font-weight: normal; - font-style: normal; -} -.katex { - font: normal 1.21em KaTeX_Main, Times New Roman, serif; - line-height: 1; - text-indent: 0; - text-rendering: auto; - vertical-align: text-bottom; -} -.katex * { - -ms-high-contrast-adjust: none !important; - border-color: currentColor; -} -.katex .katex-version::after { - content: '0.15.2'; -} -.katex .katex-mathml { - /* Accessibility hack to only show to screen readers - Found at: http://a11yproject.com/posts/how-to-hide-content/ */ - position: absolute; - clip: rect(1px, 1px, 1px, 1px); - padding: 0; - border: 0; - height: 1px; - width: 1px; - overflow: hidden; -} -.katex .katex-html { - /* \newline is an empty block at top level, between .base elements */ -} -.katex .katex-html > .newline { - display: block; -} -.katex .base { - position: relative; - display: inline-block; - white-space: nowrap; - width: -webkit-min-content; - width: -moz-min-content; - width: min-content; -} -.katex .strut { - display: inline-block; -} -.katex .textbf { - font-weight: bold; -} -.katex .textit { - font-style: italic; -} -.katex .textrm { - font-family: KaTeX_Main; -} -.katex .textsf { - font-family: KaTeX_SansSerif; -} -.katex .texttt { - font-family: KaTeX_Typewriter; -} -.katex .mathnormal { - font-family: KaTeX_Math; - font-style: italic; -} -.katex .mathit { - font-family: KaTeX_Main; - font-style: italic; -} -.katex .mathrm { - font-style: normal; -} -.katex .mathbf { - font-family: KaTeX_Main; - font-weight: bold; -} -.katex .boldsymbol { - font-family: KaTeX_Math; - font-weight: bold; - font-style: italic; -} -.katex .amsrm { - font-family: KaTeX_AMS; -} -.katex .mathbb, -.katex .textbb { - font-family: KaTeX_AMS; -} -.katex .mathcal { - font-family: KaTeX_Caligraphic; -} -.katex .mathfrak, -.katex .textfrak { - font-family: KaTeX_Fraktur; -} -.katex .mathtt { - font-family: KaTeX_Typewriter; -} -.katex .mathscr, -.katex .textscr { - font-family: KaTeX_Script; -} -.katex .mathsf, -.katex .textsf { - font-family: KaTeX_SansSerif; -} -.katex .mathboldsf, -.katex .textboldsf { - font-family: KaTeX_SansSerif; - font-weight: bold; -} -.katex .mathitsf, -.katex .textitsf { - font-family: KaTeX_SansSerif; - font-style: italic; -} -.katex .mainrm { - font-family: KaTeX_Main; - font-style: normal; -} -.katex .vlist-t { - display: inline-table; - table-layout: fixed; - border-collapse: collapse; -} -.katex .vlist-r { - display: table-row; -} -.katex .vlist { - display: table-cell; - vertical-align: bottom; - position: relative; -} -.katex .vlist > span { - display: block; - height: 0; - position: relative; -} -.katex .vlist > span > span { - display: inline-block; -} -.katex .vlist > span > .pstrut { - overflow: hidden; - width: 0; -} -.katex .vlist-t2 { - margin-right: -2px; -} -.katex .vlist-s { - display: table-cell; - vertical-align: bottom; - font-size: 1px; - width: 2px; - min-width: 2px; -} -.katex .vbox { - display: inline-flex; - flex-direction: column; - align-items: baseline; -} -.katex .hbox { - display: inline-flex; - flex-direction: row; - width: 100%; -} -.katex .thinbox { - display: inline-flex; - flex-direction: row; - width: 0; - max-width: 0; -} -.katex .msupsub { - text-align: left; -} -.katex .mfrac > span > span { - text-align: center; -} -.katex .mfrac .frac-line { - display: inline-block; - width: 100%; - border-bottom-style: solid; -} -.katex .mfrac .frac-line, -.katex .overline .overline-line, -.katex .underline .underline-line, -.katex .hline, -.katex .hdashline, -.katex .rule { - min-height: 1px; -} -.katex .mspace { - display: inline-block; -} -.katex .llap, -.katex .rlap, -.katex .clap { - width: 0; - position: relative; -} -.katex .llap > .inner, -.katex .rlap > .inner, -.katex .clap > .inner { - position: absolute; -} -.katex .llap > .fix, -.katex .rlap > .fix, -.katex .clap > .fix { - display: inline-block; -} -.katex .llap > .inner { - right: 0; -} -.katex .rlap > .inner, -.katex .clap > .inner { - left: 0; -} -.katex .clap > .inner > span { - margin-left: -50%; - margin-right: 50%; -} -.katex .rule { - display: inline-block; - border: solid 0; - position: relative; -} -.katex .overline .overline-line, -.katex .underline .underline-line, -.katex .hline { - display: inline-block; - width: 100%; - border-bottom-style: solid; -} -.katex .hdashline { - display: inline-block; - width: 100%; - border-bottom-style: dashed; -} -.katex .sqrt > .root { - /* These values are taken from the definition of `\r@@t`, - `\mkern 5mu` and `\mkern -10mu`. */ - margin-left: 0.27777778em; - margin-right: -0.55555556em; -} -.katex .sizing.reset-size1.size1, -.katex .fontsize-ensurer.reset-size1.size1 { - font-size: 1em; -} -.katex .sizing.reset-size1.size2, -.katex .fontsize-ensurer.reset-size1.size2 { - font-size: 1.2em; -} -.katex .sizing.reset-size1.size3, -.katex .fontsize-ensurer.reset-size1.size3 { - font-size: 1.4em; -} -.katex .sizing.reset-size1.size4, -.katex .fontsize-ensurer.reset-size1.size4 { - font-size: 1.6em; -} -.katex .sizing.reset-size1.size5, -.katex .fontsize-ensurer.reset-size1.size5 { - font-size: 1.8em; -} -.katex .sizing.reset-size1.size6, -.katex .fontsize-ensurer.reset-size1.size6 { - font-size: 2em; -} -.katex .sizing.reset-size1.size7, -.katex .fontsize-ensurer.reset-size1.size7 { - font-size: 2.4em; -} -.katex .sizing.reset-size1.size8, -.katex .fontsize-ensurer.reset-size1.size8 { - font-size: 2.88em; -} -.katex .sizing.reset-size1.size9, -.katex .fontsize-ensurer.reset-size1.size9 { - font-size: 3.456em; -} -.katex .sizing.reset-size1.size10, -.katex .fontsize-ensurer.reset-size1.size10 { - font-size: 4.148em; -} -.katex .sizing.reset-size1.size11, -.katex .fontsize-ensurer.reset-size1.size11 { - font-size: 4.976em; -} -.katex .sizing.reset-size2.size1, -.katex .fontsize-ensurer.reset-size2.size1 { - font-size: 0.83333333em; -} -.katex .sizing.reset-size2.size2, -.katex .fontsize-ensurer.reset-size2.size2 { - font-size: 1em; -} -.katex .sizing.reset-size2.size3, -.katex .fontsize-ensurer.reset-size2.size3 { - font-size: 1.16666667em; -} -.katex .sizing.reset-size2.size4, -.katex .fontsize-ensurer.reset-size2.size4 { - font-size: 1.33333333em; -} -.katex .sizing.reset-size2.size5, -.katex .fontsize-ensurer.reset-size2.size5 { - font-size: 1.5em; -} -.katex .sizing.reset-size2.size6, -.katex .fontsize-ensurer.reset-size2.size6 { - font-size: 1.66666667em; -} -.katex .sizing.reset-size2.size7, -.katex .fontsize-ensurer.reset-size2.size7 { - font-size: 2em; -} -.katex .sizing.reset-size2.size8, -.katex .fontsize-ensurer.reset-size2.size8 { - font-size: 2.4em; -} -.katex .sizing.reset-size2.size9, -.katex .fontsize-ensurer.reset-size2.size9 { - font-size: 2.88em; -} -.katex .sizing.reset-size2.size10, -.katex .fontsize-ensurer.reset-size2.size10 { - font-size: 3.45666667em; -} -.katex .sizing.reset-size2.size11, -.katex .fontsize-ensurer.reset-size2.size11 { - font-size: 4.14666667em; -} -.katex .sizing.reset-size3.size1, -.katex .fontsize-ensurer.reset-size3.size1 { - font-size: 0.71428571em; -} -.katex .sizing.reset-size3.size2, -.katex .fontsize-ensurer.reset-size3.size2 { - font-size: 0.85714286em; -} -.katex .sizing.reset-size3.size3, -.katex .fontsize-ensurer.reset-size3.size3 { - font-size: 1em; -} -.katex .sizing.reset-size3.size4, -.katex .fontsize-ensurer.reset-size3.size4 { - font-size: 1.14285714em; -} -.katex .sizing.reset-size3.size5, -.katex .fontsize-ensurer.reset-size3.size5 { - font-size: 1.28571429em; -} -.katex .sizing.reset-size3.size6, -.katex .fontsize-ensurer.reset-size3.size6 { - font-size: 1.42857143em; -} -.katex .sizing.reset-size3.size7, -.katex .fontsize-ensurer.reset-size3.size7 { - font-size: 1.71428571em; -} -.katex .sizing.reset-size3.size8, -.katex .fontsize-ensurer.reset-size3.size8 { - font-size: 2.05714286em; -} -.katex .sizing.reset-size3.size9, -.katex .fontsize-ensurer.reset-size3.size9 { - font-size: 2.46857143em; -} -.katex .sizing.reset-size3.size10, -.katex .fontsize-ensurer.reset-size3.size10 { - font-size: 2.96285714em; -} -.katex .sizing.reset-size3.size11, -.katex .fontsize-ensurer.reset-size3.size11 { - font-size: 3.55428571em; -} -.katex .sizing.reset-size4.size1, -.katex .fontsize-ensurer.reset-size4.size1 { - font-size: 0.625em; -} -.katex .sizing.reset-size4.size2, -.katex .fontsize-ensurer.reset-size4.size2 { - font-size: 0.75em; -} -.katex .sizing.reset-size4.size3, -.katex .fontsize-ensurer.reset-size4.size3 { - font-size: 0.875em; -} -.katex .sizing.reset-size4.size4, -.katex .fontsize-ensurer.reset-size4.size4 { - font-size: 1em; -} -.katex .sizing.reset-size4.size5, -.katex .fontsize-ensurer.reset-size4.size5 { - font-size: 1.125em; -} -.katex .sizing.reset-size4.size6, -.katex .fontsize-ensurer.reset-size4.size6 { - font-size: 1.25em; -} -.katex .sizing.reset-size4.size7, -.katex .fontsize-ensurer.reset-size4.size7 { - font-size: 1.5em; -} -.katex .sizing.reset-size4.size8, -.katex .fontsize-ensurer.reset-size4.size8 { - font-size: 1.8em; -} -.katex .sizing.reset-size4.size9, -.katex .fontsize-ensurer.reset-size4.size9 { - font-size: 2.16em; -} -.katex .sizing.reset-size4.size10, -.katex .fontsize-ensurer.reset-size4.size10 { - font-size: 2.5925em; -} -.katex .sizing.reset-size4.size11, -.katex .fontsize-ensurer.reset-size4.size11 { - font-size: 3.11em; -} -.katex .sizing.reset-size5.size1, -.katex .fontsize-ensurer.reset-size5.size1 { - font-size: 0.55555556em; -} -.katex .sizing.reset-size5.size2, -.katex .fontsize-ensurer.reset-size5.size2 { - font-size: 0.66666667em; -} -.katex .sizing.reset-size5.size3, -.katex .fontsize-ensurer.reset-size5.size3 { - font-size: 0.77777778em; -} -.katex .sizing.reset-size5.size4, -.katex .fontsize-ensurer.reset-size5.size4 { - font-size: 0.88888889em; -} -.katex .sizing.reset-size5.size5, -.katex .fontsize-ensurer.reset-size5.size5 { - font-size: 1em; -} -.katex .sizing.reset-size5.size6, -.katex .fontsize-ensurer.reset-size5.size6 { - font-size: 1.11111111em; -} -.katex .sizing.reset-size5.size7, -.katex .fontsize-ensurer.reset-size5.size7 { - font-size: 1.33333333em; -} -.katex .sizing.reset-size5.size8, -.katex .fontsize-ensurer.reset-size5.size8 { - font-size: 1.6em; -} -.katex .sizing.reset-size5.size9, -.katex .fontsize-ensurer.reset-size5.size9 { - font-size: 1.92em; -} -.katex .sizing.reset-size5.size10, -.katex .fontsize-ensurer.reset-size5.size10 { - font-size: 2.30444444em; -} -.katex .sizing.reset-size5.size11, -.katex .fontsize-ensurer.reset-size5.size11 { - font-size: 2.76444444em; -} -.katex .sizing.reset-size6.size1, -.katex .fontsize-ensurer.reset-size6.size1 { - font-size: 0.5em; -} -.katex .sizing.reset-size6.size2, -.katex .fontsize-ensurer.reset-size6.size2 { - font-size: 0.6em; -} -.katex .sizing.reset-size6.size3, -.katex .fontsize-ensurer.reset-size6.size3 { - font-size: 0.7em; -} -.katex .sizing.reset-size6.size4, -.katex .fontsize-ensurer.reset-size6.size4 { - font-size: 0.8em; -} -.katex .sizing.reset-size6.size5, -.katex .fontsize-ensurer.reset-size6.size5 { - font-size: 0.9em; -} -.katex .sizing.reset-size6.size6, -.katex .fontsize-ensurer.reset-size6.size6 { - font-size: 1em; -} -.katex .sizing.reset-size6.size7, -.katex .fontsize-ensurer.reset-size6.size7 { - font-size: 1.2em; -} -.katex .sizing.reset-size6.size8, -.katex .fontsize-ensurer.reset-size6.size8 { - font-size: 1.44em; -} -.katex .sizing.reset-size6.size9, -.katex .fontsize-ensurer.reset-size6.size9 { - font-size: 1.728em; -} -.katex .sizing.reset-size6.size10, -.katex .fontsize-ensurer.reset-size6.size10 { - font-size: 2.074em; -} -.katex .sizing.reset-size6.size11, -.katex .fontsize-ensurer.reset-size6.size11 { - font-size: 2.488em; -} -.katex .sizing.reset-size7.size1, -.katex .fontsize-ensurer.reset-size7.size1 { - font-size: 0.41666667em; -} -.katex .sizing.reset-size7.size2, -.katex .fontsize-ensurer.reset-size7.size2 { - font-size: 0.5em; -} -.katex .sizing.reset-size7.size3, -.katex .fontsize-ensurer.reset-size7.size3 { - font-size: 0.58333333em; -} -.katex .sizing.reset-size7.size4, -.katex .fontsize-ensurer.reset-size7.size4 { - font-size: 0.66666667em; -} -.katex .sizing.reset-size7.size5, -.katex .fontsize-ensurer.reset-size7.size5 { - font-size: 0.75em; -} -.katex .sizing.reset-size7.size6, -.katex .fontsize-ensurer.reset-size7.size6 { - font-size: 0.83333333em; -} -.katex .sizing.reset-size7.size7, -.katex .fontsize-ensurer.reset-size7.size7 { - font-size: 1em; -} -.katex .sizing.reset-size7.size8, -.katex .fontsize-ensurer.reset-size7.size8 { - font-size: 1.2em; -} -.katex .sizing.reset-size7.size9, -.katex .fontsize-ensurer.reset-size7.size9 { - font-size: 1.44em; -} -.katex .sizing.reset-size7.size10, -.katex .fontsize-ensurer.reset-size7.size10 { - font-size: 1.72833333em; -} -.katex .sizing.reset-size7.size11, -.katex .fontsize-ensurer.reset-size7.size11 { - font-size: 2.07333333em; -} -.katex .sizing.reset-size8.size1, -.katex .fontsize-ensurer.reset-size8.size1 { - font-size: 0.34722222em; -} -.katex .sizing.reset-size8.size2, -.katex .fontsize-ensurer.reset-size8.size2 { - font-size: 0.41666667em; -} -.katex .sizing.reset-size8.size3, -.katex .fontsize-ensurer.reset-size8.size3 { - font-size: 0.48611111em; -} -.katex .sizing.reset-size8.size4, -.katex .fontsize-ensurer.reset-size8.size4 { - font-size: 0.55555556em; -} -.katex .sizing.reset-size8.size5, -.katex .fontsize-ensurer.reset-size8.size5 { - font-size: 0.625em; -} -.katex .sizing.reset-size8.size6, -.katex .fontsize-ensurer.reset-size8.size6 { - font-size: 0.69444444em; -} -.katex .sizing.reset-size8.size7, -.katex .fontsize-ensurer.reset-size8.size7 { - font-size: 0.83333333em; -} -.katex .sizing.reset-size8.size8, -.katex .fontsize-ensurer.reset-size8.size8 { - font-size: 1em; -} -.katex .sizing.reset-size8.size9, -.katex .fontsize-ensurer.reset-size8.size9 { - font-size: 1.2em; -} -.katex .sizing.reset-size8.size10, -.katex .fontsize-ensurer.reset-size8.size10 { - font-size: 1.44027778em; -} -.katex .sizing.reset-size8.size11, -.katex .fontsize-ensurer.reset-size8.size11 { - font-size: 1.72777778em; -} -.katex .sizing.reset-size9.size1, -.katex .fontsize-ensurer.reset-size9.size1 { - font-size: 0.28935185em; -} -.katex .sizing.reset-size9.size2, -.katex .fontsize-ensurer.reset-size9.size2 { - font-size: 0.34722222em; -} -.katex .sizing.reset-size9.size3, -.katex .fontsize-ensurer.reset-size9.size3 { - font-size: 0.40509259em; -} -.katex .sizing.reset-size9.size4, -.katex .fontsize-ensurer.reset-size9.size4 { - font-size: 0.46296296em; -} -.katex .sizing.reset-size9.size5, -.katex .fontsize-ensurer.reset-size9.size5 { - font-size: 0.52083333em; -} -.katex .sizing.reset-size9.size6, -.katex .fontsize-ensurer.reset-size9.size6 { - font-size: 0.5787037em; -} -.katex .sizing.reset-size9.size7, -.katex .fontsize-ensurer.reset-size9.size7 { - font-size: 0.69444444em; -} -.katex .sizing.reset-size9.size8, -.katex .fontsize-ensurer.reset-size9.size8 { - font-size: 0.83333333em; -} -.katex .sizing.reset-size9.size9, -.katex .fontsize-ensurer.reset-size9.size9 { - font-size: 1em; -} -.katex .sizing.reset-size9.size10, -.katex .fontsize-ensurer.reset-size9.size10 { - font-size: 1.20023148em; -} -.katex .sizing.reset-size9.size11, -.katex .fontsize-ensurer.reset-size9.size11 { - font-size: 1.43981481em; -} -.katex .sizing.reset-size10.size1, -.katex .fontsize-ensurer.reset-size10.size1 { - font-size: 0.24108004em; -} -.katex .sizing.reset-size10.size2, -.katex .fontsize-ensurer.reset-size10.size2 { - font-size: 0.28929605em; -} -.katex .sizing.reset-size10.size3, -.katex .fontsize-ensurer.reset-size10.size3 { - font-size: 0.33751205em; -} -.katex .sizing.reset-size10.size4, -.katex .fontsize-ensurer.reset-size10.size4 { - font-size: 0.38572806em; -} -.katex .sizing.reset-size10.size5, -.katex .fontsize-ensurer.reset-size10.size5 { - font-size: 0.43394407em; -} -.katex .sizing.reset-size10.size6, -.katex .fontsize-ensurer.reset-size10.size6 { - font-size: 0.48216008em; -} -.katex .sizing.reset-size10.size7, -.katex .fontsize-ensurer.reset-size10.size7 { - font-size: 0.57859209em; -} -.katex .sizing.reset-size10.size8, -.katex .fontsize-ensurer.reset-size10.size8 { - font-size: 0.69431051em; -} -.katex .sizing.reset-size10.size9, -.katex .fontsize-ensurer.reset-size10.size9 { - font-size: 0.83317261em; -} -.katex .sizing.reset-size10.size10, -.katex .fontsize-ensurer.reset-size10.size10 { - font-size: 1em; -} -.katex .sizing.reset-size10.size11, -.katex .fontsize-ensurer.reset-size10.size11 { - font-size: 1.19961427em; -} -.katex .sizing.reset-size11.size1, -.katex .fontsize-ensurer.reset-size11.size1 { - font-size: 0.20096463em; -} -.katex .sizing.reset-size11.size2, -.katex .fontsize-ensurer.reset-size11.size2 { - font-size: 0.24115756em; -} -.katex .sizing.reset-size11.size3, -.katex .fontsize-ensurer.reset-size11.size3 { - font-size: 0.28135048em; -} -.katex .sizing.reset-size11.size4, -.katex .fontsize-ensurer.reset-size11.size4 { - font-size: 0.32154341em; -} -.katex .sizing.reset-size11.size5, -.katex .fontsize-ensurer.reset-size11.size5 { - font-size: 0.36173633em; -} -.katex .sizing.reset-size11.size6, -.katex .fontsize-ensurer.reset-size11.size6 { - font-size: 0.40192926em; -} -.katex .sizing.reset-size11.size7, -.katex .fontsize-ensurer.reset-size11.size7 { - font-size: 0.48231511em; -} -.katex .sizing.reset-size11.size8, -.katex .fontsize-ensurer.reset-size11.size8 { - font-size: 0.57877814em; -} -.katex .sizing.reset-size11.size9, -.katex .fontsize-ensurer.reset-size11.size9 { - font-size: 0.69453376em; -} -.katex .sizing.reset-size11.size10, -.katex .fontsize-ensurer.reset-size11.size10 { - font-size: 0.83360129em; -} -.katex .sizing.reset-size11.size11, -.katex .fontsize-ensurer.reset-size11.size11 { - font-size: 1em; -} -.katex .delimsizing.size1 { - font-family: KaTeX_Size1; -} -.katex .delimsizing.size2 { - font-family: KaTeX_Size2; -} -.katex .delimsizing.size3 { - font-family: KaTeX_Size3; -} -.katex .delimsizing.size4 { - font-family: KaTeX_Size4; -} -.katex .delimsizing.mult .delim-size1 > span { - font-family: KaTeX_Size1; -} -.katex .delimsizing.mult .delim-size4 > span { - font-family: KaTeX_Size4; -} -.katex .nulldelimiter { - display: inline-block; - width: 0.12em; -} -.katex .delimcenter { - position: relative; -} -.katex .op-symbol { - position: relative; -} -.katex .op-symbol.small-op { - font-family: KaTeX_Size1; -} -.katex .op-symbol.large-op { - font-family: KaTeX_Size2; -} -.katex .op-limits > .vlist-t { - text-align: center; -} -.katex .accent > .vlist-t { - text-align: center; -} -.katex .accent .accent-body { - position: relative; -} -.katex .accent .accent-body:not(.accent-full) { - width: 0; -} -.katex .overlay { - display: block; -} -.katex .mtable .vertical-separator { - display: inline-block; - min-width: 1px; -} -.katex .mtable .arraycolsep { - display: inline-block; -} -.katex .mtable .col-align-c > .vlist-t { - text-align: center; -} -.katex .mtable .col-align-l > .vlist-t { - text-align: left; -} -.katex .mtable .col-align-r > .vlist-t { - text-align: right; -} -.katex .svg-align { - text-align: left; -} -.katex svg { - display: block; - position: absolute; - width: 100%; - height: inherit; - fill: currentColor; - stroke: currentColor; - fill-rule: nonzero; - fill-opacity: 1; - stroke-width: 1; - stroke-linecap: butt; - stroke-linejoin: miter; - stroke-miterlimit: 4; - stroke-dasharray: none; - stroke-dashoffset: 0; - stroke-opacity: 1; -} -.katex svg path { - stroke: none; -} -.katex img { - border-style: none; - min-width: 0; - min-height: 0; - max-width: none; - max-height: none; -} -.katex .stretchy { - width: 100%; - display: block; - position: relative; - overflow: hidden; -} -.katex .stretchy::before, -.katex .stretchy::after { - content: ''; -} -.katex .hide-tail { - width: 100%; - position: relative; - overflow: hidden; -} -.katex .halfarrow-left { - position: absolute; - left: 0; - width: 50.2%; - overflow: hidden; -} -.katex .halfarrow-right { - position: absolute; - right: 0; - width: 50.2%; - overflow: hidden; -} -.katex .brace-left { - position: absolute; - left: 0; - width: 25.1%; - overflow: hidden; -} -.katex .brace-center { - position: absolute; - left: 25%; - width: 50%; - overflow: hidden; -} -.katex .brace-right { - position: absolute; - right: 0; - width: 25.1%; - overflow: hidden; -} -.katex .x-arrow-pad { - padding: 0 0.5em; -} -.katex .cd-arrow-pad { - padding: 0 0.55556em 0 0.27778em; -} -.katex .x-arrow, -.katex .mover, -.katex .munder { - text-align: center; -} -.katex .boxpad { - padding: 0 0.3em; -} -.katex .fbox, -.katex .fcolorbox { - box-sizing: border-box; - border: 0.04em solid; -} -.katex .cancel-pad { - padding: 0 0.2em; -} -.katex .cancel-lap { - margin-left: -0.2em; - margin-right: -0.2em; -} -.katex .sout { - border-bottom-style: solid; - border-bottom-width: 0.08em; -} -.katex .angl { - box-sizing: border-box; - border-top: 0.049em solid; - border-right: 0.049em solid; - margin-right: 0.03889em; -} -.katex .anglpad { - padding: 0 0.03889em; -} -.katex .eqn-num::before { - counter-increment: katexEqnNo; - content: '(' counter(katexEqnNo) ')'; -} -.katex .mml-eqn-num::before { - counter-increment: mmlEqnNo; - content: '(' counter(mmlEqnNo) ')'; -} -.katex .mtr-glue { - width: 50%; -} -.katex .cd-vert-arrow { - display: inline-block; - position: relative; -} -.katex .cd-label-left { - display: inline-block; - position: absolute; - right: calc(50% + 0.3em); - text-align: left; -} -.katex .cd-label-right { - display: inline-block; - position: absolute; - left: calc(50% + 0.3em); - text-align: right; -} -.katex-display { - display: block; - margin: 2px 0; - text-align: center; -} -.katex-display > .katex { - display: block; - text-align: center; -} -.katex-display > .katex > .katex-html { - display: block; - position: relative; -} -.katex-display > .katex > .katex-html > .tag { - right: 0; - padding-left: 2em; -} -.katex-display.leqno > .katex > .katex-html > .tag { - left: 0; - right: auto; -} -.katex-display.fleqn > .katex { - text-align: left; - padding-left: 2em; -} -body { - counter-reset: katexEqnNo mmlEqnNo; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer[data-viewer-mode='present'] { - counter-reset: katexEqnNo; -} -ne-card[data-card-name='math'][data-card-type='inline'] { - height: 100%; - vertical-align: unset; - overflow-y: hidden; - overflow-x: auto; -} -ne-card[data-card-name='math'] .ne-card-container { - display: inline-block; -} -ne-card[data-card-name='math'] .ne-math { - display: inline-block; -} -ne-card[data-card-name='math'] .ne-math .ne-math-viewer { - display: inline-block; - cursor: pointer; -} -ne-card[data-card-name='math'] .ne-math .ne-math-viewer img.dark { - filter: invert(1); -} -ne-card[data-card-name='math'] img { - max-width: 100%; -} -textarea.ne-math-input { - width: 100%; - border: none; - border-radius: 0; - min-width: 400px; - min-height: 84px; - max-height: 100%; - height: 100%; - padding: 6px 6px; - line-height: 24px; - color: var(--lakex-editor-text-body); - outline: none; - font-family: 'Lucida Console', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - vertical-align: bottom; - font-size: 14px; - font-weight: 400; - resize: none; - border-radius: 8px; -} -.ne-math-selected { - background: unset; -} -.ne-math-editor-toolbar { - border-bottom-right-radius: 8px; - border-bottom-left-radius: 8px; -} -.ne-math-editor-toolbar, -.ne-math-editor-error-top, -.ne-math-editor-error-bottom { - position: relative; - height: 40px; - background: var(--lakex-editor-background-secondary); - border-top: 1px solid var(--lakex-editor-border-primary); - line-height: 24px; - padding: 8px 8px; - text-align: left; - text-indent: 0; -} -.ne-math-editor-toolbar .ne-math-editor-submit, -.ne-math-editor-error-top .ne-math-editor-submit, -.ne-math-editor-error-bottom .ne-math-editor-submit { - float: right; -} -.ne-math-editor-toolbar a, -.ne-math-editor-error-top a, -.ne-math-editor-error-bottom a { - font-size: 12px; - color: var(--lakex-editor-text-caption); -} -.ne-math-editor-toolbar .larkui-icon, -.ne-math-editor-error-top .larkui-icon, -.ne-math-editor-error-bottom .larkui-icon { - margin-right: 6px; -} -.ne-math-editor-toolbar a:hover, -.ne-math-editor-error-top a:hover, -.ne-math-editor-error-bottom a:hover { - color: var(--lakex-editor-text-body); -} -.ne-math-editor-toolbar .ne-icon { - margin-right: 5px; -} -.ne-math-editor-toolbar .ne-help-link { - display: inline-flex; - align-items: center; -} -.ne-math-fallback { - vertical-align: unset; - font-size: 1em; -} -.ne-math-editor-error-top, -.ne-math-editor-error-bottom { - color: red; - height: auto; - white-space: pre-wrap; -} -.ant-popover-placement-bottomLeft .ne-math-editor-error-top, -.ant-popover-placement-bottomRight .ne-math-editor-error-top { - display: none; -} -.ant-popover-placement-topLeft .ne-math-editor-error-bottom, -.ant-popover-placement-topRight .ne-math-editor-error-bottom { - display: none; -} -.ne-ui-popover.ne-math-editor-overlay .ant-popover { - padding-top: 4px; - padding-bottom: 4px; -} -.ne-ui-popover.ne-math-editor-overlay .ant-popover-content { - overflow: hidden; -} -.ne-ui-popover.ne-math-editor-overlay .ant-popover-inner-content { - padding: 0; - border: 1px solid var(--lakex-editor-border-primary); -} -div.ne-icon-question { - width: 14px; - height: 14px; - font-size: 14px; - line-height: 1em; - vertical-align: middle; - margin-bottom: 2px; - margin-right: 4px; -} -.ne-math-code, -.ne-math-placeholder, -.ne-math-placeholder-error { - display: inline-block; - line-height: 32px; - padding: 0 6px; - height: auto; - border-radius: 3px; - cursor: pointer; -} -.ne-math-placeholder { - color: var(--lakex-editor-text-color); - background: var(--lakex-editor-background-tertiary); -} -.ne-math-placeholder-error { - color: red; - background: var(--lakex-editor-background-tertiary); -} -.ne-math-entry { - cursor: pointer; -} -@media print { - .ne-viewer ne-card[data-card-name='math'][data-card-type='inline'] { - display: inline; - } -} -.ne-viewer ne-card[data-card-name='math'][data-card-type='inline'] { - vertical-align: unset; -} -.ne-viewer ne-card[data-card-name='math'] .ne-math-viewer { - display: inline-block; -} -.ne-viewer ne-card[data-card-name='math'] .ne-math-viewer img.dark { - filter: invert(1); -} -div.ne-math-resize { - width: 500px; - height: 400px; - position: relative; -} -div.ne-math-resize .ne-math-resizer-top, -div.ne-math-resize .ne-math-resizer-bottom { - position: absolute; - right: 0; - width: 8px; - height: 8px; - overflow: hidden; - user-select: none; -} -div.ne-math-resize .ne-math-resizer-top { - top: 0; - cursor: nesw-resize; -} -div.ne-math-resize .ne-math-resizer-top:after { - content: ''; - border-top: 1px solid var(--lakex-editor-color-black); - border-bottom: 1px solid var(--lakex-editor-color-black); - transform: rotate(45deg); - position: absolute; - top: 2px; - left: -6px; - width: 24px; - height: 3px; -} -div.ne-math-resize .ne-math-resizer-bottom { - bottom: 0; - cursor: nwse-resize; -} -div.ne-math-resize .ne-math-resizer-bottom:after { - content: ''; - border-top: 1px solid var(--lakex-editor-color-black); - border-bottom: 1px solid var(--lakex-editor-color-black); - transform: rotate(-45deg); - position: absolute; - top: 4px; - left: -6px; - width: 24px; - height: 3px; -} -.ant-popover-placement-bottomLeft .ne-math-resizer-top, -.ant-popover-placement-bottomRight .ne-math-resizer-top { - display: none; -} -.ant-popover-placement-topLeft .ne-math-resizer-bottom, -.ant-popover-placement-topRight .ne-math-resizer-bottom { - display: none; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card[data-card-name='thirdparty'].ne-focused .ne-thirdparty-wrap { - border-color: var(--lakex-editor-color-grey5); -} -ne-card[data-card-name='thirdparty'].ne-max .ne-thirdparty-wrap { - border-color: transparent; -} -ne-card[data-card-name='thirdparty'] .ne-thirdparty-wrap { - height: 100%; -} -ne-card[data-card-name='thirdparty'] .ne-thirdparty-wrap .ne-thirdparty-content { - line-height: 0; - background: var(--lakex-editor-background-tertiary); - height: 100%; -} -ne-card[data-card-name='thirdparty'] .ne-thirdparty-wrap .ne-thirdparty-iframe { - position: relative; - width: 100%; - height: 100%; - top: 0; - left: 0; - background: var(--lakex-editor-background-primary); -} -ne-card[data-card-name='thirdparty'] .ne-thirdparty-wrap .ne-thirdparty-video-box { - width: 100%; - height: 100%; - background: var(--lakex-editor-color-black); -} -ne-card[data-card-name='thirdparty'] .ne-thirdparty-wrap .ne-thirdparty-video { - display: block; - margin: auto; - max-width: 100%; - max-height: 500px; -} -ne-card[data-card-name='thirdparty'] .ne-thirdparty-wrap .ne-thirdparty-content-bg { - display: flex; - align-items: center; - justify-content: center; - width: 80px; - height: 80px; - position: absolute; - top: 50%; - left: 50%; - margin-top: -40px; - margin-left: -40px; - text-align: center; - line-height: 80px; - color: var(--lakex-editor-text-body); - font-size: 36px; - z-index: 1; - visibility: visible; - opacity: 1; - transition: all 0.3s linear; -} -ne-card[data-card-name='thirdparty'] .ne-card-container[data-alias] { - height: 500px; -} -ne-card[data-card-name='thirdparty'] .ne-card-container[data-alias='taobao'] { - max-height: 500px; - height: auto; -} -ne-card[data-card-name='thirdparty'] .ne-card-container[data-alias='xiami'] { - height: 112px; -} -ne-card[data-card-name='thirdparty'] .ne-card-container[data-alias='music163'] { - height: 88px; -} -ne-card[data-card-name='thirdparty'] .ne-card-container[data-alias='ximalaya'] { - height: 38px; -} -ne-card[data-card-name='thirdparty'] .ne-thirdparty-unavailable { - background: var(--lakex-editor-background-tertiary); - border-radius: 4px; - font-size: 14px; - color: var(--lakex-editor-text-disable); - display: flex; - justify-content: center; - align-items: center; - height: 88px; - overflow: hidden; - text-overflow: ellipsis; - user-select: text; -} -ne-card[data-card-name='thirdparty'] .ne-thirdparty-unavailable .ne-thirdparty-unavailable-info { - margin-left: 8px; - display: inline-block; - word-break: break-all; - max-width: calc(100% - 128px); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-thirdparty-creator-wrap { - border-radius: 2px; -} -.ne-thirdparty-creator-form { - position: relative; - border-radius: 2px; -} -.ne-thirdparty-creator-input { - margin-left: 10px; -} -.ne-thirdparty-creator-input input { - width: calc(100% - 200px); - border: 0; - height: 40px; - line-height: 40px; - margin: 4px 0; - font-size: 14px; - outline: none; - background: transparent; -} -.ne-thirdparty-creator-input input::placeholder { - color: var(--lakex-editor-color-grey6); -} -.ne-thirdparty-creator-button { - position: absolute; - top: 9px; - right: 12px; -} -.ne-thirdparty-creator-example-button, -.ne-thirdparty-creator-help { - border: 0; - padding: 0; - background: none; - cursor: pointer; - outline: none; - color: var(--lakex-editor-text-body); - margin-right: 16px; - letter-spacing: unset; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-toc-pin-tooltip[ne-force-tooltip-hide] { - display: none !important; -} -.ne-toc-view { - position: relative; - z-index: 1; - max-height: calc(100% - 50px); - display: flex; - flex-shrink: 0; - flex-direction: column; - font-family: 'Chinese Quote', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; -} -.ne-toc-view.ne-toc-viewer { - margin-top: 24px; -} -.ne-toc-view.ne-force-hide { - display: none !important; -} -.ne-toc-view .ne-toc-pin { - margin-bottom: 12px; - padding-top: 8px; - padding-left: 28px; - display: flex; - align-items: center; - height: 30px; - flex-shrink: 0; - color: var(--lakex-editor-text-color); -} -.ne-toc-view .ne-toc-pin .ne-toc-pin-text { - color: var(--lakex-editor-text-color); - margin-right: 8px; - font-weight: bold; -} -.ne-toc-view .ne-toc-pin .ne-toc-pin-wrap, -.ne-toc-view .ne-toc-pin .ne-toc-fold-wrap { - position: relative; - font-size: 0; - height: 24px; - width: 24px; - display: flex; - align-items: center; - justify-content: center; -} -.ne-toc-view .ne-toc-pin .ne-toc-pin-wrap:hover, -.ne-toc-view .ne-toc-pin .ne-toc-fold-wrap:hover { - border-radius: 6px; - background-color: var(--lakex-editor-background-primary-hover-light); -} -.ne-toc-view .ne-toc-pin .ne-toc-pin-wrap .ne-icon, -.ne-toc-view .ne-toc-pin .ne-toc-fold-wrap .ne-icon { - font-size: 16px; -} -.ne-toc-view .ne-toc-pin .lake-icon, -.ne-toc-view .ne-toc-pin .ne-icon { - cursor: pointer; -} -.ne-toc-view .ne-toc-fold-wrap .lake-icon { - cursor: pointer; -} -.ne-toc-view-inner { - width: 100%; - cursor: default; - overflow-x: hidden; - overflow-y: auto; -} -.ne-toc-view-inner .ne-toc-item { - color: var(--lakex-editor-text-body); - display: block; -} -.ne-toc-small-view { - width: 39px; -} -.ne-toc-small-view .ne-toc-view-inner { - overflow-y: hidden; -} -.ne-toc-small-view:hover .ne-toc-view-inner { - overflow-y: auto; -} -.ne-toc-small-view .ne-toc-pin { - opacity: 0; - overflow: hidden; -} -.ne-toc-small-view .ne-toc-item-text { - display: none; -} -.ne-toc-small-view .ne-toc-item { - height: 22px; - margin-bottom: 6px; - position: relative; -} -.ne-toc-small-view .ne-toc-item:before { - content: ' '; - display: block; - height: 2px; - width: 8px; - position: absolute; - right: 0; - top: 20px / 2; - background: var(--lakex-editor-color-grey5); -} -.ne-toc-small-view .ne-toc-item.ne-toc-selected:before { - background: var(--lakex-editor-color-green6); -} -.ne-toc-small-view .ne-toc-item:last-child { - margin-bottom: 0; -} -.ne-toc-small-view .ne-toc-item.ne-toc-depth-1:before { - width: 24px; -} -.ne-toc-small-view .ne-toc-item.ne-toc-depth-2:before { - width: 16px; -} -.ne-toc-small-view .ne-toc-item.ne-toc-depth-3:before { - width: 12px; -} -.ne-toc-small-view .ne-toc-item.ne-toc-depth-4:before { - width: 8px; -} -.ne-toc-small-view .ne-toc-item.ne-toc-depth-5:before { - width: 4px; -} -.ne-toc-small-view .ne-toc-item.ne-toc-depth-6:before { - width: 2px; -} -.ne-toc-small-view .ne-toc-item .ne-toc-fold-btn { - display: none; -} -.ne-toc-small-view .ne-toc-placeholder .ne-toc-placeholder-ind { - display: none; -} -.ne-toc-normal-view, -.ne-toc-small-view:hover, -.ne-viewer-toc-sidebar-hover .ne-toc-view, -.ne-toc-sidebar-hover .ne-toc-view { - width: 305px; -} -.ne-toc-normal-view .ne-toc-pin, -.ne-toc-small-view:hover .ne-toc-pin, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-pin, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-pin { - opacity: 1; -} -.ne-toc-normal-view .ne-toc-item-text, -.ne-toc-small-view:hover .ne-toc-item-text, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item-text, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item-text { - display: block; -} -.ne-toc-normal-view .ne-toc-content, -.ne-toc-small-view:hover .ne-toc-content, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-content, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-content { - position: relative; - z-index: 2; -} -.ne-toc-normal-view .ne-toc-content:after, -.ne-toc-small-view:hover .ne-toc-content:after, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-content:after, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-content:after { - content: ' '; - background: var(--lakex-editor-color-grey5); - width: 2px; - height: 100%; - position: absolute; - top: 0; - left: 0; - z-index: -1; -} -.ne-toc-normal-view .ne-toc-item, -.ne-toc-small-view:hover .ne-toc-item, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item { - padding-left: 8px; - padding-right: 20px; - height: 22px; - font-size: 14px; - line-height: 22px; - margin-bottom: 6px; - white-space: nowrap; - border-left: 2px solid transparent; - cursor: default; -} -.ne-toc-normal-view .ne-toc-item a, -.ne-toc-small-view:hover .ne-toc-item a, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item a, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item a { - color: var(--lakex-editor-text-body); -} -.ne-toc-normal-view .ne-toc-item span.prefix, -.ne-toc-small-view:hover .ne-toc-item span.prefix, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item span.prefix, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item span.prefix { - font-family: Helvetica Neue, Consolas; -} -.ne-toc-normal-view .ne-toc-item.ne-toc-ident-item, -.ne-toc-small-view:hover .ne-toc-item.ne-toc-ident-item, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item.ne-toc-ident-item, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item.ne-toc-ident-item { - padding-left: 35px; -} -.ne-toc-normal-view .ne-toc-item .ne-toc-item-inner, -.ne-toc-small-view:hover .ne-toc-item .ne-toc-item-inner, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-item-inner, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-item-inner { - display: flex; - align-items: center; -} -.ne-toc-normal-view .ne-toc-item:before, -.ne-toc-small-view:hover .ne-toc-item:before, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item:before, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item:before { - display: none; -} -.ne-toc-normal-view .ne-toc-item.ne-toc-selected, -.ne-toc-small-view:hover .ne-toc-item.ne-toc-selected, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item.ne-toc-selected, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item.ne-toc-selected { - border-left-color: var(--lakex-editor-border-primary); - color: var(--lakex-editor-text-color); - font-weight: bold; -} -.ne-toc-normal-view .ne-toc-item:last-child, -.ne-toc-small-view:hover .ne-toc-item:last-child, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item:last-child, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item:last-child { - margin-bottom: 0; -} -.ne-toc-normal-view .ne-toc-item .ne-toc-fold-btn, -.ne-toc-small-view:hover .ne-toc-item .ne-toc-fold-btn, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-fold-btn, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-fold-btn { - display: flex; - justify-content: flex-start; - align-items: center; - flex-shrink: 0; - color: var(--lakex-editor-text-caption); - width: 17px; - height: 16px; - cursor: pointer; -} -.ne-toc-normal-view .ne-toc-item .ne-toc-fold-btn .ne-rotate-270, -.ne-toc-small-view:hover .ne-toc-item .ne-toc-fold-btn .ne-rotate-270, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-fold-btn .ne-rotate-270, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-fold-btn .ne-rotate-270 { - transform: rotate(270deg); -} -.ne-toc-normal-view .ne-toc-item .ne-toc-item-text, -.ne-toc-small-view:hover .ne-toc-item .ne-toc-item-text, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-item-text, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-item-text { - overflow: hidden; - text-overflow: ellipsis; -} -.ne-toc-normal-view .ne-toc-item .ne-toc-item-text:hover, -.ne-toc-small-view:hover .ne-toc-item .ne-toc-item-text:hover, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-item-text:hover, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-item-text:hover { - cursor: pointer; - color: var(--lakex-editor-text-color); - font-weight: bold; -} -.ne-toc-normal-view .ne-toc-item .ne-toc-item-text:hover a, -.ne-toc-small-view:hover .ne-toc-item .ne-toc-item-text:hover a, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-item-text:hover a, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-item .ne-toc-item-text:hover a { - color: var(--lakex-editor-text-color); -} -.ne-toc-normal-view .ne-toc-depth-1, -.ne-toc-small-view:hover .ne-toc-depth-1, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1 { - padding-left: 25px; -} -.ne-toc-normal-view .ne-toc-depth-1.ne-toc-parent-item, -.ne-toc-small-view:hover .ne-toc-depth-1.ne-toc-parent-item, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1.ne-toc-parent-item, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1.ne-toc-parent-item { - padding-left: 8px; -} -.ne-toc-normal-view .ne-toc-depth-2, -.ne-toc-small-view:hover .ne-toc-depth-2, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-2, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-2 { - padding-left: 42px; -} -.ne-toc-normal-view .ne-toc-depth-2.ne-toc-parent-item, -.ne-toc-small-view:hover .ne-toc-depth-2.ne-toc-parent-item, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-2.ne-toc-parent-item, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-2.ne-toc-parent-item { - padding-left: 25px; -} -.ne-toc-normal-view .ne-toc-depth-3, -.ne-toc-small-view:hover .ne-toc-depth-3, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-3, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-3 { - padding-left: 59px; -} -.ne-toc-normal-view .ne-toc-depth-3.ne-toc-parent-item, -.ne-toc-small-view:hover .ne-toc-depth-3.ne-toc-parent-item, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-3.ne-toc-parent-item, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-3.ne-toc-parent-item { - padding-left: 42px; -} -.ne-toc-normal-view .ne-toc-depth-4, -.ne-toc-small-view:hover .ne-toc-depth-4, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-4, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-4 { - padding-left: 76px; -} -.ne-toc-normal-view .ne-toc-depth-4.ne-toc-parent-item, -.ne-toc-small-view:hover .ne-toc-depth-4.ne-toc-parent-item, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-4.ne-toc-parent-item, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-4.ne-toc-parent-item { - padding-left: 59px; -} -.ne-toc-normal-view .ne-toc-depth-5, -.ne-toc-small-view:hover .ne-toc-depth-5, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-5, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-5 { - padding-left: 93px; -} -.ne-toc-normal-view .ne-toc-depth-5.ne-toc-parent-item, -.ne-toc-small-view:hover .ne-toc-depth-5.ne-toc-parent-item, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-5.ne-toc-parent-item, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-5.ne-toc-parent-item { - padding-left: 76px; -} -.ne-toc-normal-view .ne-toc-depth-6, -.ne-toc-small-view:hover .ne-toc-depth-6, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-6, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-6 { - padding-left: 110px; -} -.ne-toc-normal-view .ne-toc-depth-6.ne-toc-parent-item, -.ne-toc-small-view:hover .ne-toc-depth-6.ne-toc-parent-item, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-6.ne-toc-parent-item, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-6.ne-toc-parent-item { - padding-left: 93px; -} -.ne-toc-normal-view .ne-toc-placeholder .ne-toc-placeholder-ind, -.ne-toc-small-view:hover .ne-toc-placeholder .ne-toc-placeholder-ind, -.ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-placeholder .ne-toc-placeholder-ind, -.ne-toc-sidebar-hover .ne-toc-view .ne-toc-placeholder .ne-toc-placeholder-ind { - display: none; -} -.ne-toc-placeholder .ne-toc-placeholder-ind { - width: 100%; - height: 58px; - background: url('https://gw.alipayobjects.com/mdn/prod_resou/afts/img/A*Y9PXRrL9XM0AAAAAAAAAAAAAARQnAQ') no-repeat right top; - display: none; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-toc-sidebar { - position: absolute; - top: 0; - bottom: 0; - right: 0; - width: fit-content; - background: var(--lakex-editor-color-white-f80); - backdrop-filter: blur(30px); - will-change: bottom; - display: none; - z-index: 1; -} -.ne-toc-sidebar.skip-bottom.ne-small-toc-sidebar { - bottom: 150px; -} -html[data-kumuhana='pouli'] .ne-toc-sidebar { - background: var(--lakex-editor-background-primary); -} -.ne-toc-sidebar.ne-normal-toc-sidebar { - width: 40px; -} -.ne-toc-sidebar .ne-toc-view { - margin-top: 35px; - overflow: hidden; - background-color: var(--lakex-editor-background); -} -.ne-toc-sidebar .ne-toc-view .ne-toc-pin-wrap, -.ne-toc-sidebar .ne-toc-view .ne-toc-fold-wrap { - opacity: 0; -} -.ne-toc-sidebar .ne-toc-view:hover .ne-toc-pin-wrap, -.ne-toc-sidebar .ne-toc-view:hover .ne-toc-fold-wrap { - opacity: 1; -} -@-moz-document url-prefix() { - .ne-toc-sidebar { - background: var(--lakex-editor-background-primary); - } -} -.ne-toc-visible .ne-toc-sidebar { - display: flex; - justify-content: flex-end; - align-items: flex-start; -} -.ne-ui-scrollbar-visible .ne-toc-sidebar { - right: 15px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-custom-card-fallback { - background-color: var(--lakex-editor-background-secondary); - border-radius: 4px; - color: var(--lakex-editor-color-red4); - padding: 0 4px; -} - -.ne-editor ne-card[data-card-type='block'][data-card-name='customBlock'] { - border: none; -} -.ne-editor ne-card[data-card-type='block'][data-card-name='customBlock'].ne-card-hovered, -.ne-editor ne-card[data-card-type='block'][data-card-name='customBlock'].ne-focused { - border: none; -} - -.ne-viewer ne-card[data-card-name='customBlock'] { - border: none; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ui-search-input-suffix { - color: var(--lakex-editor-color-blue5); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-search-container { - position: fixed; -} -.ne-ui-search-panel { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-search-panel { - padding: 16px; - padding-top: 0; - border-radius: 4px; -} -.ne-ui-search-sub-panel { - width: 360px; -} -.ne-ui-search-sub-panel .ne-ui-search-input, -.ne-ui-search-sub-panel .ne-ui-replace-input { - margin-top: 12px; -} -.ne-ui-search-sub-panel .ne-ui-search-panel-item label { - display: block; - margin-bottom: 12px; -} -.ne-ui-search-sub-panel .ne-ui-search-panel-item button { - margin-right: 8px; -} -.ne-ui-search-sub-panel .ne-ui-search-panel-btns { - text-align: right; -} -.ne-ui-search-panel-close-btn { - position: absolute; - top: 10px; - right: 16px; - z-index: 1; - width: 24px; - height: 24px; - border-radius: 4px; - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; -} -.ne-ui-search-panel-close-btn:hover { - background-color: var(--lakex-editor-background-tertiary); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-card-bookmark-card-view { - height: 102px; - overflow: hidden; - font-size: 14px; - position: relative; - border-radius: 5px; - background-color: var(--lakex-editor-background-tertiary); -} -.ne-card-bookmark-card-view .ne-card-bookmark-bg { - position: absolute; - top: 0; - left: 0; - width: 80%; - height: 100%; - object-fit: cover; - filter: blur(50px); - opacity: 0.1; -} -.ne-card-bookmark-card-view .ne-card-bookmark-bg-empty { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: var(--lakex-editor-background-tertiary); -} -.ne-card-bookmark-card-view .ne-card-bookmark-detail { - position: relative; - display: flex; - flex-direction: row; - height: 100%; - overflow: hidden; -} -.ne-card-bookmark-card-view .ne-card-bookmark-detail .ne-card-bookmark-content { - min-width: 0; - display: flex; - padding: 12px 18px; - flex: 1; -} -.ne-card-bookmark-card-view .ne-card-bookmark-detail .ne-card-bookmark-content .ne-card-bookmark-body { - display: flex; - flex-direction: column; - flex: 1; - overflow: hidden; - margin-left: 16px; - justify-content: center; -} -.ne-card-bookmark-card-view .ne-card-bookmark-detail .ne-card-bookmark-content .ne-card-bookmark-body .ne-card-bookmark-title { - color: var(--lakex-editor-text-color); - font-weight: bold; - font-size: 15px; - line-height: 26px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.ne-card-bookmark-card-view .ne-card-bookmark-detail .ne-card-bookmark-content .ne-card-bookmark-body .ne-card-bookmark-desc, -.ne-card-bookmark-card-view .ne-card-bookmark-detail .ne-card-bookmark-content .ne-card-bookmark-body .ne-card-bookmark-belong { - margin-top: 4px; - font-size: 12px; - line-height: 18px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.ne-card-bookmark-card-view .ne-card-bookmark-detail .ne-card-bookmark-content .ne-card-bookmark-body .ne-card-bookmark-desc { - color: var(--lakex-editor-text-body); -} -.ne-card-bookmark-card-view .ne-card-bookmark-detail .ne-card-bookmark-content .ne-card-bookmark-body .ne-card-bookmark-belong { - color: var(--lakex-editor-text-caption); -} -.ne-card-bookmark-card-view .ne-card-bookmark-detail .ne-card-bookmark-cover-img { - width: 78px; - height: 78px; - object-fit: cover; - border-radius: 8px; -} -.ne-card-bookmark-card-view .ne-card-bookmark-loading, -.ne-card-bookmark-card-view .ne-card-bookmark-error { - position: relative; - height: 100%; - display: flex; - text-align: center; - align-items: center; - flex-direction: row; - justify-content: start; - align-self: center; - color: var(--lakex-editor-text-disable); - background-color: var(--lakex-editor-background-tertiary); - padding: 12px 18px; -} -.ne-card-bookmark-card-view .ne-card-bookmark-loading .ne-card-bookmark-skeleton-logo { - flex-shrink: 0; - width: 78px; - height: 78px; - border-radius: 8px; - margin-right: 16px; -} -.ne-card-bookmark-card-view .ne-card-bookmark-loading .ne-card-bookmark-skeleton-info { - flex: 1; - height: 70px; - display: flex; - flex-direction: column; - justify-content: space-around; -} -.ne-card-bookmark-card-view .ne-card-bookmark-loading .ne-card-bookmark-skeleton-title { - height: 16px; - border-radius: 6px; -} -.ne-card-bookmark-card-view .ne-card-bookmark-loading .ne-card-bookmark-skeleton-desc { - width: 40%; - height: 16px; - border-radius: 6px; -} -.ne-card-bookmark-card-view .ne-card-bookmark-loading .ne-card-bookmark-skeleton-desc > span { - width: 100%; -} -.ne-card-bookmark-card-view .ne-card-bookmark-error .ne-card-bookmark-error-logo { - background-image: url(https://gw.alipayobjects.com/mdn/prod_resou/afts/img/A*Stw6SLI_ZuAAAAAAAAAAAAAAARQnAQ); - width: 78px; - height: 78px; - border-radius: 8px; - background-repeat: no-repeat; - background-size: cover; - margin-right: 16px; -} -.ne-card-bookmark-card-view .ne-card-bookmark-error .ne-card-bookmark-error-text { - font-size: 15px; - color: var(--lakex-editor-text-caption); - line-height: 26px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card[data-card-name='bookmarkInline'] { - vertical-align: baseline; - position: relative; - height: auto; -} -ne-card[data-card-name='bookmarkInline'] .ne-card-container { - display: inline-flex; -} -ne-card[data-card-name='bookmarkInline'] a { - color: var(--lakex-editor-text-link); - text-decoration: none; -} -ne-quote ne-card[data-card-name='bookmarkInline'] { - opacity: 0.7; -} -.ne-card-bookmark-title-view { - display: inline-flex; - align-items: baseline; - color: var(--lakex-editor-text-link); - cursor: pointer; - font-size: 15px; -} -.ne-card-bookmark-title-view .ne-card-bookmark-icon { - display: inline-block; - vertical-align: -0.15em; - text-align: center; - text-transform: none; - line-height: 1; - text-rendering: auto; - object-fit: cover; - margin-right: 2px; - flex-shrink: 0; - top: 4px; - position: relative; - width: 20px; - height: 20px; - border-radius: 6px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.h5-ne-card-bookmark-card-view { - height: 78px; - overflow: hidden; - font-size: 14px; - position: relative; - border-radius: 5px; - background-color: var(--lakex-editor-background-tertiary); -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-bg { - position: absolute; - top: 0; - left: 0; - width: 80%; - height: 100%; - object-fit: cover; - filter: blur(50px); - opacity: 0.1; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-bg-empty { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: var(--lakex-editor-background-tertiary); -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-detail { - position: relative; - display: flex; - flex-direction: row; - height: 100%; - overflow: hidden; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-detail .h5-ne-card-bookmark-content { - min-width: 0; - display: flex; - padding: 15px 12px; - flex: 1; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-detail .h5-ne-card-bookmark-content .h5-ne-card-bookmark-body { - display: flex; - flex-direction: column; - flex: 1; - overflow: hidden; - margin-left: 12px; - justify-content: center; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-detail .h5-ne-card-bookmark-content .h5-ne-card-bookmark-body .h5-ne-card-bookmark-title { - color: var(--lakex-editor-text-color); - font-weight: bold; - font-size: 15px; - line-height: 26px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-detail .h5-ne-card-bookmark-content .h5-ne-card-bookmark-body .h5-ne-card-bookmark-belong { - margin-top: 4px; - font-size: 12px; - line-height: 18px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-detail .h5-ne-card-bookmark-content .h5-ne-card-bookmark-body .h5-ne-card-bookmark-belong { - color: var(--lakex-editor-text-caption); -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-detail .h5-ne-card-bookmark-cover-img { - width: 48px; - height: 48px; - object-fit: cover; - border-radius: 8px; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-loading, -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-error { - position: relative; - height: 100%; - display: flex; - text-align: center; - align-items: center; - flex-direction: row; - justify-content: start; - align-self: center; - background: var(--lakex-editor-background-tertiary); - color: var(--lakex-editor-text-disable); - padding: 15px 12px; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-loading .h5-ne-card-bookmark-skeleton-logo { - flex-shrink: 0; - width: 48px; - height: 48px; - border-radius: 8px; - margin-right: 16px; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-loading .h5-ne-card-bookmark-skeleton-info { - flex: 1; - height: 40px; - display: flex; - flex-direction: column; - justify-content: space-around; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-loading .h5-ne-card-bookmark-skeleton-title { - height: 16px; - border-radius: 6px; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-loading .h5-ne-card-bookmark-skeleton-desc { - width: 40%; - height: 16px; - border-radius: 6px; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-loading .h5-ne-card-bookmark-skeleton-desc > span { - width: 100%; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-error .h5-ne-card-bookmark-error-logo { - background-image: url(https://gw.alipayobjects.com/mdn/prod_resou/afts/img/A*Stw6SLI_ZuAAAAAAAAAAAAAAARQnAQ); - width: 48px; - height: 48px; - border-radius: 8px; - background-repeat: no-repeat; - background-size: cover; - margin-right: 12px; -} -.h5-ne-card-bookmark-card-view .h5-ne-card-bookmark-error .h5-ne-card-bookmark-error-text { - font-size: 15px; - color: var(--lakex-editor-text-caption); - line-height: 26px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.lakex-dark-theme-dark .ant-dropdown-menu { - background-color: var(--lakex-editor-background-foreground); - border-color: var(--lakex-editor-border-primary); -} -.lakex-dark-theme-dark .ant-popover-inner { - background-color: var(--lakex-editor-background-foreground); -} -.lakex-dark-theme-dark .ant-tabs, -.lakex-dark-theme-dark .ant-dropdown-menu-item, -.lakex-dark-theme-dark .ant-dropdown-menu-submenu-title { - color: var(--lakex-editor-text-color); -} -.lakex-dark-theme-dark .ant-dropdown-menu-item:hover, -.lakex-dark-theme-dark .ant-dropdown-menu-submenu-title:hover { - background-color: var(--lakex-editor-background-primary-hover); -} -.lakex-dark-theme-dark .ant-input-affix-wrapper { - color: var(--lakex-editor-color-grey9); - border-color: var(--lakex-editor-border-primary); - background-color: hsla(0, 0%, 100%, 0.04); -} -.lakex-dark-theme-dark .ant-input-affix-wrapper input { - color: var(--lakex-editor-color-grey9); - background-color: transparent; -} -.lakex-dark-theme-dark .ant-input { - color: var(--lakex-editor-color-grey9); - border-color: var(--lakex-editor-border-primary); - background-color: hsla(0, 0%, 100%, 0.04); -} -.lakex-dark-theme-dark .ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow, -.lakex-dark-theme-dark .ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow, -.lakex-dark-theme-dark .ant-popover-placement-bottomRight > .ant-popover-content > .ant-popover-arrow, -.lakex-dark-theme-dark .ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow, -.lakex-dark-theme-dark .ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow, -.lakex-dark-theme-dark .ant-popover-placement-topRight > .ant-popover-content > .ant-popover-arrow { - bottom: 6.2px; - border-top-color: transparent; - border-right-color: var(--lakex-editor-color-grey2); - border-bottom-color: var(--lakex-editor-color-grey2); - border-left-color: transparent; - box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07); -} -.lakex-dark-theme-dark .ant-btn, -.lakex-dark-theme-dark .ant-btn-default { - color: var(--lakex-editor-color-grey9); - background: transparent; - border-color: hsla(0, 0%, 100%, 0.12); -} -.lakex-dark-theme-dark .ant-btn-default[disabled], -.lakex-dark-theme-dark .ant-btn-default[disabled]:active, -.lakex-dark-theme-dark .ant-btn-default[disabled]:focus, -.lakex-dark-theme-dark .ant-btn-default[disabled]:hover, -.lakex-dark-theme-dark .ant-btn[disabled], -.lakex-dark-theme-dark .ant-btn[disabled]:active, -.lakex-dark-theme-dark .ant-btn[disabled]:focus, -.lakex-dark-theme-dark .ant-btn[disabled]:hover { - color: var(--lakex-editor-text-disable); - background: transparent; - border-color: hsla(0, 0%, 100%, 0.12); - text-shadow: none; - box-shadow: none; -} -.lakex-dark-theme-dark .ne-card-toolbar { - background-color: var(--lakex-editor-background-foreground); -} -.lakex-dark-theme-dark .ne-toc-sidebar, -.lakex-dark-theme-dark .ne-toc-sidebar .ne-toc-view { - background-color: transparent; -} -.lakex-dark-theme-dark .ant-picker-content th, -.lakex-dark-theme-dark .ant-picker-cell.ant-picker-cell-in-view, -.lakex-dark-theme-dark .ant-picker-dropdown, -.lakex-dark-theme-dark .ant-popover-inner-content, -.lakex-dark-theme-dark .ant-select, -.lakex-dark-theme-dark .ant-popover, -.lakex-dark-theme-dark .ant-picker-input > input { - color: var(--lakex-editor-color-grey9); -} -.lakex-dark-theme-dark .ant-popover .ant-popover-inner, -.lakex-dark-theme-dark .ant-select-dropdown { - background-color: var(--lakex-editor-color-grey2); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 8px; -} -.lakex-dark-theme-dark .ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: hsla(0, 0%, 100%, 0.04); - border: 1px solid hsla(0, 0%, 100%, 0.12); -} -.lakex-dark-theme-dark .ne-card-calendar-schedule-panel-item-content .ant-select-arrow { - color: var(--lakex-editor-text-caption); -} -.lakex-dark-theme-dark .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { - color: var(--lakex-editor-color-grey9); - font-weight: 600; - background-color: var(--lakex-editor-color-grey3); -} -.lakex-dark-theme-dark .ant-select-item-option-active:not(.ant-select-item-option-disabled) { - background-color: hsla(0, 0%, 100%, 0.08); -} -.lakex-dark-theme-dark .ant-picker-panel-container { - overflow: hidden; - vertical-align: top; - background: var(--lakex-editor-color-grey2); - border-radius: 6px; - box-shadow: 0 1px 4px -2px rgba(0, 0, 0, 0.13), 0 2px 8px 0 rgba(0, 0, 0, 0.08), 0 8px 16px 4px rgba(0, 0, 0, 0.04); - transition: margin 0.3s; - border: 1px solid var(--lakex-editor-border-primary); -} -.lakex-dark-theme-dark .ant-picker-panel { - border: 1px solid hsla(0, 0%, 100%, 0.08); -} -.lakex-dark-theme-dark .ant-picker-header { - display: flex; - padding: 0 8px; - color: hsla(0, 0%, 100%, 0.85); - border-bottom: 1px solid hsla(0, 0%, 100%, 0.08); -} -.lakex-dark-theme-dark .ant-picker-cell { - color: var(--lakex-editor-text-disable); -} -.lakex-dark-theme-dark .ant-picker-cell-disabled .ant-picker-cell-inner { - color: var(--lakex-editor-text-disable); - background: transparent; -} -.lakex-dark-theme-dark .ant-picker-header button { - color: var(--lakex-editor-text-disable); -} -.lakex-dark-theme-dark .ant-picker-header-view button { - color: inherit; -} -.lakex-dark-theme-dark .ant-picker-cell-disabled:before { - background: #303030; -} -.lakex-dark-theme-dark .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner, -.lakex-dark-theme-dark .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner { - background: hsla(0, 0%, 100%, 0.08); -} -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single:after, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover:after, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single:after, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover:after, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range):after { - border-top: 1px dashed #2b6bb1; - border-bottom: 1px dashed #2b6bb1; -} -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):before, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):before, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):before, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):before, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-in-range:before { - background: #193048; -} -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner { - color: #fff; - background: #2b6bb1; -} -.lakex-dark-theme-dark .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after, -.lakex-dark-theme-dark .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover:before, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover:before, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end:before, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover:before, -.lakex-dark-theme-dark .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start:before, -.lakex-dark-theme-dark .ant-picker-panel > :not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end:before, -.lakex-dark-theme-dark .ant-picker-panel > :not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start:before { - background: #2b6bb1; -} -.lakex-dark-theme-dark .ant-picker-range-arrow:after { - display: none; -} -.lakex-dark-theme-dark .ant-picker-panel-container .ant-picker-panel { - vertical-align: top; - background: transparent; - border-width: 0 0 1px 0; - border-radius: 0; -} -.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner { - border-radius: 6px 0 0 6px; -} -.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner { - border-radius: 0 6px 6px 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-card-calendar-schedule-panel-textarea.ant-input { - resize: none; - border: none; - background: transparent; - padding-left: 0; -} -.ne-card-calendar-schedule-panel-textarea.ant-input:focus { - box-shadow: none; -} -.ne-card-calendar-schedule-panel-textarea.ant-input-desc.ant-input { - font-size: 12px; -} -.ne-card-calendar-schedule-panel-textarea-title.ant-input { - font-size: 18px; -} -.ne-card-calendar-schedule-panel-item-content .ant-select-arrow { - font-size: 12px; - color: var(--lakex-editor-text-caption); - display: flex; - align-items: center; - padding-left: 8px; -} -.ne-card-calendar-schedule-panel-color-select-dropdown { - width: 122px; -} -.ne-card-calendar-schedule-panel-color-select-option { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; -} -.ant-select-selector .ne-card-calendar-schedule-panel-color-select-option { - height: 100%; -} -.ant-select-selector .ne-card-calendar-schedule-panel-color-select-option-status, -.ant-select-selector .ne-card-calendar-schedule-panel-color-select-option-name { - display: none; -} -.ne-card-calendar-schedule-panel-color-select-option-status { - flex: 0 0 14px; -} -.ne-card-calendar-schedule-panel-color-select-option-status[data-selected='true'] { - background: url('https://gw.alipayobjects.com/zos/bmw-prod/16f5566a-e266-4417-b762-3bd0e1f8296a.svg') no-repeat center center; - height: 14px; - background-size: 14px 14px; -} -.ne-card-calendar-schedule-panel-color-select-option-box { - display: flex; - align-items: center; - justify-content: center; - flex: 0 0 24px; -} -.ne-card-calendar-schedule-panel-color-select-option-box-content { - width: 8px; - height: 8px; -} -.ne-card-calendar-schedule-panel-color-select-option-name { - flex: 1; - font-size: 14px; - color: var(--lakex-editor-text-body); - font-weight: normal; -} -.ne-card-calendar-schedule-panel-date-picker { - padding-left: 0; -} -.ne-card-calendar-schedule-panel-date-picker .ant-picker-active-bar { - transform: translateX(-11px); -} -.ne-card-calendar-schedule-panel-date-picker .ant-picker-suffix, -.ne-card-calendar-schedule-panel-date-picker .ant-picker-clear { - display: none; -} -.ne-card-calendar-schedule-panel-icon-calendar-e { - margin-top: 7px; -} -.ne-card-calendar-schedule-panel-icon-desc-e { - margin-top: 4px; -} -.ne-card-calendar-schedule-panel-button-box { - position: absolute; - right: 10px; - top: 10px; - display: flex; - z-index: 1; -} -.ne-card-calendar-schedule-panel-button-box .ne-icon { - margin: 6px; - cursor: pointer; -} -.ne-card-calendar-schedule-panel-button-box .ne-icon:hover { - background: var(--lakex-editor-background-primary-hover); - color: var(--lakex-editor-color-black); -} -.ne-card-calendar-popover-overlay .ant-popover-inner-content { - padding: 0 8px; -} - -.ne-card-calendar-schedule-snapshot { - position: absolute; - top: 0; - left: 0; - z-index: 3; -} -.ne-card-calendar-schedule-snapshot-line { - position: absolute; -} -.ne-card-calendar-schedule-snapshot .ne-card-calendar-schedule-line { - width: auto !important; - margin-top: 0; - opacity: 0.8 !important; -} -.ne-card-calendar-schedule-snapshot .ne-card-calendar-schedule-line[data-is-start='false'] { - left: 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card[data-card-name='calendar'] { - /* stylelint-disable-line */ -} -ne-card[data-card-name='calendar'] .ne-card-container { - background: var(--lakex-editor-background-secondary); -} -ne-card[data-card-name='calendar'] .ne-card-calendar { - position: relative; - padding: 0 16px 16px 16px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-header { - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - height: 72px; - position: relative; -} -@media only screen and (min-width: 768px) { - ne-card[data-card-name='calendar'] .ne-card-calendar-header-today-button { - position: absolute; - top: 20px; - right: 16px; - } -} -ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-prev, -ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-next { - width: 24px; - height: 24px; - cursor: pointer; - background-repeat: no-repeat; - background-position: center center; - display: flex; - align-items: center; - justify-content: center; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-prev .ne-icon, -ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-next .ne-icon { - color: var(--lakex-editor-text-caption); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-prev:hover .ne-icon, -ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-next:hover .ne-icon { - color: var(--lakex-editor-color-black); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-date { - margin: 0 20px; - font-size: 16px; - font-weight: 500; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-week-names { - display: flex; - flex-direction: row; - align-items: center; - padding: 8px 0; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-week-names-item { - flex: 1; - font-size: 12px; - font-weight: 500; - color: var(--lakex-editor-text-caption); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box { - position: relative; - border: 1px solid var(--lakex-editor-color-grey5); - border-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row { - display: flex; - flex-direction: row; - border-bottom: 1px solid var(--lakex-editor-color-grey5); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row:first-of-type .ne-card-calendar-content-box-row-cell:first-of-type { - border-top-left-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row:first-of-type .ne-card-calendar-content-box-row-cell:last-of-type { - border-top-right-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row:last-of-type, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row[data-last='true'] { - border-bottom: none; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row:last-of-type .ne-card-calendar-content-box-row-cell:first-of-type, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row[data-last='true'] .ne-card-calendar-content-box-row-cell:first-of-type { - border-bottom-left-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row:last-of-type .ne-card-calendar-content-box-row-cell:last-of-type, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row[data-last='true'] .ne-card-calendar-content-box-row-cell:last-of-type { - border-bottom-right-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell { - display: flex; - flex: 1; - flex-direction: column; - min-height: 84px; - padding: 4px 4px 10px 4px; - background-color: var(--lakex-editor-background-secondary); - border-right: 1px solid var(--lakex-editor-color-grey5); - min-width: 0; - position: relative; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell:first-of-type, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell:last-of-type { - background-color: var(--lakex-editor-background-primary); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell:last-of-type { - border-right: none; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell:hover .ne-card-calendar-content-box-row-cell-date-plus { - display: block; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='full']::after, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='half']::after, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='left']::after, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='right']::after { - content: ' '; - position: absolute; - top: -1px; - right: -1px; - bottom: -1px; - left: -1px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='full']::after { - border: 1px solid var(--lakex-editor-color-green5); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='half']::after, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='left']::after, -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='right']::after { - border-top: 1px solid var(--lakex-editor-color-green5); - border-bottom: 1px solid var(--lakex-editor-color-green5); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='left']::after { - border-left: 1px solid var(--lakex-editor-color-green5); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border='right']::after { - border-right: 1px solid var(--lakex-editor-color-green5); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border-style='top-left-corner']::after { - border-top-left-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border-style='top-right-corner']::after { - border-top-right-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border-style='bottom-left-corner']::after { - border-bottom-left-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell[data-border-style='bottom-right-corner']::after { - border-bottom-right-radius: 4px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell-date { - color: var(--lakex-editor-text-body); - display: flex; - justify-content: space-between; - align-items: center; - flex-direction: row-reverse; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell-date-plus { - display: none; - width: 12px; - height: 12px; - border: 1px solid var(--lakex-editor-color-grey5); - background: var(--lakex-editor-color-white) url('https://gw.alipayobjects.com/zos/bmw-prod/7ac8d36f-f041-4ee7-b1fe-d13404e9acea.svg') no-repeat center center; - background-size: 10px 10px; - border-radius: 2px; - cursor: pointer; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell-date-text { - display: flex; - justify-content: center; - align-items: center; - width: 18px; - height: 18px; - font-size: 12px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell-date[data-today='true'] .ne-card-calendar-content-box-row-cell-date-text { - border-radius: 50%; - color: var(--lakex-editor-color-white); - background-color: var(--lakex-editor-color-blue4); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell-date[data-fade='true'] { - color: var(--lakex-editor-text-disable); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell-schedule-index { - height: 2px; - margin-top: 2px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell-schedule-holder { - height: 24px; - margin-top: 2px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line { - display: flex; - height: 24px; - border-width: 1px; - border-style: solid; - border-radius: 2px; - box-sizing: border-box; - margin-top: 2px; - z-index: 2; - cursor: pointer; - align-items: center; - position: relative; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line[data-active='true'] .ne-card-calendar-schedule-line-title { - color: #fff; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line[data-is-start='false'] { - left: -5px; - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line[data-control='false'] { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line-label { - flex: 0 0 2px; - width: 2px; - height: 12px; - border-radius: 1px; - margin: 0 4px 0 5px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line-left-arrow, -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line-right-arrow { - position: relative; - flex: 0 0 4px; - width: 0; - height: 0; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line-left-arrow { - right: -1px; - border-top: 4px solid transparent; - border-bottom: 4px solid transparent; - border-right-width: 4px; - border-right-style: solid; - margin-left: 8px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line-right-arrow { - left: -1px; - border-top: 4px solid transparent; - border-bottom: 4px solid transparent; - border-left-width: 4px; - border-left-style: solid; - margin-right: 8px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line-title { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-size: 12px; - color: var(--lakex-editor-text-color); - min-width: 0; - flex: 1; - height: 100%; - line-height: 22px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line-title[data-not-title='true'] { - color: var(--lakex-editor-text-disable); -} -ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-line-control { - flex: 0 0 16px; - height: 100%; - cursor: ew-resize; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-popover-fake-line { - position: absolute; - width: 1px; - height: 24px; -} -ne-card[data-card-name='calendar'] .ne-card-calendar-mask { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: transparent; - z-index: 2; -} -.ne-card-calendar-schedule-panel { - width: 320px; - box-sizing: border-box; - padding: 24px 16px; - display: flex; - flex-direction: column; -} -.ne-card-calendar-schedule-panel-item { - display: flex; - flex-direction: row; -} -.ne-card-calendar-schedule-panel-item-side { - flex: 0 0 36px; -} -.ne-card-calendar-schedule-panel-item-content { - flex: 1; -} -.ne-card-calendar-schedule-panel-icon { - width: 16px; - height: 16px; - background-position: center center; - background-repeat: no-repeat; - background-size: 16px 16px; -} -.ne-card-calendar-schedule-panel-icon-calendar { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/524c6fbd-2711-47e5-a2f1-c03b27a7e979.svg'); -} -.ne-card-calendar-schedule-panel-icon-desc { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/31781942-31fc-4d5b-97e7-97b295e9e692.svg'); -} -.ne-card-calendar-schedule-panel-divider { - margin: 8px 0 16px 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card[data-card-name='vote'] .ne-card-vote { - padding: 16px 24px; - background: var(--lakex-editor-background-secondary); - font-size: 14px; - color: var(--lakex-editor-text-body); -} -ne-card[data-card-name='vote'] .ne-card-vote-setting { - display: flex; - margin-bottom: 16px; -} -ne-card[data-card-name='vote'] .ne-card-vote-setting-type { - flex: 0 0 82px; -} -ne-card[data-card-name='vote'] .ne-card-vote-setting-type .ant-select-selection-item { - color: var(--lakex-editor-text-body); -} -ne-card[data-card-name='vote'] .ne-card-vote-setting-title { - flex: 1; - margin-right: 36px; -} -ne-card[data-card-name='vote'] .ne-card-vote-setting-title-input { - color: var(--lakex-editor-text-body); -} -ne-card[data-card-name='vote'] .ne-card-vote-vote-list { - margin-bottom: 16px; -} -ne-card[data-card-name='vote'] .ne-card-vote-vote-item { - display: flex; - margin-bottom: 8px; -} -ne-card[data-card-name='vote'] .ne-card-vote-vote-item:last-of-type { - margin-bottom: 0; -} -ne-card[data-card-name='vote'] .ne-card-vote-vote-item-input { - flex: 1; - color: var(--lakex-editor-text-body); -} -ne-card[data-card-name='vote'] .ne-card-vote-vote-item-side { - flex: 0 0 36px; - display: flex; - align-items: center; - justify-content: flex-end; -} -ne-card[data-card-name='vote'] .ne-card-vote-vote-item-delete { - color: var(--lakex-editor-text-caption); - cursor: pointer; -} -ne-card[data-card-name='vote'] .ne-card-vote-vote-item-delete:hover { - color: var(--lakex-editor-text-body); -} -ne-card[data-card-name='vote'] .ne-card-vote-operation { - display: flex; - margin-bottom: 16px; -} -ne-card[data-card-name='vote'] .ne-card-vote-operation-wrap { - flex: 0 0 auto; - display: flex; - align-items: center; - cursor: pointer; -} -ne-card[data-card-name='vote'] .ne-card-vote-operation-wrap-icon { - margin-right: 6px; -} -ne-card[data-card-name='vote'] .ne-card-vote-deadline-wrap { - position: relative; -} -ne-card[data-card-name='vote'] .ne-card-vote-deadline-wrap-label { - position: absolute; - left: 12px; - z-index: 1; - height: 100%; - display: flex; - align-items: center; -} -ne-card[data-card-name='vote'] .ne-card-vote-deadline-wrap-date-picker { - width: 310px; -} -ne-card[data-card-name='vote'] .ne-card-vote-deadline-wrap-date-picker input { - text-align: right; - color: var(--lakex-editor-text-caption); - z-index: 2; -} -ne-card[data-card-name='vote'] .ne-card-vote-deadline-wrap-date-picker.ant-picker { - color: var(--lakex-editor-color-white-f80); - border-color: var(--lakex-editor-border-primary); - background-color: var(--lakex-editor-color-white); -} -.ne-card-vote-popconfirm .ant-popover-message, -.ne-card-vote-popconfirm .ant-popover-buttons { - white-space: nowrap; -} -.ne-card-vote-popconfirm .ant-popover-message .ant-popover-message-title, -.ne-card-vote-popconfirm .ant-popover-buttons .ant-popover-message-title { - color: var(--lakex-editor-text-body); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-text-diagram-resize { - position: absolute; - top: 38px; - left: 50%; - transform: translateX(-50%); - bottom: 0; - max-height: 150px; - width: 9px; - align-items: center; - text-align: center; - transition: left 0.314s; - z-index: 99; - display: none; - visibility: hidden; -} -.ne-text-diagram-layout-two-column .ne-text-diagram-resize { - display: flex; -} -.ne-text-diagram-resize .ne-text-diagram-resize-handler { - height: 40px; - width: 11px; - display: flex; - align-items: center; - text-align: center; - border-radius: 5.5px; - background: var(--lakex-editor-background-primary-hover-light); - cursor: pointer; -} -.ne-text-diagram-resize .ne-icon { - color: var(--lakex-editor-text-caption); - transform-origin: center; - transform: translateX(-1.5px) rotateZ(90deg); - margin-left: -1px; -} -.ne-text-diagram-resize.collapsed { - left: 2px; - visibility: visible; -} -.ne-text-diagram-resize.collapsed .ne-text-diagram-resize-handler { - margin-left: 0px; - border-radius: 5.5px; - border-top-left-radius: 0; - border-bottom-left-radius: 0; - transform: translateX(2px); -} -.ne-text-diagram-resize.collapsed .ne-icon { - transform: translateX(-2.5px) rotateZ(-90deg); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-text-diagram-loading { - width: 36px; - height: 36px; - font-size: 36px; - position: absolute; - top: calc(50% - 18px); - left: calc(50% - 18px); - color: var(--lakex-editor-text-body); - z-index: 1; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-text-diagram-stage { - position: relative; - height: 100%; - background: var(--lakex-editor-color-grey1); - border-radius: 4px; - font-size: 14px; - text-indent: 0; -} -.ne-text-diagram-stage ul.ant-dropdown-menu { - list-style: none; - margin: 0; -} -.ne-text-diagram-stage ul.ant-dropdown-menu li { - margin: 0; -} -.ne-embed-nav { - border-bottom: 1px solid var(--lakex-editor-border-primary); - color: var(--lakex-editor-text-body); - padding-top: 0; - padding-left: 18px; -} -.ne-embed-nav a, -.ne-embed-nav a:hover { - color: var(--lakex-editor-text-body); -} -.ne-embed-nav .ne-text-diagram-name { - font-weight: bold; -} -.ne-embed-nav .ne-text-diagram-template-selector, -.ne-embed-nav .ne-diagram-select { - position: relative; - min-width: 64px; - height: 24px; - line-height: 24px; - padding: 0 6px; - border-radius: 4px; - transition: all 0.3s; - display: flex; - justify-content: space-between; - align-items: center; -} -.ne-embed-nav .ne-text-diagram-template-selector:hover, -.ne-embed-nav .ne-diagram-select:hover, -.ne-embed-nav .ne-text-diagram-template-selector.ant-dropdown-open, -.ne-embed-nav .ne-diagram-select.ant-dropdown-open { - background-color: var(--lakex-editor-background-primary-hover-light); -} -.ne-embed-nav .ne-text-diagram-template-selector .ne-icon-down, -.ne-embed-nav .ne-diagram-select .ne-icon-down { - vertical-align: -0.125em; - position: absolute; - top: 53%; - right: 10px; - width: 16px; - height: 16px; - margin-top: -9px; - font-size: 12px; - pointer-events: none; - color: var(--lakex-editor-text-caption); -} -.ne-embed-nav .ne-text-diagram-template-selector[disabled], -.ne-embed-nav .ne-diagram-select[disabled] { - color: var(--lakex-editor-text-disable); - cursor: not-allowed; - pointer-events: none; -} -.ne-embed-nav .ne-text-diagram-template-selector[disabled] .ne-icon-down, -.ne-embed-nav .ne-diagram-select[disabled] .ne-icon-down { - color: var(--lakex-editor-text-disable); -} -.ne-embed-nav .ne-diagram-select { - width: 96px; -} -.ne-embed-nav .ne-text-diagram-select { - position: absolute; -} -.ne-embed-nav .ne-text-diagram-action-preview { - background: none; - border: none; - height: 24px; - line-height: 24px; - border-radius: 4px; - transition: all 0.3s; - cursor: pointer; - display: flex; - justify-content: space-between; - align-items: center; -} -.ne-embed-nav .ne-text-diagram-action-preview div.ne-icon { - margin-right: 8px; -} -.ne-embed-nav .ne-text-diagram-action-preview:hover { - background: var(--lakex-editor-background-primary-hover-light); -} -.ne-embed-nav .ne-text-diagram-action-preview:focus { - outline: none; -} -.ne-embed-nav .ne-text-diagram-action-preview-active { - background: var(--lakex-editor-background-primary-hover-light); -} -.ne-embed-nav .ne-text-diagram-divider { - margin: 0 6px; - height: 16px; -} -.ne-embed-nav { - background-color: var(--lakex-editor-color-grey2); -} -.ne-text-diagram-editor-wrap { - position: relative; - height: 100%; - display: flex; -} -.ne-text-diagram-editor-wrap .ne-text-diagram-editor { - padding-top: 38px; - width: 100%; - transition: width 0.314s; -} -.ne-text-diagram-editor-wrap .ne-text-diagram-editor textarea { - width: 100%; - height: 100%; - border: none; -} -.ne-text-diagram-editor-wrap .ne-text-diagram-editor .cm-editor { - height: 100%; - background: var(--lakex-editor-background-primary); -} -.ne-text-diagram-editor-wrap .ne-text-diagram-editor .cm-editor ::selection { - background: transparent !important; -} -.ne-text-diagram-editor-wrap .ne-text-diagram-editor .cm-gutter.cm-lineNumbers { - background: var(--lakex-editor-background-primary); - color: var(--lakex-editor-text-caption); -} -.ne-text-diagram-editor-wrap .ne-text-diagram-editor .CodeMirror-vscrollbar { - width: 16px; - background-color: var(--lakex-editor-background-primary); -} -.ne-text-diagram-editor-wrap .ne-text-diagram-preview { - padding-top: 38px; - background: var(--lakex-editor-background-primary); -} -.ne-text-diagram-layout-default .ne-text-diagram-preview { - position: relative; - top: 0; - left: -1px; - right: -1px; - border-left: 1px solid var(--lakex-editor-border-primary); - border-radius: 4px; - border-top: 0; - border-bottom: 0; - background-color: var(--lakex-editor-background-primary); -} -.ne-text-diagram-layout-default .ne-text-diagram-preview .ne-text-diagram-viewer { - flex: 1; - height: 100%; - overflow: auto; - height: calc(100% + 3px); - max-height: 640px; - margin: 0 auto; -} -.ne-text-diagram-layout-default .ne-text-diagram-preview img { - max-width: 100%; -} -.ne-text-diagram-preview { - position: relative; - overflow: auto; - display: flex; - align-items: center; - transition: width 0.314s; - min-height: 89px; -} -.ne-text-diagram-preview pre { - margin: 16px; -} -.ne-text-diagram-preview .ne-icon-loading { - width: 36px; - height: 36px; - position: absolute; - top: calc(50% - 22px); - left: 50%; - text-align: center; - color: var(--lakex-editor-text-body); - font-size: 36px; - z-index: 1; - visibility: visible; - opacity: 1; - transition: all 0.3s linear; - animation: loading 0.8s linear infinite; -} -.ne-text-diagram-preview .ne-text-diagram-viewer { - padding: 12px 24px 12px 24px; - text-align: center; - align-items: center; - margin: 0 auto; - max-height: 100%; -} -.ne-text-diagram-preview .ne-text-diagram-viewer img { - margin: 0 auto; - background-color: #ffffff; -} -.ne-text-diagram-layout-two-column { - height: 100%; - border-radius: 0; - border: 0; -} -.ne-max .ne-text-diagram-layout-two-column { - border-bottom: 1px solid var(--lakex-editor-border-primary); -} -.ne-text-diagram-layout-two-column .ne-embed-nav { - padding-left: 18px; - width: 100%; -} -.ne-text-diagram-layout-two-column .ne-text-diagram-editor-wrap { - width: 100%; - overflow: auto; - display: flex; -} -.ne-text-diagram-layout-two-column .ne-text-diagram-editor { - max-height: unset; - width: 50%; - min-height: 127px; -} -.ne-text-diagram-layout-two-column .ne-text-diagram-preview { - width: 50%; - border-left: 1px solid var(--lakex-editor-border-primary); - padding: 12px; - margin-top: 38px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-card-audio-error { - width: 100%; - height: 88px; - padding: 24px 20px; - background-color: var(--lakex-editor-background-tertiary); - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 4px; - display: flex; - align-items: center; - justify-content: center; - user-select: none; - cursor: default; -} -.ne-card-audio-error[data-error-type='copyright'] { - justify-content: left; - background: var(--lakex-editor-background-primary); -} -.ne-card-audio-error .error-icon { - width: 28px; - height: 28px; - color: var(--lakex-editor-text-body); - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; -} -.ne-card-audio-error .error-icon .ne-card-audio-svg-icon { - width: 28px; - height: 28px; - background-size: 28px; -} -.ne-card-audio-error .error-icon .ne-card-audio-icon { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/b9d51288-551f-447e-930f-7e1132a4a90b.svg'); -} -.ne-card-audio-error .error-icon .ne-card-audio-error-icon { - background-image: url('https://gw.alipayobjects.com/zos/bmw-prod/dc01c10b-e433-4bb3-bf7e-8b679725b823.svg'); -} -.ne-card-audio-error .error-message { - display: flex; - flex-direction: column; - line-height: 20px; - color: var(--lakex-editor-text-disable); - margin-left: 16px; - font-size: 14px; -} -.ne-card-audio-error .uploading-message { - display: block; - margin-left: 16px; - color: var(--lakex-editor-text-disable); -} -@media only screen and (max-width: 667px) { - .ne-card-audio-error .ne-card-audio-svg-icon { - width: 21px; - height: 21px; - background-size: 21px 21px; - } -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -@keyframes ne-audio-loading { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} -.ne-default-audio-loading { - height: 88px; - display: flex; - align-items: center; - padding: 8px; -} -.ne-default-audio-loading .ne-icon { - margin-right: 8px; - animation: ne-audio-loading 1s linear infinite; -} -.ne-audio-progress { - width: 100%; - border-radius: 5px; - height: 5px; - margin-top: -5px; -} -.ne-audio-progress .ne-audio-progress-inner { - height: 5px; - background: var(--lakex-editor-color-green6); - border-radius: 5px; -} -.ne-default-audio { - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; -} -.ne-default-audio audio { - width: 100%; -} -.ne-default-audio span { - color: var(--lakex-editor-text-caption); - font-size: 12px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-ant-calendar.ant-picker-calendar .ant-picker-panel { - background-color: transparent; - border: none; -} -.ne-ant-calendar { - min-width: 252px; -} -.ne-ant-calendar.ant-picker-calendar { - background-color: transparent; -} -.ne-ant-calendar .ant-picker-panel .ant-picker-footer { - border-top: none; -} -.ne-ant-calendar .ant-picker-buttons { - display: flex; - flex-direction: row; - justify-content: space-around; -} -.ne-ant-calendar .ant-picker-buttons button { - padding: 0; - color: var(--lakex-editor-color-blue8); - line-height: 40px; - background: transparent; - border: 0; - cursor: pointer; - transition: color 0.3s; -} -.ant-picker-calendar-mini .ant-picker-content.ne-calendar-header { - height: auto; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -ne-card[data-card-name='dateCard'] .ne-card-date-card div.ne-icon { - font-size: inherit; - vertical-align: text-top; - margin-top: 0.2em; -} -ne-card[data-card-name='dateCard'].ne-focused .ne-card-date-card { - border-color: var(--lakex-editor-card-border-selected); -} - -/** 只提供变量 */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-alert { - display: block; - width: 100%; - margin: 4px 0; - padding: 10px; - border-radius: 4px; - color: var(--lakex-editor-text-color); - line-height: 1.74; -} -ne-alert[ne-alert-type='tips'] { - background-color: var(--lakex-alert-tips-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='tips'].focused, -ne-alert[ne-alert-type='tips']:hover { - border: 1px solid var(--lakex-alert-tips-border); -} -ne-alert[ne-alert-type='info'] { - background-color: var(--lakex-alert-info-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='info'].focused, -ne-alert[ne-alert-type='info']:hover { - border: 1px solid var(--lakex-alert-info-border); -} -ne-alert[ne-alert-type='color1'] { - background-color: var(--lakex-alert-color1-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='color1'].focused, -ne-alert[ne-alert-type='color1']:hover { - border: 1px solid var(--lakex-alert-color1-border); -} -ne-alert[ne-alert-type='color2'] { - background-color: var(--lakex-alert-color2-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='color2'].focused, -ne-alert[ne-alert-type='color2']:hover { - border: 1px solid var(--lakex-alert-color2-border); -} -ne-alert[ne-alert-type='success'] { - background-color: var(--lakex-alert-success-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='success'].focused, -ne-alert[ne-alert-type='success']:hover { - border: 1px solid var(--lakex-alert-success-border); -} -ne-alert[ne-alert-type='warning'] { - background-color: var(--lakex-alert-warning-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='warning'].focused, -ne-alert[ne-alert-type='warning']:hover { - border: 1px solid var(--lakex-alert-warning-border); -} -ne-alert[ne-alert-type='color3'] { - background-color: var(--lakex-alert-color3-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='color3'].focused, -ne-alert[ne-alert-type='color3']:hover { - border: 1px solid var(--lakex-alert-color3-border); -} -ne-alert[ne-alert-type='danger'] { - background-color: var(--lakex-alert-danger-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='danger'].focused, -ne-alert[ne-alert-type='danger']:hover { - border: 1px solid var(--lakex-alert-danger-border); -} -ne-alert[ne-alert-type='color4'] { - background-color: var(--lakex-alert-color4-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='color4'].focused, -ne-alert[ne-alert-type='color4']:hover { - border: 1px solid var(--lakex-alert-color4-border); -} -ne-alert[ne-alert-type='color5'] { - background-color: var(--lakex-alert-color5-background); - border: 1px solid transparent; -} -ne-alert[ne-alert-type='color5'].focused, -ne-alert[ne-alert-type='color5']:hover { - border: 1px solid var(--lakex-alert-color5-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='tips'] { - background-color: var(--lakex-alert-tips-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='tips'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='tips']:hover { - border: 1px solid var(--lakex-alert-tips-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='info'] { - background-color: var(--lakex-alert-info-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='info'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='info']:hover { - border: 1px solid var(--lakex-alert-info-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color1'] { - background-color: var(--lakex-alert-color1-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color1'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color1']:hover { - border: 1px solid var(--lakex-alert-color1-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color2'] { - background-color: var(--lakex-alert-color2-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color2'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color2']:hover { - border: 1px solid var(--lakex-alert-color2-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='success'] { - background-color: var(--lakex-alert-success-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='success'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='success']:hover { - border: 1px solid var(--lakex-alert-success-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='warning'] { - background-color: var(--lakex-alert-warning-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='warning'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='warning']:hover { - border: 1px solid var(--lakex-alert-warning-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color3'] { - background-color: var(--lakex-alert-color3-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color3'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color3']:hover { - border: 1px solid var(--lakex-alert-color3-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='danger'] { - background-color: var(--lakex-alert-danger-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='danger'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='danger']:hover { - border: 1px solid var(--lakex-alert-danger-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color4'] { - background-color: var(--lakex-alert-color4-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color4'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color4']:hover { - border: 1px solid var(--lakex-alert-color4-border); -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color5'] { - background-color: var(--lakex-alert-color5-background); - border: 1px solid transparent; -} -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color5'].focused, -[data-kumuhana='pouli'] ne-alert[ne-alert-type='color5']:hover { - border: 1px solid var(--lakex-alert-color5-border); -} -.ne-viewer ne-alert:hover { - border: 1px solid transparent !important; -} - -[ne-alignment='left'] { - text-align: left; -} -[ne-alignment='right'] { - text-align: right; - justify-content: flex-end; -} -[ne-alignment='center'] { - text-align: center; - justify-content: center; -} -[ne-alignment='justify'] { - text-align: justify; -} -[ne-alignment='distributed'] { - text-align: justify; - text-align-last: justify; -} - -[ne-bold] { - font-weight: bold; -} -[ne-italic] { - font-style: italic; -} -[ne-emoji] { - font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Noto Color Emoji,Segoe UI Symbol,Android Emoji,EmojiSymbols; -} -ne-code-content [ne-emoji] { - font-family: inherit; -} -[ne-underline] { - text-decoration: underline; - text-underline-offset: 0.3em; -} -[ne-underline][ne-strikethrough] { - text-decoration: underline line-through; -} -@supports not (text-underline-offset: 0.3em) { - [ne-underline] { - text-decoration: none; - border-bottom: 0.06em solid; - } - [ne-underline][ne-strikethrough] { - text-decoration: line-through; - } -} -[ne-strikethrough] { - text-decoration: line-through; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-editor ne-card.ne-card-mask:after { - content: ' '; - position: absolute; - display: block; - left: 0; - top: 0; - right: 0; - bottom: 0; - z-index: 2; - cursor: not-allowed; -} -.ne-editor ne-card[data-card-type='block'] { - border-radius: 4px; - border: 1px solid var(--lakex-editor-border-primary); - margin: 2px 0; -} -.ne-editor ne-card[data-card-type='block'].ne-max { - margin-top: 0; -} -.ne-editor ne-card[data-card-type='block'][data-card-name='localdoc'] { - border: 1px solid var(--lakex-editor-color-grey5); -} -.ne-editor ne-card[data-card-type='block'][data-card-name='bookmark'], -.ne-editor ne-card[data-card-type='block'][data-card-name='yuque'] { - border-radius: 6px; -} -.ne-editor ne-card[data-card-type='block'][data-card-name='bookmark'] .ne-card-container, -.ne-editor ne-card[data-card-type='block'][data-card-name='yuque'] .ne-card-container { - border-radius: 6px; -} -.ne-editor ne-card[data-card-type='block'][data-card-name='hr'] { - border: 1px solid transparent; -} -.ne-editor ne-card[data-card-type='block'].ne-card-hovered { - border: 1px solid var(--lakex-editor-card-border-hover); -} -.ne-editor ne-card[data-card-type='block'].ne-card-hovered[data-card-name='hr'] { - border: 1px solid transparent; -} -.ne-editor ne-card[data-card-type='block'].ne-focused { - border: 1px solid var(--lakex-editor-card-border-selected); -} -.ne-editor ne-card[data-card-type='block'].ne-focused[data-card-name='board'] { - border: 1px solid var(--lakex-editor-color-grey6); -} -.ne-editor ne-card[data-card-type='block'].ne-focused[data-card-name='hr'] { - border: 1px solid transparent; -} -.ne-editor ne-card[data-card-type='block'].ne-focused[data-card-name='hr'] .ne-card-container { - background: var(--lakex-editor-color-blue1); -} -.ne-editor ne-card[data-card-type='block'].ne-card-editing { - border: 1px solid var(--lakex-editor-color-grey6); -} -.ne-editor ne-card[data-card-type='block'].ne-max { - border: 0; -} -.ne-editor ne-card[data-card-type='block'].ne-max[data-card-name='board'] { - border: 0; -} -.ne-editor ne-card[data-card-type='block'] .ne-card-container { - overflow: hidden; - border-radius: 4px; -} -.ne-editor ne-card[data-card-type='inline'].ne-card-hovered, -.ne-editor ne-card[data-card-type='inline'].ne-focused { - background: var(--lakex-editor-card-background-hover); -} -.ne-editor ne-card[data-card-type='inline'][data-card-name='file'] { - height: auto; -} -.ne-editor ne-card[data-card-type='inline'][data-card-name='image'] { - height: auto; - line-height: 0; - border-radius: 4px; - border: 0px solid transparent; -} -.ne-editor ne-card[data-card-type='inline'][data-card-name='image'] .ne-card-container { - line-height: 0; -} -.ne-editor ne-card[data-card-type='inline'][data-card-name='image'] .ne-image-wrap { - border: 1px solid transparent; - border-radius: 4px; -} -.ne-editor ne-card[data-card-type='inline'][data-card-name='image'].ne-card-hovered, -.ne-editor ne-card[data-card-type='inline'][data-card-name='image'].ne-focused { - background: transparent; -} -.ne-editor ne-card[data-card-type='inline'][data-card-name='image'].ne-card-hovered .ne-image-wrap, -.ne-editor ne-card[data-card-type='inline'][data-card-name='image'].ne-focused .ne-image-wrap { - border: 1px solid var(--lakex-editor-color-blue2); -} -.ne-editor ne-card[data-card-type='inline'].ne-card-hovered[data-card-name='yuqueInline'] .ne-yuque-doc-title-view { - background: var(--lakex-editor-card-background-hover); -} -.ne-editor ne-card[data-card-type='inline'][data-card-name='unicodeEmoji'].ne-card-hovered, -.ne-editor ne-card[data-card-type='inline'][data-card-name='unicodeEmoji'].ne-focused { - background: transparent; -} -.ne-editor ne-card .ne-invisible .ne-card-container { - display: none !important; -} -.ne-editor ne-card.ne-brick-highlight { - border-color: var(--lakex-editor-card-border-hover) !important; -} - -.ne-hidden-copy-node { - opacity: 0; - width: 0; - height: 0; - overflow: hidden; - position: fixed; - top: 0; - left: 0; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -ne-code { - display: inline; - text-indent: 0; -} -ne-code-content { - display: inline; - background-color: var(--lakex-editor-code-background); - border-radius: 4px; - border: 1px solid var(--lakex-editor-border-primary); - font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Segoe UI'; - padding: 0 4px; - margin: 1px 3px; - line-height: 1.1; - word-break: break-all; -} -ne-code-content:before, -ne-code-content:after { - content: '\FEFF'; - display: inline; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='12'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='12'] { - font-size: 12px; - line-height: 15px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='13'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='13'] { - font-size: 13px; - line-height: 15px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='14'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='14'] { - font-size: 14px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='15'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='15'] { - font-size: 15px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='16'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='16'] { - font-size: 16px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='17'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='17'] { - font-size: 16px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='18'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='18'] { - font-size: 17px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='19'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='19'] { - font-size: 18px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='20'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='20'] { - font-size: 19px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='22'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='22'] { - font-size: 21px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='24'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='24'] { - font-size: 23px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='29'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='29'] { - font-size: 28px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='32'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='32'] { - font-size: 31px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='40'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='40'] { - font-size: 38px; -} -.ne-engine ne-code ne-code-content ne-text[ne-fontsize='48'], -.ne-viewer ne-code ne-code-content ne-text[ne-fontsize='48'] { - font-size: 45px; -} - -ne-text[ne-text-gradient]:not([ne-strikethrough]):not([ne-underline]):not([ne-bg-color]) { - background-clip: text; - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-image: linear-gradient(90deg, var(--gradient-start-color) 0%, var(--gradient-end-color) 100%); -} - -.ne-engine [ne-fontsize='12'], -.ne-viewer [ne-fontsize='12'] { - font-size: 12px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='12'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='12'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='12'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='12'] { - font-size: 12px; -} -.ne-engine.ne-typography-classic [ne-fontsize='12'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='12'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='12'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='12'] + ne-card[data-card-name='slash'] { - font-size: 12px; -} -.ne-engine.ne-typography-classic [ne-fontsize='12'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='12'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='12'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='12'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='12'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='12'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='12'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='12'] + .ne-b-filler { - font-size: 12px; -} -.ne-engine [ne-fontsize='13'], -.ne-viewer [ne-fontsize='13'] { - font-size: 13px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='13'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='13'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='13'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='13'] { - font-size: 13px; -} -.ne-engine.ne-typography-classic [ne-fontsize='13'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='13'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='13'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='13'] + ne-card[data-card-name='slash'] { - font-size: 13px; -} -.ne-engine.ne-typography-classic [ne-fontsize='13'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='13'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='13'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='13'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='13'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='13'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='13'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='13'] + .ne-b-filler { - font-size: 13px; -} -.ne-engine [ne-fontsize='14'], -.ne-viewer [ne-fontsize='14'] { - font-size: 14px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='14'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='14'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='14'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='14'] { - font-size: 14px; -} -.ne-engine.ne-typography-classic [ne-fontsize='14'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='14'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='14'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='14'] + ne-card[data-card-name='slash'] { - font-size: 14px; -} -.ne-engine.ne-typography-classic [ne-fontsize='14'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='14'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='14'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='14'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='14'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='14'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='14'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='14'] + .ne-b-filler { - font-size: 14px; -} -.ne-engine [ne-fontsize='15'], -.ne-viewer [ne-fontsize='15'] { - font-size: 15px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='15'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='15'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='15'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='15'] { - font-size: 15px; -} -.ne-engine.ne-typography-classic [ne-fontsize='15'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='15'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='15'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='15'] + ne-card[data-card-name='slash'] { - font-size: 15px; -} -.ne-engine.ne-typography-classic [ne-fontsize='15'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='15'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='15'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='15'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='15'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='15'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='15'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='15'] + .ne-b-filler { - font-size: 15px; -} -.ne-engine [ne-fontsize='16'], -.ne-viewer [ne-fontsize='16'] { - font-size: 16px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='16'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='16'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='16'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='16'] { - font-size: 16px; -} -.ne-engine.ne-typography-classic [ne-fontsize='16'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='16'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='16'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='16'] + ne-card[data-card-name='slash'] { - font-size: 16px; -} -.ne-engine.ne-typography-classic [ne-fontsize='16'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='16'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='16'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='16'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='16'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='16'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='16'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='16'] + .ne-b-filler { - font-size: 16px; -} -.ne-engine [ne-fontsize='17'], -.ne-viewer [ne-fontsize='17'] { - font-size: 17px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='17'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='17'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='17'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='17'] { - font-size: 17px; -} -.ne-engine.ne-typography-classic [ne-fontsize='17'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='17'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='17'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='17'] + ne-card[data-card-name='slash'] { - font-size: 17px; -} -.ne-engine.ne-typography-classic [ne-fontsize='17'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='17'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='17'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='17'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='17'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='17'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='17'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='17'] + .ne-b-filler { - font-size: 17px; -} -.ne-engine [ne-fontsize='18'], -.ne-viewer [ne-fontsize='18'] { - font-size: 18px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='18'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='18'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='18'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='18'] { - font-size: 18px; -} -.ne-engine.ne-typography-classic [ne-fontsize='18'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='18'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='18'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='18'] + ne-card[data-card-name='slash'] { - font-size: 18px; -} -.ne-engine.ne-typography-classic [ne-fontsize='18'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='18'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='18'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='18'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='18'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='18'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='18'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='18'] + .ne-b-filler { - font-size: 18px; -} -.ne-engine [ne-fontsize='19'], -.ne-viewer [ne-fontsize='19'] { - font-size: 19px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='19'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='19'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='19'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='19'] { - font-size: 19px; -} -.ne-engine.ne-typography-classic [ne-fontsize='19'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='19'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='19'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='19'] + ne-card[data-card-name='slash'] { - font-size: 19px; -} -.ne-engine.ne-typography-classic [ne-fontsize='19'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='19'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='19'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='19'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='19'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='19'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='19'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='19'] + .ne-b-filler { - font-size: 19px; -} -.ne-engine [ne-fontsize='20'], -.ne-viewer [ne-fontsize='20'] { - font-size: 20px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='20'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='20'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='20'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='20'] { - font-size: 20px; -} -.ne-engine.ne-typography-classic [ne-fontsize='20'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='20'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='20'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='20'] + ne-card[data-card-name='slash'] { - font-size: 20px; -} -.ne-engine.ne-typography-classic [ne-fontsize='20'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='20'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='20'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='20'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='20'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='20'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='20'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='20'] + .ne-b-filler { - font-size: 20px; -} -.ne-engine [ne-fontsize='21'], -.ne-viewer [ne-fontsize='21'] { - font-size: 21px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='21'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='21'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='21'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='21'] { - font-size: 21px; -} -.ne-engine.ne-typography-classic [ne-fontsize='21'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='21'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='21'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='21'] + ne-card[data-card-name='slash'] { - font-size: 21px; -} -.ne-engine.ne-typography-classic [ne-fontsize='21'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='21'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='21'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='21'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='21'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='21'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='21'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='21'] + .ne-b-filler { - font-size: 21px; -} -.ne-engine [ne-fontsize='22'], -.ne-viewer [ne-fontsize='22'] { - font-size: 22px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='22'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='22'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='22'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='22'] { - font-size: 22px; -} -.ne-engine.ne-typography-classic [ne-fontsize='22'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='22'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='22'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='22'] + ne-card[data-card-name='slash'] { - font-size: 22px; -} -.ne-engine.ne-typography-classic [ne-fontsize='22'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='22'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='22'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='22'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='22'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='22'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='22'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='22'] + .ne-b-filler { - font-size: 22px; -} -.ne-engine [ne-fontsize='23'], -.ne-viewer [ne-fontsize='23'] { - font-size: 23px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='23'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='23'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='23'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='23'] { - font-size: 23px; -} -.ne-engine.ne-typography-classic [ne-fontsize='23'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='23'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='23'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='23'] + ne-card[data-card-name='slash'] { - font-size: 23px; -} -.ne-engine.ne-typography-classic [ne-fontsize='23'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='23'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='23'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='23'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='23'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='23'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='23'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='23'] + .ne-b-filler { - font-size: 23px; -} -.ne-engine [ne-fontsize='24'], -.ne-viewer [ne-fontsize='24'] { - font-size: 24px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='24'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='24'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='24'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='24'] { - font-size: 24px; -} -.ne-engine.ne-typography-classic [ne-fontsize='24'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='24'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='24'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='24'] + ne-card[data-card-name='slash'] { - font-size: 24px; -} -.ne-engine.ne-typography-classic [ne-fontsize='24'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='24'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='24'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='24'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='24'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='24'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='24'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='24'] + .ne-b-filler { - font-size: 24px; -} -.ne-engine [ne-fontsize='25'], -.ne-viewer [ne-fontsize='25'] { - font-size: 25px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='25'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='25'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='25'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='25'] { - font-size: 25px; -} -.ne-engine.ne-typography-classic [ne-fontsize='25'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='25'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='25'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='25'] + ne-card[data-card-name='slash'] { - font-size: 25px; -} -.ne-engine.ne-typography-classic [ne-fontsize='25'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='25'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='25'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='25'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='25'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='25'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='25'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='25'] + .ne-b-filler { - font-size: 25px; -} -.ne-engine [ne-fontsize='26'], -.ne-viewer [ne-fontsize='26'] { - font-size: 26px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='26'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='26'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='26'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='26'] { - font-size: 26px; -} -.ne-engine.ne-typography-classic [ne-fontsize='26'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='26'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='26'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='26'] + ne-card[data-card-name='slash'] { - font-size: 26px; -} -.ne-engine.ne-typography-classic [ne-fontsize='26'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='26'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='26'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='26'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='26'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='26'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='26'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='26'] + .ne-b-filler { - font-size: 26px; -} -.ne-engine [ne-fontsize='27'], -.ne-viewer [ne-fontsize='27'] { - font-size: 27px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='27'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='27'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='27'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='27'] { - font-size: 27px; -} -.ne-engine.ne-typography-classic [ne-fontsize='27'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='27'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='27'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='27'] + ne-card[data-card-name='slash'] { - font-size: 27px; -} -.ne-engine.ne-typography-classic [ne-fontsize='27'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='27'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='27'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='27'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='27'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='27'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='27'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='27'] + .ne-b-filler { - font-size: 27px; -} -.ne-engine [ne-fontsize='28'], -.ne-viewer [ne-fontsize='28'] { - font-size: 28px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='28'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='28'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='28'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='28'] { - font-size: 28px; -} -.ne-engine.ne-typography-classic [ne-fontsize='28'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='28'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='28'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='28'] + ne-card[data-card-name='slash'] { - font-size: 28px; -} -.ne-engine.ne-typography-classic [ne-fontsize='28'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='28'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='28'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='28'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='28'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='28'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='28'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='28'] + .ne-b-filler { - font-size: 28px; -} -.ne-engine [ne-fontsize='29'], -.ne-viewer [ne-fontsize='29'] { - font-size: 29px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='29'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='29'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='29'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='29'] { - font-size: 29px; -} -.ne-engine.ne-typography-classic [ne-fontsize='29'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='29'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='29'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='29'] + ne-card[data-card-name='slash'] { - font-size: 29px; -} -.ne-engine.ne-typography-classic [ne-fontsize='29'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='29'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='29'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='29'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='29'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='29'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='29'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='29'] + .ne-b-filler { - font-size: 29px; -} -.ne-engine [ne-fontsize='30'], -.ne-viewer [ne-fontsize='30'] { - font-size: 30px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='30'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='30'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='30'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='30'] { - font-size: 30px; -} -.ne-engine.ne-typography-classic [ne-fontsize='30'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='30'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='30'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='30'] + ne-card[data-card-name='slash'] { - font-size: 30px; -} -.ne-engine.ne-typography-classic [ne-fontsize='30'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='30'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='30'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='30'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='30'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='30'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='30'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='30'] + .ne-b-filler { - font-size: 30px; -} -.ne-engine [ne-fontsize='31'], -.ne-viewer [ne-fontsize='31'] { - font-size: 31px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='31'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='31'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='31'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='31'] { - font-size: 31px; -} -.ne-engine.ne-typography-classic [ne-fontsize='31'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='31'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='31'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='31'] + ne-card[data-card-name='slash'] { - font-size: 31px; -} -.ne-engine.ne-typography-classic [ne-fontsize='31'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='31'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='31'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='31'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='31'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='31'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='31'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='31'] + .ne-b-filler { - font-size: 31px; -} -.ne-engine [ne-fontsize='32'], -.ne-viewer [ne-fontsize='32'] { - font-size: 32px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='32'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='32'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='32'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='32'] { - font-size: 32px; -} -.ne-engine.ne-typography-classic [ne-fontsize='32'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='32'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='32'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='32'] + ne-card[data-card-name='slash'] { - font-size: 32px; -} -.ne-engine.ne-typography-classic [ne-fontsize='32'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='32'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='32'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='32'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='32'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='32'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='32'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='32'] + .ne-b-filler { - font-size: 32px; -} -.ne-engine [ne-fontsize='33'], -.ne-viewer [ne-fontsize='33'] { - font-size: 33px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='33'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='33'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='33'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='33'] { - font-size: 33px; -} -.ne-engine.ne-typography-classic [ne-fontsize='33'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='33'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='33'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='33'] + ne-card[data-card-name='slash'] { - font-size: 33px; -} -.ne-engine.ne-typography-classic [ne-fontsize='33'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='33'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='33'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='33'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='33'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='33'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='33'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='33'] + .ne-b-filler { - font-size: 33px; -} -.ne-engine [ne-fontsize='34'], -.ne-viewer [ne-fontsize='34'] { - font-size: 34px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='34'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='34'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='34'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='34'] { - font-size: 34px; -} -.ne-engine.ne-typography-classic [ne-fontsize='34'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='34'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='34'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='34'] + ne-card[data-card-name='slash'] { - font-size: 34px; -} -.ne-engine.ne-typography-classic [ne-fontsize='34'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='34'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='34'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='34'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='34'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='34'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='34'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='34'] + .ne-b-filler { - font-size: 34px; -} -.ne-engine [ne-fontsize='35'], -.ne-viewer [ne-fontsize='35'] { - font-size: 35px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='35'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='35'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='35'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='35'] { - font-size: 35px; -} -.ne-engine.ne-typography-classic [ne-fontsize='35'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='35'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='35'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='35'] + ne-card[data-card-name='slash'] { - font-size: 35px; -} -.ne-engine.ne-typography-classic [ne-fontsize='35'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='35'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='35'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='35'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='35'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='35'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='35'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='35'] + .ne-b-filler { - font-size: 35px; -} -.ne-engine [ne-fontsize='36'], -.ne-viewer [ne-fontsize='36'] { - font-size: 36px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='36'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='36'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='36'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='36'] { - font-size: 36px; -} -.ne-engine.ne-typography-classic [ne-fontsize='36'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='36'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='36'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='36'] + ne-card[data-card-name='slash'] { - font-size: 36px; -} -.ne-engine.ne-typography-classic [ne-fontsize='36'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='36'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='36'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='36'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='36'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='36'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='36'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='36'] + .ne-b-filler { - font-size: 36px; -} -.ne-engine [ne-fontsize='37'], -.ne-viewer [ne-fontsize='37'] { - font-size: 37px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='37'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='37'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='37'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='37'] { - font-size: 37px; -} -.ne-engine.ne-typography-classic [ne-fontsize='37'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='37'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='37'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='37'] + ne-card[data-card-name='slash'] { - font-size: 37px; -} -.ne-engine.ne-typography-classic [ne-fontsize='37'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='37'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='37'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='37'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='37'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='37'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='37'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='37'] + .ne-b-filler { - font-size: 37px; -} -.ne-engine [ne-fontsize='38'], -.ne-viewer [ne-fontsize='38'] { - font-size: 38px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='38'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='38'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='38'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='38'] { - font-size: 38px; -} -.ne-engine.ne-typography-classic [ne-fontsize='38'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='38'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='38'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='38'] + ne-card[data-card-name='slash'] { - font-size: 38px; -} -.ne-engine.ne-typography-classic [ne-fontsize='38'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='38'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='38'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='38'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='38'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='38'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='38'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='38'] + .ne-b-filler { - font-size: 38px; -} -.ne-engine [ne-fontsize='39'], -.ne-viewer [ne-fontsize='39'] { - font-size: 39px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='39'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='39'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='39'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='39'] { - font-size: 39px; -} -.ne-engine.ne-typography-classic [ne-fontsize='39'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='39'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='39'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='39'] + ne-card[data-card-name='slash'] { - font-size: 39px; -} -.ne-engine.ne-typography-classic [ne-fontsize='39'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='39'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='39'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='39'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='39'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='39'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='39'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='39'] + .ne-b-filler { - font-size: 39px; -} -.ne-engine [ne-fontsize='40'], -.ne-viewer [ne-fontsize='40'] { - font-size: 40px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='40'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='40'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='40'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='40'] { - font-size: 40px; -} -.ne-engine.ne-typography-classic [ne-fontsize='40'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='40'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='40'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='40'] + ne-card[data-card-name='slash'] { - font-size: 40px; -} -.ne-engine.ne-typography-classic [ne-fontsize='40'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='40'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='40'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='40'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='40'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='40'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='40'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='40'] + .ne-b-filler { - font-size: 40px; -} -.ne-engine [ne-fontsize='41'], -.ne-viewer [ne-fontsize='41'] { - font-size: 41px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='41'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='41'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='41'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='41'] { - font-size: 41px; -} -.ne-engine.ne-typography-classic [ne-fontsize='41'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='41'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='41'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='41'] + ne-card[data-card-name='slash'] { - font-size: 41px; -} -.ne-engine.ne-typography-classic [ne-fontsize='41'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='41'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='41'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='41'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='41'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='41'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='41'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='41'] + .ne-b-filler { - font-size: 41px; -} -.ne-engine [ne-fontsize='42'], -.ne-viewer [ne-fontsize='42'] { - font-size: 42px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='42'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='42'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='42'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='42'] { - font-size: 42px; -} -.ne-engine.ne-typography-classic [ne-fontsize='42'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='42'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='42'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='42'] + ne-card[data-card-name='slash'] { - font-size: 42px; -} -.ne-engine.ne-typography-classic [ne-fontsize='42'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='42'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='42'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='42'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='42'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='42'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='42'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='42'] + .ne-b-filler { - font-size: 42px; -} -.ne-engine [ne-fontsize='43'], -.ne-viewer [ne-fontsize='43'] { - font-size: 43px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='43'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='43'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='43'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='43'] { - font-size: 43px; -} -.ne-engine.ne-typography-classic [ne-fontsize='43'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='43'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='43'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='43'] + ne-card[data-card-name='slash'] { - font-size: 43px; -} -.ne-engine.ne-typography-classic [ne-fontsize='43'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='43'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='43'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='43'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='43'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='43'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='43'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='43'] + .ne-b-filler { - font-size: 43px; -} -.ne-engine [ne-fontsize='44'], -.ne-viewer [ne-fontsize='44'] { - font-size: 44px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='44'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='44'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='44'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='44'] { - font-size: 44px; -} -.ne-engine.ne-typography-classic [ne-fontsize='44'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='44'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='44'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='44'] + ne-card[data-card-name='slash'] { - font-size: 44px; -} -.ne-engine.ne-typography-classic [ne-fontsize='44'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='44'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='44'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='44'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='44'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='44'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='44'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='44'] + .ne-b-filler { - font-size: 44px; -} -.ne-engine [ne-fontsize='45'], -.ne-viewer [ne-fontsize='45'] { - font-size: 45px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='45'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='45'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='45'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='45'] { - font-size: 45px; -} -.ne-engine.ne-typography-classic [ne-fontsize='45'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='45'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='45'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='45'] + ne-card[data-card-name='slash'] { - font-size: 45px; -} -.ne-engine.ne-typography-classic [ne-fontsize='45'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='45'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='45'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='45'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='45'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='45'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='45'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='45'] + .ne-b-filler { - font-size: 45px; -} -.ne-engine [ne-fontsize='46'], -.ne-viewer [ne-fontsize='46'] { - font-size: 46px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='46'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='46'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='46'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='46'] { - font-size: 46px; -} -.ne-engine.ne-typography-classic [ne-fontsize='46'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='46'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='46'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='46'] + ne-card[data-card-name='slash'] { - font-size: 46px; -} -.ne-engine.ne-typography-classic [ne-fontsize='46'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='46'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='46'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='46'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='46'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='46'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='46'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='46'] + .ne-b-filler { - font-size: 46px; -} -.ne-engine [ne-fontsize='47'], -.ne-viewer [ne-fontsize='47'] { - font-size: 47px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='47'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='47'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='47'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='47'] { - font-size: 47px; -} -.ne-engine.ne-typography-classic [ne-fontsize='47'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='47'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='47'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='47'] + ne-card[data-card-name='slash'] { - font-size: 47px; -} -.ne-engine.ne-typography-classic [ne-fontsize='47'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='47'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='47'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='47'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='47'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='47'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='47'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='47'] + .ne-b-filler { - font-size: 47px; -} -.ne-engine [ne-fontsize='48'], -.ne-viewer [ne-fontsize='48'] { - font-size: 48px; -} -.ne-engine.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='48'], -.ne-viewer.ne-typography-classic ne-card[data-card-type='inline'][ne-fontsize='48'], -.ne-engine.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='48'], -.ne-viewer.ne-typography-traditional ne-card[data-card-type='inline'][ne-fontsize='48'] { - font-size: 48px; -} -.ne-engine.ne-typography-classic [ne-fontsize='48'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-classic [ne-fontsize='48'] + ne-card[data-card-name='slash'], -.ne-engine.ne-typography-traditional [ne-fontsize='48'] + ne-card[data-card-name='slash'], -.ne-viewer.ne-typography-traditional [ne-fontsize='48'] + ne-card[data-card-name='slash'] { - font-size: 48px; -} -.ne-engine.ne-typography-classic [ne-fontsize='48'] + .ne-t-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='48'] + .ne-t-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='48'] + .ne-t-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='48'] + .ne-t-filler, -.ne-engine.ne-typography-classic [ne-fontsize='48'] + .ne-b-filler, -.ne-viewer.ne-typography-classic [ne-fontsize='48'] + .ne-b-filler, -.ne-engine.ne-typography-traditional [ne-fontsize='48'] + .ne-b-filler, -.ne-viewer.ne-typography-traditional [ne-fontsize='48'] + .ne-b-filler { - font-size: 48px; -} - -.ne-typography-classic.fz12, -.ne-typography-traditional.fz12 { - font-size: 12px; -} -.ne-typography-classic.fz12 ne-code ne-text, -.ne-typography-traditional.fz12 ne-code ne-text { - font-size: 12px; -} -.ne-typography-classic.fz12 ne-text[ne-sub], -.ne-typography-traditional.fz12 ne-text[ne-sub], -.ne-typography-classic.fz12 ne-text[ne-sup], -.ne-typography-traditional.fz12 ne-text[ne-sup] { - font-size: 9px; -} -.ne-typography-classic.fz12 ne-card[data-card-type='inline'], -.ne-typography-traditional.fz12 ne-card[data-card-type='inline'] { - font-size: 12px; -} -.ne-typography-classic.fz13, -.ne-typography-traditional.fz13 { - font-size: 13px; -} -.ne-typography-classic.fz13 ne-code ne-text, -.ne-typography-traditional.fz13 ne-code ne-text { - font-size: 13px; -} -.ne-typography-classic.fz13 ne-text[ne-sub], -.ne-typography-traditional.fz13 ne-text[ne-sub], -.ne-typography-classic.fz13 ne-text[ne-sup], -.ne-typography-traditional.fz13 ne-text[ne-sup] { - font-size: 9.75px; -} -.ne-typography-classic.fz13 ne-card[data-card-type='inline'], -.ne-typography-traditional.fz13 ne-card[data-card-type='inline'] { - font-size: 13px; -} -.ne-typography-classic.fz14, -.ne-typography-traditional.fz14 { - font-size: 14px; -} -.ne-typography-classic.fz14 ne-code ne-text, -.ne-typography-traditional.fz14 ne-code ne-text { - font-size: 14px; -} -.ne-typography-classic.fz14 ne-text[ne-sub], -.ne-typography-traditional.fz14 ne-text[ne-sub], -.ne-typography-classic.fz14 ne-text[ne-sup], -.ne-typography-traditional.fz14 ne-text[ne-sup] { - font-size: 10.5px; -} -.ne-typography-classic.fz14 ne-card[data-card-type='inline'], -.ne-typography-traditional.fz14 ne-card[data-card-type='inline'] { - font-size: 14px; -} -.ne-typography-classic.fz15, -.ne-typography-traditional.fz15 { - font-size: 15px; -} -.ne-typography-classic.fz15 ne-code ne-text, -.ne-typography-traditional.fz15 ne-code ne-text { - font-size: 15px; -} -.ne-typography-classic.fz15 ne-text[ne-sub], -.ne-typography-traditional.fz15 ne-text[ne-sub], -.ne-typography-classic.fz15 ne-text[ne-sup], -.ne-typography-traditional.fz15 ne-text[ne-sup] { - font-size: 11.25px; -} -.ne-typography-classic.fz15 ne-card[data-card-type='inline'], -.ne-typography-traditional.fz15 ne-card[data-card-type='inline'] { - font-size: 15px; -} -.ne-typography-classic.fz16, -.ne-typography-traditional.fz16 { - font-size: 16px; -} -.ne-typography-classic.fz16 ne-code ne-text, -.ne-typography-traditional.fz16 ne-code ne-text { - font-size: 16px; -} -.ne-typography-classic.fz16 ne-text[ne-sub], -.ne-typography-traditional.fz16 ne-text[ne-sub], -.ne-typography-classic.fz16 ne-text[ne-sup], -.ne-typography-traditional.fz16 ne-text[ne-sup] { - font-size: 12px; -} -.ne-typography-classic.fz16 ne-card[data-card-type='inline'], -.ne-typography-traditional.fz16 ne-card[data-card-type='inline'] { - font-size: 16px; -} -.ne-typography-classic.fz19, -.ne-typography-traditional.fz19 { - font-size: 19px; -} -.ne-typography-classic.fz19 ne-code ne-text, -.ne-typography-traditional.fz19 ne-code ne-text { - font-size: 19px; -} -.ne-typography-classic.fz19 ne-text[ne-sub], -.ne-typography-traditional.fz19 ne-text[ne-sub], -.ne-typography-classic.fz19 ne-text[ne-sup], -.ne-typography-traditional.fz19 ne-text[ne-sup] { - font-size: 14.25px; -} -.ne-typography-classic.fz19 ne-card[data-card-type='inline'], -.ne-typography-traditional.fz19 ne-card[data-card-type='inline'] { - font-size: 19px; -} -.ne-typography-classic.fz22, -.ne-typography-traditional.fz22 { - font-size: 22px; -} -.ne-typography-classic.fz22 ne-code ne-text, -.ne-typography-traditional.fz22 ne-code ne-text { - font-size: 22px; -} -.ne-typography-classic.fz22 ne-text[ne-sub], -.ne-typography-traditional.fz22 ne-text[ne-sub], -.ne-typography-classic.fz22 ne-text[ne-sup], -.ne-typography-traditional.fz22 ne-text[ne-sup] { - font-size: 16.5px; -} -.ne-typography-classic.fz22 ne-card[data-card-type='inline'], -.ne-typography-traditional.fz22 ne-card[data-card-type='inline'] { - font-size: 22px; -} -.ne-typography-classic.fz24, -.ne-typography-traditional.fz24 { - font-size: 24px; -} -.ne-typography-classic.fz24 ne-code ne-text, -.ne-typography-traditional.fz24 ne-code ne-text { - font-size: 24px; -} -.ne-typography-classic.fz24 ne-text[ne-sub], -.ne-typography-traditional.fz24 ne-text[ne-sub], -.ne-typography-classic.fz24 ne-text[ne-sup], -.ne-typography-traditional.fz24 ne-text[ne-sup] { - font-size: 18px; -} -.ne-typography-classic.fz24 ne-card[data-card-type='inline'], -.ne-typography-traditional.fz24 ne-card[data-card-type='inline'] { - font-size: 24px; -} - -.ne-paint-formatting { - cursor: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%20width%3D%2232px%22%20height%3D%2222px%22%20viewBox%3D%220%200%2032%2022%22%20version%3D%221.1%22%3E%3Ctitle%3E%u753B%u677F%3C/title%3E%3Cdefs%3E%3Cpath%20d%3D%22M1.98238696%2C8.93070537%20L1.98238696%2C7.94670537%20L2.98438696%2C7.94670537%20L2.98438696%2C2.82172366%20C2.86526604%2C2.46632579%202.33755453%2C1.73387714%202.07909532%2C1.53244072%20C1.82245859%2C1.33385277%201.51846322%2C1.18356053%201.17974005%2C1.07623055%20C1.09361789%2C1.04867962%200.942233098%2C1.02608568%200.752704803%2C1.01318705%20C0.547546769%2C0.99922471%200.324838037%2C0.997431773%200.122456031%2C1.00289596%20C0.0577095542%2C1.0049281%200.0577095542%2C1.0049281%200.0461739234%2C1.00547208%20L2.66453526e-15%2C0.00653866278%20C0.0201288131%2C0.00561901141%200.0201288131%2C0.00561901141%200.095466479%2C0.00326024734%20C0.326813823%2C-0.00298598914%200.57886869%2C-0.000956798402%200.82060425%2C0.0154948802%20C1.08383002%2C0.0334091071%201.30523442%2C0.0664533548%201.48311677%2C0.123360851%20C1.92613162%2C0.263734745%202.33443502%2C0.465595821%202.69244577%2C0.742631738%20C2.92220036%2C0.921693142%203.22249704%2C1.27542805%203.47419998%2C1.65264521%20C3.73327327%2C1.2768273%204.04523695%2C0.928194595%204.30613304%2C0.748389847%20C4.73300675%2C0.452017529%205.12144633%2C0.241589862%205.49261188%2C0.123985302%20C5.67183876%2C0.0665134984%205.89339455%2C0.0334392002%206.15695686%2C0.0155333346%20C6.39828739%2C-0.00086215042%206.64992391%2C-0.00287712455%206.88091587%2C0.00336029265%20C6.95624626%2C0.00571905714%206.95624626%2C0.00571905714%206.97637392%2C0.00663866278%20L6.9302%2C1.00557208%20C6.91866322%2C1.00502805%206.91866322%2C1.00502805%206.85392296%2C1.00299592%20C6.65186148%2C0.997539703%206.42953662%2C0.999319964%206.2247385%2C1.01323351%20C6.03513065%2C1.02611507%205.88376607%2C1.04871108%205.79631677%2C1.07674989%20C5.53439856%2C1.15974142%205.22808562%2C1.32567897%204.87502342%2C1.5708014%20C4.59703217%2C1.76238997%204.11677653%2C2.41431766%203.97038696%2C2.80892139%20L3.97038696%2C7.94670537%20L4.96838696%2C7.94670537%20L4.96838696%2C8.93070537%20L3.97038696%2C8.93070537%20L3.97038696%2C13.105686%20C4.11670515%2C13.5000221%204.59679626%2C14.1508096%204.87723109%2C14.3433396%20C5.22794492%2C14.5878372%205.53331353%2C14.7530473%205.79898646%2C14.835715%20C5.88455642%2C14.8633576%206.03571032%2C14.8861134%206.22510548%2C14.8991205%20C6.43008749%2C14.9131981%206.65261707%2C14.9150397%206.85467786%2C14.9095877%20C6.91881525%2C14.9075757%206.91881525%2C14.9075757%206.9302%2C14.9070387%20L6.97637392%2C15.9059721%20C6.95638406%2C15.9068853%206.95638406%2C15.9068853%206.88164995%2C15.9092239%20C6.65044146%2C15.9154624%206.39838542%2C15.9133764%206.15658989%2C15.8967706%20C5.89281487%2C15.8786553%205.67104842%2C15.8452689%205.49678181%2C15.7889425%20C5.12245551%2C15.6725096%204.73298559%2C15.4617992%204.30830631%2C15.1657213%20C4.04607558%2C14.9857034%203.73313494%2C14.6366765%203.47358647%2C14.260493%20C3.2222%2C14.6368595%202.92226549%2C14.9900484%202.69181313%2C15.1704712%20C2.33440151%2C15.4481035%201.92492528%2C15.6505444%201.48545655%2C15.7885022%20C1.30602372%2C15.8463289%201.08440926%2C15.8796848%200.82097149%2C15.8978083%20C0.578770634%2C15.9144708%200.326296046%2C15.9165712%200.0947322934%2C15.910324%20C0.0199910052%2C15.9079853%200.0199910052%2C15.9079853%200%2C15.9070721%20L0.0461739234%2C14.9081387%20C0.0575575289%2C14.9086757%200.0575575289%2C14.9086757%200.12170105%2C14.9106877%20C0.324082071%2C14.9161477%200.546995551%2C14.9142932%200.752337563%2C14.9001664%20C0.941653857%2C14.8871422%201.09282859%2C14.8643884%201.18231791%2C14.8355632%20C1.51818058%2C14.7301179%201.82187326%2C14.5799754%202.07685728%2C14.381912%20C2.33817654%2C14.1773204%202.865383%2C13.4458836%202.97005625%2C13.0867107%20L2.98438696%2C8.93070537%20L1.98238696%2C8.93070537%20Z%22%20id%3D%22path-1%22/%3E%3Cfilter%20x%3D%22-21.5%25%22%20y%3D%22-9.4%25%22%20width%3D%22143.0%25%22%20height%3D%22118.9%25%22%20filterUnits%3D%22objectBoundingBox%22%20id%3D%22filter-2%22%3E%3CfeOffset%20dx%3D%220%22%20dy%3D%220%22%20in%3D%22SourceAlpha%22%20result%3D%22shadowOffsetOuter1%22/%3E%3CfeGaussianBlur%20stdDeviation%3D%220.5%22%20in%3D%22shadowOffsetOuter1%22%20result%3D%22shadowBlurOuter1%22/%3E%3CfeColorMatrix%20values%3D%220%200%200%200%201%20%20%200%200%200%200%201%20%20%200%200%200%200%201%20%200%200%200%201%200%22%20type%3D%22matrix%22%20in%3D%22shadowBlurOuter1%22/%3E%3C/filter%3E%3C/defs%3E%3Cg%20id%3D%22%u753B%u677F%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22format-painter%22%20transform%3D%22translate%2813.000000%2C%202.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%3Crect%20id%3D%22%u77E9%u5F62%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2218%22%20height%3D%2218%22/%3E%3Cpath%20d%3D%22M13.5%2C3.65625%20L15.3280723%2C3.65625%20C15.7164082%2C3.65625%2016.0311973%2C3.97105664%2016.0311973%2C4.359375%20L16.0311973%2C8.015625%20C16.0311973%2C8.40394336%2015.7164082%2C8.71875%2015.3280723%2C8.71875%20L9.15820312%2C8.71875%20L9.15820312%2C10.265625%20L9.93164062%2C10.265625%20C10.0093057%2C10.265625%2010.0722656%2C10.328585%2010.0722656%2C10.40625%20L10.0722656%2C14.5546875%20C10.0722656%2C15.3701719%209.4111875%2C16.03125%208.59570312%2C16.03125%20C7.78021875%2C16.03125%207.11914062%2C15.3701719%207.11914062%2C14.5546875%20L7.11914062%2C10.40625%20C7.11914062%2C10.328585%207.18210058%2C10.265625%207.25976562%2C10.265625%20L8.03320312%2C10.265625%20L8.03320312%2C8.296875%20C8.03320312%2C7.90855664%208.34800977%2C7.59375%208.73632812%2C7.59375%20L14.9061973%2C7.59375%20L14.9061973%2C4.78125%20L13.5%2C4.78125%20L13.5%2C6.046875%20C13.5%2C6.27987305%2013.311123%2C6.46875%2013.078125%2C6.46875%20L3.234375%2C6.46875%20C3.00137695%2C6.46875%202.8125%2C6.27987305%202.8125%2C6.046875%20L2.8125%2C2.390625%20C2.8125%2C2.15762695%203.00137695%2C1.96875%203.234375%2C1.96875%20L13.078125%2C1.96875%20C13.311123%2C1.96875%2013.5%2C2.15762695%2013.5%2C2.390625%20L13.5%2C3.65625%20Z%22%20id%3D%22%u8DEF%u5F84%22/%3E%3C/g%3E%3Cg%20id%3D%22%u7F16%u7EC4%22%20transform%3D%22translate%28-9.500000%2C%20-5.000000%29%22%3E%3Cg%20id%3D%22Cursor%22%20transform%3D%22translate%2813.000000%2C%208.000000%29%22%3E%3Cuse%20fill%3D%22black%22%20fill-opacity%3D%221%22%20filter%3D%22url%28%23filter-2%29%22%20xlink%3Ahref%3D%22%23path-1%22/%3E%3Cuse%20fill%3D%22%23000000%22%20fill-rule%3D%22evenodd%22%20xlink%3Ahref%3D%22%23path-1%22/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A) 5 10, text; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-h1:hover ne-heading-anchor, -ne-h2:hover ne-heading-anchor, -ne-h3:hover ne-heading-anchor, -ne-h4:hover ne-heading-anchor, -ne-h5:hover ne-heading-anchor, -ne-h6:hover ne-heading-anchor, -ne-h1.hovered ne-heading-anchor, -ne-h2.hovered ne-heading-anchor, -ne-h3.hovered ne-heading-anchor, -ne-h4.hovered ne-heading-anchor, -ne-h5.hovered ne-heading-anchor, -ne-h6.hovered ne-heading-anchor { - opacity: 1; -} -ne-heading-anchor { - display: flex; - align-items: center; - opacity: 0; - width: fit-content; - user-select: none; - color: var(--lakex-editor-text-disable); - line-height: 1; - font-family: lake-icon !important; -} -.ne-doc-major-editor .ne-typography-show-heading ne-heading-anchor { - transform: translate(-26px, 0px); -} -ne-heading-anchor:hover > span { - color: var(--lakex-editor-text-body); - background-color: var(--lakex-editor-background-tertiary); -} -ne-heading-anchor > span { - cursor: pointer; - width: 20px; - height: 20px; - font-size: 14px; - display: flex; - justify-content: center; - align-items: center; - border-radius: 4px; -} -.ne-heading-anchor-tooltip { - white-space: nowrap; -} -ne-h1 ne-heading-anchor > span, -ne-h2 ne-heading-anchor > span, -ne-h3 ne-heading-anchor > span { - margin-top: 2px; -} -ne-h4:hover ne-heading-anchor, -ne-h4.hovered ne-heading-anchor { - margin-top: 2px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer ne-h1:hover ne-heading-fold, -.ne-engine ne-h1:hover ne-heading-fold, -.ne-viewer ne-h2:hover ne-heading-fold, -.ne-engine ne-h2:hover ne-heading-fold, -.ne-viewer ne-h3:hover ne-heading-fold, -.ne-engine ne-h3:hover ne-heading-fold, -.ne-viewer ne-h4:hover ne-heading-fold, -.ne-engine ne-h4:hover ne-heading-fold, -.ne-viewer ne-h5:hover ne-heading-fold, -.ne-engine ne-h5:hover ne-heading-fold, -.ne-viewer ne-h6:hover ne-heading-fold, -.ne-engine ne-h6:hover ne-heading-fold, -.ne-viewer ne-h1.hovered ne-heading-fold, -.ne-engine ne-h1.hovered ne-heading-fold, -.ne-viewer ne-h2.hovered ne-heading-fold, -.ne-engine ne-h2.hovered ne-heading-fold, -.ne-viewer ne-h3.hovered ne-heading-fold, -.ne-engine ne-h3.hovered ne-heading-fold, -.ne-viewer ne-h4.hovered ne-heading-fold, -.ne-engine ne-h4.hovered ne-heading-fold, -.ne-viewer ne-h5.hovered ne-heading-fold, -.ne-engine ne-h5.hovered ne-heading-fold, -.ne-viewer ne-h6.hovered ne-heading-fold, -.ne-engine ne-h6.hovered ne-heading-fold { - opacity: 1; -} -.ne-viewer ne-h1.ne-force-visible ne-heading-fold, -.ne-engine ne-h1.ne-force-visible ne-heading-fold, -.ne-viewer ne-h2.ne-force-visible ne-heading-fold, -.ne-engine ne-h2.ne-force-visible ne-heading-fold, -.ne-viewer ne-h3.ne-force-visible ne-heading-fold, -.ne-engine ne-h3.ne-force-visible ne-heading-fold, -.ne-viewer ne-h4.ne-force-visible ne-heading-fold, -.ne-engine ne-h4.ne-force-visible ne-heading-fold, -.ne-viewer ne-h5.ne-force-visible ne-heading-fold, -.ne-engine ne-h5.ne-force-visible ne-heading-fold, -.ne-viewer ne-h6.ne-force-visible ne-heading-fold, -.ne-engine ne-h6.ne-force-visible ne-heading-fold { - opacity: 1; -} -.ne-viewer ne-heading-fold, -.ne-engine ne-heading-fold { - display: block; - opacity: 0; - width: 20px; - height: 20px; - border-radius: 4px; - cursor: pointer; -} -.ne-viewer ne-heading-fold.mobile, -.ne-engine ne-heading-fold.mobile { - height: 24px; - transform: translateY(-2px); -} -.ne-viewer ne-heading-fold.ne-force-visible, -.ne-engine ne-heading-fold.ne-force-visible { - opacity: 1; -} -.ne-viewer ne-heading-fold:hover, -.ne-engine ne-heading-fold:hover { - background: var(--lakex-editor-background-tertiary); -} -.ne-viewer ne-heading-fold .ne-heading-folding-inner, -.ne-engine ne-heading-fold .ne-heading-folding-inner { - width: 100%; - height: 100%; - display: flex; - justify-content: center; - align-items: center; -} -.ne-viewer ne-heading-fold .ne-heading-folding-inner.ne-heading-fold-disabled, -.ne-engine ne-heading-fold .ne-heading-folding-inner.ne-heading-fold-disabled { - cursor: not-allowed; -} -.ne-viewer .ne-force-fold, -.ne-engine .ne-force-fold { - display: none !important; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer ne-h1, -.ne-engine ne-h1, -.ne-viewer ne-h2, -.ne-engine ne-h2, -.ne-viewer ne-h3, -.ne-engine ne-h3, -.ne-viewer ne-h4, -.ne-engine ne-h4, -.ne-viewer ne-h5, -.ne-engine ne-h5, -.ne-viewer ne-h6, -.ne-engine ne-h6 { - position: relative; - display: block; -} -.ne-viewer ne-h1 ne-text, -.ne-engine ne-h1 ne-text, -.ne-viewer ne-h2 ne-text, -.ne-engine ne-h2 ne-text, -.ne-viewer ne-h3 ne-text, -.ne-engine ne-h3 ne-text, -.ne-viewer ne-h4 ne-text, -.ne-engine ne-h4 ne-text, -.ne-viewer ne-h5 ne-text, -.ne-engine ne-h5 ne-text, -.ne-viewer ne-h6 ne-text, -.ne-engine ne-h6 ne-text { - font-weight: bold; -} -.ne-viewer ne-h1.ne-brick-highlight, -.ne-engine ne-h1.ne-brick-highlight, -.ne-viewer ne-h2.ne-brick-highlight, -.ne-engine ne-h2.ne-brick-highlight, -.ne-viewer ne-h3.ne-brick-highlight, -.ne-engine ne-h3.ne-brick-highlight, -.ne-viewer ne-h4.ne-brick-highlight, -.ne-engine ne-h4.ne-brick-highlight, -.ne-viewer ne-h5.ne-brick-highlight, -.ne-engine ne-h5.ne-brick-highlight, -.ne-viewer ne-h6.ne-brick-highlight, -.ne-engine ne-h6.ne-brick-highlight, -.ne-viewer ne-h1.app-ne-brick-highlight, -.ne-engine ne-h1.app-ne-brick-highlight, -.ne-viewer ne-h2.app-ne-brick-highlight, -.ne-engine ne-h2.app-ne-brick-highlight, -.ne-viewer ne-h3.app-ne-brick-highlight, -.ne-engine ne-h3.app-ne-brick-highlight, -.ne-viewer ne-h4.app-ne-brick-highlight, -.ne-engine ne-h4.app-ne-brick-highlight, -.ne-viewer ne-h5.app-ne-brick-highlight, -.ne-engine ne-h5.app-ne-brick-highlight, -.ne-viewer ne-h6.app-ne-brick-highlight, -.ne-engine ne-h6.app-ne-brick-highlight { - position: relative; -} -.ne-viewer ne-h1.ne-brick-highlight::before, -.ne-engine ne-h1.ne-brick-highlight::before, -.ne-viewer ne-h2.ne-brick-highlight::before, -.ne-engine ne-h2.ne-brick-highlight::before, -.ne-viewer ne-h3.ne-brick-highlight::before, -.ne-engine ne-h3.ne-brick-highlight::before, -.ne-viewer ne-h4.ne-brick-highlight::before, -.ne-engine ne-h4.ne-brick-highlight::before, -.ne-viewer ne-h5.ne-brick-highlight::before, -.ne-engine ne-h5.ne-brick-highlight::before, -.ne-viewer ne-h6.ne-brick-highlight::before, -.ne-engine ne-h6.ne-brick-highlight::before, -.ne-viewer ne-h1.app-ne-brick-highlight::before, -.ne-engine ne-h1.app-ne-brick-highlight::before, -.ne-viewer ne-h2.app-ne-brick-highlight::before, -.ne-engine ne-h2.app-ne-brick-highlight::before, -.ne-viewer ne-h3.app-ne-brick-highlight::before, -.ne-engine ne-h3.app-ne-brick-highlight::before, -.ne-viewer ne-h4.app-ne-brick-highlight::before, -.ne-engine ne-h4.app-ne-brick-highlight::before, -.ne-viewer ne-h5.app-ne-brick-highlight::before, -.ne-engine ne-h5.app-ne-brick-highlight::before, -.ne-viewer ne-h6.app-ne-brick-highlight::before, -.ne-engine ne-h6.app-ne-brick-highlight::before { - content: ' '; - width: calc(100% + 12px); - height: calc(100% + 8px); - position: absolute; - top: -4px; - left: -6px; - background: var(--lakex-editor-color-blue1); - opacity: 40%; - z-index: -1; - border-radius: 6px; -} -.ne-viewer ne-heading-ext, -.ne-engine ne-heading-ext { - position: absolute; - width: fit-content; - display: flex; - align-items: center; - user-select: none; - -webkit-user-select: none; - left: 0; - transform: translateX(-100%); - text-indent: 0; -} -.ne-viewer ne-heading-content, -.ne-engine ne-heading-content { - display: block; -} - -[ne-text-indent] { - text-indent: 2em; -} -[ne-indent='1'] { - padding-left: 2em; -} -ne-p[ne-indent='1'].ne-brick-highlight::before { - margin-left: 2em; -} -ne-quote[ne-indent='1'] { - padding-left: calc(2em + 10px) !important; -} -ne-quote[ne-indent='1']::before { - left: 2em !important; -} -ne-quote[ne-indent='1'].ne-brick-highlight::after { - margin-left: 2em; -} -@media only screen and (max-width: 768px) { - [ne-indent='1'] { - padding-left: min(2em, 50vw); - } - ne-quote[ne-indent='1'] { - padding-left: calc( min(2em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='1']::before { - left: min(2em, 50vw) !important; - } -} -[ne-indent='2'] { - padding-left: 4em; -} -ne-p[ne-indent='2'].ne-brick-highlight::before { - margin-left: 4em; -} -ne-quote[ne-indent='2'] { - padding-left: calc(4em + 10px) !important; -} -ne-quote[ne-indent='2']::before { - left: 4em !important; -} -ne-quote[ne-indent='2'].ne-brick-highlight::after { - margin-left: 4em; -} -@media only screen and (max-width: 768px) { - [ne-indent='2'] { - padding-left: min(4em, 50vw); - } - ne-quote[ne-indent='2'] { - padding-left: calc( min(4em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='2']::before { - left: min(4em, 50vw) !important; - } -} -[ne-indent='3'] { - padding-left: 6em; -} -ne-p[ne-indent='3'].ne-brick-highlight::before { - margin-left: 6em; -} -ne-quote[ne-indent='3'] { - padding-left: calc(6em + 10px) !important; -} -ne-quote[ne-indent='3']::before { - left: 6em !important; -} -ne-quote[ne-indent='3'].ne-brick-highlight::after { - margin-left: 6em; -} -@media only screen and (max-width: 768px) { - [ne-indent='3'] { - padding-left: min(6em, 50vw); - } - ne-quote[ne-indent='3'] { - padding-left: calc( min(6em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='3']::before { - left: min(6em, 50vw) !important; - } -} -[ne-indent='4'] { - padding-left: 8em; -} -ne-p[ne-indent='4'].ne-brick-highlight::before { - margin-left: 8em; -} -ne-quote[ne-indent='4'] { - padding-left: calc(8em + 10px) !important; -} -ne-quote[ne-indent='4']::before { - left: 8em !important; -} -ne-quote[ne-indent='4'].ne-brick-highlight::after { - margin-left: 8em; -} -@media only screen and (max-width: 768px) { - [ne-indent='4'] { - padding-left: min(8em, 50vw); - } - ne-quote[ne-indent='4'] { - padding-left: calc( min(8em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='4']::before { - left: min(8em, 50vw) !important; - } -} -[ne-indent='5'] { - padding-left: 10em; -} -ne-p[ne-indent='5'].ne-brick-highlight::before { - margin-left: 10em; -} -ne-quote[ne-indent='5'] { - padding-left: calc(10em + 10px) !important; -} -ne-quote[ne-indent='5']::before { - left: 10em !important; -} -ne-quote[ne-indent='5'].ne-brick-highlight::after { - margin-left: 10em; -} -@media only screen and (max-width: 768px) { - [ne-indent='5'] { - padding-left: min(10em, 50vw); - } - ne-quote[ne-indent='5'] { - padding-left: calc( min(10em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='5']::before { - left: min(10em, 50vw) !important; - } -} -[ne-indent='6'] { - padding-left: 12em; -} -ne-p[ne-indent='6'].ne-brick-highlight::before { - margin-left: 12em; -} -ne-quote[ne-indent='6'] { - padding-left: calc(12em + 10px) !important; -} -ne-quote[ne-indent='6']::before { - left: 12em !important; -} -ne-quote[ne-indent='6'].ne-brick-highlight::after { - margin-left: 12em; -} -@media only screen and (max-width: 768px) { - [ne-indent='6'] { - padding-left: min(12em, 50vw); - } - ne-quote[ne-indent='6'] { - padding-left: calc( min(12em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='6']::before { - left: min(12em, 50vw) !important; - } -} -[ne-indent='7'] { - padding-left: 14em; -} -ne-p[ne-indent='7'].ne-brick-highlight::before { - margin-left: 14em; -} -ne-quote[ne-indent='7'] { - padding-left: calc(14em + 10px) !important; -} -ne-quote[ne-indent='7']::before { - left: 14em !important; -} -ne-quote[ne-indent='7'].ne-brick-highlight::after { - margin-left: 14em; -} -@media only screen and (max-width: 768px) { - [ne-indent='7'] { - padding-left: min(14em, 50vw); - } - ne-quote[ne-indent='7'] { - padding-left: calc( min(14em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='7']::before { - left: min(14em, 50vw) !important; - } -} -[ne-indent='8'] { - padding-left: 16em; -} -ne-p[ne-indent='8'].ne-brick-highlight::before { - margin-left: 16em; -} -ne-quote[ne-indent='8'] { - padding-left: calc(16em + 10px) !important; -} -ne-quote[ne-indent='8']::before { - left: 16em !important; -} -ne-quote[ne-indent='8'].ne-brick-highlight::after { - margin-left: 16em; -} -@media only screen and (max-width: 768px) { - [ne-indent='8'] { - padding-left: min(16em, 50vw); - } - ne-quote[ne-indent='8'] { - padding-left: calc( min(16em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='8']::before { - left: min(16em, 50vw) !important; - } -} -[ne-indent='9'] { - padding-left: 18em; -} -ne-p[ne-indent='9'].ne-brick-highlight::before { - margin-left: 18em; -} -ne-quote[ne-indent='9'] { - padding-left: calc(18em + 10px) !important; -} -ne-quote[ne-indent='9']::before { - left: 18em !important; -} -ne-quote[ne-indent='9'].ne-brick-highlight::after { - margin-left: 18em; -} -@media only screen and (max-width: 768px) { - [ne-indent='9'] { - padding-left: min(18em, 50vw); - } - ne-quote[ne-indent='9'] { - padding-left: calc( min(18em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='9']::before { - left: min(18em, 50vw) !important; - } -} -[ne-indent='10'] { - padding-left: 20em; -} -ne-p[ne-indent='10'].ne-brick-highlight::before { - margin-left: 20em; -} -ne-quote[ne-indent='10'] { - padding-left: calc(20em + 10px) !important; -} -ne-quote[ne-indent='10']::before { - left: 20em !important; -} -ne-quote[ne-indent='10'].ne-brick-highlight::after { - margin-left: 20em; -} -@media only screen and (max-width: 768px) { - [ne-indent='10'] { - padding-left: min(20em, 50vw); - } - ne-quote[ne-indent='10'] { - padding-left: calc( min(20em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='10']::before { - left: min(20em, 50vw) !important; - } -} -[ne-indent='11'] { - padding-left: 22em; -} -ne-p[ne-indent='11'].ne-brick-highlight::before { - margin-left: 22em; -} -ne-quote[ne-indent='11'] { - padding-left: calc(22em + 10px) !important; -} -ne-quote[ne-indent='11']::before { - left: 22em !important; -} -ne-quote[ne-indent='11'].ne-brick-highlight::after { - margin-left: 22em; -} -@media only screen and (max-width: 768px) { - [ne-indent='11'] { - padding-left: min(22em, 50vw); - } - ne-quote[ne-indent='11'] { - padding-left: calc( min(22em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='11']::before { - left: min(22em, 50vw) !important; - } -} -[ne-indent='12'] { - padding-left: 24em; -} -ne-p[ne-indent='12'].ne-brick-highlight::before { - margin-left: 24em; -} -ne-quote[ne-indent='12'] { - padding-left: calc(24em + 10px) !important; -} -ne-quote[ne-indent='12']::before { - left: 24em !important; -} -ne-quote[ne-indent='12'].ne-brick-highlight::after { - margin-left: 24em; -} -@media only screen and (max-width: 768px) { - [ne-indent='12'] { - padding-left: min(24em, 50vw); - } - ne-quote[ne-indent='12'] { - padding-left: calc( min(24em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='12']::before { - left: min(24em, 50vw) !important; - } -} -[ne-indent='13'] { - padding-left: 26em; -} -ne-p[ne-indent='13'].ne-brick-highlight::before { - margin-left: 26em; -} -ne-quote[ne-indent='13'] { - padding-left: calc(26em + 10px) !important; -} -ne-quote[ne-indent='13']::before { - left: 26em !important; -} -ne-quote[ne-indent='13'].ne-brick-highlight::after { - margin-left: 26em; -} -@media only screen and (max-width: 768px) { - [ne-indent='13'] { - padding-left: min(26em, 50vw); - } - ne-quote[ne-indent='13'] { - padding-left: calc( min(26em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='13']::before { - left: min(26em, 50vw) !important; - } -} -[ne-indent='14'] { - padding-left: 28em; -} -ne-p[ne-indent='14'].ne-brick-highlight::before { - margin-left: 28em; -} -ne-quote[ne-indent='14'] { - padding-left: calc(28em + 10px) !important; -} -ne-quote[ne-indent='14']::before { - left: 28em !important; -} -ne-quote[ne-indent='14'].ne-brick-highlight::after { - margin-left: 28em; -} -@media only screen and (max-width: 768px) { - [ne-indent='14'] { - padding-left: min(28em, 50vw); - } - ne-quote[ne-indent='14'] { - padding-left: calc( min(28em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='14']::before { - left: min(28em, 50vw) !important; - } -} -[ne-indent='15'] { - padding-left: 30em; -} -ne-p[ne-indent='15'].ne-brick-highlight::before { - margin-left: 30em; -} -ne-quote[ne-indent='15'] { - padding-left: calc(30em + 10px) !important; -} -ne-quote[ne-indent='15']::before { - left: 30em !important; -} -ne-quote[ne-indent='15'].ne-brick-highlight::after { - margin-left: 30em; -} -@media only screen and (max-width: 768px) { - [ne-indent='15'] { - padding-left: min(30em, 50vw); - } - ne-quote[ne-indent='15'] { - padding-left: calc( min(30em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='15']::before { - left: min(30em, 50vw) !important; - } -} -[ne-indent='16'] { - padding-left: 32em; -} -ne-p[ne-indent='16'].ne-brick-highlight::before { - margin-left: 32em; -} -ne-quote[ne-indent='16'] { - padding-left: calc(32em + 10px) !important; -} -ne-quote[ne-indent='16']::before { - left: 32em !important; -} -ne-quote[ne-indent='16'].ne-brick-highlight::after { - margin-left: 32em; -} -@media only screen and (max-width: 768px) { - [ne-indent='16'] { - padding-left: min(32em, 50vw); - } - ne-quote[ne-indent='16'] { - padding-left: calc( min(32em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='16']::before { - left: min(32em, 50vw) !important; - } -} -[ne-indent='17'] { - padding-left: 34em; -} -ne-p[ne-indent='17'].ne-brick-highlight::before { - margin-left: 34em; -} -ne-quote[ne-indent='17'] { - padding-left: calc(34em + 10px) !important; -} -ne-quote[ne-indent='17']::before { - left: 34em !important; -} -ne-quote[ne-indent='17'].ne-brick-highlight::after { - margin-left: 34em; -} -@media only screen and (max-width: 768px) { - [ne-indent='17'] { - padding-left: min(34em, 50vw); - } - ne-quote[ne-indent='17'] { - padding-left: calc( min(34em, 50vw) + 10px) !important; - } - ne-quote[ne-indent='17']::before { - left: min(34em, 50vw) !important; - } -} - -/** 只提供变量 */ -.ne-engine [ne-line-height='1'], -.ne-viewer [ne-line-height='1'] { - line-height: 1; -} -.ne-engine [ne-line-height='1.15'], -.ne-viewer [ne-line-height='1.15'] { - line-height: 1.15; -} -.ne-engine [ne-line-height='1.5'], -.ne-viewer [ne-line-height='1.5'] { - line-height: 1.5; -} -.ne-engine [ne-line-height='2'], -.ne-viewer [ne-line-height='2'] { - line-height: 2; -} -.ne-engine [ne-line-height='2.5'], -.ne-viewer [ne-line-height='2.5'] { - line-height: 2.5; -} -.ne-engine [ne-line-height='3'], -.ne-viewer [ne-line-height='3'] { - line-height: 3; -} -.ne-engine ne-h1[ne-line-height='1'], -.ne-viewer ne-h1[ne-line-height='1'], -.ne-engine ne-h2[ne-line-height='1'], -.ne-viewer ne-h2[ne-line-height='1'], -.ne-engine ne-h3[ne-line-height='1'], -.ne-viewer ne-h3[ne-line-height='1'], -.ne-engine ne-h4[ne-line-height='1'], -.ne-viewer ne-h4[ne-line-height='1'], -.ne-engine ne-h5[ne-line-height='1'], -.ne-viewer ne-h5[ne-line-height='1'], -.ne-engine ne-h6[ne-line-height='1'], -.ne-viewer ne-h6[ne-line-height='1'] { - line-height: 1; -} -.ne-engine ne-h1[ne-line-height='1.15'], -.ne-viewer ne-h1[ne-line-height='1.15'], -.ne-engine ne-h2[ne-line-height='1.15'], -.ne-viewer ne-h2[ne-line-height='1.15'], -.ne-engine ne-h3[ne-line-height='1.15'], -.ne-viewer ne-h3[ne-line-height='1.15'], -.ne-engine ne-h4[ne-line-height='1.15'], -.ne-viewer ne-h4[ne-line-height='1.15'], -.ne-engine ne-h5[ne-line-height='1.15'], -.ne-viewer ne-h5[ne-line-height='1.15'], -.ne-engine ne-h6[ne-line-height='1.15'], -.ne-viewer ne-h6[ne-line-height='1.15'] { - line-height: 1.15; -} -.ne-engine ne-h1[ne-line-height='1.5'], -.ne-viewer ne-h1[ne-line-height='1.5'], -.ne-engine ne-h2[ne-line-height='1.5'], -.ne-viewer ne-h2[ne-line-height='1.5'], -.ne-engine ne-h3[ne-line-height='1.5'], -.ne-viewer ne-h3[ne-line-height='1.5'], -.ne-engine ne-h4[ne-line-height='1.5'], -.ne-viewer ne-h4[ne-line-height='1.5'], -.ne-engine ne-h5[ne-line-height='1.5'], -.ne-viewer ne-h5[ne-line-height='1.5'], -.ne-engine ne-h6[ne-line-height='1.5'], -.ne-viewer ne-h6[ne-line-height='1.5'] { - line-height: 1.5; -} -.ne-engine ne-h1[ne-line-height='2'], -.ne-viewer ne-h1[ne-line-height='2'], -.ne-engine ne-h2[ne-line-height='2'], -.ne-viewer ne-h2[ne-line-height='2'], -.ne-engine ne-h3[ne-line-height='2'], -.ne-viewer ne-h3[ne-line-height='2'], -.ne-engine ne-h4[ne-line-height='2'], -.ne-viewer ne-h4[ne-line-height='2'], -.ne-engine ne-h5[ne-line-height='2'], -.ne-viewer ne-h5[ne-line-height='2'], -.ne-engine ne-h6[ne-line-height='2'], -.ne-viewer ne-h6[ne-line-height='2'] { - line-height: 2; -} -.ne-engine ne-h1[ne-line-height='2.5'], -.ne-viewer ne-h1[ne-line-height='2.5'], -.ne-engine ne-h2[ne-line-height='2.5'], -.ne-viewer ne-h2[ne-line-height='2.5'], -.ne-engine ne-h3[ne-line-height='2.5'], -.ne-viewer ne-h3[ne-line-height='2.5'], -.ne-engine ne-h4[ne-line-height='2.5'], -.ne-viewer ne-h4[ne-line-height='2.5'], -.ne-engine ne-h5[ne-line-height='2.5'], -.ne-viewer ne-h5[ne-line-height='2.5'], -.ne-engine ne-h6[ne-line-height='2.5'], -.ne-viewer ne-h6[ne-line-height='2.5'] { - line-height: 2.5; -} -.ne-engine ne-h1[ne-line-height='3'], -.ne-viewer ne-h1[ne-line-height='3'], -.ne-engine ne-h2[ne-line-height='3'], -.ne-viewer ne-h2[ne-line-height='3'], -.ne-engine ne-h3[ne-line-height='3'], -.ne-viewer ne-h3[ne-line-height='3'], -.ne-engine ne-h4[ne-line-height='3'], -.ne-viewer ne-h4[ne-line-height='3'], -.ne-engine ne-h5[ne-line-height='3'], -.ne-viewer ne-h5[ne-line-height='3'], -.ne-engine ne-h6[ne-line-height='3'], -.ne-viewer ne-h6[ne-line-height='3'] { - line-height: 3; -} - -/** 只提供变量 */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-link-editor { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-link-editor { - width: 365px; - max-width: calc(100vw - 32px); - border-radius: 5px; - padding: 16px 12px; - font-size: 14px; -} -.ne-link-editor .ne-link-editor-field, -.ne-link-editor .ne-link-editor-field-title { - margin-bottom: 16px; -} -.ne-link-editor .ne-link-error-tip { - color: var(--lakex-editor-color-red6); - margin-top: 16px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-link { - display: inline; - text-indent: 0; - position: relative; -} -ne-link-content { - display: inline; - cursor: pointer; - color: var(--lakex-editor-text-link); - caret-color: var(--lakex-editor-color-black) !important; -} -ne-link-content:hover { - background: var(--lakex-editor-card-background-hover); -} -ne-link-content ne-text { - color: var(--lakex-editor-text-link); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-oli, -ne-uli, -ne-tli { - display: flex; - justify-content: flex-start; - align-items: baseline; - padding-left: 2em; -} -ne-oli[ne-level='1'], -ne-uli[ne-level='1'], -ne-tli[ne-level='1'] { - padding-left: calc(2em + 2em); -} -@media only screen and (max-width: 768px) { - ne-oli[ne-level='1'], - ne-uli[ne-level='1'], - ne-tli[ne-level='1'] { - padding-left: min(calc(2em + 2em), 50vw); - } -} -ne-oli[ne-level='2'], -ne-uli[ne-level='2'], -ne-tli[ne-level='2'] { - padding-left: calc(2em + 4em); -} -@media only screen and (max-width: 768px) { - ne-oli[ne-level='2'], - ne-uli[ne-level='2'], - ne-tli[ne-level='2'] { - padding-left: min(calc(2em + 4em), 50vw); - } -} -ne-oli[ne-level='3'], -ne-uli[ne-level='3'], -ne-tli[ne-level='3'] { - padding-left: calc(2em + 6em); -} -@media only screen and (max-width: 768px) { - ne-oli[ne-level='3'], - ne-uli[ne-level='3'], - ne-tli[ne-level='3'] { - padding-left: min(calc(2em + 6em), 50vw); - } -} -ne-oli[ne-level='4'], -ne-uli[ne-level='4'], -ne-tli[ne-level='4'] { - padding-left: calc(2em + 8em); -} -@media only screen and (max-width: 768px) { - ne-oli[ne-level='4'], - ne-uli[ne-level='4'], - ne-tli[ne-level='4'] { - padding-left: min(calc(2em + 8em), 50vw); - } -} -ne-oli[ne-level='5'], -ne-uli[ne-level='5'], -ne-tli[ne-level='5'] { - padding-left: calc(2em + 10em); -} -@media only screen and (max-width: 768px) { - ne-oli[ne-level='5'], - ne-uli[ne-level='5'], - ne-tli[ne-level='5'] { - padding-left: min(calc(2em + 10em), 50vw); - } -} -ne-oli[ne-level='6'], -ne-uli[ne-level='6'], -ne-tli[ne-level='6'] { - padding-left: calc(2em + 12em); -} -@media only screen and (max-width: 768px) { - ne-oli[ne-level='6'], - ne-uli[ne-level='6'], - ne-tli[ne-level='6'] { - padding-left: min(calc(2em + 12em), 50vw); - } -} -ne-oli[ne-level='7'], -ne-uli[ne-level='7'], -ne-tli[ne-level='7'] { - padding-left: calc(2em + 14em); -} -@media only screen and (max-width: 768px) { - ne-oli[ne-level='7'], - ne-uli[ne-level='7'], - ne-tli[ne-level='7'] { - padding-left: min(calc(2em + 14em), 50vw); - } -} -ne-oli[ne-level='8'], -ne-uli[ne-level='8'], -ne-tli[ne-level='8'] { - padding-left: calc(2em + 16em); -} -@media only screen and (max-width: 768px) { - ne-oli[ne-level='8'], - ne-uli[ne-level='8'], - ne-tli[ne-level='8'] { - padding-left: min(calc(2em + 16em), 50vw); - } -} -ne-oli-i, -ne-uli-i, -ne-tli-i { - min-width: 2em; - margin-left: -2em; - text-indent: 0; - padding-left: 0; - display: inline-flex; - justify-content: flex-end; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - white-space: nowrap; -} -ne-oli-i.heading { - margin-left: 0; - min-width: auto; - text-indent: initial; - font-weight: bold; -} -ne-h1[index-type], -ne-h2[index-type], -ne-h3[index-type], -ne-h4[index-type], -ne-h5[index-type], -ne-h6[index-type] { - display: flex; - justify-content: flex-start; - align-items: baseline; -} -ne-h1[index-type][ne-text-indent] ne-oli-i.heading, -ne-h2[index-type][ne-text-indent] ne-oli-i.heading, -ne-h3[index-type][ne-text-indent] ne-oli-i.heading, -ne-h4[index-type][ne-text-indent] ne-oli-i.heading, -ne-h5[index-type][ne-text-indent] ne-oli-i.heading, -ne-h6[index-type][ne-text-indent] ne-oli-i.heading { - margin-left: 2em; -} -ne-h1[index-type] ne-heading-content, -ne-h2[index-type] ne-heading-content, -ne-h3[index-type] ne-heading-content, -ne-h4[index-type] ne-heading-content, -ne-h5[index-type] ne-heading-content, -ne-h6[index-type] ne-heading-content { - text-indent: 0; - flex: 1; -} -ne-h1[index-type] span.ne-b-filler, -ne-h2[index-type] span.ne-b-filler, -ne-h3[index-type] span.ne-b-filler, -ne-h4[index-type] span.ne-b-filler, -ne-h5[index-type] span.ne-b-filler, -ne-h6[index-type] span.ne-b-filler { - display: inline; -} -ne-oli-i.clickable span.ne-list-symbol { - cursor: pointer; -} -ne-oli-i.clickable:hover .ne-list-symbol, -ne-oli-i.select-active .ne-list-symbol { - position: relative; -} -ne-oli-i.clickable:hover .ne-list-symbol::before, -ne-oli-i.select-active .ne-list-symbol::before { - background-color: var(--lakex-editor-color-grey3); - z-index: -1; - content: ''; - position: absolute; - right: 2px; - left: -4px; - border-radius: 6px; - height: 100%; -} -ne-oli-i .ne-list-symbol { - padding-right: 6px; - font-family: Helvetica Neue, Consolas; -} -ne-oli-i .ne-list-symbol:after { - content: '.'; -} -ne-oli-i .ne-list-symbol[data-type='1'][data-level='1'], -ne-oli-i .ne-list-symbol[data-type='1'][data-level='0'] { - font-family: inherit; -} -ne-oli-i .ne-list-symbol[data-type='1'][data-level='1']::after { - content: ''; -} -ne-oli-i .ne-list-symbol[data-type='1'][data-level='0']::after { - content: '、'; - width: 0.5em; - overflow: hidden; - display: inline-block; - vertical-align: bottom; -} -ne-uli-i .ne-list-symbol { - padding-right: 6px; -} -ne-uli-i .ne-list-symbol > span { - display: inline-block; - transform: scale(0.5); -} -ne-tli ne-tli-i.ne-checkbox { - margin-left: -2em; - padding-right: 5px; - box-sizing: border-box; - color: var(--lakex-editor-color-grey9); - font-size: 14px; - font-feature-settings: 'tnum'; - position: relative; - top: 0.2em; - white-space: nowrap; - outline: none; - cursor: pointer; -} -ne-tli ne-tli-i.ne-checkbox .ne-checkbox-inner { - position: relative; - top: 0; - left: 0; - width: 16px; - height: 16px; - background-color: var(--lakex-editor-background-primary); - border: solid 1px var(--lakex-editor-border-primary); - border-collapse: separate; - transition: all 0.3s; - border-radius: 4px; -} -ne-tli ne-tli-i.ne-checkbox .ne-checkbox-inner::after { - position: absolute; - top: 50%; - left: 22%; - display: table; - width: 5.7px; - height: 9.14px; - border: 2px solid var(--lakex-editor-background-primary); - border-top: 0; - border-left: 0; - transform: rotate(45deg) scale(0) translate(-50%, -50%); - opacity: 0; - transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; - content: ' '; -} -ne-tli ne-tli-i.ne-checkbox:after { - display: none; -} -ne-tli ne-tli-i.ne-checkbox-checked .ne-checkbox-inner { - background-color: var(--lakex-editor-color-theme); - border-color: var(--lakex-editor-color-theme); -} -ne-tli ne-tli-i.ne-checkbox-checked .ne-checkbox-inner::after { - position: absolute; - top: 50%; - left: 22%; - display: table; - width: 5.7px; - height: 9.14px; - border: 2px solid var(--lakex-editor-background-primary); - border-top: 0; - border-left: 0; - transform: rotate(45deg) scale(1) translate(-50%, -50%); - opacity: 1; - transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; - content: ' '; -} -ne-oli-c { - flex: 1; -} -ne-oli-c, -ne-uli-c, -ne-tli-c { - text-indent: 0; - padding-left: 0; - min-width: 1px; -} -/** symbol 样式 **/ -ne-oli-i[ne-i-bold], -ne-uli-i[ne-i-bold] { - font-weight: bold; -} -ne-oli-i[ne-i-italic], -ne-uli-i[ne-i-italic] { - font-style: italic; -} -ne-oli-i[ne-i-underline], -ne-uli-i[ne-i-underline] { - text-decoration: underline; -} -ne-oli-i[ne-i-underline][ne-i-strikethrough], -ne-uli-i[ne-i-underline][ne-i-strikethrough] { - text-decoration: underline line-through; -} -ne-oli-i[ne-i-strikethrough], -ne-uli-i[ne-i-strikethrough] { - text-decoration: line-through; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-mark { - display: inline; - text-indent: 0; -} -ne-mark-content { - display: inline; - background-color: var(--lakex-editor-color-yellow5); - padding: 0; - margin: 0 1px; -} -ne-mark-content ne-text { - color: inherit !important; - background: none !important; -} - -ne-p { - display: block; - min-height: 24px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-quote { - display: block; - padding-left: 10px; - margin: 10px 0; - position: relative; -} -ne-quote::before { - content: ''; - display: block; - position: absolute; - top: 0; - left: 0px; - bottom: 0; - width: 2px; - border-radius: 2px; - background-color: var(--lakex-editor-color-grey5); -} -ne-quote ne-text, -ne-quote ne-oli-i, -ne-quote ne-uli-i { - opacity: 0.7; -} - -ne-card.ne-card-offline ne-card-root { - display: none; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-engine ne-table-wrap ::selection, -.ne-engine ne-card ::selection { - background-color: transparent !important; -} -.ne-engine ne-table-wrap { - caret-color: transparent; -} -.ne-engine ne-table-wrap.ne-table-focus { - caret-color: unset; -} -.ne-engine ne-table-wrap.ne-table-focus ::selection { - background-color: var(--lakex-editor-selection) !important; -} -.ne-engine table[ne-fake-table-selection] td .ne-td-content { - caret-color: transparent; -} -.ne-engine table[ne-fake-table-selection] td .ne-td-content ::selection { - background-color: transparent !important; -} -.ne-engine ne-columns[ne-fake-table-selection] ne-column { - caret-color: transparent; -} -.ne-engine ne-columns[ne-fake-table-selection] ne-column ::selection { - background-color: transparent !important; -} -.ne-engine ne-card.ne-focused ::selection { - background-color: var(--lakex-editor-selection) !important; -} -.ne-engine .ne-i-filler ::selection { - background-color: transparent !important; -} -/* ---- table start ----- */ -ne-table-wrap[ne-fake-selection] ne-table-box:after { - content: ' '; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 2; - background-color: var(--lakex-editor-selection); - pointer-events: none; -} -td[ne-fake-cell-selection]:after, -ne-column[ne-fake-cell-selection]:after { - content: ' '; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: var(--lakex-editor-selection); - pointer-events: none; - z-index: 2; -} -ne-column[ne-fake-cell-selection]::after { - border-radius: 6px; - top: -6px; - left: -6px; - bottom: -6px; -} -/* ---- table end ----- */ -/* ---- card start ----- */ -ne-card[ne-fake-selection]:after { - content: ' '; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: var(--lakex-editor-selection); - pointer-events: none; - z-index: 99; -} -ne-collapse[ne-fake-selection], -ne-alert[ne-fake-selection], -ne-columns[ne-fake-selection] { - position: relative; -} -ne-collapse[ne-fake-selection] ::selection, -ne-alert[ne-fake-selection] ::selection, -ne-columns[ne-fake-selection] ::selection { - background-color: transparent !important; -} -ne-collapse[ne-fake-selection]:after, -ne-alert[ne-fake-selection]:after, -ne-columns[ne-fake-selection]:after { - content: ' '; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: var(--lakex-editor-selection); - pointer-events: none; - z-index: 99; -} -/* ---- 分栏卡片要特殊处理一下 ---- */ -ne-columns[ne-fake-selection]:after { - left: -6px; - right: -6px; -} -/* ---- card end ----- */ - -[ne-sup] { - font-size: 0.83em; - vertical-align: super; - position: relative; - top: -0.25em; - z-index: 0; -} -[ne-sub] { - font-size: 0.83em; - vertical-align: sub; - position: relative; - bottom: -0.25em; - z-index: 0; -} -.ne-engine [ne-sub][ne-fontsize='12'], -.ne-viewer [ne-sub][ne-fontsize='12'], -.ne-engine [ne-sup][ne-fontsize='12'], -.ne-viewer [ne-sup][ne-fontsize='12'] { - font-size: 9px; -} -.ne-engine [ne-sub][ne-fontsize='13'], -.ne-viewer [ne-sub][ne-fontsize='13'], -.ne-engine [ne-sup][ne-fontsize='13'], -.ne-viewer [ne-sup][ne-fontsize='13'] { - font-size: 9.75px; -} -.ne-engine [ne-sub][ne-fontsize='14'], -.ne-viewer [ne-sub][ne-fontsize='14'], -.ne-engine [ne-sup][ne-fontsize='14'], -.ne-viewer [ne-sup][ne-fontsize='14'] { - font-size: 10.5px; -} -.ne-engine [ne-sub][ne-fontsize='15'], -.ne-viewer [ne-sub][ne-fontsize='15'], -.ne-engine [ne-sup][ne-fontsize='15'], -.ne-viewer [ne-sup][ne-fontsize='15'] { - font-size: 11.25px; -} -.ne-engine [ne-sub][ne-fontsize='16'], -.ne-viewer [ne-sub][ne-fontsize='16'], -.ne-engine [ne-sup][ne-fontsize='16'], -.ne-viewer [ne-sup][ne-fontsize='16'] { - font-size: 12px; -} -.ne-engine [ne-sub][ne-fontsize='17'], -.ne-viewer [ne-sub][ne-fontsize='17'], -.ne-engine [ne-sup][ne-fontsize='17'], -.ne-viewer [ne-sup][ne-fontsize='17'] { - font-size: 12.75px; -} -.ne-engine [ne-sub][ne-fontsize='18'], -.ne-viewer [ne-sub][ne-fontsize='18'], -.ne-engine [ne-sup][ne-fontsize='18'], -.ne-viewer [ne-sup][ne-fontsize='18'] { - font-size: 13.5px; -} -.ne-engine [ne-sub][ne-fontsize='19'], -.ne-viewer [ne-sub][ne-fontsize='19'], -.ne-engine [ne-sup][ne-fontsize='19'], -.ne-viewer [ne-sup][ne-fontsize='19'] { - font-size: 14.25px; -} -.ne-engine [ne-sub][ne-fontsize='20'], -.ne-viewer [ne-sub][ne-fontsize='20'], -.ne-engine [ne-sup][ne-fontsize='20'], -.ne-viewer [ne-sup][ne-fontsize='20'] { - font-size: 15px; -} -.ne-engine [ne-sub][ne-fontsize='21'], -.ne-viewer [ne-sub][ne-fontsize='21'], -.ne-engine [ne-sup][ne-fontsize='21'], -.ne-viewer [ne-sup][ne-fontsize='21'] { - font-size: 15.75px; -} -.ne-engine [ne-sub][ne-fontsize='22'], -.ne-viewer [ne-sub][ne-fontsize='22'], -.ne-engine [ne-sup][ne-fontsize='22'], -.ne-viewer [ne-sup][ne-fontsize='22'] { - font-size: 16.5px; -} -.ne-engine [ne-sub][ne-fontsize='23'], -.ne-viewer [ne-sub][ne-fontsize='23'], -.ne-engine [ne-sup][ne-fontsize='23'], -.ne-viewer [ne-sup][ne-fontsize='23'] { - font-size: 17.25px; -} -.ne-engine [ne-sub][ne-fontsize='24'], -.ne-viewer [ne-sub][ne-fontsize='24'], -.ne-engine [ne-sup][ne-fontsize='24'], -.ne-viewer [ne-sup][ne-fontsize='24'] { - font-size: 18px; -} -.ne-engine [ne-sub][ne-fontsize='25'], -.ne-viewer [ne-sub][ne-fontsize='25'], -.ne-engine [ne-sup][ne-fontsize='25'], -.ne-viewer [ne-sup][ne-fontsize='25'] { - font-size: 18.75px; -} -.ne-engine [ne-sub][ne-fontsize='26'], -.ne-viewer [ne-sub][ne-fontsize='26'], -.ne-engine [ne-sup][ne-fontsize='26'], -.ne-viewer [ne-sup][ne-fontsize='26'] { - font-size: 19.5px; -} -.ne-engine [ne-sub][ne-fontsize='27'], -.ne-viewer [ne-sub][ne-fontsize='27'], -.ne-engine [ne-sup][ne-fontsize='27'], -.ne-viewer [ne-sup][ne-fontsize='27'] { - font-size: 20.25px; -} -.ne-engine [ne-sub][ne-fontsize='28'], -.ne-viewer [ne-sub][ne-fontsize='28'], -.ne-engine [ne-sup][ne-fontsize='28'], -.ne-viewer [ne-sup][ne-fontsize='28'] { - font-size: 21px; -} -.ne-engine [ne-sub][ne-fontsize='29'], -.ne-viewer [ne-sub][ne-fontsize='29'], -.ne-engine [ne-sup][ne-fontsize='29'], -.ne-viewer [ne-sup][ne-fontsize='29'] { - font-size: 21.75px; -} -.ne-engine [ne-sub][ne-fontsize='30'], -.ne-viewer [ne-sub][ne-fontsize='30'], -.ne-engine [ne-sup][ne-fontsize='30'], -.ne-viewer [ne-sup][ne-fontsize='30'] { - font-size: 22.5px; -} -.ne-engine [ne-sub][ne-fontsize='31'], -.ne-viewer [ne-sub][ne-fontsize='31'], -.ne-engine [ne-sup][ne-fontsize='31'], -.ne-viewer [ne-sup][ne-fontsize='31'] { - font-size: 23.25px; -} -.ne-engine [ne-sub][ne-fontsize='32'], -.ne-viewer [ne-sub][ne-fontsize='32'], -.ne-engine [ne-sup][ne-fontsize='32'], -.ne-viewer [ne-sup][ne-fontsize='32'] { - font-size: 24px; -} -.ne-engine [ne-sub][ne-fontsize='33'], -.ne-viewer [ne-sub][ne-fontsize='33'], -.ne-engine [ne-sup][ne-fontsize='33'], -.ne-viewer [ne-sup][ne-fontsize='33'] { - font-size: 24.75px; -} -.ne-engine [ne-sub][ne-fontsize='34'], -.ne-viewer [ne-sub][ne-fontsize='34'], -.ne-engine [ne-sup][ne-fontsize='34'], -.ne-viewer [ne-sup][ne-fontsize='34'] { - font-size: 25.5px; -} -.ne-engine [ne-sub][ne-fontsize='35'], -.ne-viewer [ne-sub][ne-fontsize='35'], -.ne-engine [ne-sup][ne-fontsize='35'], -.ne-viewer [ne-sup][ne-fontsize='35'] { - font-size: 26.25px; -} -.ne-engine [ne-sub][ne-fontsize='36'], -.ne-viewer [ne-sub][ne-fontsize='36'], -.ne-engine [ne-sup][ne-fontsize='36'], -.ne-viewer [ne-sup][ne-fontsize='36'] { - font-size: 27px; -} -.ne-engine [ne-sub][ne-fontsize='37'], -.ne-viewer [ne-sub][ne-fontsize='37'], -.ne-engine [ne-sup][ne-fontsize='37'], -.ne-viewer [ne-sup][ne-fontsize='37'] { - font-size: 27.75px; -} -.ne-engine [ne-sub][ne-fontsize='38'], -.ne-viewer [ne-sub][ne-fontsize='38'], -.ne-engine [ne-sup][ne-fontsize='38'], -.ne-viewer [ne-sup][ne-fontsize='38'] { - font-size: 28.5px; -} -.ne-engine [ne-sub][ne-fontsize='39'], -.ne-viewer [ne-sub][ne-fontsize='39'], -.ne-engine [ne-sup][ne-fontsize='39'], -.ne-viewer [ne-sup][ne-fontsize='39'] { - font-size: 29.25px; -} -.ne-engine [ne-sub][ne-fontsize='40'], -.ne-viewer [ne-sub][ne-fontsize='40'], -.ne-engine [ne-sup][ne-fontsize='40'], -.ne-viewer [ne-sup][ne-fontsize='40'] { - font-size: 30px; -} -.ne-engine [ne-sub][ne-fontsize='41'], -.ne-viewer [ne-sub][ne-fontsize='41'], -.ne-engine [ne-sup][ne-fontsize='41'], -.ne-viewer [ne-sup][ne-fontsize='41'] { - font-size: 30.75px; -} -.ne-engine [ne-sub][ne-fontsize='42'], -.ne-viewer [ne-sub][ne-fontsize='42'], -.ne-engine [ne-sup][ne-fontsize='42'], -.ne-viewer [ne-sup][ne-fontsize='42'] { - font-size: 31.5px; -} -.ne-engine [ne-sub][ne-fontsize='43'], -.ne-viewer [ne-sub][ne-fontsize='43'], -.ne-engine [ne-sup][ne-fontsize='43'], -.ne-viewer [ne-sup][ne-fontsize='43'] { - font-size: 32.25px; -} -.ne-engine [ne-sub][ne-fontsize='44'], -.ne-viewer [ne-sub][ne-fontsize='44'], -.ne-engine [ne-sup][ne-fontsize='44'], -.ne-viewer [ne-sup][ne-fontsize='44'] { - font-size: 33px; -} -.ne-engine [ne-sub][ne-fontsize='45'], -.ne-viewer [ne-sub][ne-fontsize='45'], -.ne-engine [ne-sup][ne-fontsize='45'], -.ne-viewer [ne-sup][ne-fontsize='45'] { - font-size: 33.75px; -} -.ne-engine [ne-sub][ne-fontsize='46'], -.ne-viewer [ne-sub][ne-fontsize='46'], -.ne-engine [ne-sup][ne-fontsize='46'], -.ne-viewer [ne-sup][ne-fontsize='46'] { - font-size: 34.5px; -} -.ne-engine [ne-sub][ne-fontsize='47'], -.ne-viewer [ne-sub][ne-fontsize='47'], -.ne-engine [ne-sup][ne-fontsize='47'], -.ne-viewer [ne-sup][ne-fontsize='47'] { - font-size: 35.25px; -} -.ne-engine [ne-sub][ne-fontsize='48'], -.ne-viewer [ne-sub][ne-fontsize='48'], -.ne-engine [ne-sup][ne-fontsize='48'], -.ne-viewer [ne-sup][ne-fontsize='48'] { - font-size: 36px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-table-column-bar { - height: 14px; - border-width: 1px 0 1px 1px; - border-style: solid; - border-color: var(--lakex-editor-color-grey4); - background-color: var(--lakex-editor-color-grey2); - cursor: pointer; - position: relative; -} -.ne-ui-table-column-bar:hover { - background-color: var(--lakex-editor-color-grey4); -} -.ne-ui-table-column-bar.ne-ui-active { - background-color: var(--lakex-editor-table-bar-active); -} -.ne-ui-table-column-bar.ne-ui-active .ne-ui-table-column-bar-move { - display: flex; -} -.ne-ui-table-column-bar:last-child { - border-top-right-radius: 8px; -} -.ne-ui-table-column-bar:last-child .ne-ui-table-column-bar-resizer { - margin-left: -6px; -} -.ne-ui-table-column-bar-resizer { - width: 7px; - opacity: 0; - position: absolute; - top: 0; - left: 100%; - bottom: 0; - z-index: 1; - margin-left: -4px; - background-color: var(--lakex-editor-color-blue5); - cursor: col-resize; -} -.ne-ui-table-column-bar-resizer:hover { - opacity: 1; -} -.ne-ui-table-column-bar-move { - width: 100%; - height: 100%; - justify-content: center; - align-items: center; - display: none; - cursor: move; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -ne-table-wrap.ne-ui-table-column-resizing .ne-ui-table-column-delete-button, -ne-table-wrap.ne-ui-table-column-resizing .ne-ui-table-column-add-button { - display: none !important; -} -.ne-ui-table-column-controller { - position: absolute; - top: 1px; - left: 0; - user-select: none; -} -.ne-ui-table-column-controller.ne-ui-active .ne-ui-table-column-bar { - background-color: var(--lakex-editor-table-bar-active); -} -.ne-ui-table-column-controller-inner { - display: none; - position: relative; - left: 0; - bottom: 0; - height: 14px; - border-right: 1px solid var(--lakex-editor-color-grey4); - border-top-right-radius: 9px; -} -.ne-ui-table-column-controller-text-mask { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 14px; - height: 28px; - cursor: text; -} -.ne-ui-table-column-moving-line { - position: absolute; - left: -9999px; - z-index: 2; - margin-left: 1px; - width: 2px; - height: 999999px; - background: var(--lakex-editor-color-blue5); - display: none; - pointer-events: none; -} -.ne-ui-table-column-delete-button, -.ne-ui-table-column-add-button-track { - position: absolute; - bottom: 100%; - display: none; - justify-content: center; - align-items: center; - z-index: 2; - margin-bottom: 4px; -} -.ne-ui-table-column-add-button { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-table-column-delete-button { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-table-column-delete-button, -.ne-ui-table-column-add-button { - width: 24px; - height: 24px; - border-radius: 2px; - cursor: pointer; - background-position: center center; - background-repeat: no-repeat; -} -.ne-ui-table-column-delete-button { - margin-left: -12px; - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2714%27 viewBox=%270 0 12 14%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23585a5a%27 d=%27M8.5.75a1 1 0 0 1 1 1V3h2a.5.5 0 0 1 .5.5v.563a.125.125 0 0 1-.125.125h-.932l-.392 8.11a1 1 0 0 1-.999.952H2.448a1 1 0 0 1-1-.952l-.39-8.11H.124A.125.125 0 0 1 0 4.063V3.5A.5.5 0 0 1 .5 3h2V1.75a1 1 0 0 1 1-1h5zm1.269 3.438H2.23l.29 7.875H9.48l.29-7.876zM5 5.625c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125h-.813a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125H5zm2.813 0c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125H7a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125h.813zm.5-3.688H3.686V3h4.626V1.937z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-ui-table-column-delete-button:hover { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2714%27 viewBox=%270 0 12 14%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23e4495b%27 d=%27M8.5.75a1 1 0 0 1 1 1V3h2a.5.5 0 0 1 .5.5v.563a.125.125 0 0 1-.125.125h-.932l-.392 8.11a1 1 0 0 1-.999.952H2.448a1 1 0 0 1-1-.952l-.39-8.11H.124A.125.125 0 0 1 0 4.063V3.5A.5.5 0 0 1 .5 3h2V1.75a1 1 0 0 1 1-1h5zm1.269 3.438H2.23l.29 7.875H9.48l.29-7.876zM5 5.625c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125h-.813a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125H5zm2.813 0c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125H7a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125h.813zm.5-3.688H3.686V3h4.626V1.937z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-ui-table-column-add-button { - position: static; - pointer-events: auto; - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23585a5a%27 d=%27M5.531.375h.938c.083 0 .125.042.125.125v11c0 .083-.042.125-.125.125H5.53c-.083 0-.125-.042-.125-.125V.5c0-.083.042-.125.125-.125zM.75 5.406h10.5c.083 0 .125.042.125.125v.938c0 .083-.042.125-.125.125H.75c-.083 0-.125-.042-.125-.125V5.53c0-.083.042-.125.125-.125z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-ui-table-column-add-button:before { - content: ' '; - display: none; - width: 2px; - height: 10000000px; - background: var(--lakex-editor-color-blue5); - position: absolute; - top: 24px; - left: 12px; -} -.ne-ui-table-column-add-button:hover { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%233384f5%27 d=%27M5.531.375h.938c.083 0 .125.042.125.125v11c0 .083-.042.125-.125.125H5.53c-.083 0-.125-.042-.125-.125V.5c0-.083.042-.125.125-.125zM.75 5.406h10.5c.083 0 .125.042.125.125v.938c0 .083-.042.125-.125.125H.75c-.083 0-.125-.042-.125-.125V5.53c0-.083.042-.125.125-.125z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-ui-table-column-add-button:hover:before { - display: block; -} -.ne-ui-table-column-add-button-track { - width: 24px; - pointer-events: none; -} -.ne-ui-table-column-add-button-track.ne-ui-table-column-add-button-fixed-offset-after .ne-ui-table-column-add-button:before { - left: auto; - right: 0; -} -.ne-ui-table-column-add-button-track.ne-ui-table-column-add-button-fixed-offset-before .ne-ui-table-column-add-button:before { - left: 1px; - right: auto; -} -[data-kumuhana='pouli'] .ne-ui-table-column-delete-button { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2714%27 viewBox=%270 0 12 14%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23E2E2E2%27 d=%27M8.5.75a1 1 0 0 1 1 1V3h2a.5.5 0 0 1 .5.5v.563a.125.125 0 0 1-.125.125h-.932l-.392 8.11a1 1 0 0 1-.999.952H2.448a1 1 0 0 1-1-.952l-.39-8.11H.124A.125.125 0 0 1 0 4.063V3.5A.5.5 0 0 1 .5 3h2V1.75a1 1 0 0 1 1-1h5zm1.269 3.438H2.23l.29 7.875H9.48l.29-7.876zM5 5.625c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125h-.813a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125H5zm2.813 0c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125H7a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125h.813zm.5-3.688H3.686V3h4.626V1.937z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -[data-kumuhana='pouli'] .ne-ui-table-column-delete-button:hover { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2714%27 viewBox=%270 0 12 14%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23e4495b%27 d=%27M8.5.75a1 1 0 0 1 1 1V3h2a.5.5 0 0 1 .5.5v.563a.125.125 0 0 1-.125.125h-.932l-.392 8.11a1 1 0 0 1-.999.952H2.448a1 1 0 0 1-1-.952l-.39-8.11H.124A.125.125 0 0 1 0 4.063V3.5A.5.5 0 0 1 .5 3h2V1.75a1 1 0 0 1 1-1h5zm1.269 3.438H2.23l.29 7.875H9.48l.29-7.876zM5 5.625c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125h-.813a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125H5zm2.813 0c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125H7a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125h.813zm.5-3.688H3.686V3h4.626V1.937z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -[data-kumuhana='pouli'] .ne-ui-table-column-add-button { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23E2E2E2%27 d=%27M5.531.375h.938c.083 0 .125.042.125.125v11c0 .083-.042.125-.125.125H5.53c-.083 0-.125-.042-.125-.125V.5c0-.083.042-.125.125-.125zM.75 5.406h10.5c.083 0 .125.042.125.125v.938c0 .083-.042.125-.125.125H.75c-.083 0-.125-.042-.125-.125V5.53c0-.083.042-.125.125-.125z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -[data-kumuhana='pouli'] .ne-ui-table-column-add-button:hover { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%233384f5%27 d=%27M5.531.375h.938c.083 0 .125.042.125.125v11c0 .083-.042.125-.125.125H5.53c-.083 0-.125-.042-.125-.125V.5c0-.083.042-.125.125-.125zM.75 5.406h10.5c.083 0 .125.042.125.125v.938c0 .083-.042.125-.125.125H.75c-.083 0-.125-.042-.125-.125V5.53c0-.083.042-.125.125-.125z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-table-context-menu { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-table-context-menu { - border-radius: 4px; - padding: 4px 0; -} -.ne-ui-table-context-menu-item { - min-width: 198px; - padding: 6px 16px; - display: flex; - align-items: center; - cursor: default; - white-space: nowrap; -} -.ne-ui-table-context-menu-item .ne-ui-icon-box { - width: 16px; - height: 16px; - margin-right: 10px; -} -.ne-ui-table-context-menu-item:hover { - background-color: var(--lakex-editor-background-primary-hover); -} -.ne-ui-table-context-menu-item.ne-disabled { - opacity: 0.3; -} -.ne-ui-table-context-menu-item.ne-disabled:hover { - background-color: var(--lakex-editor-background-primary); -} -.ne-ui-table-context-menu-item.ne-ui-input-item .ne-ui-table-context-menu-item-text { - display: flex; -} -.ne-ui-table-context-menu-item.ne-ui-input-item .ne-ui-table-context-menu-item-text input { - width: 47px; - height: 22px; - text-align: center; - line-height: 22px; - margin: 0 8px; -} -.ne-ui-table-context-menu-item-text { - flex: 1; -} -.ne-ui-table-context-menu-item-hotkey { - letter-spacing: 3px; - color: var(--lakex-editor-text-disable); -} -.ne-ui-table-context-menu-divider { - border-top: 1px solid var(--lakex-editor-border-primary); - margin: 6px 0; -} -.ne-ui-table-context-menu-tooltip-overlay .ant-tooltip-inner { - background-color: var(--lakex-editor-background-foreground); - border: 1px solid var(--lakex-editor-border-primary); - box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.04); - color: var(--lakex-editor-text-color); -} -.ne-ui-table-context-menu-tooltip-overlay .ant-tooltip-arrow { - display: none; -} -.ne-ui-table-context-menu-tooltip-overlay .ant-tooltip-inner { - width: 130px; - min-height: 30px; - border-radius: 4px; - text-align: center; - -webkit-font-smoothing: auto; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-table-control-point-wrapper { - position: absolute; - top: 1px; - left: -8px; - width: 22px; - height: 14px; - background-color: var(--lakex-editor-background-primary); - display: none; -} -.ne-ui-table-control-point { - position: absolute; - top: 0; - right: 0; - width: 14px; - height: 14px; - border: 1px solid var(--lakex-editor-color-grey4); - background-color: var(--lakex-editor-color-grey2); - border-top-left-radius: 50%; - cursor: pointer; -} -.ne-ui-table-control-point:hover { - background-color: var(--lakex-editor-color-grey4); -} -.ne-ui-table-control-point.ne-ui-active { - background-color: var(--lakex-editor-table-bar-active); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-table-resize-mask { - position: absolute; - width: 0; - height: 0; - opacity: 0; - z-index: 2; - user-select: none; - pointer-events: none; -} -.ne-ui-table-resize-mask > div { - position: absolute; - pointer-events: auto; -} -.ne-ui-table-resize-mask .ne-ui-table-resize-top { - left: 0; - top: 0; - width: 100%; - height: 7px; - cursor: row-resize; -} -.ne-ui-table-resize-mask .ne-ui-table-resize-right { - right: 0; - top: 0; - width: 7px; - height: 100%; - cursor: col-resize; -} -.ne-ui-table-resize-mask .ne-ui-table-resize-bottom { - left: 0; - bottom: 0; - width: 100%; - height: 7px; - cursor: row-resize; -} -.ne-ui-table-resize-mask .ne-ui-table-resize-left { - left: 0; - top: 0; - width: 7px; - height: 100%; - cursor: col-resize; -} -.ne-ui-table-resize-mask.ne-ui-table-resize-mask-last-col .ne-ui-table-resize-right { - width: 4px; -} -.ne-ui-table-resize-mask .ne-ui-table-vertical-resizing-line { - position: absolute; - z-index: 2; - background-color: var(--lakex-editor-color-blue5); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-table-row-bar { - position: relative; - width: 14px; - border-width: 1px 1px 0 1px; - border-style: solid; - border-color: var(--lakex-editor-color-grey4); - background-color: var(--lakex-editor-color-grey2); - cursor: pointer; -} -.ne-ui-table-row-bar:hover { - background-color: var(--lakex-editor-color-grey4); -} -.ne-ui-table-row-bar.ne-ui-active { - background-color: var(--lakex-editor-table-bar-active); -} -.ne-ui-table-row-bar.ne-ui-active .ne-ui-table-row-bar-move { - display: flex; -} -.ne-ui-table-row-bar:last-child { - border-bottom-left-radius: 8px; -} -.ne-ui-table-row-bar:last-child .ne-ui-table-row-bar-resizer { - margin-top: -6px; -} -.ne-ui-table-row-bar-resizer { - height: 7px; - opacity: 0; - position: absolute; - left: 0; - top: 100%; - right: 0; - z-index: 1; - margin-top: -4px; - background-color: var(--lakex-editor-color-blue5); - cursor: row-resize; -} -.ne-ui-table-row-bar-resizer:hover { - opacity: 1; -} -.ne-ui-table-row-bar-move { - width: 100%; - height: 100%; - justify-content: center; - align-items: center; - display: none; - cursor: move; -} -.ne-ui-table-row-bar-line { - height: 1px; - position: absolute; - left: 0; - right: 0; - z-index: 2; - background-color: var(--lakex-editor-color-blue5); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -ne-table-wrap.ne-ui-table-row-resizing .ne-ui-table-row-delete-button { - display: none !important; -} -.ne-ui-table-row-controller { - position: absolute; - top: 14px; - left: -8px; - width: 22px; - background-color: var(--lakex-editor-background-primary); -} -.ne-ui-table-row-controller.ne-ui-active .ne-ui-table-row-bar { - background-color: var(--lakex-editor-table-bar-active); -} -.ne-ui-table-row-controller .ne-ui-table-row-controller-inner { - position: relative; - left: 8px; - width: 14px; - border-bottom: 1px solid var(--lakex-editor-color-grey4); - display: none; - border-bottom-left-radius: 9px; -} -.ne-ui-table-row-moving-line { - position: absolute; - top: -9999px; - z-index: 2; - height: 2px; - width: 0; - background: var(--lakex-editor-color-blue5); - display: none; - pointer-events: none; -} -.ne-ui-table-row-delete-button, -.ne-ui-table-row-add-button { - position: absolute; - right: 100%; - display: none; - justify-content: center; - align-items: center; - z-index: 2; - width: 24px; - height: 24px; - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 2px; - cursor: pointer; - background-color: var(--lakex-editor-background-primary); - background-position: center center; - background-repeat: no-repeat; -} -.ne-ui-table-row-delete-button { - left: 14px; - margin-left: 2px; - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2714%27 viewBox=%270 0 12 14%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23404040%27 d=%27M8.5.75a1 1 0 0 1 1 1V3h2a.5.5 0 0 1 .5.5v.563a.125.125 0 0 1-.125.125h-.932l-.392 8.11a1 1 0 0 1-.999.952H2.448a1 1 0 0 1-1-.952l-.39-8.11H.124A.125.125 0 0 1 0 4.063V3.5A.5.5 0 0 1 .5 3h2V1.75a1 1 0 0 1 1-1h5zm1.269 3.438H2.23l.29 7.875H9.48l.29-7.876zM5 5.625c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125h-.813a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125H5zm2.813 0c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125H7a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125h.813zm.5-3.688H3.686V3h4.626V1.937z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-ui-table-row-delete-button:hover { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2714%27 viewBox=%270 0 12 14%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23e4495b%27 d=%27M8.5.75a1 1 0 0 1 1 1V3h2a.5.5 0 0 1 .5.5v.563a.125.125 0 0 1-.125.125h-.932l-.392 8.11a1 1 0 0 1-.999.952H2.448a1 1 0 0 1-1-.952l-.39-8.11H.124A.125.125 0 0 1 0 4.063V3.5A.5.5 0 0 1 .5 3h2V1.75a1 1 0 0 1 1-1h5zm1.269 3.438H2.23l.29 7.875H9.48l.29-7.876zM5 5.625c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125h-.813a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125H5zm2.813 0c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125H7a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125h.813zm.5-3.688H3.686V3h4.626V1.937z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-ui-table-row-add-button { - margin-right: 2px; - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23404040%27 d=%27M5.531.375h.938c.083 0 .125.042.125.125v11c0 .083-.042.125-.125.125H5.53c-.083 0-.125-.042-.125-.125V.5c0-.083.042-.125.125-.125zM.75 5.406h10.5c.083 0 .125.042.125.125v.938c0 .083-.042.125-.125.125H.75c-.083 0-.125-.042-.125-.125V5.53c0-.083.042-.125.125-.125z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-ui-table-row-add-button:hover { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%233384f5%27 d=%27M5.531.375h.938c.083 0 .125.042.125.125v11c0 .083-.042.125-.125.125H5.53c-.083 0-.125-.042-.125-.125V.5c0-.083.042-.125.125-.125zM.75 5.406h10.5c.083 0 .125.042.125.125v.938c0 .083-.042.125-.125.125H.75c-.083 0-.125-.042-.125-.125V5.53c0-.083.042-.125.125-.125z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -.ne-ui-table-row-delete-button { - margin-top: -12px; -} -[data-kumuhana='pouli'] .ne-ui-table-row-delete-button { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2714%27 viewBox=%270 0 12 14%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23E2E2E2%27 d=%27M8.5.75a1 1 0 0 1 1 1V3h2a.5.5 0 0 1 .5.5v.563a.125.125 0 0 1-.125.125h-.932l-.392 8.11a1 1 0 0 1-.999.952H2.448a1 1 0 0 1-1-.952l-.39-8.11H.124A.125.125 0 0 1 0 4.063V3.5A.5.5 0 0 1 .5 3h2V1.75a1 1 0 0 1 1-1h5zm1.269 3.438H2.23l.29 7.875H9.48l.29-7.876zM5 5.625c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125h-.813a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125H5zm2.813 0c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125H7a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125h.813zm.5-3.688H3.686V3h4.626V1.937z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -[data-kumuhana='pouli'] .ne-ui-table-row-delete-button:hover { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2714%27 viewBox=%270 0 12 14%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23e4495b%27 d=%27M8.5.75a1 1 0 0 1 1 1V3h2a.5.5 0 0 1 .5.5v.563a.125.125 0 0 1-.125.125h-.932l-.392 8.11a1 1 0 0 1-.999.952H2.448a1 1 0 0 1-1-.952l-.39-8.11H.124A.125.125 0 0 1 0 4.063V3.5A.5.5 0 0 1 .5 3h2V1.75a1 1 0 0 1 1-1h5zm1.269 3.438H2.23l.29 7.875H9.48l.29-7.876zM5 5.625c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125h-.813a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125H5zm2.813 0c.069 0 .125.056.125.125v4.75a.125.125 0 0 1-.125.125H7a.125.125 0 0 1-.125-.125V5.75c0-.069.056-.125.125-.125h.813zm.5-3.688H3.686V3h4.626V1.937z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -[data-kumuhana='pouli'] .ne-ui-table-row-add-button { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%23E2E2E2%27 d=%27M5.531.375h.938c.083 0 .125.042.125.125v11c0 .083-.042.125-.125.125H5.53c-.083 0-.125-.042-.125-.125V.5c0-.083.042-.125.125-.125zM.75 5.406h10.5c.083 0 .125.042.125.125v.938c0 .083-.042.125-.125.125H.75c-.083 0-.125-.042-.125-.125V5.53c0-.083.042-.125.125-.125z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} -[data-kumuhana='pouli'] .ne-ui-table-row-add-button:hover { - background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill=%27%233384f5%27 d=%27M5.531.375h.938c.083 0 .125.042.125.125v11c0 .083-.042.125-.125.125H5.53c-.083 0-.125-.042-.125-.125V.5c0-.083.042-.125.125-.125zM.75 5.406h10.5c.083 0 .125.042.125.125v.938c0 .083-.042.125-.125.125H.75c-.083 0-.125-.042-.125-.125V5.53c0-.083.042-.125.125-.125z%27 fill-rule=%27nonzero%27/%3E%3C/svg%3E"); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-ui-table-selection { - position: absolute; - top: 14px; - left: 0; - z-index: 2; -} -.ne-ui-table-selection-bg { - position: absolute; - background-color: var(--lakex-editor-selection); - z-index: 1; - pointer-events: none; - display: none; -} -.ne-ui-table-moving-tip { - position: absolute; - top: -999999999px; - left: -999999999px; - z-index: 9999; - width: 150px; - height: 30px; - line-height: 30px; - text-align: center; - color: var(--lakex-editor-color-white); - background-color: var(--lakex-editor-color-blue5); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-table-highlight { - background: var(--lakex-editor-color-red5); - opacity: 0.08; - position: absolute; - z-index: 2; - pointer-events: none; -} -.ne-td { - position: relative; -} -.ne-ui-selection-highlight td[ne-fake-cell-selection]:after { - background-color: transparent; -} -.ne-ui-selection-highlight-row .ne-ui-table-row-bar .ne-ui-table-row-bar-move { - display: none; -} -.ne-ui-selection-highlight-row .ne-ui-table-row-bar.ne-ui-selected { - background: var(--lakex-editor-table-bar-danger) !important; -} -.ne-ui-selection-highlight-column .ne-ui-table-column-bar .ne-ui-table-column-bar-move { - display: none; -} -.ne-ui-selection-highlight-column .ne-ui-table-column-bar.ne-ui-selected { - background: var(--lakex-editor-table-bar-danger) !important; -} -.ne-ui-selection-highlight-table .ne-ui-table-row-bar-move, -.ne-ui-selection-highlight-table .ne-ui-table-column-bar-move { - display: none !important; -} -.ne-ui-selection-highlight-table .ne-ui-table-column-bar, -.ne-ui-selection-highlight-table .ne-ui-table-row-bar, -.ne-ui-selection-highlight-table .ne-ui-table-control-point { - background: var(--lakex-editor-table-bar-danger) !important; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-engine ne-table-wrap { - padding-left: 0; - margin-top: 0; -} -.ne-engine ne-table-wrap.ne-invisible .ne-ui-table, -.ne-engine ne-table-wrap.ne-invisible ne-table-inner-wrap { - display: none !important; -} -.ne-engine ne-table-wrap.ne-table-focus { - margin-top: -28px; -} -.ne-engine ne-table-wrap.ne-table-focus ne-table-inner-wrap { - padding-top: 42px; -} -.ne-engine ne-table-wrap.ne-table-focus ne-overlay-tmp { - z-index: 1; -} -.ne-engine ne-table-wrap.ne-table-focus .ne-ui-table { - margin-top: 28px; -} -.ne-engine ne-table-wrap.ne-table-focus .ne-ui-table-column-controller { - padding-top: 28px; -} -.ne-engine ne-table-wrap.h5-ne-table-focus, -.ne-engine ne-table-wrap.pad-ne-table-focus { - margin-top: 0; -} -.ne-engine ne-table-wrap.h5-ne-table-focus ne-table-inner-wrap, -.ne-engine ne-table-wrap.pad-ne-table-focus ne-table-inner-wrap { - padding-top: 14px; -} -.ne-engine ne-table-wrap.h5-ne-table-focus .ne-ui-table, -.ne-engine ne-table-wrap.pad-ne-table-focus .ne-ui-table { - margin-top: 0; -} -.ne-engine ne-table-wrap.h5-ne-table-focus .ne-ui-table-column-controller, -.ne-engine ne-table-wrap.pad-ne-table-focus .ne-ui-table-column-controller { - padding-top: 0; -} -.ne-engine ne-table-wrap.ne-ui-selecting { - caret-color: transparent; -} -.ne-engine ne-table-wrap.ne-ui-selecting ::selection { - background-color: transparent !important; -} -ne-table-inner-wrap { - line-height: 0; - padding-top: 14px; -} -ne-table-box { - background-color: var(--lakex-editor-background-primary); - display: inline-block; - position: relative; - cursor: text; -} -@media print { - ne-table-box { - display: block !important; - } -} -.ne-ui-table { - position: absolute; - top: 0px; - left: -13px; - z-index: 2; -} - -ne-table-wrap.ne-ui-table-column-resizing { - cursor: col-resize !important; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.tableHeadTd { - background-color: var(--table-head-bg-color) !important; -} -.tableHeadNormalText ne-text, -.tableHeadNormalText .ne-td-content > .ne-b-filler { - font-weight: bold !important; - color: var(--table-head-text-color) !important; - -webkit-text-fill-color: unset !important; -} -.tableHeadGradientText ne-text, -.tableHeadGradientText .ne-td-content > .ne-b-filler { - font-weight: bold !important; - -webkit-text-fill-color: transparent; - background-clip: text; - background-image: linear-gradient(90deg, var(--table-head-text1-color), var(--table-head-text2-color)) !important; -} -/** 表头样式,参考plugins/table/src/common/table-attr-translator.ts的变量定义 */ -table[ne-table-row-head='true'][ne-table-head-text-gradient='true'] tr:first-child td { - background-color: var(--table-head-bg-color) !important; -} -table[ne-table-row-head='true'][ne-table-head-text-gradient='true'] tr:first-child td ne-text, -table[ne-table-row-head='true'][ne-table-head-text-gradient='true'] tr:first-child td .ne-td-content > .ne-b-filler { - font-weight: bold !important; - -webkit-text-fill-color: transparent; - background-clip: text; - background-image: linear-gradient(90deg, var(--table-head-text1-color), var(--table-head-text2-color)) !important; -} -table[ne-table-col-head='true'][ne-table-head-text-gradient='true'] tr > td[data-col='0'] { - background-color: var(--table-head-bg-color) !important; -} -table[ne-table-col-head='true'][ne-table-head-text-gradient='true'] tr > td[data-col='0'] ne-text, -table[ne-table-col-head='true'][ne-table-head-text-gradient='true'] tr > td[data-col='0'] .ne-td-content > .ne-b-filler { - font-weight: bold !important; - -webkit-text-fill-color: transparent; - background-clip: text; - background-image: linear-gradient(90deg, var(--table-head-text1-color), var(--table-head-text2-color)) !important; -} -table[ne-table-col-head='true']:not([ne-table-head-text-gradient='true']) tr > td[data-col='0'] { - background-color: var(--table-head-bg-color) !important; -} -table[ne-table-col-head='true']:not([ne-table-head-text-gradient='true']) tr > td[data-col='0'] ne-text, -table[ne-table-col-head='true']:not([ne-table-head-text-gradient='true']) tr > td[data-col='0'] .ne-td-content > .ne-b-filler { - font-weight: bold !important; - color: var(--table-head-text-color) !important; - -webkit-text-fill-color: unset !important; -} -table[ne-table-row-head='true']:not([ne-table-head-text-gradient='true']) tr:first-child td { - background-color: var(--table-head-bg-color) !important; -} -table[ne-table-row-head='true']:not([ne-table-head-text-gradient='true']) tr:first-child td ne-text, -table[ne-table-row-head='true']:not([ne-table-head-text-gradient='true']) tr:first-child td .ne-td-content > .ne-b-filler { - font-weight: bold !important; - color: var(--table-head-text-color) !important; - -webkit-text-fill-color: unset !important; -} -.baseShadowPseudoStyle { - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; -} -.baseShadowLeftPseudoStyle { - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; - left: 0; - background: -webkit-gradient(linear, right, left, from(rgba(0, 0, 0, 0)), to(var(--lakex-editor-color-black-f08))); - background: linear-gradient(to left, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); -} -.baseShadowRightPseudoStyle { - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; - background: -webkit-gradient(linear, left, right, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); - background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); - right: 0; -} -ne-table-wrap { - display: block; - max-width: 100%; - position: relative; - z-index: 1; -} -ne-table-wrap.ne-table-focus.ne-table-hide-border .ne-td { - border: 1px dashed var(--lakex-editor-border-primary) !important; -} -ne-table-wrap.ne-table-focus.ne-ui-table-left-shadow:before, -ne-table-wrap.ne-table-focus.ne-ui-table-right-shadow:after { - margin-top: 29px; -} -ne-table-wrap.ne-table-focus ne-table-inner-wrap::-webkit-scrollbar-thumb, -ne-table-wrap:hover ne-table-inner-wrap::-webkit-scrollbar-thumb { - visibility: visible; -} -ne-table-wrap.ne-ui-table-left-shadow:before { - bottom: 15px; - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; - left: 0; - background: -webkit-gradient(linear, right, left, from(rgba(0, 0, 0, 0)), to(var(--lakex-editor-color-black-f08))); - background: linear-gradient(to left, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); -} -ne-table-wrap.ne-ui-table-right-shadow:after { - bottom: 15px; - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; - background: -webkit-gradient(linear, left, right, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); - background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); - right: 0; -} -ne-table-wrap.h5-ne-ui-table-left-shadow:before { - bottom: 0; - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; - left: 0; - background: -webkit-gradient(linear, right, left, from(rgba(0, 0, 0, 0)), to(var(--lakex-editor-color-black-f08))); - background: linear-gradient(to left, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); -} -ne-table-wrap.h5-ne-ui-table-right-shadow:after { - bottom: 0; - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; - background: -webkit-gradient(linear, left, right, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); - background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); - right: 0; -} -ne-table-wrap.pad-ne-ui-table-left-shadow:before { - margin-top: 29px; - bottom: 0; - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; - left: 0; - background: -webkit-gradient(linear, right, left, from(rgba(0, 0, 0, 0)), to(var(--lakex-editor-color-black-f08))); - background: linear-gradient(to left, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); -} -ne-table-wrap.pad-ne-ui-table-right-shadow:after { - margin-top: 29px; - bottom: 0; - content: ' '; - position: absolute; - pointer-events: none; - top: 0; - width: 8px; - z-index: 2; - margin-top: 14px; - background: -webkit-gradient(linear, left, right, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); - background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--lakex-editor-color-black-f08)); - right: 0; -} -ne-table-wrap.ne-table-hide-border .ne-td { - border: 1px solid transparent !important; -} -.h5-ne-ui-table-shadow { - bottom: 0; -} -ne-table-inner-wrap { - display: block; - overflow-y: hidden; - overflow-x: scroll; - position: relative; - z-index: 1; - /* --- 定制表格滚动条样式 start --- */ - scrollbar-color: var(--lakex-editor-table-scrollbar-thumb) transparent; - /* --- 定制表格滚动条样式 end --- */ -} -ne-table-inner-wrap::-webkit-scrollbar { - background: transparent; -} -ne-table-inner-wrap::-webkit-scrollbar-thumb { - background: var(--lakex-editor-table-scrollbar-thumb); - border-radius: 15px; - border: 3.5px solid transparent; - background-clip: content-box; - visibility: hidden; -} -.ne-table { - border-collapse: collapse; - position: relative; - z-index: 1; - table-layout: fixed; -} -.ne-table tfoot { - user-select: none; - pointer-events: none; -} -.ne-table tfoot td { - position: relative; - height: 0; - overflow: hidden; - line-height: 0; - font-size: 0; - padding: 0; - user-select: none; -} -.ne-tr { - height: 33px; -} -.ne-td { - border: 1px solid var(--lakex-editor-border-primary); - vertical-align: top; -} -[data-kumuhana='pouli'] .ne-engine .ne-tr:last-child .ne-td { - border-bottom-color: var(--lakex-editor-border-light); -} -.ne-td-content { - margin: 4px 8px; -} -.ne-td-break { - position: absolute; - top: 0; - bottom: 0; - width: 1px; - height: 1px; - pointer-events: none; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole ne-table-wrap.ne-ui-table-left-shadow::before, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole ne-table-wrap.ne-ui-table-left-shadow::before, -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole ne-table-wrap.ne-ui-table-right-shadow::after, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole ne-table-wrap.ne-ui-table-right-shadow::after { - bottom: 15px; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole ne-table-wrap.ne-table-focus.ne-ui-table-left-shadow::before, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole ne-table-wrap.ne-table-focus.ne-ui-table-left-shadow::before, -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole ne-table-wrap.ne-table-focus.ne-ui-table-right-shadow::after, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole ne-table-wrap.ne-table-focus.ne-ui-table-right-shadow::after, -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole ne-table-wrap.ne-table-focus.h5-ne-ui-table-left-shadow::before, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole ne-table-wrap.ne-table-focus.h5-ne-ui-table-left-shadow::before, -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole ne-table-wrap.ne-table-focus.h5-ne-ui-table-right-shadow:after, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole ne-table-wrap.ne-table-focus.h5-ne-ui-table-right-shadow:after { - top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-table-wrap ne-table-inner-wrap { - padding-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-table-wrap.ne-ui-table-right-shadow::after, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-table-wrap.ne-ui-table-left-shadow::before { - top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-table-wrap.h5-ne-ui-table-left-shadow::before, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-table-wrap.h5-ne-ui-table-right-shadow:after, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-table-wrap.pad-ne-ui-table-left-shadow::before, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-table-wrap.pad-ne-ui-table-right-shadow:after { - top: -14px; -} -ne-table-inner-wrap *[contenteditable='false'] { - user-select: none !important; -} -.pad-ne-table-hole { - margin-bottom: 0px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -.ne-engine ne-table-wrap.ne-max { - background-color: var(--lakex-editor-color-grey1); - overflow: auto; - margin: 0 !important; -} -.ne-engine ne-table-wrap.ne-max.ne-ui-table-right-shadow:before, -.ne-engine ne-table-wrap.ne-max.ne-ui-table-left-shadow:before, -.ne-engine ne-table-wrap.ne-max.ne-ui-table-right-shadow:after, -.ne-engine ne-table-wrap.ne-max.ne-ui-table-left-shadow:after { - display: none; -} -.ne-engine ne-table-wrap.ne-max .ne-ui-table { - left: 26px; -} -.ne-engine ne-table-wrap.ne-max.ne-table-focus ne-table-inner-wrap { - margin-left: 39px; -} -.ne-engine ne-table-wrap.ne-max .ne-ui-table-row-controller { - background-color: var(--lakex-editor-color-grey1); -} -.ne-engine ne-table-wrap.ne-max .ne-ui-table-control-point-wrapper { - background-color: var(--lakex-editor-color-grey1); -} -/* 内部卡片全屏样式处理 */ -.ne-ui-max-view .ne-engine ne-table-wrap:not(.ne-max) { - position: initial; -} -.ne-ui-max-view .ne-engine ne-table-wrap:not(.ne-max) ne-table-inner-wrap { - position: initial; -} -.ne-ui-max-view .ne-engine ne-table-wrap:not(.ne-max) ne-table-inner-wrap ne-table-box { - position: initial; -} -.ne-ui-max-view .ne-engine ne-table-wrap:not(.ne-max) ne-table-inner-wrap ne-table-box table { - position: initial; -} - -/** - * 排版设置共享内容 - */ -/** 只提供变量 */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-table-hole, -ne-root-card-hole { - margin: 4px 0 16px 0; - -webkit-margin-after: 1px; -} -.ne-table-hole[data-no-spacing], -ne-root-card-hole[data-no-spacing] { - margin: -12px 0 0 0; - -webkit-margin-after: -15px; -} -.ne-typography-traditional.ne-engine ne-h1, -.ne-typography-classic.ne-engine ne-h1, -.ne-typography-traditional.ne-viewer ne-h1, -.ne-typography-classic.ne-viewer ne-h1 { - font-size: 28px; - line-height: 36px; - margin: 26px 0 10px 0; -} -.ne-typography-traditional.ne-engine ne-h1:first-child, -.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-typography-traditional.ne-viewer ne-h1:first-child, -.ne-typography-classic.ne-viewer ne-h1:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h1 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h1 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h1 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h1 ne-heading-ext { - height: 36px; -} -.ne-typography-traditional.ne-engine ne-h1 ne-text, -.ne-typography-classic.ne-engine ne-h1 ne-text, -.ne-typography-traditional.ne-viewer ne-h1 ne-text, -.ne-typography-classic.ne-viewer ne-h1 ne-text, -.ne-typography-traditional.ne-engine ne-h1 [ne-fontsize], -.ne-typography-classic.ne-engine ne-h1 [ne-fontsize], -.ne-typography-traditional.ne-viewer ne-h1 [ne-fontsize], -.ne-typography-classic.ne-viewer ne-h1 [ne-fontsize], -.ne-typography-traditional.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-engine ne-h1 ne-code ne-text, -.ne-typography-classic.ne-engine ne-h1 ne-code ne-text, -.ne-typography-traditional.ne-viewer ne-h1 ne-code ne-text, -.ne-typography-classic.ne-viewer ne-h1 ne-code ne-text { - font-size: 28px; -} -.ne-typography-traditional.ne-engine ne-h2, -.ne-typography-classic.ne-engine ne-h2, -.ne-typography-traditional.ne-viewer ne-h2, -.ne-typography-classic.ne-viewer ne-h2 { - font-size: 24px; - line-height: 32px; -} -.ne-typography-traditional.ne-engine ne-h2:first-child, -.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-typography-traditional.ne-viewer ne-h2:first-child, -.ne-typography-classic.ne-viewer ne-h2:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h2 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h2 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h2 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h2 ne-heading-ext { - height: 32px; -} -.ne-typography-traditional.ne-engine ne-h2 ne-text, -.ne-typography-classic.ne-engine ne-h2 ne-text, -.ne-typography-traditional.ne-viewer ne-h2 ne-text, -.ne-typography-classic.ne-viewer ne-h2 ne-text, -.ne-typography-traditional.ne-engine ne-h2 [ne-fontsize], -.ne-typography-classic.ne-engine ne-h2 [ne-fontsize], -.ne-typography-traditional.ne-viewer ne-h2 [ne-fontsize], -.ne-typography-classic.ne-viewer ne-h2 [ne-fontsize], -.ne-typography-traditional.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-engine ne-h2 ne-code ne-text, -.ne-typography-classic.ne-engine ne-h2 ne-code ne-text, -.ne-typography-traditional.ne-viewer ne-h2 ne-code ne-text, -.ne-typography-classic.ne-viewer ne-h2 ne-code ne-text { - font-size: 24px; -} -.ne-typography-traditional.ne-engine ne-h3, -.ne-typography-classic.ne-engine ne-h3, -.ne-typography-traditional.ne-viewer ne-h3, -.ne-typography-classic.ne-viewer ne-h3 { - font-size: 20px; - line-height: 28px; -} -.ne-typography-traditional.ne-engine ne-h3:first-child, -.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-typography-traditional.ne-viewer ne-h3:first-child, -.ne-typography-classic.ne-viewer ne-h3:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h3 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h3 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h3 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h3 ne-heading-ext { - height: 28px; -} -.ne-typography-traditional.ne-engine ne-h3 ne-text, -.ne-typography-classic.ne-engine ne-h3 ne-text, -.ne-typography-traditional.ne-viewer ne-h3 ne-text, -.ne-typography-classic.ne-viewer ne-h3 ne-text, -.ne-typography-traditional.ne-engine ne-h3 [ne-fontsize], -.ne-typography-classic.ne-engine ne-h3 [ne-fontsize], -.ne-typography-traditional.ne-viewer ne-h3 [ne-fontsize], -.ne-typography-classic.ne-viewer ne-h3 [ne-fontsize], -.ne-typography-traditional.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-engine ne-h3 ne-code ne-text, -.ne-typography-classic.ne-engine ne-h3 ne-code ne-text, -.ne-typography-traditional.ne-viewer ne-h3 ne-code ne-text, -.ne-typography-classic.ne-viewer ne-h3 ne-code ne-text { - font-size: 20px; -} -.ne-typography-traditional.ne-engine ne-h4, -.ne-typography-classic.ne-engine ne-h4, -.ne-typography-traditional.ne-viewer ne-h4, -.ne-typography-classic.ne-viewer ne-h4 { - font-size: 16px; - line-height: 24px; -} -.ne-typography-traditional.ne-engine ne-h4:first-child, -.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-typography-traditional.ne-viewer ne-h4:first-child, -.ne-typography-classic.ne-viewer ne-h4:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h4 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h4 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h4 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h4 ne-heading-ext { - height: 24px; -} -.ne-typography-traditional.ne-engine ne-h4 ne-text, -.ne-typography-classic.ne-engine ne-h4 ne-text, -.ne-typography-traditional.ne-viewer ne-h4 ne-text, -.ne-typography-classic.ne-viewer ne-h4 ne-text, -.ne-typography-traditional.ne-engine ne-h4 [ne-fontsize], -.ne-typography-classic.ne-engine ne-h4 [ne-fontsize], -.ne-typography-traditional.ne-viewer ne-h4 [ne-fontsize], -.ne-typography-classic.ne-viewer ne-h4 [ne-fontsize], -.ne-typography-traditional.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-engine ne-h4 ne-code ne-text, -.ne-typography-classic.ne-engine ne-h4 ne-code ne-text, -.ne-typography-traditional.ne-viewer ne-h4 ne-code ne-text, -.ne-typography-classic.ne-viewer ne-h4 ne-code ne-text { - font-size: 16px; -} -.ne-typography-traditional.ne-engine ne-h5, -.ne-typography-classic.ne-engine ne-h5, -.ne-typography-traditional.ne-viewer ne-h5, -.ne-typography-classic.ne-viewer ne-h5 { - line-height: 24px; -} -.ne-typography-traditional.ne-engine ne-h5:first-child, -.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-typography-traditional.ne-viewer ne-h5:first-child, -.ne-typography-classic.ne-viewer ne-h5:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h5 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h5 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h5 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h5 ne-heading-ext { - height: 24px; -} -.ne-typography-traditional.ne-engine ne-h6, -.ne-typography-classic.ne-engine ne-h6, -.ne-typography-traditional.ne-viewer ne-h6, -.ne-typography-classic.ne-viewer ne-h6 { - line-height: 24px; -} -.ne-typography-traditional.ne-engine ne-h6:first-child, -.ne-typography-classic.ne-engine ne-h6:first-child, -.ne-typography-traditional.ne-viewer ne-h6:first-child, -.ne-typography-classic.ne-viewer ne-h6:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h6 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h6 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h6 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h6 ne-heading-ext { - height: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 { - font-size: 28px; - line-height: 38px; - margin-top: 38px; - margin-bottom: 19px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-heading-ext { - height: 38px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-code ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-code ne-text { - font-size: 28px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 { - font-size: 24px; - line-height: 34px; - margin-top: 34px; - margin-bottom: 17px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-heading-ext { - height: 32px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-code ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-code ne-text { - font-size: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 { - font-size: 20px; - line-height: 30px; - margin-top: 30px; - margin-bottom: 15px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-heading-ext { - height: 28px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-code ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-code ne-text { - font-size: 20px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 { - font-size: 16px; - line-height: 26px; - margin-top: 26px; - margin-bottom: 13px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-heading-ext { - height: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-code ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-code ne-text { - font-size: 16px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 { - line-height: 24px; - margin-top: 24px; - margin-bottom: 12px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 ne-heading-ext { - height: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 { - line-height: 24px; - margin-top: 24px; - margin-bottom: 12px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 ne-heading-ext { - height: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5:first-child { - margin-top: 0; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 { - font-size: 26px; - line-height: 36px; - margin-top: 36px; - margin-bottom: 18px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-heading-ext { - height: 36px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-code ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-code ne-text { - font-size: 26px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 { - font-size: 22px; - line-height: 30px; - margin-top: 30px; - margin-bottom: 15px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-heading-ext { - height: 30px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-code ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-code ne-text { - font-size: 22px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 { - font-size: 18px; - line-height: 28px; - margin-top: 28px; - margin-bottom: 14px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child { - margin-top: 0; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-heading-ext { - height: 28px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-code ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-code ne-text { - font-size: 18px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 { - font-size: 16px; - line-height: 26px; - margin-top: 26px; - margin-bottom: 13px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-heading-ext { - height: 26px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-code ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-code ne-text { - font-size: 16px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 { - line-height: 24px; - margin-top: 24px; - margin-bottom: 12px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 ne-heading-ext { - height: 24px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 { - line-height: 24px; - margin-top: 24px; - margin-bottom: 12px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 ne-heading-ext { - height: 24px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5:first-child { - margin-top: 0; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > *:last-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > *:last-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > *:last-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > *:last-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > *:last-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > *:last-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > *:last-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -/* - * 本文件提供默认紧凑排版的基础样式设置,此处需要和各插件配合,使得 js 中获取的值和 css 中定义的值处于一致状态 - */ -.ne-typography-traditional { - line-height: 1.74; - letter-spacing: 0.05em; - color: var(--lakex-editor-text-color); - font-size: 14px; -} -.ne-typography-traditional .ne-table { - line-height: 1.74; -} -.ne-typography-traditional ne-code ne-text { - font-size: 14px; -} -.ne-typography-traditional ne-text[ne-sub], -.ne-typography-traditional ne-text[ne-sup] { - font-size: 10.5px; -} -.ne-typography-traditional ne-h1 { - margin: 7px 0; -} -.ne-typography-traditional ne-h2 { - margin: 7px 0; -} -.ne-typography-traditional ne-h3 { - margin: 7px 0; -} -.ne-typography-traditional ne-h4 { - margin: 7px 0; -} -.ne-typography-traditional ne-h5 { - font-size: 14px !important; - margin: 7px 0; -} -.ne-typography-traditional ne-h5 ne-text, -.ne-typography-traditional ne-h5 [ne-fontsize], -.ne-typography-traditional ne-h5 ne-card[data-card-type='inline'] { - font-size: 14px !important; -} -.ne-typography-traditional ne-h6 { - font-size: 14px !important; - margin: 7px 0; -} -.ne-typography-traditional ne-h6 ne-text, -.ne-typography-traditional ne-h6 [ne-fontsize], -.ne-typography-traditional ne-h6 ne-card[data-card-type='inline'] { - font-size: 14px !important; -} -.ne-typography-traditional ne-tli ne-tli-i.ant-checkbox { - padding-top: 1px; -} -.ne-typography-traditional ne-card[data-card-name='mention'] { - font-size: 14px; -} - -/** - * 排版设置共享内容 - */ -/** 只提供变量 */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-table-hole, -ne-root-card-hole { - margin: 4px 0 16px 0; - -webkit-margin-after: 1px; -} -.ne-table-hole[data-no-spacing], -ne-root-card-hole[data-no-spacing] { - margin: -12px 0 0 0; - -webkit-margin-after: -15px; -} -.ne-typography-traditional.ne-engine ne-h1, -.ne-typography-classic.ne-engine ne-h1, -.ne-typography-traditional.ne-viewer ne-h1, -.ne-typography-classic.ne-viewer ne-h1 { - font-size: 28px; - line-height: 36px; - margin: 26px 0 10px 0; -} -.ne-typography-traditional.ne-engine ne-h1:first-child, -.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-typography-traditional.ne-viewer ne-h1:first-child, -.ne-typography-classic.ne-viewer ne-h1:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h1 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h1 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h1 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h1 ne-heading-ext { - height: 36px; -} -.ne-typography-traditional.ne-engine ne-h1 ne-text, -.ne-typography-classic.ne-engine ne-h1 ne-text, -.ne-typography-traditional.ne-viewer ne-h1 ne-text, -.ne-typography-classic.ne-viewer ne-h1 ne-text, -.ne-typography-traditional.ne-engine ne-h1 [ne-fontsize], -.ne-typography-classic.ne-engine ne-h1 [ne-fontsize], -.ne-typography-traditional.ne-viewer ne-h1 [ne-fontsize], -.ne-typography-classic.ne-viewer ne-h1 [ne-fontsize], -.ne-typography-traditional.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-engine ne-h1 ne-code ne-text, -.ne-typography-classic.ne-engine ne-h1 ne-code ne-text, -.ne-typography-traditional.ne-viewer ne-h1 ne-code ne-text, -.ne-typography-classic.ne-viewer ne-h1 ne-code ne-text { - font-size: 28px; -} -.ne-typography-traditional.ne-engine ne-h2, -.ne-typography-classic.ne-engine ne-h2, -.ne-typography-traditional.ne-viewer ne-h2, -.ne-typography-classic.ne-viewer ne-h2 { - font-size: 24px; - line-height: 32px; -} -.ne-typography-traditional.ne-engine ne-h2:first-child, -.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-typography-traditional.ne-viewer ne-h2:first-child, -.ne-typography-classic.ne-viewer ne-h2:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h2 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h2 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h2 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h2 ne-heading-ext { - height: 32px; -} -.ne-typography-traditional.ne-engine ne-h2 ne-text, -.ne-typography-classic.ne-engine ne-h2 ne-text, -.ne-typography-traditional.ne-viewer ne-h2 ne-text, -.ne-typography-classic.ne-viewer ne-h2 ne-text, -.ne-typography-traditional.ne-engine ne-h2 [ne-fontsize], -.ne-typography-classic.ne-engine ne-h2 [ne-fontsize], -.ne-typography-traditional.ne-viewer ne-h2 [ne-fontsize], -.ne-typography-classic.ne-viewer ne-h2 [ne-fontsize], -.ne-typography-traditional.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-engine ne-h2 ne-code ne-text, -.ne-typography-classic.ne-engine ne-h2 ne-code ne-text, -.ne-typography-traditional.ne-viewer ne-h2 ne-code ne-text, -.ne-typography-classic.ne-viewer ne-h2 ne-code ne-text { - font-size: 24px; -} -.ne-typography-traditional.ne-engine ne-h3, -.ne-typography-classic.ne-engine ne-h3, -.ne-typography-traditional.ne-viewer ne-h3, -.ne-typography-classic.ne-viewer ne-h3 { - font-size: 20px; - line-height: 28px; -} -.ne-typography-traditional.ne-engine ne-h3:first-child, -.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-typography-traditional.ne-viewer ne-h3:first-child, -.ne-typography-classic.ne-viewer ne-h3:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h3 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h3 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h3 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h3 ne-heading-ext { - height: 28px; -} -.ne-typography-traditional.ne-engine ne-h3 ne-text, -.ne-typography-classic.ne-engine ne-h3 ne-text, -.ne-typography-traditional.ne-viewer ne-h3 ne-text, -.ne-typography-classic.ne-viewer ne-h3 ne-text, -.ne-typography-traditional.ne-engine ne-h3 [ne-fontsize], -.ne-typography-classic.ne-engine ne-h3 [ne-fontsize], -.ne-typography-traditional.ne-viewer ne-h3 [ne-fontsize], -.ne-typography-classic.ne-viewer ne-h3 [ne-fontsize], -.ne-typography-traditional.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-engine ne-h3 ne-code ne-text, -.ne-typography-classic.ne-engine ne-h3 ne-code ne-text, -.ne-typography-traditional.ne-viewer ne-h3 ne-code ne-text, -.ne-typography-classic.ne-viewer ne-h3 ne-code ne-text { - font-size: 20px; -} -.ne-typography-traditional.ne-engine ne-h4, -.ne-typography-classic.ne-engine ne-h4, -.ne-typography-traditional.ne-viewer ne-h4, -.ne-typography-classic.ne-viewer ne-h4 { - font-size: 16px; - line-height: 24px; -} -.ne-typography-traditional.ne-engine ne-h4:first-child, -.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-typography-traditional.ne-viewer ne-h4:first-child, -.ne-typography-classic.ne-viewer ne-h4:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h4 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h4 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h4 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h4 ne-heading-ext { - height: 24px; -} -.ne-typography-traditional.ne-engine ne-h4 ne-text, -.ne-typography-classic.ne-engine ne-h4 ne-text, -.ne-typography-traditional.ne-viewer ne-h4 ne-text, -.ne-typography-classic.ne-viewer ne-h4 ne-text, -.ne-typography-traditional.ne-engine ne-h4 [ne-fontsize], -.ne-typography-classic.ne-engine ne-h4 [ne-fontsize], -.ne-typography-traditional.ne-viewer ne-h4 [ne-fontsize], -.ne-typography-classic.ne-viewer ne-h4 [ne-fontsize], -.ne-typography-traditional.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-typography-classic.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-typography-traditional.ne-engine ne-h4 ne-code ne-text, -.ne-typography-classic.ne-engine ne-h4 ne-code ne-text, -.ne-typography-traditional.ne-viewer ne-h4 ne-code ne-text, -.ne-typography-classic.ne-viewer ne-h4 ne-code ne-text { - font-size: 16px; -} -.ne-typography-traditional.ne-engine ne-h5, -.ne-typography-classic.ne-engine ne-h5, -.ne-typography-traditional.ne-viewer ne-h5, -.ne-typography-classic.ne-viewer ne-h5 { - line-height: 24px; -} -.ne-typography-traditional.ne-engine ne-h5:first-child, -.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-typography-traditional.ne-viewer ne-h5:first-child, -.ne-typography-classic.ne-viewer ne-h5:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h5 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h5 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h5 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h5 ne-heading-ext { - height: 24px; -} -.ne-typography-traditional.ne-engine ne-h6, -.ne-typography-classic.ne-engine ne-h6, -.ne-typography-traditional.ne-viewer ne-h6, -.ne-typography-classic.ne-viewer ne-h6 { - line-height: 24px; -} -.ne-typography-traditional.ne-engine ne-h6:first-child, -.ne-typography-classic.ne-engine ne-h6:first-child, -.ne-typography-traditional.ne-viewer ne-h6:first-child, -.ne-typography-classic.ne-viewer ne-h6:first-child { - margin-top: 0; -} -.ne-typography-traditional.ne-engine ne-h6 ne-heading-ext, -.ne-typography-classic.ne-engine ne-h6 ne-heading-ext, -.ne-typography-traditional.ne-viewer ne-h6 ne-heading-ext, -.ne-typography-classic.ne-viewer ne-h6 ne-heading-ext { - height: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 { - font-size: 28px; - line-height: 38px; - margin-top: 38px; - margin-bottom: 19px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-heading-ext { - height: 38px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-code ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-code ne-text { - font-size: 28px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 { - font-size: 24px; - line-height: 34px; - margin-top: 34px; - margin-bottom: 17px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-heading-ext { - height: 32px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-code ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-code ne-text { - font-size: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 { - font-size: 20px; - line-height: 30px; - margin-top: 30px; - margin-bottom: 15px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-heading-ext { - height: 28px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-code ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-code ne-text { - font-size: 20px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 { - font-size: 16px; - line-height: 26px; - margin-top: 26px; - margin-bottom: 13px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-heading-ext { - height: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 [ne-fontsize], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-code ne-text, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-code ne-text { - font-size: 16px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 { - line-height: 24px; - margin-top: 24px; - margin-bottom: 12px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 ne-heading-ext { - height: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 { - line-height: 24px; - margin-top: 24px; - margin-bottom: 12px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6 ne-heading-ext, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 ne-heading-ext { - height: 24px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5:first-child { - margin-top: 0; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 { - font-size: 26px; - line-height: 36px; - margin-top: 36px; - margin-bottom: 18px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-heading-ext { - height: 36px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1 ne-code ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1 ne-code ne-text { - font-size: 26px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 { - font-size: 22px; - line-height: 30px; - margin-top: 30px; - margin-bottom: 15px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-heading-ext { - height: 30px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2 ne-code ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2 ne-code ne-text { - font-size: 22px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 { - font-size: 18px; - line-height: 28px; - margin-top: 28px; - margin-bottom: 14px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child { - margin-top: 0; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-heading-ext { - height: 28px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3 ne-code ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3 ne-code ne-text { - font-size: 18px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 { - font-size: 16px; - line-height: 26px; - margin-top: 26px; - margin-bottom: 13px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-heading-ext { - height: 26px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 [ne-fontsize], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 [ne-fontsize], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-card[data-card-type='inline'], -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4 ne-code ne-text, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-code ne-text, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4 ne-code ne-text { - font-size: 16px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 { - line-height: 24px; - margin-top: 24px; - margin-bottom: 12px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5 ne-heading-ext { - height: 24px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 { - line-height: 24px; - margin-top: 24px; - margin-bottom: 12px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h6 ne-heading-ext, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 ne-heading-ext, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h6 ne-heading-ext { - height: 24px; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h1:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h1:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h2:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h2:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h3:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h3:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h4:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h4:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-h5:first-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-h5:first-child { - margin-top: 0; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > *:last-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > *:last-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > *:last-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > *:last-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > *:last-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > *:last-child, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > *:last-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-editor-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card.ne-spacing-all, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-viewer.ne-paragraph-spacing-relax.ne-typography-classic .ne-viewer-body { - font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Segoe UI'; -} -.ne-paragraph-spacing-relax.ne-typography-classic { - font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Segoe UI'; - color: var(--lakex-editor-text-color); - letter-spacing: initial; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.ne-engine ne-tli + .ne-spacing-all { - margin-top: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-alert-hole.ne-spacing-all { - margin-bottom: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli { - margin-bottom: 3.915px; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 7.83px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse ne-collapse-content { - padding-bottom: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic ne-card.ne-spacing-all { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 6.264px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-engine ne-tli + .ne-spacing-all { - margin-top: 6.264px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-alert-hole.ne-spacing-all { - margin-bottom: 6.264px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 6.264px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli { - margin-bottom: 3.132px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 6.264px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 6.264px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-collapse ne-collapse-content { - padding-bottom: 6.264px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12 ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz12.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 6.786px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-engine ne-tli + .ne-spacing-all { - margin-top: 6.786px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-alert-hole.ne-spacing-all { - margin-bottom: 6.786px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 6.786px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli { - margin-bottom: 3.393px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 6.786px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 6.786px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-collapse ne-collapse-content { - padding-bottom: 6.786px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13 ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz13.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 7.308px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-engine ne-tli + .ne-spacing-all { - margin-top: 7.308px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-alert-hole.ne-spacing-all { - margin-bottom: 7.308px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 7.308px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli { - margin-bottom: 3.654px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 7.308px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 7.308px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-collapse ne-collapse-content { - padding-bottom: 7.308px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14 ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz14.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-engine ne-tli + .ne-spacing-all { - margin-top: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-alert-hole.ne-spacing-all { - margin-bottom: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli { - margin-bottom: 3.915px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 7.83px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-collapse ne-collapse-content { - padding-bottom: 7.83px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15 ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz15.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 8.352px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-engine ne-tli + .ne-spacing-all { - margin-top: 8.352px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-alert-hole.ne-spacing-all { - margin-bottom: 8.352px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 8.352px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli { - margin-bottom: 4.176px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 8.352px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 8.352px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-collapse ne-collapse-content { - padding-bottom: 8.352px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16 ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz16.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 9.918px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-engine ne-tli + .ne-spacing-all { - margin-top: 9.918px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-alert-hole.ne-spacing-all { - margin-bottom: 9.918px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 9.918px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli { - margin-bottom: 4.959px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 9.918px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 9.918px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-collapse ne-collapse-content { - padding-bottom: 9.918px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19 ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz19.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 11.484px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-engine ne-tli + .ne-spacing-all { - margin-top: 11.484px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-alert-hole.ne-spacing-all { - margin-bottom: 11.484px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 11.484px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli { - margin-bottom: 5.742px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 11.484px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 11.484px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-collapse ne-collapse-content { - padding-bottom: 11.484px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22 ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz22.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-engine .ne-spacing-all { - margin-top: 0; - margin-bottom: 12.528px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body ne-card[data-card-type='inline'].ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-engine ne-card[data-card-type='inline'].ne-spacing-all { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body ne-p:last-child > .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-engine ne-p:last-child > .ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-engine ne-uli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-engine ne-oli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body ne-tli + .ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-engine ne-tli + .ne-spacing-all { - margin-top: 12.528px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-card[data-card-type='inline'] { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-alert-hole.ne-spacing-all { - margin-bottom: 12.528px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-p:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-summary:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-table-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-table-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-container-hole.ne-spacing-all:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-container-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-alert-hole:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 .ne-td ne-alert-hole.ne-spacing-all:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-alert, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-collapse, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-column-content { - margin-top: 0; - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-alert > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-collapse > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-column > *:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-column-content > *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-alert > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-collapse > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-column > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-column-content > ne-p:last-child ne-card, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-alert > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-collapse > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-column > ne-p:last-child ne-card.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-column-content > ne-p:last-child ne-card.ne-spacing-all { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin-top: 12.528px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli { - margin-bottom: 6.264px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli:last-child, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-p, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-table-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-container-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-summary, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-alert-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-root-card-hole, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-root-card-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-table-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-container-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-uli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-oli + ne-alert-hole.ne-spacing-all, -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-tli + ne-alert-hole.ne-spacing-all { - margin-top: 12.528px; -} -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body > ne-p:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body > ne-summary:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body > ne-uli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body > ne-oli:first-child, -.ne-doc-major-viewer-mobile .ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body > ne-tli:first-child { - margin-top: 12.528px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-collapse ne-collapse-content { - padding-bottom: 12.528px; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24 ne-collapse ne-collapse-content *:last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.fz24.ne-viewer .ne-viewer-body ne-collapse ne-collapse-content { - padding-bottom: 0; -} -/* - * 本文件提供【经典】排版的基础样式设置,此处需要和各插件配合,使得 js 中获取的值和 css 中定义的值处于一致状态 - */ -.ne-typography-classic { - line-height: 1.74; - letter-spacing: 0.008em; - color: var(--lakex-editor-text-color); - font-size: 15px; -} -.ne-typography-classic .ne-table { - line-height: 1.74; -} -.ne-typography-classic ne-text[ne-sub], -.ne-typography-classic ne-text[ne-sup] { - font-size: 11.25px; -} -.ne-typography-classic ne-h1 { - margin: 26px 0 10px 0; -} -.ne-typography-classic ne-h2 { - margin: 21px 0 5px 0; -} -.ne-typography-classic ne-h3 { - margin: 16px 0 5px 0; -} -.ne-typography-classic ne-h4 { - margin: 10px 0 5px 0; -} -.ne-typography-classic ne-h5 { - font-size: 15px !important; - margin: 8px 0 5px 0; -} -.ne-typography-classic ne-h5 ne-text, -.ne-typography-classic ne-h5 [ne-fontsize], -.ne-typography-classic ne-h5 ne-card[data-card-type='inline'] { - font-size: 15px !important; -} -.ne-typography-classic ne-h6 { - font-size: 15px !important; - margin: 8px 0 5px 0; -} -.ne-typography-classic ne-h6 ne-text, -.ne-typography-classic ne-h6 [ne-fontsize], -.ne-typography-classic ne-h6 ne-card[data-card-type='inline'] { - font-size: 15px !important; -} -.ne-typography-classic ne-tli ne-tli-i.ant-checkbox { - padding-top: 2px; -} -.ne-typography-classic ne-card[data-card-name='mention'] { - font-size: 15px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-container-hole[data-card='columns'] { - margin: 14px auto; -} -ne-container-hole[data-card='columns'] > .ne-i-filler:first-child { - transform: translateX(-6px); -} -ne-container-hole[data-card='columns'] > .ne-i-filler:last-child { - transform: translateX(6px); -} -ne-columns { - width: 100%; - position: relative; - user-select: none; - z-index: 1; - /* 小圆点指示器 用来提醒用户可以点击添加的区域 */ - /* 分栏处于拖拽大小的过程中 */ - /* 处于最大分栏禁止新增新的分栏 */ -} -ne-columns .columns-add, -ne-columns .columns-remove { - position: absolute; - display: none; - width: 2px; - top: 0; - left: 0; - bottom: 0; - pointer-events: none; -} -ne-columns .columns-add { - background-color: var(--lakex-editor-color-blue5); -} -ne-columns .columns-add-button, -ne-columns .columns-remove-button { - position: absolute; - background-color: var(--lakex-editor-background-primary); - width: 24px; - height: 24px; - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 6px; - top: 0; - left: 50%; - transform: translate(-50%, -100%); - color: var(--lakex-editor-text-link); - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - pointer-events: all; - z-index: 2; -} -ne-columns .columns-drag-button { - width: 40px; - height: 12px; - border-radius: 6px; - background-color: var(--lakex-editor-color-grey2); - cursor: grab; - pointer-events: all; - z-index: 2; - top: 0; - left: 50%; - margin-top: -14px; - transform: translate(-50%, 0); -} -ne-columns .columns-drag-button:active { - cursor: grabbing; -} -ne-columns .columns-drag-button:hover { - background-color: var(--lakex-editor-card-border-selected); -} -ne-columns .columns-drag-button:hover::before { - background-color: var(--lakex-editor-color-white); - box-shadow: var(--lakex-editor-color-white) -4px 0px, var(--lakex-editor-color-white) 4px 0px; -} -ne-columns .columns-drag-button.selected { - background-color: var(--lakex-editor-card-border-selected); -} -ne-columns .columns-drag-button.selected .columns-remove-button { - display: flex; -} -ne-columns .columns-drag-button.selected::before { - background-color: var(--lakex-editor-color-white); - box-shadow: var(--lakex-editor-color-white) -4px 0px, var(--lakex-editor-color-white) 4px 0px; -} -ne-columns .columns-drag-button.inRemoveBtn { - background-color: var(--lakex-editor-color-red6); -} -ne-columns .columns-drag-button .columns-remove-button { - top: -7px; - display: none; -} -ne-columns .columns-drag-button::before { - content: ''; - width: 2px; - height: 2px; - border-radius: 100%; - background-color: var(--lakex-editor-color-black); - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - box-shadow: var(--lakex-editor-color-black) -4px 0px, var(--lakex-editor-color-black) 4px 0px; -} -ne-columns .columns-remove-button { - color: var(--lakex-editor-text-color); -} -ne-columns .columns-remove-button:hover { - color: var(--lakex-editor-color-red6); -} -ne-columns .columns-move-inspector { - display: none; - position: absolute; - background-color: var(--lakex-editor-color-blue6); - width: 2px; - top: -6px; - left: 0; - bottom: -6px; - pointer-events: none; -} -ne-columns .columns-move-inspector.show { - display: block; -} -ne-columns.ne-columns-removable .columns-remove { - display: block; -} -ne-columns .columns-start-add, -ne-columns .columns-end-add { - bottom: 6px; - position: absolute; - top: -17px; - left: -18px; - width: 20px; - height: 20px; - background-color: transparent; - display: block; -} -ne-columns .columns-end-add { - left: initial; - right: -18px; -} -ne-columns .columns-start-add, -ne-columns .columns-end-add, -ne-columns .columns-adder { - display: none; -} -ne-columns .columns-start-add::after, -ne-columns .columns-end-add::after, -ne-columns .columns-adder::after { - content: ''; - width: 4px; - height: 4px; - background-color: var(--lakex-editor-color-grey5); - border-radius: 100%; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} -ne-columns.columns-in-selected .columns-start-add, -ne-columns.columns-in-selected .columns-end-add, -ne-columns.columns-in-selected .columns-adder { - display: none !important; -} -ne-columns ne-columns-content { - flex: 1; - display: flex; - flex-direction: row; - justify-content: space-between; - line-height: inherit; - outline: none; -} -ne-columns.ne-focused ne-column-border, -ne-columns:hover ne-column-border, -ne-columns.ne-columns-resizing ne-column-border { - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 6px; -} -ne-columns.ne-focused .columns-start-add, -ne-columns:hover .columns-start-add, -ne-columns.ne-focused .columns-end-add, -ne-columns:hover .columns-end-add, -ne-columns.ne-focused .columns-adder, -ne-columns:hover .columns-adder { - display: block; -} -ne-columns.ne-brick-highlight .columns-start-add, -ne-columns.ne-brick-highlight .columns-end-add, -ne-columns.ne-brick-highlight .columns-adder { - display: block; -} -ne-columns.ne-brick-highlight .columns-start-add::after, -ne-columns.ne-brick-highlight .columns-end-add::after, -ne-columns.ne-brick-highlight .columns-adder::after { - background: var(--lakex-editor-color-blue3); -} -ne-columns.ne-brick-highlight ne-column-border { - border: 1px solid var(--lakex-editor-color-blue3); - background-color: var(--lakex-editor-column-background-highlight); - transition: background-color ease 0.3s; -} -ne-columns ne-column-border { - border-radius: 6px; -} -ne-columns.ne-columns-inserting .columns-add { - display: block; -} -ne-columns.ne-columns-inserting ne-column ne-column-controller:hover:after { - display: none; -} -ne-columns.ne-columns-resizing ne-columns-content { - pointer-events: none; -} -ne-columns.ne-columns-resizing ne-column ne-column-controller { - display: none; -} -ne-columns.ne-columns-resizing .columns-add, -ne-columns.ne-columns-resizing .columns-remove { - display: none; -} -ne-columns.ne-columns-resizing .ne-number-show { - display: flex; -} -ne-columns.ne-max-cols .columns-start-add, -ne-columns.ne-max-cols .columns-adder, -ne-columns.ne-max-cols .columns-add-button, -ne-columns.ne-max-cols .columns-end-add { - display: none; -} -ne-columns ne-column { - flex: 1; - min-width: 1px; - margin: 10px 18px 10px 0; - padding-right: 6px; - display: block; - position: relative; - line-height: 1.72; - outline: none; -} -ne-columns ne-column.ne-column-dragging { - opacity: 0.5; -} -ne-columns ne-column.ne-column-removing-border ne-column-border { - border-color: var(--lakex-editor-color-red4); -} -ne-columns ne-column.ne-column-drag-border ne-column-border { - border-color: var(--lakex-editor-card-border-hover); -} -ne-columns ne-column.ne-column-drag-border.selected ne-column-border { - border-color: var(--lakex-editor-card-border-selected); -} -ne-columns ne-column.ne-column-drag-border.ne-column-removing-border ne-column-border { - border-color: var(--lakex-editor-color-red4); -} -ne-columns ne-column ne-column-border { - display: block; - position: absolute; - top: -6px; - left: -6px; - right: 0; - bottom: -6px; - user-select: none; -} -ne-columns ne-column ne-column-content { - outline: none; - display: block; - height: auto; - max-width: 100%; - overflow: hidden; - line-height: inherit; - user-select: auto; - position: relative; -} -ne-columns ne-column ne-column-hover { - position: absolute; - right: 0; - left: 0; - top: -20px; - height: 20px; - cursor: default; - user-select: none; -} -ne-columns ne-column .ne-number-show { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - justify-content: center; - align-items: center; - border-radius: 16px; - color: var(--lakex-editor-color-white); - background-color: var(--lakex-editor-color-black-f65); - padding: 2px 11px; - word-break: keep-all; - white-space: nowrap; - font-size: 14px; - line-height: 24px; - display: none; - z-index: 1; - font-weight: bold; -} -ne-columns ne-column .ne-number-show.is-adjust { - color: var(--lakex-editor-text-link); - background-color: var(--lakex-editor-color-blue1); -} -ne-columns ne-column.ne-columns-resizing ne-column-controller, -ne-columns ne-column.ne-columns-resizing ne-column-controller::after { - display: block; -} -ne-columns ne-column ne-column-controller { - display: block; - position: absolute; - right: -12px; - top: -6px; - bottom: -6px; - width: 12px; - cursor: col-resize; - user-select: none; - /* 分栏添加事件响应元素 */ - /* 分栏拖拽指示器 */ -} -ne-columns ne-column ne-column-controller .columns-adder { - position: absolute; - top: -20px; - left: -4px; - width: 20px; - height: 20px; - background-color: transparent; - display: none; - cursor: pointer; -} -ne-columns ne-column ne-column-controller::after { - content: ''; - display: none; - position: absolute; - top: 0; - max-height: 100%; - height: 60px; - width: 4px; - left: 50%; - top: 50%; - border-radius: 4px; - transform: translate(-50%, -50%); - background-color: var(--lakex-editor-color-blue5); -} -ne-columns ne-column ne-column-controller:hover::after { - display: block; -} -ne-columns ne-column:first-child { - margin-left: 0; -} -ne-columns ne-column:last-child { - margin-right: 0; - padding-right: 0; -} -ne-columns ne-column:last-child ne-column-border { - right: -6px; -} -ne-columns ne-column:last-child ne-column-controller { - display: none; -} -.ne-ui-columns-drag-moving-tip { - width: 144px; - height: 133px; - top: -999999999px; - left: -999999999px; - border-radius: 6px; - border: 1px solid var(--lakex-editor-border-primary); - background-color: var(--lakex-editor-color-white-f90); - color: var(--lakex-editor-text-color); - position: relative; -} -.ne-ui-columns-drag-moving-tip:before { - content: ''; - position: absolute; - top: 16px; - left: 10px; - right: 10px; - height: 8px; - border-radius: 6px; - background: linear-gradient(0.25turn, var(--lakex-editor-color-grey3), var(--lakex-editor-color-grey4)); -} -.ne-ui-columns-drag-moving-tip:after { - content: ''; - position: absolute; - top: 90px; - left: 10px; - right: 10px; - height: 31px; - border-radius: 6px; - background: linear-gradient(0.25turn, var(--lakex-editor-color-grey3), var(--lakex-editor-color-grey4)); -} -.ne-ui-columns-drag-moving-tip .ne-ui-columns-drag-text:before { - content: ''; - position: absolute; - top: 34px; - left: 10px; - right: 56px; - height: 15px; - border-radius: 6px; - background: linear-gradient(0.25turn, var(--lakex-editor-color-grey3), var(--lakex-editor-color-grey4)); -} -.ne-ui-columns-drag-moving-tip .ne-ui-columns-drag-text:after { - content: attr(data-content); - position: absolute; - top: 59px; - left: 10px; - right: 10px; -} -/* 移动端的样式 */ -ne-columns.ne-columns-h5 ne-columns-content, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 ne-columns-content { - flex-direction: column; -} -ne-columns.ne-columns-h5 ne-column, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 ne-column { - margin-top: 18px; - margin-right: 0; - padding-right: 0; -} -ne-columns.ne-columns-h5 ne-column:first-child, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 ne-column:first-child { - margin-top: 0; -} -ne-columns.ne-columns-h5 ne-column ne-column-border, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 ne-column ne-column-border { - right: -6px; -} -ne-columns.ne-columns-h5 ne-column .columns-hover, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 ne-column .columns-hover, -ne-columns.ne-columns-h5 ne-column ne-column-controller, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 ne-column ne-column-controller { - display: none; -} -ne-columns.ne-columns-h5 .columns-add, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 .columns-add, -ne-columns.ne-columns-h5 .columns-hover, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 .columns-hover, -ne-columns.ne-columns-h5 .columns-remove, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 .columns-remove, -ne-columns.ne-columns-h5 .columns-start-add, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 .columns-start-add, -ne-columns.ne-columns-h5 .columns-end-add, -.ne-paragraph-spacing-relax.ne-typography-classic ne-columns.ne-columns-h5 .columns-end-add { - display: none; -} -/* 新排版的样式 */ -.ne-engine.ne-typography-classic.ne-paragraph-spacing-relax ne-container-hole[data-card='columns'] { - margin: 20px auto; -} -.ne-engine.ne-typography-classic.ne-paragraph-spacing-relax ne-container-hole[data-card='columns'] .columns-start-add, -.ne-engine.ne-typography-classic.ne-paragraph-spacing-relax ne-container-hole[data-card='columns'] .columns-end-add { - top: -26px; -} -.ne-engine.ne-typography-classic.ne-paragraph-spacing-relax ne-container-hole[data-card='columns'] ne-columns[ne-fake-selection]::after { - top: -6px; - bottom: -6px; -} -.ne-engine.ne-typography-classic.ne-paragraph-spacing-relax ne-container-hole[data-card='columns'] ne-columns .columns-add, -.ne-engine.ne-typography-classic.ne-paragraph-spacing-relax ne-container-hole[data-card='columns'] ne-columns .columns-remove { - top: -8px; - bottom: -6px; -} -.ne-engine.ne-typography-classic.ne-paragraph-spacing-relax ne-container-hole[data-card='columns'] ne-column-content > .ne-spacing-all:last-child { - margin-bottom: 0; -} -/** 子元素尾部处理 **/ -ne-columns ne-column-content > .ne-spacing-all:last-child { - margin-bottom: 0; -} -/*内部卡片处理*/ -ne-columns ne-column ne-card[data-card-name='calendar'] { - max-width: 100%; - overflow: hidden; -} -ne-columns ne-column ne-card[data-card-name='calendar'] > .ne-card-container, -ne-columns ne-column ne-card[data-card-name='calendar'] > ne-card-root { - min-width: 300px; -} -ne-columns ne-column ne-card[data-card-name='checkIn'] { - max-width: 100%; - overflow: hidden; -} -ne-columns ne-column ne-card[data-card-name='checkIn'] > .ne-card-container, -ne-columns ne-column ne-card[data-card-name='checkIn'] > ne-card-root { - min-width: 260px; -} -ne-columns ne-column ne-card[data-card-name='vote'] { - max-width: 100%; - overflow: hidden; -} -ne-columns ne-column ne-card[data-card-name='vote'] > .ne-card-container, -ne-columns ne-column ne-card[data-card-name='vote'] > ne-card-root { - min-width: 360px; -} -ne-columns ne-column ne-card[data-card-name='lockedtext'] { - max-width: 100%; - overflow: hidden; -} -ne-columns ne-column ne-card[data-card-name='lockedtext'] > .ne-card-container, -ne-columns ne-column ne-card[data-card-name='lockedtext'] > ne-card-root { - min-width: 380px; -} -/* 内部卡片全屏样式处理 */ -.ne-ui-max-view ne-columns { - position: initial; -} -.ne-ui-max-view ne-columns ne-column { - position: initial; -} -.ne-ui-max-view ne-columns ne-column ne-column-content { - position: initial; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-engine [data-placeholder] { - position: relative; -} -.ne-engine [data-placeholder]::before { - position: absolute; - content: attr(data-placeholder); - color: var(--lakex-editor-color-grey5); - user-select: none; - pointer-events: none; - white-space: nowrap; - top: 50%; - transform: translateY(-50%); - padding-left: 2px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-collapse { - display: flex; - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 6px; - padding: 8px 30px 8px 0; - margin: 10px 0; - width: 100%; - max-width: 100%; - line-height: 1.74; -} -ne-collapse:hover { - border-color: var(--lakex-editor-card-border-hover); -} -ne-collapse.ne-brick-highlight { - border-color: var(--lakex-editor-card-border-hover); -} -ne-collapse.app-ne-brick-highlight { - border-color: var(--lakex-editor-color-blue6) !important; - box-shadow: 0px 0px 0px 0.5px var(--lakex-editor-color-blue6); -} -.ne-viewer[data-viewer-mode='present'] ne-collapse .ne-collapse-folding-inner { - width: 50px; - height: 30px; - margin-top: 12px; -} -.ne-viewer[data-viewer-mode='present'] ne-collapse .ne-collapse-folding-inner .ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-collapse .ne-collapse-folding-inner .ne-icon > span.lake-icon { - font-size: inherit !important; -} -.ne-viewer[data-viewer-mode='present'] ne-collapse ne-collapse-content ne-summary ne-text { - font-size: inherit !important; -} -.ne-viewer ne-collapse { - border: none; - padding: 0 20px 12px 0; -} -.ne-viewer ne-collapse [data-placeholder]::before { - position: absolute; - content: attr(data-placeholder); - color: var(--lakex-editor-text-disable); - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - pointer-events: none; - white-space: nowrap; - top: 50%; - transform: translateY(-50%); -} -.ne-viewer ne-collapse .collapse-controller { - width: 30px; -} -.ne-viewer ne-collapse-content { - max-width: calc(100% - 30px); -} -.ne-viewer ne-collapse .ne-collapse-fold-container { - justify-content: center; -} -ne-collapse .collapse-controller { - width: 30px; -} -ne-collapse-content { - max-width: 100%; - max-width: calc(100% - 30px); - display: block; - flex: 1; - outline: none; -} -ne-collapse ne-summary { - position: relative; - display: block; -} -ne-collapse-content > *:last-child { - margin-bottom: 0; -} -ne-collapse .ne-collapse-fold-container { - display: flex; - justify-content: center; - align-items: center; -} -ne-collapse[ne-open='false'] ne-collapse-content > * { - display: none; -} -ne-collapse[ne-open='false'] ne-collapse-content > ne-summary { - display: block; -} -ne-collapse .ne-collapse-folding-inner { - display: flex; - justify-content: center; - align-items: center; - width: 20px; - height: 20px; -} -ne-collapse .ne-collapse-folding-inner:hover { - background-color: var(--lakex-editor-background-primary-hover); - border-radius: 4px; -} -ne-collapse .ne-collapse-folding-inner.ne-collapse-fold-disabled .ne-icon { - cursor: not-allowed; -} -ne-collapse .ne-collapse-folding-inner .ne-icon { - cursor: pointer; - color: var(--lakex-editor-text-color); -} -ne-collapse.content-empty .ne-collapse-folding-inner .ne-icon { - color: var(--lakex-editor-text-caption); -} -.ne-viewer.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse[ne-open='false'] ne-collapse-content > ne-summary, -.ne-viewer.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse-content > :last-child { - margin-bottom: 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic ne-collapse { - padding-bottom: 0; - margin: 2px 0; -} -.ne-engine.ne-typography-classic ne-collapse[ne-open='false'] ne-collapse-content > ne-summary { - margin-bottom: 0 !important; -} -.ne-engine.ne-typography-classic ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic ne-collapse ne-summary ne-code ne-text { - font-size: 15px !important; -} -.ne-engine.ne-typography-classic ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic ne-collapse .ne-collapse-fold-container { - height: 26.1px; -} -.ne-engine.ne-typography-classic.fz12 ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic.fz12 ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic.fz12 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic.fz12 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic.fz12 ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic.fz12 ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic.fz12 ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic.fz12 ne-collapse ne-summary ne-code ne-text { - font-size: 12px !important; -} -.ne-engine.ne-typography-classic.fz12 ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic.fz12 ne-collapse .ne-collapse-fold-container { - height: 20.88px; -} -.ne-engine.ne-typography-classic.fz13 ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic.fz13 ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic.fz13 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic.fz13 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic.fz13 ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic.fz13 ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic.fz13 ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic.fz13 ne-collapse ne-summary ne-code ne-text { - font-size: 13px !important; -} -.ne-engine.ne-typography-classic.fz13 ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic.fz13 ne-collapse .ne-collapse-fold-container { - height: 22.62px; -} -.ne-engine.ne-typography-classic.fz14 ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic.fz14 ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic.fz14 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic.fz14 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic.fz14 ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic.fz14 ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic.fz14 ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic.fz14 ne-collapse ne-summary ne-code ne-text { - font-size: 14px !important; -} -.ne-engine.ne-typography-classic.fz14 ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic.fz14 ne-collapse .ne-collapse-fold-container { - height: 24.36px; -} -.ne-engine.ne-typography-classic.fz15 ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic.fz15 ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic.fz15 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic.fz15 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic.fz15 ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic.fz15 ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic.fz15 ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic.fz15 ne-collapse ne-summary ne-code ne-text { - font-size: 15px !important; -} -.ne-engine.ne-typography-classic.fz15 ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic.fz15 ne-collapse .ne-collapse-fold-container { - height: 26.1px; -} -.ne-engine.ne-typography-classic.fz16 ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic.fz16 ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic.fz16 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic.fz16 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic.fz16 ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic.fz16 ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic.fz16 ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic.fz16 ne-collapse ne-summary ne-code ne-text { - font-size: 16px !important; -} -.ne-engine.ne-typography-classic.fz16 ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic.fz16 ne-collapse .ne-collapse-fold-container { - height: 27.84px; -} -.ne-engine.ne-typography-classic.fz19 ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic.fz19 ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic.fz19 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic.fz19 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic.fz19 ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic.fz19 ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic.fz19 ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic.fz19 ne-collapse ne-summary ne-code ne-text { - font-size: 19px !important; -} -.ne-engine.ne-typography-classic.fz19 ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic.fz19 ne-collapse .ne-collapse-fold-container { - height: 33.06px; -} -.ne-engine.ne-typography-classic.fz22 ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic.fz22 ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic.fz22 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic.fz22 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic.fz22 ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic.fz22 ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic.fz22 ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic.fz22 ne-collapse ne-summary ne-code ne-text { - font-size: 22px !important; -} -.ne-engine.ne-typography-classic.fz22 ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic.fz22 ne-collapse .ne-collapse-fold-container { - height: 38.28px; -} -.ne-engine.ne-typography-classic.fz24 ne-collapse ne-summary ne-text, -.ne-viewer.ne-typography-classic.fz24 ne-collapse ne-summary ne-text, -.ne-engine.ne-typography-classic.fz24 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-viewer.ne-typography-classic.fz24 ne-collapse ne-summary ne-card[data-card-type='inline'], -.ne-engine.ne-typography-classic.fz24 ne-collapse ne-summary .ne-b-filler, -.ne-viewer.ne-typography-classic.fz24 ne-collapse ne-summary .ne-b-filler, -.ne-engine.ne-typography-classic.fz24 ne-collapse ne-summary ne-code ne-text, -.ne-viewer.ne-typography-classic.fz24 ne-collapse ne-summary ne-code ne-text { - font-size: 24px !important; -} -.ne-engine.ne-typography-classic.fz24 ne-collapse .ne-collapse-fold-container, -.ne-viewer.ne-typography-classic.fz24 ne-collapse .ne-collapse-fold-container { - height: 41.76px; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer ne-card[data-card-name='file']:hover .ne-card-file, -.ne-viewer ne-card[data-card-name='file'].ne-card-hovered .ne-card-file { - background: var(--lakex-editor-card-background-hover); -} -.ne-viewer ne-card[data-card-name='file']:hover .ne-card-file.disable, -.ne-viewer ne-card[data-card-name='file'].ne-card-hovered .ne-card-file.disable { - background: unset; -} -.ne-viewer ne-card[data-card-name='file'] .ne-card-file.disable { - color: var(--lakex-editor-text-disable); - cursor: default; -} -.ne-viewer ne-card[data-card-name='file'] .ne-card-container { - width: 100%; -} - -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='file'] .ne-card-file { - height: auto; - font-size: 1.8rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='file'] .ne-card-file .ne-card-file-name { - font-size: 1.8rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='file'] .ne-card-file .ne-card-file-size { - font-size: 85%; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='file'] .ne-card-file .ne-icon { - font-size: 1em; -} - -.ne-viewer[data-viewer-mode='simple'] ne-card[data-card-name='localdoc'] .ne-card-container[data-alias='embed'] { - height: auto !important; -} - -.ne-viewer ne-card[data-card-type='inline'][data-card-name='image'] { - display: inline-block; -} - -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='image'] .ne-ui-image-maximize { - width: 3.2rem; - height: 3.2rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='image'] .ne-ui-image-maximize .ne-icon { - font-size: 1.8rem; -} - -.ne-viewer ne-card[data-card-name='image'] { - height: auto; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-card[data-card-name='image'] { - vertical-align: text-bottom; - margin-bottom: 0; -} - -.ne-viewer-hidden-copy-node { - opacity: 0; - width: 0; - height: 0; - overflow: hidden; - position: fixed; - top: 0; - left: 0; -} - -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='12'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='12'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='13'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='13'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='13'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='13'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='14'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='14'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='15'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='15'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='16'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='16'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='19'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='19'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='22'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='22'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='24'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='24'], -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='29'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='29'] { - font-size: 1.8rem; - line-height: 2.8rem; -} -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='32'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='32'] { - font-size: 32px; - line-height: 2.8rem; -} -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='40'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='40'] { - font-size: 40px; -} -.ne-viewer[data-viewer-mode='present'] .ne-list-symbol[ne-fontsize='48'], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-fontsize='48'] { - font-size: 48px; -} - -.ne-viewer[data-viewer-mode='present'] ne-h1, -.ne-viewer[data-viewer-mode='present'] ne-h2, -.ne-viewer[data-viewer-mode='present'] ne-h3, -.ne-viewer[data-viewer-mode='present'] ne-h4, -.ne-viewer[data-viewer-mode='present'] ne-h5, -.ne-viewer[data-viewer-mode='present'] ne-h6 { - margin: 1.5rem 0; - font-weight: 500; -} -.ne-viewer[data-viewer-mode='present'] ne-h1 ne-text, -.ne-viewer[data-viewer-mode='present'] ne-h2 ne-text, -.ne-viewer[data-viewer-mode='present'] ne-h3 ne-text, -.ne-viewer[data-viewer-mode='present'] ne-h4 ne-text, -.ne-viewer[data-viewer-mode='present'] ne-h5 ne-text, -.ne-viewer[data-viewer-mode='present'] ne-h6 ne-text { - font-size: inherit !important; - line-height: inherit !important; - font-weight: inherit !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h1 { - font-size: 3.2rem !important; - line-height: 4rem !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h1 ne-heading-fold, -.ne-viewer[data-viewer-mode='present'] ne-h1 ne-heading-ext { - width: 4rem; - height: 4rem; -} -.ne-viewer[data-viewer-mode='present'] ne-h1 ne-heading-fold div.ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-h1 ne-heading-ext div.ne-icon { - font-size: inherit !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h2 { - font-size: 2.8rem !important; - line-height: 3.6rem !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h2 ne-heading-fold, -.ne-viewer[data-viewer-mode='present'] ne-h2 ne-heading-ext { - width: 3.6rem; - height: 3.6rem; -} -.ne-viewer[data-viewer-mode='present'] ne-h2 ne-heading-fold div.ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-h2 ne-heading-ext div.ne-icon { - font-size: inherit !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h3 { - font-size: 2.4rem !important; - line-height: 3rem !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h3 ne-heading-fold, -.ne-viewer[data-viewer-mode='present'] ne-h3 ne-heading-ext { - width: 3rem; - height: 3rem; -} -.ne-viewer[data-viewer-mode='present'] ne-h3 ne-heading-fold div.ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-h3 ne-heading-ext div.ne-icon { - font-size: inherit !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h4 { - font-size: 2.2rem !important; - line-height: 2.6rem !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h4 ne-heading-fold, -.ne-viewer[data-viewer-mode='present'] ne-h4 ne-heading-ext { - width: 2.6rem; - height: 2.6rem; -} -.ne-viewer[data-viewer-mode='present'] ne-h4 ne-heading-fold div.ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-h4 ne-heading-ext div.ne-icon { - font-size: inherit !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h5, -.ne-viewer[data-viewer-mode='present'] ne-h6 { - font-size: 2rem !important; - line-height: 2.6rem !important; -} -.ne-viewer[data-viewer-mode='present'] ne-h5 ne-heading-fold, -.ne-viewer[data-viewer-mode='present'] ne-h6 ne-heading-fold, -.ne-viewer[data-viewer-mode='present'] ne-h5 ne-heading-ext, -.ne-viewer[data-viewer-mode='present'] ne-h6 ne-heading-ext { - width: 2.6rem; - height: 2.6rem; -} -.ne-viewer[data-viewer-mode='present'] ne-h5 ne-heading-fold div.ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-h6 ne-heading-fold div.ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-h5 ne-heading-ext div.ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-h6 ne-heading-ext div.ne-icon { - font-size: inherit !important; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer ne-card[data-card-name='hr'] { - padding: 18px 0; -} -.ne-viewer ne-card[data-card-name='hr'] .ne-hr { - width: 100%; - height: 2px; - background: var(--lakex-editor-background-primary-hover-light); - border-top: 1px solid transparent; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-card[data-card-name='hr'] { - padding: 12px 0; -} -.ne-paragraph-spacing-relax.ne-typography-classic.ne-viewer ne-card[data-card-name='hr'] .ne-hr { - height: 1px; - background: var(--lakex-editor-background-primary-hover-light); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer[data-viewer-mode='present'] .ne-hr { - border: 0; - height: 4px; - background-color: var(--lakex-editor-background-primary-hover-light); - margin: 1em 0; -} - -.ne-viewer [ne-text-indent] > ne-card[data-card-name="image"] { - max-width: calc(100% - 2em); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ -ne-card[data-card-name='label'] { - top: -2px; -} -ne-card[data-card-name='label'] .ne-card-container { - width: 100%; - display: flex; - align-items: center; -} -ne-card[data-card-name='label'] .ne-card-label { - width: 100%; -} -ne-card[data-card-name='label'] .ne-card-label-text { - white-space: nowrap; - border-radius: 2px; - overflow: hidden; - text-overflow: ellipsis; - font-size: 12px; - line-height: 1.1; - padding: 0 0.2em; - margin: 0 0.2em; - border: 2px solid transparent; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='label'] .ne-card-label-text { - font-size: 21.6px; -} -.ne-label-color-0 { - color: var(--lakex-label-color0-text); - background: var(--lakex-label-color0-bg); -} -.ne-label-color-1 { - color: var(--lakex-label-color1-text); - background: var(--lakex-label-color1-bg); -} -.ne-label-color-2 { - color: var(--lakex-label-color2-text); - background: var(--lakex-label-color2-bg); -} -.ne-label-color-3 { - color: var(--lakex-label-color3-text); - background: var(--lakex-label-color3-bg); -} -.ne-label-color-4 { - color: var(--lakex-label-color4-text); - background: var(--lakex-label-color4-bg); -} -.ne-label-color-5 { - color: var(--lakex-label-color5-text); - background: var(--lakex-label-color5-bg); -} - -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body { - padding: 0 50px; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body > * { - max-width: 750px; - margin-left: auto; - margin-right: auto; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body > .ne-viewer-b-filler { - display: block; - max-width: 750px; - margin-left: auto; - margin-right: auto; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-hole.ne-full-width, -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-container-hole.ne-full-width, -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-alert-hole.ne-full-width { - max-width: 100%; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-table-hole.ne-full-width { - max-width: 100%; - width: fit-content; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-table-hole.ne-full-width ne-table-wrap { - min-width: 750px; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-table-hole.ne-full-width > .ne-i-filler { - flex: 1; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-table-hole.ne-full-width > .ne-i-filler:first-child { - text-align: right; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-table-hole.ne-full-width > .ne-i-filler:last-child { - text-align: left; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-root-card-hole.ne-full-width { - max-width: 100%; - width: fit-content; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-root-card-hole.ne-full-width > ne-card { - min-width: 750px; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-root-card-hole.ne-full-width > .ne-i-filler { - flex: 1; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-root-card-hole.ne-full-width > .ne-i-filler:first-child { - text-align: right; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-fixed .ne-viewer-body ne-root-card-hole.ne-full-width > .ne-i-filler:last-child { - text-align: left; -} - -.ne-doc-major-viewer .ne-viewer-layout-mode-adapt { - padding: 0 50px; -} -.ne-doc-major-viewer .ne-viewer-layout-mode-adapt ne-table-hole, -.ne-doc-major-viewer .ne-viewer-layout-mode-adapt ne-root-card-hole { - display: flex; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer a.ne-link { - cursor: pointer; -} -.ne-viewer a.ne-link ne-text { - color: var(--lakex-editor-text-link); -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer ne-tli .ne-checkbox-cursor-default { - cursor: default; -} -.ne-viewer ne-tli ne-tli-i:hover .ne-checkbox-inner { - border-color: var(--lakex-editor-color-grey5); -} -.ne-viewer ne-tli ne-tli-i.ne-checkbox-checked:hover .ne-checkbox-inner { - border-color: var(--lakex-editor-card-border-selected); -} - -.ne-viewer[data-viewer-mode='present'] ne-tli .ant-checkbox-inner { - width: 32px; - height: 32px; -} -.ne-viewer[data-viewer-mode='present'] ne-tli .ant-checkbox-checked .ant-checkbox-inner::after { - width: 12px; - height: 20px; -} -.ne-viewer[data-viewer-mode='present'] ne-uli, -.ne-viewer[data-viewer-mode='present'] ne-oli, -.ne-viewer[data-viewer-mode='present'] ne-tli { - margin-top: 1rem; - margin-bottom: 1rem; -} -.ne-viewer[data-viewer-mode='present'] ne-uli ne-oli-i, -.ne-viewer[data-viewer-mode='present'] ne-oli ne-oli-i, -.ne-viewer[data-viewer-mode='present'] ne-tli ne-oli-i, -.ne-viewer[data-viewer-mode='present'] ne-uli ne-uli-i, -.ne-viewer[data-viewer-mode='present'] ne-oli ne-uli-i, -.ne-viewer[data-viewer-mode='present'] ne-tli ne-uli-i, -.ne-viewer[data-viewer-mode='present'] ne-uli ne-tli-i, -.ne-viewer[data-viewer-mode='present'] ne-oli ne-tli-i, -.ne-viewer[data-viewer-mode='present'] ne-tli ne-tli-i { - text-align: left; - min-width: auto; -} - -.ne-viewer[data-viewer-mode='present'] ne-p { - line-height: unset; -} - -.ne-viewer[data-viewer-mode='present'] ne-quote ne-p, -.ne-viewer[data-viewer-mode='present'] ne-quote ne-uli, -.ne-viewer[data-viewer-mode='present'] ne-quote ne-oli, -.ne-viewer[data-viewer-mode='present'] ne-quote ne-tli, -.ne-viewer[data-viewer-mode='present'] ne-quote ne-quote { - margin-top: 1rem; - margin-bottom: 1rem; -} - -.ne-viewer [ne-sup], -.ne-viewer [ne-sub] { - z-index: initial; -} - -.ne-viewer[data-viewer-mode='present'] ne-text[ne-sup], -.ne-viewer[data-viewer-mode='present'] ne-text[ne-sub] { - font-size: 75%; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.tableHeadTd { - background-color: var(--table-head-bg-color) !important; -} -.tableHeadNormalText ne-text, -.tableHeadNormalText .ne-td-content > .ne-b-filler { - font-weight: bold !important; - color: var(--table-head-text-color) !important; - -webkit-text-fill-color: unset !important; -} -.tableHeadGradientText ne-text, -.tableHeadGradientText .ne-td-content > .ne-b-filler { - font-weight: bold !important; - -webkit-text-fill-color: transparent; - background-clip: text; - background-image: linear-gradient(90deg, var(--table-head-text1-color), var(--table-head-text2-color)) !important; -} -/** 表头样式,参考plugins/table/src/common/table-attr-translator.ts的变量定义 */ -table[ne-table-row-head='true'][ne-table-head-text-gradient='true'] tr:first-child td { - background-color: var(--table-head-bg-color) !important; -} -table[ne-table-row-head='true'][ne-table-head-text-gradient='true'] tr:first-child td ne-text, -table[ne-table-row-head='true'][ne-table-head-text-gradient='true'] tr:first-child td .ne-td-content > .ne-b-filler { - font-weight: bold !important; - -webkit-text-fill-color: transparent; - background-clip: text; - background-image: linear-gradient(90deg, var(--table-head-text1-color), var(--table-head-text2-color)) !important; -} -table[ne-table-col-head='true'][ne-table-head-text-gradient='true'] tr > td[data-col='0'] { - background-color: var(--table-head-bg-color) !important; -} -table[ne-table-col-head='true'][ne-table-head-text-gradient='true'] tr > td[data-col='0'] ne-text, -table[ne-table-col-head='true'][ne-table-head-text-gradient='true'] tr > td[data-col='0'] .ne-td-content > .ne-b-filler { - font-weight: bold !important; - -webkit-text-fill-color: transparent; - background-clip: text; - background-image: linear-gradient(90deg, var(--table-head-text1-color), var(--table-head-text2-color)) !important; -} -table[ne-table-col-head='true']:not([ne-table-head-text-gradient='true']) tr > td[data-col='0'] { - background-color: var(--table-head-bg-color) !important; -} -table[ne-table-col-head='true']:not([ne-table-head-text-gradient='true']) tr > td[data-col='0'] ne-text, -table[ne-table-col-head='true']:not([ne-table-head-text-gradient='true']) tr > td[data-col='0'] .ne-td-content > .ne-b-filler { - font-weight: bold !important; - color: var(--table-head-text-color) !important; - -webkit-text-fill-color: unset !important; -} -table[ne-table-row-head='true']:not([ne-table-head-text-gradient='true']) tr:first-child td { - background-color: var(--table-head-bg-color) !important; -} -table[ne-table-row-head='true']:not([ne-table-head-text-gradient='true']) tr:first-child td ne-text, -table[ne-table-row-head='true']:not([ne-table-head-text-gradient='true']) tr:first-child td .ne-td-content > .ne-b-filler { - font-weight: bold !important; - color: var(--table-head-text-color) !important; - -webkit-text-fill-color: unset !important; -} -.ne-viewer ne-table-hole.ne-max, -.ne-viewer ne-root-card-hole.ne-max { - background-color: var(--lakex-editor-background-secondary); - overflow: auto; - margin: 0 !important; - padding: 20px; -} -.ne-viewer ne-table-hole, -.ne-viewer ne-root-card-hole { - display: block; -} -.ne-viewer ne-table-wrap { - width: max-content; -} -.ne-viewer ne-table-wrap.ne-ui-table-left-shadow::before { - margin-top: 0; - top: 14px; -} -.ne-viewer ne-table-wrap.ne-ui-table-right-shadow::after { - margin-top: 0; - top: 14px; -} -.ne-viewer ne-table-inner-wrap { - line-height: 0; - width: max-content; - max-width: 100%; - padding-top: 14px; -} -/* 内部卡片全屏样式处理 */ -.ne-ui-max-view.ne-viewer ne-table-wrap:not(.ne-max) { - position: initial; -} -.ne-ui-max-view.ne-viewer ne-table-wrap:not(.ne-max) ne-table-inner-wrap { - position: initial; -} -.ne-ui-max-view.ne-viewer ne-table-wrap:not(.ne-max) ne-table-inner-wrap ne-table-box { - position: initial; -} -.ne-ui-max-view.ne-viewer ne-table-wrap:not(.ne-max) ne-table-inner-wrap ne-table-box table { - position: initial; -} - -.ne-viewer[data-viewer-mode='present'] .ne-table { - width: 100% !important; -} -.ne-viewer[data-viewer-mode='present'] .ne-table .ne-tr { - height: 3.5rem; -} -.ne-viewer[data-viewer-mode='present'] .ne-table .ne-tr .ne-th, -.ne-viewer[data-viewer-mode='present'] .ne-table .ne-tr .ne-td { - font-size: 1.8rem; - line-height: 2.8rem; -} - -.ne-viewer[data-viewer-mode='simple'] .ne-table { - width: 100%; -} - -/* stylelint-disable */ -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/*! - 本文件源码来源于老编辑器 - 定制了一些 codemirror 中内容的配色等基础样式,非特殊情况无需修改 - */ -/* BASICS */ -.CodeMirror { - /* Set height, width, borders, and global font properties here */ - font-family: monospace; - color: var(--lakex-editor-color-black); - direction: ltr; -} -/* PADDING */ -.CodeMirror-lines { - padding: 4px 0; - /* Vertical padding around content */ -} -.CodeMirror pre.CodeMirror-line, -.CodeMirror pre.CodeMirror-line-like { - padding: 0 4px; - /* Horizontal padding of content */ -} -.CodeMirror-scrollbar-filler, -.CodeMirror-gutter-filler { - background-color: var(--lakex-editor-color-white); - /* The little square between H and V scrollbars */ -} -/* GUTTER */ -.CodeMirror-gutters { - border-right: 1px solid #ddd; - background-color: #f7f7f7; - white-space: nowrap; -} -.CodeMirror-linenumber { - padding: 0 3px 0 5px; - min-width: 20px; - text-align: right; - color: #999; - white-space: nowrap; -} -.CodeMirror-guttermarker { - color: var(--lakex-editor-color-black); -} -.CodeMirror-guttermarker-subtle { - color: #999; -} -/* CURSOR */ -.CodeMirror-cursor { - border-left: 1px solid black; - border-right: none; - width: 0; -} -/* Shown when moving in bi-directional text */ -.CodeMirror div.CodeMirror-secondarycursor { - border-left: 1px solid silver; -} -.cm-fat-cursor .CodeMirror-cursor { - width: auto; - border: 0 !important; - background: #7e7; -} -.cm-fat-cursor div.CodeMirror-cursors { - z-index: 1; -} -.cm-fat-cursor .CodeMirror-line::selection, -.cm-fat-cursor .CodeMirror-line > span::selection, -.cm-fat-cursor .CodeMirror-line > span > span::selection { - background: transparent; -} -.cm-fat-cursor .CodeMirror-line::-moz-selection, -.cm-fat-cursor .CodeMirror-line > span::-moz-selection, -.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { - background: transparent; -} -.cm-fat-cursor { - caret-color: transparent; -} -@-moz-keyframes blink { - 50% { - background-color: transparent; - } -} -@-webkit-keyframes blink { - 50% { - background-color: transparent; - } -} -@keyframes blink { - 50% { - background-color: transparent; - } -} -/* Can style cursor different in overwrite (non-insert) mode */ -.cm-tab { - display: inline-block; - text-decoration: inherit; -} -.CodeMirror-rulers { - position: absolute; - left: 0; - right: 0; - top: -50px; - bottom: 0; - overflow: hidden; -} -.CodeMirror-ruler { - border-left: 1px solid #ccc; - top: 0; - bottom: 0; - position: absolute; -} -/* DEFAULT THEME */ -.cm-s-default .cm-header { - color: blue; -} -.cm-s-default .cm-quote { - color: #090; -} -.cm-negative { - color: #d44; -} -.cm-positive { - color: #292; -} -.cm-header, -.cm-strong { - font-weight: bold; -} -.cm-em { - font-style: italic; -} -.cm-link { - text-decoration: underline; -} -.cm-strikethrough { - text-decoration: line-through; -} -.cm-s-default .cm-keyword { - color: #708; -} -.cm-s-default .cm-atom { - color: #219; -} -.cm-s-default .cm-number { - color: #164; -} -.cm-s-default .cm-def { - color: #00f; -} -.cm-s-default .cm-variable-2 { - color: #05a; -} -.cm-s-default .cm-variable-3, -.cm-s-default .cm-type { - color: #085; -} -.cm-s-default .cm-comment { - color: #a50; -} -.cm-s-default .cm-string { - color: #a11; -} -.cm-s-default .cm-string-2 { - color: #f50; -} -.cm-s-default .cm-meta { - color: #555; -} -.cm-s-default .cm-qualifier { - color: #555; -} -.cm-s-default .cm-builtin { - color: #30a; -} -.cm-s-default .cm-bracket { - color: #997; -} -.cm-s-default .cm-tag { - color: #170; -} -.cm-s-default .cm-attribute { - color: #00c; -} -.cm-s-default .cm-hr { - color: #999; -} -.cm-s-default .cm-link { - color: #00c; -} -.cm-s-default .cm-error { - color: #f00; -} -.cm-invalidchar { - color: #f00; -} -.CodeMirror-composing { - border-bottom: 2px solid; -} -/* Default styles for common addons */ -div.CodeMirror span.CodeMirror-matchingbracket { - color: #0b0; -} -div.CodeMirror span.CodeMirror-nonmatchingbracket { - color: #a22; -} -.CodeMirror-matchingtag { - background: rgba(255, 150, 0, 0.3); -} -.CodeMirror-activeline-background { - background: #e8f2ff; -} -/* STOP */ -/* The rest of this file contains styles related to the mechanics of - the editor. You probably shouldn't touch them. */ -.CodeMirror { - position: relative; - overflow: hidden; - background: var(--lakex-editor-background-primary); -} -.CodeMirror-scroll { - overflow: scroll !important; - /* Things will break if this is overridden */ - /* 50px is the magic margin used to hide the element's real scrollbars */ - /* See overflow: hidden in .CodeMirror */ - margin-bottom: -50px; - margin-right: -50px; - padding-bottom: 50px; - height: 100%; - outline: none; - /* Prevent dragging from highlighting the element */ - position: relative; -} -.CodeMirror-sizer { - position: relative; - border-right: 50px solid transparent; -} -/* The fake, visible scrollbars. Used to force redraw during scrolling - before actual scrolling happens, thus preventing shaking and - flickering artifacts. */ -.CodeMirror-vscrollbar, -.CodeMirror-hscrollbar, -.CodeMirror-scrollbar-filler, -.CodeMirror-gutter-filler { - position: absolute; - z-index: 6; - display: none; - outline: none; -} -.CodeMirror-vscrollbar { - right: 0; - top: 0; - overflow-x: hidden; - overflow-y: scroll; -} -.CodeMirror-hscrollbar { - bottom: 0; - left: 0; - overflow-y: hidden; - overflow-x: scroll; -} -.CodeMirror-scrollbar-filler { - right: 0; - bottom: 0; -} -.CodeMirror-gutter-filler { - left: 0; - bottom: 0; -} -.CodeMirror-gutters { - position: absolute; - left: 0; - top: 0; - min-height: 100%; - z-index: 3; -} -.CodeMirror-gutter { - white-space: normal; - height: 100%; - display: inline-block; - vertical-align: top; - margin-bottom: -50px; -} -.CodeMirror-gutter-wrapper { - position: absolute; - z-index: 4; - background: none !important; - border: none !important; -} -.CodeMirror-gutter-background { - position: absolute; - top: 0; - bottom: 0; - z-index: 4; -} -.CodeMirror-gutter-elt { - position: absolute; - cursor: default; - z-index: 4; -} -.CodeMirror-gutter-wrapper ::selection { - background-color: transparent; -} -.CodeMirror-gutter-wrapper ::-moz-selection { - background-color: transparent; -} -.CodeMirror-lines { - cursor: text; - min-height: 1px; - /* prevents collapsing before first draw */ -} -.CodeMirror pre.CodeMirror-line, -.CodeMirror pre.CodeMirror-line-like { - /* Reset some styles that the rest of the page might have set */ - -moz-border-radius: 0; - -webkit-border-radius: 0; - border-radius: 0; - border-width: 0; - background: transparent; - font-family: inherit; - font-size: inherit; - margin: 0; - white-space: pre; - word-wrap: normal; - line-height: inherit; - color: inherit; - z-index: 2; - position: relative; - overflow: visible; - -webkit-tap-highlight-color: transparent; - -webkit-font-variant-ligatures: contextual; - font-variant-ligatures: contextual; -} -.CodeMirror-wrap pre.CodeMirror-line, -.CodeMirror-wrap pre.CodeMirror-line-like { - word-wrap: break-word; - white-space: pre-wrap; - word-break: normal; -} -.CodeMirror-linebackground { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - z-index: 0; -} -.CodeMirror-linewidget { - position: relative; - z-index: 2; - padding: 0.1px; - /* Force widget margins to stay inside of the container */ -} -.CodeMirror-rtl pre { - direction: rtl; -} -.CodeMirror-code { - outline: none; -} -/* Force content-box sizing for the elements where we expect it */ -.CodeMirror-scroll, -.CodeMirror-sizer, -.CodeMirror-gutter, -.CodeMirror-gutters, -.CodeMirror-linenumber { - -moz-box-sizing: content-box; - box-sizing: content-box; -} -.CodeMirror-measure { - position: absolute; - width: 100%; - height: 0; - overflow: hidden; - visibility: hidden; -} -.CodeMirror-cursor { - position: absolute; - pointer-events: none; -} -.CodeMirror-measure pre { - position: static; -} -div.CodeMirror-cursors { - visibility: hidden; - position: relative; - z-index: 3; -} -div.CodeMirror-dragcursors { - visibility: visible; -} -.CodeMirror-focused div.CodeMirror-cursors { - visibility: visible; -} -.CodeMirror-selected { - background: #d9d9d9; -} -.CodeMirror-focused .CodeMirror-selected { - background: #d7d4f0; -} -.CodeMirror-crosshair { - cursor: crosshair; -} -.CodeMirror-line::selection, -.CodeMirror-line > span::selection, -.CodeMirror-line > span > span::selection { - background: #d7d4f0; -} -.CodeMirror-line::-moz-selection, -.CodeMirror-line > span::-moz-selection, -.CodeMirror-line > span > span::-moz-selection { - background: #d7d4f0; -} -.cm-searching { - background-color: #ffa; - background-color: rgba(255, 255, 0, 0.4); -} -/* Used to force a border model for a node */ -.cm-force-border { - padding-right: 0.1px; -} -@media print { - /* Hide the cursor when printing */ - .CodeMirror div.CodeMirror-cursors { - visibility: hidden; - } -} -/* See issue #2901 */ -.cm-tab-wrap-hack:after { - content: ''; -} -/* Help users use markselection to safely style text background */ -span.CodeMirror-selectedtext { - background: none; -} -/*! - 本文件源码来源于老编辑器 - 定制了一些 codemirror 中内容的配色等基础样式,非特殊情况无需修改 - */ -.CodeMirror { - background: none; - /* 字体参照 github,考虑和 14px 文字在一起排版,字号用 13px */ - font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; - font-size: 14px; - line-height: 1.45; - color: #595959; - direction: ltr; -} -.CodeMirror * { - box-sizing: unset; -} -.CodeMirror:hover .CodeMirror-scroll::-webkit-scrollbar-thumb, -.CodeMirror.CodeMirror-focused .CodeMirror-scroll::-webkit-scrollbar-thumb, -.CodeMirror:hover .CodeMirror-vscrollbar::-webkit-scrollbar-thumb, -.CodeMirror.CodeMirror-focused .CodeMirror-vscrollbar::-webkit-scrollbar-thumb, -.CodeMirror:hover .CodeMirror-hscrollbar::-webkit-scrollbar-thumb, -.CodeMirror.CodeMirror-focused .CodeMirror-hscrollbar::-webkit-scrollbar-thumb { - visibility: visible; -} -.CodeMirror .CodeMirror-scrollbar-filler, -.CodeMirror .CodeMirror-gutter-filler { - background: transparent; -} -.CodeMirror .CodeMirror-lines { - padding-bottom: 24px; -} -.CodeMirror-scroll, -.CodeMirror-sizer, -.CodeMirror-gutter, -.CodeMirror-gutters, -.CodeMirror-linenumber { - -moz-box-sizing: content-box !important; - box-sizing: content-box !important; -} -.CodeMirror-gutters { - background: #fafafa; - border-color: #fafafa; - padding: 0 6px 0 6px; -} -.CodeMirror-scroll, -.CodeMirror-vscrollbar, -.CodeMirror-hscrollbar { - scrollbar-color: var(--lakex-editor-color-grey6) transparent; -} -.CodeMirror-scroll::-webkit-scrollbar, -.CodeMirror-vscrollbar::-webkit-scrollbar, -.CodeMirror-hscrollbar::-webkit-scrollbar { - background-color: transparent; -} -.CodeMirror-scroll::-webkit-scrollbar-corner, -.CodeMirror-vscrollbar::-webkit-scrollbar-corner, -.CodeMirror-hscrollbar::-webkit-scrollbar-corner { - background-color: transparent; -} -.CodeMirror-scroll::-webkit-scrollbar-thumb, -.CodeMirror-vscrollbar::-webkit-scrollbar-thumb, -.CodeMirror-hscrollbar::-webkit-scrollbar-thumb { - background-color: var(--lakex-editor-color-grey6); - border-radius: 16px; - border: 3.5px solid transparent; - background-clip: content-box; - visibility: visible; -} -.CodeMirror-selected { - background: transparent; -} -.CodeMirror-focused .CodeMirror-selected { - background: var(--lakex-editor-selection); -} -.CodeMirror-crosshair { - cursor: crosshair; -} -.CodeMirror-line::selection, -.CodeMirror-line > span::selection, -.CodeMirror-line > span > span::selection { - background: var(--lakex-editor-selection); -} -.CodeMirror-line::-moz-selection, -.CodeMirror-line > span::-moz-selection, -.CodeMirror-line > span > span::-moz-selection { - background: var(--lakex-editor-selection); -} -/* DEFAULT THEME (来源于老编辑器,定制了一套代码配色) */ -.CodeMirror pre, -.box pre, -.editor .top-boxes pre, -.CodeMirror-gutter-wrapper pre { - color: #262626; -} -.CodeMirror-linenumber { - color: #afafaf; -} -.cm-s-default .cm-header { - color: blue; -} -.cm-s-default .cm-quote { - color: #090; -} -.cm-negative { - color: #d44; -} -.cm-positive { - color: #292; -} -.cm-header, -.cm-strong { - font-weight: bold; -} -.cm-em { - font-style: italic; -} -.cm-link { - text-decoration: underline; -} -.cm-strikethrough { - text-decoration: line-through; -} -/* 以 codemirror 默认为蓝本,部分颜色用 github 及 prism.js */ -.cm-s-default .cm-keyword { - color: #d73a49; -} -/* use github */ -.cm-s-default .cm-atom { - color: #905; -} -/* false null 等常量,use prism.js */ -.cm-s-default .cm-number { - color: #005cc5; -} -/* use github */ -.cm-s-default .cm-def { - color: #005cc5; -} -/* use github */ -.cm-s-default .cm-variable-2 { - color: #005cc5; -} -/* use github 蓝色 */ -.cm-s-default .cm-variable-3, -.cm-s-default .cm-type { - color: #22863a; -} -/* use github 绿色 */ -.cm-s-default .cm-comment { - color: #6a737d; -} -/* use github */ -.cm-s-default .cm-string { - color: #690; -} -/* 单行字符串,用 prism 颜色 origin #a11; */ -.cm-s-default .cm-string-2 { - color: #690; -} -/* 多行字符串,用 prism 颜色 origin #a11; */ -.cm-s-default .cm-meta { - color: #1f7f9a; -} -/* c #include、java annotation 等,采用 vscode default light+ 颜色 */ -.cm-s-default .cm-qualifier { - color: #555; -} -.cm-s-default .cm-builtin { - color: #6f42c1; -} -/* use github */ -.cm-s-default .cm-bracket { - color: #997; -} -.cm-s-default .cm-tag { - color: #22863a; -} -/* html tag 名,use github */ -.cm-s-default .cm-attribute { - color: #6f42c1; -} -/* html tag 属性名,use github */ -.cm-s-default .cm-hr { - color: #999; -} -/* md 语法 */ -.cm-s-default .cm-link { - color: #00c; -} -/* md 语法 */ -.cm-s-default .cm-error { - color: #f00; -} -.cm-invalidchar { - color: #f00; -} -.cm-s-default .cm-operator { - color: #d73a49; -} -/* 用 github 颜色 */ -.cm-s-default .cm-property { - color: #005cc5; -} -/* 用 github 蓝色,和 cm-def 一致 */ -.CodeMirror-composing { - border-bottom: 2px solid; -} -.CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.CodeMirror-scroll { - margin-top: 12px; -} -.ne-codeblock[theme='default'] .ne-embed-nav { - background: #f5f5f5; - border-bottom: 1px solid #e8e8e8; -} -.ne-codeblock[theme='default'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='default'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='default'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='default'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='default'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='default'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='default'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #595959; -} -.ne-codeblock[theme='default'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='default'] .ne-embed-nav .ne-codeblock-mode-name { - color: #bfbfbf; -} -.ne-codeblock[theme='default'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='default'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='default'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='default'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='default'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='default'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #e8e8e8; - border-color: transparent; -} -.cm-searching, -.CodeMirror-focused .CodeMirror-selected, -.CodeMirror-selected { - background-color: rgba(80, 153, 236, 0.5); -} -/* Default styles for common addons */ -/* STOP */ -.CodeMirror-light-line-wrap + .CodeMirror-light-line-wrap .CodeMirror-lightline-background, -.CodeMirror-light-line-wrap + .CodeMirror-light-line-wrap .CodeMirror-gutter-background.CodeMirror-light-line-gutter { - border-top: none; -} -.CodeMirror-collapsed-folded { - transform-origin: center; - transform: rotateZ(-90deg); -} -.ne-codeblock[theme='Darcula'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='Darcula'] .CodeMirror-gutters, -.ne-codeblock[theme='Darcula'] .ne-codeblock, -.ne-codeblock[theme='Darcula'] .ne-codeblock-inner, -.ne-codeblock[theme='Darcula'] .ne-codeblock-content { - background: #2b2b2b; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-cursor { - border-left-color: #aeaeae; -} -.ne-codeblock[theme='Darcula'] .CodeMirror pre, -.ne-codeblock[theme='Darcula'] .box pre, -.ne-codeblock[theme='Darcula'] .editor .top-boxes pre, -.ne-codeblock[theme='Darcula'] .CodeMirror-gutter-wrapper pre { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-keyword { - color: #d87e30; -} -.ne-codeblock[theme='Darcula'] .cm-atom { - color: #d87e30; -} -.ne-codeblock[theme='Darcula'] .box-html .cm-atom { - color: #a578b4; -} -.ne-codeblock[theme='Darcula'] .cm-def { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-variable { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-variable-2 { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-variable-3 { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-header { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-number { - color: #719fc5; -} -.ne-codeblock[theme='Darcula'] .cm-property { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-attribute { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-builtin { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-qualifier { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-operator { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-meta { - color: #cccccc; -} -.ne-codeblock[theme='Darcula'] .cm-string { - color: #628854; -} -.ne-codeblock[theme='Darcula'] .cm-string-2 { - color: #b45555; -} -.ne-codeblock[theme='Darcula'] .cm-tag { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .box-css .cm-tag { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-tag.cm-bracket { - color: #ffc45a; -} -.ne-codeblock[theme='Darcula'] .cm-variable.cm-callee { - color: #39e62d; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-linenumber { - color: #858585; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-foldgutter-open.CodeMirror-guttermarker-subtle { - color: #696969; -} -.ne-codeblock[theme='Darcula'] .cm-comment { - color: #707070; -} -.ne-codeblock[theme='Darcula'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='Darcula'] .ne-embed-nav { - background: #222222; - border-bottom: 1px solid #181818; -} -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #93999e; -} -.ne-codeblock[theme='Darcula'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='Darcula'] .ne-embed-nav .ne-codeblock-mode-name { - color: rgba(147, 153, 158, 0.5); -} -.ne-codeblock[theme='Darcula'] .ant-divider-vertical { - border-color: #393939; -} -.ne-codeblock[theme='Darcula'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='Darcula'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Darcula'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='Darcula'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='Darcula'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='Darcula'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #393939; - border-color: transparent; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='Night Owl'] .CodeMirror-gutters, -.ne-codeblock[theme='Night Owl'] .ne-codeblock, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-inner, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-content { - background: #001628; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-cursor { - border-left-color: #80a4c3; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror pre, -.ne-codeblock[theme='Night Owl'] .box pre, -.ne-codeblock[theme='Night Owl'] .editor .top-boxes pre, -.ne-codeblock[theme='Night Owl'] .CodeMirror-gutter-wrapper pre { - color: #d4deec; -} -.ne-codeblock[theme='Night Owl'] .cm-keyword { - color: #d18df0; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-atom { - color: #ff4571; -} -.ne-codeblock[theme='Night Owl'] .box-html .cm-atom { - color: #79a9ff; -} -.ne-codeblock[theme='Night Owl'] .cm-def { - color: #79a9ff; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-variable { - color: #5adeca; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-variable-2 { - color: #5adeca; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-variable-3 { - color: #bce666; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-header { - color: #d4deec; -} -.ne-codeblock[theme='Night Owl'] .cm-number { - color: #ff8563; -} -.ne-codeblock[theme='Night Owl'] .cm-property { - color: #79a9ff; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-attribute { - color: #bce666; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-builtin { - color: #ffd400; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-qualifier { - color: #bce666; - font-style: italic; -} -.ne-codeblock[theme='Night Owl'] .cm-operator { - color: #d18df0; -} -.ne-codeblock[theme='Night Owl'] .cm-meta { - color: #bce666; -} -.ne-codeblock[theme='Night Owl'] .cm-string { - color: #f3c384; -} -.ne-codeblock[theme='Night Owl'] .cm-string-2 { - color: #7d5959; -} -.ne-codeblock[theme='Night Owl'] .cm-tag { - color: #c1ede6; -} -.ne-codeblock[theme='Night Owl'] .box-css .cm-tag { - color: #ff545c; -} -.ne-codeblock[theme='Night Owl'] .cm-tag.cm-bracket { - color: #5adeca; -} -.ne-codeblock[theme='Night Owl'] .cm-variable.cm-callee { - color: #39e62d; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-linenumber { - color: #858585; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-guttermarker-subtle { - color: #ffffff; -} -.ne-codeblock[theme='Night Owl'] .cm-comment { - color: #5e7877; -} -.ne-codeblock[theme='Night Owl'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='Night Owl'] .ne-embed-nav { - background: #000c18; - border-bottom: 1px solid #00070e; -} -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #ccd3db; -} -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='Night Owl'] .ne-embed-nav .ne-codeblock-mode-name { - color: rgba(147, 153, 158, 0.5); -} -.ne-codeblock[theme='Night Owl'] .ant-divider-vertical { - border-color: #1f2a36; -} -.ne-codeblock[theme='Night Owl'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='Night Owl'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='Night Owl'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='Night Owl'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #1f2a36; - border-color: transparent; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-gutters, -.ne-codeblock[theme='One Dark Pro'], -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-inner, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-content { - background: #272c35; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-cursor { - border-left-color: #528bf7; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror pre, -.ne-codeblock[theme='One Dark Pro'] .box pre, -.ne-codeblock[theme='One Dark Pro'] .editor .top-boxes pre, -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-gutter-wrapper pre { - color: #a9b2c0; -} -.ne-codeblock[theme='One Dark Pro'] .cm-keyword { - color: #d371e3; -} -.ne-codeblock[theme='One Dark Pro'] .cm-atom { - color: #da985c; -} -.ne-codeblock[theme='One Dark Pro'] .box-html .cm-atom { - color: #f06372; -} -.ne-codeblock[theme='One Dark Pro'] .cm-def { - color: #ebbf6f; -} -.ne-codeblock[theme='One Dark Pro'] .cm-variable { - color: #f06372; -} -.ne-codeblock[theme='One Dark Pro'] .cm-variable-2 { - color: #f06372; - font-style: italic; -} -.ne-codeblock[theme='One Dark Pro'] .cm-variable-3 { - color: #1db8c4; -} -.ne-codeblock[theme='One Dark Pro'] .cm-header { - color: #a9b2c0; -} -.ne-codeblock[theme='One Dark Pro'] .cm-number { - color: #da985c; -} -.ne-codeblock[theme='One Dark Pro'] .cm-property { - color: #43b0f5; -} -.ne-codeblock[theme='One Dark Pro'] .cm-attribute { - color: #da985c; -} -.ne-codeblock[theme='One Dark Pro'] .cm-builtin { - color: #43b0f5; -} -.ne-codeblock[theme='One Dark Pro'] .cm-qualifier { - color: #da985c; -} -.ne-codeblock[theme='One Dark Pro'] .cm-operator { - color: #1db8c4; -} -.ne-codeblock[theme='One Dark Pro'] .cm-meta { - color: #1db8c4; -} -.ne-codeblock[theme='One Dark Pro'] .cm-string { - color: #8bc56f; -} -.ne-codeblock[theme='One Dark Pro'] .cm-string-2 { - color: #8bc56f; -} -.ne-codeblock[theme='One Dark Pro'] .cm-tag { - color: #f06372; -} -.ne-codeblock[theme='One Dark Pro'] .box-css .cm-tag { - color: #f06372; -} -.ne-codeblock[theme='One Dark Pro'] .cm-tag.cm-bracket { - color: #a9b2c0; -} -.ne-codeblock[theme='One Dark Pro'] .cm-variable.cm-callee { - color: #357e30; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-linenumber { - color: #777b83; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-guttermarker-subtle { - color: #ffffff; -} -.ne-codeblock[theme='One Dark Pro'] .cm-comment { - color: #7e848f; -} -.ne-codeblock[theme='One Dark Pro'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav { - background: #242933; - border-bottom: 1px solid #191e25; -} -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #adb1b9; -} -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #484848; -} -.ne-codeblock[theme='One Dark Pro'] .ne-embed-nav .ne-codeblock-mode-name { - color: rgba(173, 177, 185, 0.5); -} -.ne-codeblock[theme='One Dark Pro'] .ant-divider-vertical { - border-color: #3c424d; -} -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='One Dark Pro'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='One Dark Pro'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='One Dark Pro'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #3c424d; - border-color: transparent; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='Github Light'] .CodeMirror-gutters, -.ne-codeblock[theme='Github Light'] .ne-codeblock, -.ne-codeblock[theme='Github Light'] .ne-codeblock-inner, -.ne-codeblock[theme='Github Light'] .ne-codeblock-content { - background: #ffffff; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-cursor { - border-left-color: #286ada; -} -.ne-codeblock[theme='Github Light'] .CodeMirror pre, -.ne-codeblock[theme='Github Light'] .box pre, -.ne-codeblock[theme='Github Light'] .editor .top-boxes pre, -.ne-codeblock[theme='Github Light'] .CodeMirror-gutter-wrapper pre { - color: #262c31; -} -.ne-codeblock[theme='Github Light'] .cm-keyword { - color: #e10023; -} -.ne-codeblock[theme='Github Light'] .cm-atom { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .box-html .cm-atom { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-def { - color: #a13000; -} -.ne-codeblock[theme='Github Light'] .cm-variable { - color: #232930; -} -.ne-codeblock[theme='Github Light'] .cm-variable-2 { - color: #a13000; -} -.ne-codeblock[theme='Github Light'] .cm-variable-3 { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-header { - color: #232930; -} -.ne-codeblock[theme='Github Light'] .cm-number { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-property { - color: #8c48e7; -} -.ne-codeblock[theme='Github Light'] .cm-attribute { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-builtin { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-qualifier { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-operator { - color: #e10023; -} -.ne-codeblock[theme='Github Light'] .cm-meta { - color: #004fb4; -} -.ne-codeblock[theme='Github Light'] .cm-string { - color: #002f6d; -} -.ne-codeblock[theme='Github Light'] .cm-string-2 { - color: #7d5959; -} -.ne-codeblock[theme='Github Light'] .cm-tag { - color: #006520; -} -.ne-codeblock[theme='Github Light'] .box-css .cm-tag { - color: #006520; -} -.ne-codeblock[theme='Github Light'] .cm-tag.cm-bracket { - color: #232930; -} -.ne-codeblock[theme='Github Light'] .cm-variable.cm-callee { - color: #3ef231; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-linenumber { - color: #8e9499; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-guttermarker-subtle { - color: #ffffff; -} -.ne-codeblock[theme='Github Light'] .cm-comment { - color: #6c7782; -} -.ne-codeblock[theme='Github Light'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='Github Light'] .ne-embed-nav { - background: #f8f8f8; - border-bottom: 1px solid #f0f0f0; -} -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #8c8c8c; -} -.ne-codeblock[theme='Github Light'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='Github Light'] .ne-embed-nav .ne-codeblock-mode-name { - color: #bfbfbf; -} -.ne-codeblock[theme='Github Light'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='Github Light'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Github Light'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='Github Light'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='Github Light'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='Github Light'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #eeeeee; - border-color: transparent; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-gutter-wrapper, -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-gutters, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-inner, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-content { - background: #fdfdfd; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-cursor { - border-left-color: #000000; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror pre, -.ne-codeblock[theme='Bracket Lights Pro'] .box pre, -.ne-codeblock[theme='Bracket Lights Pro'] .editor .top-boxes pre, -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-gutter-wrapper pre { - color: #363636; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-keyword { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-atom { - color: #f78000; -} -.ne-codeblock[theme='Bracket Lights Pro'] .box-html .cm-atom { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-def { - color: #9020cc; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-variable { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-variable-2 { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-variable-3 { - color: #535353; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-header { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-number { - color: #668800; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-property { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-attribute { - color: #668800; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-builtin { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-qualifier { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-operator { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-meta { - color: #353535; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-string { - color: #f78000; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-string-2 { - color: #7d5959; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-tag { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .box-css .cm-tag { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-tag.cm-bracket { - color: #2869c9; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-variable.cm-callee { - color: #3ef231; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-linenumber { - color: #bfbfbf; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-guttermarker-subtle { - color: #ffffff; -} -.ne-codeblock[theme='Bracket Lights Pro'] .cm-comment { - color: #00a961; -} -.ne-codeblock[theme='Bracket Lights Pro'] .CodeMirror-gutters { - border-color: transparent; -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav { - background: #f8f8f8; - border-bottom: 1px solid #f0f0f0; -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ant-select-selection-item, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .CodeMirror-code-name, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-codeblock-copy, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-icon-card-codeblock-more, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-codeblock-more-button, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-codeblock-collapsed-button, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input { - color: #8c8c8c; -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .CodeMirror-code-name.code-name-placeholder { - color: #bfbfbf; -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-embed-nav .ne-codeblock-mode-name { - color: rgba(140, 140, 140, 0.5); -} -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-copy:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-more-button:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-collapsed-button:hover, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-codeblock-more-button.ne-codeblock-more-active, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-lang-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector, -.ne-codeblock[theme='Bracket Lights Pro'] .ne-lang-select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { - background-color: #eeeeee; - border-color: transparent; -} -[data-card-name='codeblock'] { - height: auto !important; -} -.ne-engine .ne-codeblock { - padding-top: 5px; - padding-bottom: 0; -} -.ne-codeblock { - position: relative; - overflow: visible; - text-indent: 0; - background: #fafafa; - padding-top: 5px; - padding-bottom: 0; -} -.ne-codeblock .ne-codeblock-content.ne-code, -.ne-codeblock .ne-codeblock-inner { - padding-top: 5px; -} -.ne-codeblock.hide-toolbar .ne-codeblock-content.ne-code, -.ne-codeblock.hide-toolbar .ne-codeblock-inner { - padding: unset; -} -.ne-codeblock.ne-codeblock-collapsed { - min-height: 38px; - padding-bottom: 0; -} -.ne-codeblock.ne-codeblock-collapsed .ne-embed-nav { - border-bottom: none; -} -.ne-codeblock .ne-embed-nav { - padding: 0 11px; - height: 38px; -} -.ne-codeblock .ne-embed-nav .start-nav { - height: 38px; - line-height: 38px; -} -.ne-codeblock .CodeMirror-code-name { - flex: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} -.ne-codeblock .CodeMirror-code-name .ant-input { - margin: 0 4px; - max-width: 200px; - user-select: all; - color: var(--lakex-editor-text-color); -} -.ne-codeblock .CodeMirror-code-name > .normal { - padding-left: 14px; -} -.ne-editor .ne-codeblock .CodeMirror-code-name > .normal { - cursor: pointer; -} -.ne-codeblock-content { - position: relative; - z-index: 2; - background: #fafafa; -} -.ne-codeblock-more-menu.ant-menu-vertical > .ant-menu-submenu { - color: #585a5a; -} -.ne-codeblock-more-menu.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title { - height: 32px; - line-height: 36px; - color: #585a5a; -} -.ne-codeblock-more-menu.ant-menu-vertical > .ant-menu-submenu .ant-menu-submenu-arrow { - color: #585a5a; - margin-top: 1px; -} -.ne-codeblock-more-submenu { - width: 97px; -} -.ne-codeblock-more-submenu .ant-menu-vertical.ant-menu-sub, -.ne-codeblock-more-submenu .ant-menu-vertical-left.ant-menu-sub, -.ne-codeblock-more-submenu .ant-menu-vertical-right.ant-menu-sub { - width: 100%; - max-width: 100%; - min-width: 100%; -} -.ne-codeblock-more-submenu .ant-menu-item-only-child { - padding-left: 40px; - color: #585a5a; - background-color: transparent; -} -.ne-codeblock-more-submenu .ant-menu-item-only-child:hover { - background-color: rgba(245, 245, 245, 0.17); -} -.ne-codeblock-more-submenu .ant-menu-item-only-child .ant-menu-title-content { - color: #585a5a; -} -.ne-codeblock-more-submenu .ant-menu-item-only-child.active { - background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2716%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27%3E%3Cdefs%3E%3Cpath id=%27a%27 d=%27M0 0h16v16H0z%27/%3E%3C/defs%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cmask id=%27b%27 fill=%27%23fff%27%3E%3Cuse xlink:href=%27%23a%27/%3E%3C/mask%3E%3Cpath stroke=%27%23595959%27 stroke-width=%271.375%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 mask=%27url%28%23b%29%27 d=%27m1.688 7.861 4.302 4.264 8.323-8.25%27/%3E%3C/g%3E%3C/svg%3E"); - background-repeat: no-repeat; - background-position: 12px center; - transition: none; -} -.ne-codeblock-overlay { - /* Popover 最小高度以及默认边距都太大了,不符合当前场景 */ -} -.ne-codeblock-overlay.ant-popover .ant-popover-content { - min-width: 156px; -} -.ne-codeblock-overlay .ant-popover-inner-content { - padding: 1px 0; -} -.ne-codeblock-overlay .ant-menu.ant-menu-vertical .ant-menu-item.ne-codeblock-more-item { - margin-top: 4px; - padding: 16px; - height: 36px; - color: var(--lakex-editor-color-grey8); - font-size: 14px; - line-height: 20px; - display: flex; - justify-content: space-between; - align-items: center; - cursor: default !important; -} -.ne-codeblock-overlay .ant-menu.ant-menu-vertical .ant-menu-item.ne-codeblock-more-item:hover { - background: none !important; -} -.ne-codeblock-overlay .ne-codeblock-more-item-switch { - margin-left: 40px; -} -.ne-codeblock-height-limit .cm-scroller { - max-height: 3936px; -} -@media print { - .ne-codeblock-height-limit .CodeMirror-scroll { - max-height: 11808px; - } -} -.CodeMirror-scroll { - min-height: 50px; -} -.ne-codeblock-collapsed-button, -.ne-codeblock-more-button { - height: 24px; - width: 24px; - border-radius: 4px; - display: flex; - justify-content: center; - align-items: center; - transition: all 0.3s; - cursor: pointer; -} -.ne-codeblock-collapsed-button:hover, -.ne-codeblock-more-button:hover, -.ne-codeblock-collapsed-button.ne-codeblock-more-active, -.ne-codeblock-more-button.ne-codeblock-more-active { - background-color: var(--lakex-editor-color-grey4); -} -.CodeMirror pre.CodeMirror-line, -.CodeMirror pre.CodeMirror-line-like { - word-break: normal; -} -.ne-code-ai-popup .ant-select-item-option-selected { - display: none; -} -.ne-code-popup .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { - background-color: transparent; - font-weight: normal; -} -.ne-code-popup .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content { - background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2716%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27%3E%3Cdefs%3E%3Cpath id=%27a%27 d=%27M0 0h16v16H0z%27/%3E%3C/defs%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cmask id=%27b%27 fill=%27%23fff%27%3E%3Cuse xlink:href=%27%23a%27/%3E%3C/mask%3E%3Cpath stroke=%27%23595959%27 stroke-width=%271.375%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 mask=%27url%28%23b%29%27 d=%27m1.688 7.861 4.302 4.264 8.323-8.25%27/%3E%3C/g%3E%3C/svg%3E"); - background-repeat: no-repeat; - background-position: 0 center; -} -.ne-code-popup .ant-select-item-option-content { - padding-left: 24px; -} -.ne-code-popup.ne-code-popup-default, -.ne-code-ai-popup.ne-code-popup-default, -.ne-code-popup.ne-code-popup-GithubLight, -.ne-code-ai-popup.ne-code-popup-GithubLight, -.ne-code-popup.ne-code-popup-BracketLightsPro, -.ne-code-ai-popup.ne-code-popup-BracketLightsPro { - background-color: #fff !important; - border: none; - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05); -} -.ne-code-popup.ne-code-popup-default .ant-select-item, -.ne-code-ai-popup.ne-code-popup-default .ant-select-item, -.ne-code-popup.ne-code-popup-GithubLight .ant-select-item, -.ne-code-ai-popup.ne-code-popup-GithubLight .ant-select-item, -.ne-code-popup.ne-code-popup-BracketLightsPro .ant-select-item, -.ne-code-ai-popup.ne-code-popup-BracketLightsPro .ant-select-item { - color: #585a5a; -} -.ne-code-popup.ne-code-popup-OneDarkPro, -.ne-code-ai-popup.ne-code-popup-OneDarkPro, -.ne-code-popup.ne-code-popup-NightOwl, -.ne-code-ai-popup.ne-code-popup-NightOwl, -.ne-code-popup.ne-code-popup-Darcula, -.ne-code-ai-popup.ne-code-popup-Darcula { - color: rgba(255, 255, 255, 0.88); - background-color: #1f1f1f !important; - border: 1px solid rgba(255, 255, 255, 0.12) !important; - box-shadow: 0 1px 4px -2px var(--lakex-editor-color-black-f12), 0 2px 8px 0 var(--lakex-editor-color-black-f08), 0 8px 16px 4px var(--lakex-editor-color-black-f05); -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-popup.ne-code-popup-Darcula .ant-select-item-option-active:not(.ant-select-item-option-disabled), -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item-option-active:not(.ant-select-item-option-disabled) { - background: none; -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-popup.ne-code-popup-Darcula .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content { - background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2716%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27%3E%3Cdefs%3E%3Cpath id=%27a%27 d=%27M0 0h16v16H0z%27/%3E%3C/defs%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cmask id=%27b%27 fill=%27%23fff%27%3E%3Cuse xlink:href=%27%23a%27/%3E%3C/mask%3E%3Cpath stroke=%27rgba%28255%2C%20255%2C%20255%2C%200.88%29%27 stroke-width=%271.375%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 mask=%27url%28%23b%29%27 d=%27m1.688 7.861 4.302 4.264 8.323-8.25%27/%3E%3C/g%3E%3C/svg%3E"); -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-popup.ne-code-popup-Darcula .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content, -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content { - background-image: url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2716%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27%3E%3Cdefs%3E%3Cpath id=%27a%27 d=%27M0 0h16v16H0z%27/%3E%3C/defs%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cmask id=%27b%27 fill=%27%23fff%27%3E%3Cuse xlink:href=%27%23a%27/%3E%3C/mask%3E%3Cpath stroke=%27rgba%28255%2C%20255%2C%20255%2C%200.88%29%27 stroke-width=%271.375%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 mask=%27url%28%23b%29%27 d=%27m1.688 7.861 4.302 4.264 8.323-8.25%27/%3E%3C/g%3E%3C/svg%3E"); -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item, -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item, -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item, -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item, -.ne-code-popup.ne-code-popup-Darcula .ant-select-item, -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item { - color: rgba(255, 255, 255, 0.88); -} -.ne-code-popup.ne-code-popup-OneDarkPro .ant-select-item:hover, -.ne-code-ai-popup.ne-code-popup-OneDarkPro .ant-select-item:hover, -.ne-code-popup.ne-code-popup-NightOwl .ant-select-item:hover, -.ne-code-ai-popup.ne-code-popup-NightOwl .ant-select-item:hover, -.ne-code-popup.ne-code-popup-Darcula .ant-select-item:hover, -.ne-code-ai-popup.ne-code-popup-Darcula .ant-select-item:hover { - background-color: rgba(255, 255, 255, 0.12); -} -.ne-codeblock-loading { - color: #b1b1b1; - width: 50px; - height: 50px; - display: flex; - justify-content: center; - align-items: center; - position: absolute; - bottom: 0; - left: 50%; - margin-left: -25px; -} -.ne-viewer .ne-viewer-body ne-card[data-card-name='codeblock'] .cm-scroller { - padding-bottom: 5px; -} -.ne-viewer .ne-viewer-body ne-card[data-card-name='codeblock'] .ne-codeblock-inner ::selection { - background: rgba(80, 153, 236, 0.5) !important; -} -.ne-viewer .ne-viewer-body ne-card[data-card-name='codeblock'] .ne-codeblock-inner .cm-selectionBackground { - background: transparent !important; -} -.ne-code-viewer { - width: 100%; - height: auto !important; - background: #fafafa; - position: relative; -} -.ne-code-viewer:hover .ne-codeblock-copy-icon { - display: block; -} -.ne-code-viewer .ne-codeblock-copy-icon { - position: absolute; - right: 5px; - top: 5px; - height: 24px; - width: 24px; - z-index: 3; - cursor: pointer; - display: none; -} -.ne-code-viewer .ne-codeblock-copy-icon:hover { - opacity: 0.9; -} -.ne-code-viewer .ne-codeblock-inner { - position: relative; - z-index: 2; - background: #fafafa; -} -.ne-code-viewer .ne-codeblock-inner .cm-lineNumbers .cm-gutterElement { - padding-left: 15px; -} -.ne-code-viewer .ne-codeblock-height-limit .CodeMirror-scroll { - max-height: 12600px; -} -.ne-code-viewer .CodeMirror-scroll { - min-height: 50px; -} -.ne-code-viewer .CodeMirror-linenumber { - user-select: none; -} -.ne-code-viewer .ne-codeblock-mode-name { - padding-right: 6px; - font-size: 14px; - color: #8a8f8d; -} -.ne-code-viewer .CodeMirror-cursors { - display: none !important; -} -.ne-code-viewer .ne-codeblock-copy { - padding: 0 6px; - font-size: 14px; - line-height: 24px; - height: 24px; - display: flex; - justify-content: space-between; - align-items: center; - cursor: pointer; -} -.ne-code-viewer .ne-codeblock-copy .ne-icon.ne-icon-copy { - margin-right: 4px; -} -.ne-code-viewer .ne-codeblock-copy.small-mode .ne-icon.ne-icon-copy { - margin-right: 0; -} -.ne-code-viewer .ne-codeblock-copy:hover { - background: var(--lakex-editor-color-grey4); - border-radius: 4px; -} - -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] { - font-size: inherit; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] .ne-embed-nav { - padding-right: 1.5rem; - line-height: 1.3rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] .ne-codeblock-mode-name { - font-size: 1rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] .ne-codeblock-copy { - font-size: 1rem; - padding: 0 0.2em; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] .ne-codeblock-copy:hover { - border-radius: 0.2rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] .ne-codeblock-copy .ne-icon { - font-size: 1rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] pre { - font-size: 1.5rem; - line-height: 2rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] .CodeMirror-linenumber { - font-size: 1.2rem; - line-height: 2rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='codeblock'] .cm-scroller { - font-size: inherit; -} - -.ne-v-codeblock-hold { - position: absolute; - z-index: -1; - width: 0; - height: 0; - overflow: hidden; -} -.ne-ui-max-view-node.ne-max[data-card-name="codeblock"] .ne-card-container div.ne-codeblock.ne-code-viewer { - height: 100% !important; - max-height: 100%; -} -.ne-ui-max-view-node.ne-max[data-card-name="codeblock"] .ne-card-container .hide-toolbar > .ne-codeblock-inner { - height: 100%; -} -.ne-ui-max-view-node.ne-max[data-card-name="codeblock"] .ne-card-container .ne-codeblock-inner { - height: calc(100% - 38px); -} -.ne-ui-max-view-node.ne-max[data-card-name="codeblock"] .ne-card-container .cm-editor, -.ne-ui-max-view-node.ne-max[data-card-name="codeblock"] .ne-card-container .cm-scroller { - height: 100% !important; -} - -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='mention'] { - font-size: 1.8rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='mention'] .ne-ui-mention-link { - font-size: inherit; -} - -.ne-viewer ne-columns { - user-select: initial; - padding: 0 1px; -} -.ne-viewer ne-columns ne-column { - margin-right: 18px; -} -.ne-viewer ne-columns ne-column:last-child { - margin-right: 0; -} -/* 移动端的样式 */ -.ne-viewer ne-columns.ne-columns-h5 { - flex-direction: column; - padding: 0; -} -.ne-viewer ne-columns.ne-columns-h5 ne-column { - margin: 0; -} -.ne-viewer ne-columns.ne-columns-h5 ne-column ne-column-controller { - display: none; -} -.ne-viewer ne-columns.ne-columns-h5 .columns-start-add, -.ne-viewer ne-columns.ne-columns-h5 .columns-end-add { - display: none; -} - -.ne-viewer[data-viewer-mode='simple'] ne-card[data-card-name='thirdparty'] .ne-card-container[data-alias] { - height: auto; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-viewer-toc-sidebar { - position: fixed; - top: 60px; - bottom: 0; - right: 0; - width: fit-content; - background: var(--lakex-editor-background-primary); - display: none; - z-index: 412; -} -.ne-viewer-toc-sidebar .ne-toc-view .ne-toc-pin .ne-toc-pin-wrap, -.ne-viewer-toc-sidebar .ne-toc-view .ne-toc-pin .ne-toc-fold-wrap { - opacity: 0; -} -.ne-viewer-toc-sidebar .ne-toc-view:hover .ne-toc-pin-wrap, -.ne-viewer-toc-sidebar .ne-toc-view:hover .ne-toc-fold-wrap { - opacity: 1; -} -.ne-viewer-toc-sidebar .ne-toc-view .ne-toc-placeholder { - display: none; -} -@-moz-document url-prefix() { - .ne-viewer-toc-sidebar { - background: var(--lakex-editor-background-primary); - } -} -.ne-viewer-toc-visible[ne-viewer-toc-outside='true'] .ne-viewer-toc-sidebar { - display: none; -} -.ne-viewer-toc-visible .ne-viewer-toc-sidebar { - display: flex; - justify-content: flex-end; - align-items: flex-start; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -.ne-card-calendar-schedule-panel-title { - word-break: break-word; - font-size: 18px; - color: var(--lakex-editor-text-body); - max-height: 86px; - overflow-y: auto; -} -.ne-card-calendar-schedule-panel-date, -.ne-card-calendar-schedule-panel-desc { - font-size: 12px; - color: var(--lakex-editor-text-body); -} -.ne-card-calendar-schedule-panel-date { - height: 20px; - display: flex; - align-items: center; -} -.ne-card-calendar-schedule-panel-date-split { - padding: 0 7px; -} -.ne-card-calendar-schedule-panel-desc { - max-height: 74px; - overflow-y: auto; - white-space: pre-wrap; - word-break: break-all; -} -.ne-card-calendar-schedule-panel-icon-calendar-v { - margin-top: 1px; -} -.ne-card-calendar-schedule-panel-icon-desc-v { - margin-top: 1px; -} -.ne-card-calendar-schedule-panel-margin-top { - margin-top: 6px; -} -.ne-card-calendar-schedule-panel-color { - width: 8px; - height: 8px; - margin-top: 9px; -} - -.ne-viewer ne-card[data-card-name='calendar'] { - user-select: none; -} - -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell { - min-height: 10rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-content-box-row-cell-date-text { - font-size: 1.6rem; - width: 2.2rem; - height: 2.2rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-content-week-names-item { - font-size: 1.6rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-date, -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-prev .ne-icon, -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-header-month-selector-next .ne-icon { - font-size: 2.2rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-panel-title { - font-size: 2.2rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-panel-date, -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-panel-desc { - font-size: 1.6rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-panel-color { - height: 0.7rem; - width: 0.7rem; -} -.ne-viewer[data-viewer-mode='present'] ne-card[data-card-name='calendar'] .ne-card-calendar-schedule-panel-icon { - height: 1.4rem; - width: 1.4rem; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -ne-card[data-card-name='vote'] .ne-card-vote-viewer { - display: flex; - flex-direction: column; - position: relative; - min-height: 200px; - padding: 24px; - background-color: var(--lakex-editor-background-secondary); -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-error-tip { - flex: 1; - display: flex; - justify-content: center; - align-items: center; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content { - flex: 1; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-header { - display: flex; - margin-bottom: 24px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-header-type { - flex: 0 0 auto; - display: flex; - justify-content: center; - align-items: center; - padding: 0 10px; - height: 24px; - background-color: var(--lakex-editor-color-blue1); - color: var(--lakex-editor-text-color); - border-radius: 4px; - margin-right: 12px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-header-title { - flex: 1; - font-size: 16px; - color: var(--lakex-editor-text-color); - line-height: 24px; - font-weight: bold; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-footer { - display: flex; - margin-top: 16px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-footer-member-count, -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-footer-deadline { - font-size: 14px; - color: var(--lakex-editor-text-caption); - margin-right: 12px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-footer-re-vote { - cursor: pointer; - font-size: 14px; - color: var(--lakex-editor-text-body); -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-footer-view-data { - line-height: 33px; - color: var(--lakex-editor-text-caption); - padding: 0 10px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-content-footer-view-data-link { - margin-left: 10px; - color: var(--link-color); - cursor: pointer; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-vote-item { - display: flex; - align-items: center; - padding: 9px 16px; - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 2px; - background-color: var(--lakex-editor-background-primary); - margin-bottom: 8px; - cursor: pointer; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-vote-item-op { - margin-right: 16px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-vote-item-text { - font-size: 14px; - color: var(--lakex-editor-text-body); - line-height: 22px; - word-break: break-word; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-voting-mask { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - display: flex; - align-items: center; - justify-content: center; - color: var(--lakex-editor-text-caption); - background: var(--lakex-editor-color-white-f60); -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-voting-mask .ne-icon { - margin-right: 8px; - color: var(--lakex-editor-text-caption); -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-query-detail-loading { - flex: 1; - display: flex; - align-items: center; - justify-content: center; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-query-detail-loading .ne-icon { - margin-right: 8px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item { - display: flex; - flex-direction: column; - padding: 8px 16px; - border: 1px solid var(--lakex-editor-border-primary); - border-radius: 2px; - background-color: var(--lakex-editor-background-primary); - margin-bottom: 8px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item[data-voted='true'] { - color: var(--lakex-editor-text-link); -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item[data-voted='true'] .ne-card-vote-viewer-result-item-line-length { - background-color: var(--lakex-editor-color-blue6); -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item-info { - display: flex; - flex-direction: row; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item-info-name { - flex: 1; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item-info-data { - flex: 0 0 auto; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item-info-data-detail span + span { - margin-left: 12px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item-info-data-members { - color: var(--lakex-editor-text-body); - max-width: 400px; - max-height: 300px; - overflow-y: auto; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item-line { - margin-top: 8px; - height: 8px; - background-color: var(--lakex-editor-background-tertiary); - border-radius: 4px; -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-item-line-length { - height: 8px; - border-radius: 4px; - background-color: var(--lakex-editor-color-blue2); -} -ne-card[data-card-name='vote'] .ne-card-vote-viewer-result-popover-overlay .ant-popover-content { - min-width: auto; -} -[data-kumuhana='pouli'] ne-card[data-card-name='vote'] .ne-card-vote-viewer-vote-item { - background-color: var(--lakex-editor-color-grey3); -} - -.ne-viewer ne-card[data-card-name='textDiagram'] .ne-card-container { - overflow: auto; - min-height: 100px; -} -.ne-viewer ne-card[data-card-name='textDiagram'] .ne-text-diagram-viewer { - display: flex; -} -.ne-viewer ne-card[data-card-name='textDiagram'] img { - margin: 0 auto; - max-width: 100%; - background-color: #ffffff; - object-fit: contain; -} - -/** - * 通过.getCSSValue("editor.background")[] 会获得 var(--lakex-editor-background)的返回 - */ -/** - * 需要跟color-registry.ts同步 - */ -/** - * colors - */ -/** 只提供变量 */ - diff --git a/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/doc.umd.js b/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/doc.umd.js deleted file mode 100644 index 572755b8..00000000 --- a/src/Parts/H.LowCode.Components.Extension/wwwroot/LakexEditor-1.24.0/doc.umd.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see doc.umd.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.Doc=t(require("React"),require("ReactDOM")):e.Doc=t(e.React,e.ReactDOM)}(self,((e,t)=>(()=>{var n={748:(e,t,n)=>{"use strict";var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:u},s)},d),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},4657:(e,t,n)=>{"use strict";var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:u},s)},d),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},7965:(e,t,n)=>{"use strict";var r=n(6426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,u,c,s=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),u.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(l):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return s}},3473:(e,t,n)=>{var r=n(7043),o=n(5323);function i(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}n(1100),a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,a=t.onIgnoreAttr,l=t.safeAttrValue;return o(e,(function(e,t,o,u,c){var s=n[o],d=!1;if(!0===s?d=s:"function"==typeof s?d=s(u):s instanceof RegExp&&(d=s.test(u)),!0!==d&&(d=!1),u=l(o,u)){var f,h={position:t,sourcePosition:e,source:c,isWhite:d};return d?i(f=r(o,u,h))?o+":"+u:f:i(f=a(o,u,h))?void 0:f}}))},e.exports=a},7043:(e,t)=>{function n(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var r=/javascript\s*\:/gim;t.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return r.test(t)?"":t}},6018:(e,t,n)=>{var r=n(7043),o=n(3473);for(var i in(t=e.exports=function(e,t){return new o(t).process(e)}).FilterCSS=o,r)t[i]=r[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)},5323:(e,t,n)=>{var r=n(1100);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,i=0,a=0,l="";function u(){if(!o){var n=r.trim(e.slice(i,a)),u=n.indexOf(":");if(-1!==u){var c=r.trim(n.slice(0,u)),s=r.trim(n.slice(u+1));if(c){var d=t(i,l.length,c,s,n);d&&(l+=d+"; ")}}}i=a+1}for(;a{e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n=t?e:""+Array(t+1-r.length).join(n)+e},g={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var l=t.name;y[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},_=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},N=g;N.l=C,N.i=k,N.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function v(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(N.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return N},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return _(e)68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},s=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=s(e,!1)}],a:[o,function(e){this.afternoon=s(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,u=0;u-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,l=r.hours,u=r.minutes,c=r.seconds,s=r.milliseconds,d=r.zone,h=new Date,p=a||(o||i?1:h.getDate()),v=o||h.getFullYear(),m=0;o&&!i||(m=i>0?i-1:h.getMonth());var g=l||0,b=u||0,y=c||0,w=s||0;return d?new Date(Date.UTC(v,m,p,g,b,y,w+60*d.offset*1e3)):n?new Date(Date.UTC(v,m,p,g,b,y,w)):new Date(v,m,p,g,b,y,w)}catch(e){return new Date("")}}(t,l,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),s&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var h=l.length,p=1;p<=h;p+=1){a[1]=l[p-1];var v=n.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===h&&(this.$d=new Date(""))}else o.call(this,e)}}}()},7872:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),l="("===(o=o||"()")[0],u=")"===o[1];return(l?this.isAfter(i,r):!this.isBefore(i,r))&&(u?this.isBefore(a,r):!this.isAfter(a,r))||(l?this.isBefore(i,r):!this.isAfter(i,r))&&(u?this.isAfter(a,r):!this.isBefore(a,r))}}}()},8867:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},8906:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},7581:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()},1840:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),u=o(a[n]),c=l||u.map((function(e){return e.slice(0,r)}));if(!i)return c;var s=a.weekStart;return c.map((function(e,t){return c[(t+(s||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},u=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},3581:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},8134:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),u=this.diff(l,e,!0);return u<0?o(this).startOf("week").week():Math.ceil(u)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},8623:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},6986:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,i,a=null;function l(...e){if(!l.enabled)return;const r=l,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return l.namespace=e,l.useColors=t.useColors(),l.color=t.selectColor(e),l.extend=r,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(l),l}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},3806:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n";case l.Comment:return"\x3c!--"+e.data+"--\x3e";case l.CDATA:return function(e){return""}(e);case l.Script:case l.Style:case l.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&p.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1}))),!t.xmlMode&&v.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var o="<"+e.name,i=function(e,t){if(e)return Object.keys(e).map((function(n){var r,o,i=null!==(r=e[n])&&void 0!==r?r:"";return"foreign"===t.xmlMode&&(n=null!==(o=c.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==i?n+'="'+(!1!==t.decodeEntities?u.encodeXML(i):i.replace(/"/g,"""))+'"':n})).join(" ")}(e.attribs,t);return i&&(o+=" "+i),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(o+=" "),o+="/>"):(o+=">",e.children.length>0&&(o+=f(e.children,t)),!t.xmlMode&&d.has(e.name)||(o+="")),o}(e,t);case l.Text:return function(e,t){var n=e.data||"";return!1===t.decodeEntities||!t.xmlMode&&e.parent&&s.has(e.parent.name)||(n=u.encodeXML(n)),n}(e,t)}}t.default=f;var p=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),v=new Set(["svg","math"])},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),a=n(6957);o(n(6957),t);var l=/\s+/g,u={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=u),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:u,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===i.ElementType.Text)t?n.data=(n.data+e).replace(l," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(l," "));var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(i.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},6957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(u);t.NodeWithChildren=h;var p=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return o(t,e),t}(h);t.Document=p;var v=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o,r)||this;return i.name=t,i.attribs=n,i}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(h);function m(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function b(e){return e.type===a.ElementType.Text}function y(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function k(e){return e.type===a.ElementType.Root}function C(e,t){var n;if(void 0===t&&(t=!1),b(e))n=new s(e.data);else if(y(e))n=new d(e.data);else if(m(e)){var r=t?_(e.children):[],o=new v(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?_(e.children):[];var l=new h(a.ElementType.CDATA,r);r.forEach((function(e){return e.parent=l})),n=l}else if(k(e)){r=t?_(e.children):[];var u=new p(r);r.forEach((function(e){return e.parent=u})),e["x-mode"]&&(u["x-mode"]=e["x-mode"]),n=u}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new f(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return C(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var r=n(6037),o=n(3209);t.getFeed=function(e){var t=u(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,o.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:l(n)};s(r,"id","id",n),s(r,"title","title",n);var o=null===(t=u("link",n))||void 0===t?void 0:t.attribs.href;o&&(r.link=o);var i=c("summary",n)||c("content",n);i&&(r.description=i);var a=c("updated",n);return a&&(r.pubDate=new Date(a)),r}))};s(r,"id","id",n),s(r,"title","title",n);var i=null===(t=u("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i),s(r,"description","subtitle",n);var a=c("updated",n);return a&&(r.updated=new Date(a)),s(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=u("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,o.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:l(t)};s(n,"id","guid",t),s(n,"title","title",t),s(n,"link","link",t),s(n,"description","description",t);var r=c("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};s(i,"title","title",r),s(i,"link","link",r),s(i,"description","description",r);var a=c("lastBuildDate",r);return a&&(i.updated=new Date(a)),s(i,"author","managingEditor",r,!0),i}(t):null};var i=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function l(e){return(0,o.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,o=i;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var r=n(1141);function o(e,t){var n=[],o=[];if(e===t)return 0;for(var i=(0,r.hasChildren)(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(i=(0,r.hasChildren)(t)?t:t.parent;i;)o.unshift(i),i=i.parent;for(var a=Math.min(n.length,o.length),l=0;lc.indexOf(d)?u===t?20:4:u===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},t.compareDocumentPosition=o,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=o(e,t);return 2&n?-1:4&n?1:0})),e}},8888:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,o(n(6037),t),o(n(8938),t),o(n(3403),t),o(n(718),t),o(n(3209),t),o(n(5397),t),o(n(4437),t);var i=n(1141);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return i.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return i.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return i.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return i.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return i.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return i.hasChildren}})},3209:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var r=n(1141),o=n(718),i={tag_name:function(e){return"function"==typeof e?function(t){return(0,r.isTag)(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return(0,r.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,r.isText)(t)&&e(t.data)}:function(t){return(0,r.isText)(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return(0,r.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,r.isTag)(n)&&n.attribs[e]===t}}function l(e,t){return function(n){return e(n)||t(n)}}function u(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(i,t)?i[t](n):a(t,n)}));return 0===t.length?null:t.reduce(l)}t.testElement=function(e,t){var n=u(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=u(e);return i?(0,o.filter)(i,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,o.findOne)(a("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,o.filter)(i.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,o.filter)(i.tag_type(e),t,n,r)}},3403:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var o=t.parent=e.parent;if(o){var i=o.children;i[i.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,o=e.next;if(t.next=o,t.prev=e,e.next=t,t.parent=r,o){if(o.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(o),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var o=r.children;o.splice(o.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(1141);function o(e,t,n,i){for(var a=[],l=0,u=t;l0){var s=o(e,c.children,n,i);if(a.push.apply(a,s),(i-=s.length)<=0)break}}return a}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),o(e,t,n,r)},t.find=o,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,o){void 0===o&&(o=!0);for(var i=null,a=0;a0&&(i=e(t,l.children)))}return i},t.existsOne=function e(t,n){return n.some((function(n){return(0,r.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},t.findAll=function(e,t){for(var n,o,i=[],a=t.filter(r.isTag);o=a.shift();){var l=null===(n=o.children)||void 0===n?void 0:n.filter(r.isTag);l&&l.length>0&&a.unshift.apply(a,l),e(o)&&i.push(o)}return i}},6037:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var o=n(1141),i=r(n(3806)),a=n(5413);function l(e,t){return(0,i.default)(e,t)}t.getOuterHTML=l,t.getInnerHTML=function(e,t){return(0,o.hasChildren)(e)?e.children.map((function(e){return l(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,o.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,o.isCDATA)(t)?e(t.children):(0,o.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,o.hasChildren)(t)&&!(0,o.isComment)(t)?e(t.children):(0,o.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,o.hasChildren)(t)&&(t.type===a.ElementType.Tag||(0,o.isCDATA)(t))?e(t.children):(0,o.isText)(t)?t.data:""}},8938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(1141),o=[];function i(e){var t;return null!==(t=e.children)&&void 0!==t?t:o}function a(e){return e.parent||null}t.getChildren=i,t.getParent=a,t.getSiblings=function(e){var t=a(e);if(null!=t)return i(t);for(var n=[e],r=e.prev,o=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=o;)n.push(o),o=o.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t}},4772:e=>{"use strict";const t={en:{},useEn:()=>!1,transferFilter:e=>e,outputFilter:e=>e.join("")};e.exports=(e={})=>{const n={...t,...e};return(...e)=>((e,t={},n)=>{const{en:r,useEn:o,transferFilter:i}=n;o(n)&&(e=r[e]||e);let a=i(e,t);a=a.replace(/#\w*$/,"");const l=[],u=a;let c=0;return a.replace(/\{(\w*)\}/g,((e,n,r)=>{l.push(u.substring(c,r)),c=r+e.length;let o=n.trim();if(!o)return"";o.match(/^\d+$/)&&(o=parseInt(o,10));const i=t[o];return void 0===i?(l.push(e),e):(l.push(i),"")})),c65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in o.default&&(e=o.default[e]),i(e))}},1818:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var o=s(r(n(7178)).default),i=d(o);t.encodeXML=m(o);var a,l,u=s(r(n(4374)).default),c=d(u);function s(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function d(e){for(var t=[],n=[],r=0,o=Object.keys(e);r1?h(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var v=new RegExp(i.source+"|"+f.source,"g");function m(e){return function(t){return t.replace(v,(function(t){return e[t]||p(t)}))}}t.escape=function(e){return e.replace(v,p)},t.escapeUTF8=function(e){return e.replace(i,p)}},2730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var r=n(9878),o=n(1818);t.decode=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?o.encodeXML:o.encodeHTML)(e)};var i=n(1818);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return i.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return i.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var a=n(9878);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},228:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o{var r;!function(o,i,a,l){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],s=i.createElement("div"),d="function",f=Math.round,h=Math.abs,p=Date.now;function v(e,t,n){return setTimeout(C(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==l)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(e===l||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function R(e){return e.trim().split(/\s+/g)}function P(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]})):r.sort()),r}function A(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i1&&!n.firstMultiple?n.firstMultiple=re(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,u=a?a.center:i.center,c=t.center=oe(r);t.timeStamp=p(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=ue(u,c),t.distance=le(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};t.eventType!==H&&i.eventType!==z||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=ae(t.deltaX,t.deltaY);var s,d,f=ie(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=h(f.x)>h(f.y)?f.x:f.y,t.scale=a?(s=a.pointers,le((d=r)[0],d[1],ee)/le(s[0],s[1],ee)):1,t.rotation=a?function(e,t){return ue(t[1],t[0],ee)+ue(e[1],e[0],ee)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(t.eventType!=W&&(u>V||a.velocity===l)){var c=t.deltaX-a.deltaX,s=t.deltaY-a.deltaY,d=ie(u,c,s);r=d.x,o=d.y,n=h(d.x)>h(d.y)?d.x:d.y,i=ae(c,s),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var v=e.element;E(t.srcEvent.target,v)&&(v=t.srcEvent.target),t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function re(e){for(var t=[],n=0;n=h(t)?e<0?$:K:t<0?Y:G}function le(e,t,n){n||(n=Z);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function ue(e,t,n){n||(n=Z);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}te.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(I(this.element),this.evWin,this.domHandler)}};var ce={mousedown:H,mousemove:2,mouseup:z},se="mousedown",de="mousemove mouseup";function fe(){this.evEl=se,this.evWin=de,this.pressed=!1,te.apply(this,arguments)}k(fe,te,{handler:function(e){var t=ce[e.type];t&H&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=z),this.pressed&&(t&z&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:U,srcEvent:e}))}});var he={pointerdown:H,pointermove:2,pointerup:z,pointercancel:W,pointerout:W},pe={2:L,3:"pen",4:U,5:"kinect"},ve="pointerdown",me="pointermove pointerup pointercancel";function ge(){this.evEl=ve,this.evWin=me,te.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(ve="MSPointerDown",me="MSPointerMove MSPointerUp MSPointerCancel"),k(ge,te,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=he[r],i=pe[e.pointerType]||e.pointerType,a=i==L,l=P(t,e.pointerId,"pointerId");o&H&&(0===e.button||a)?l<0&&(t.push(e),l=t.length-1):o&(z|W)&&(n=!0),l<0||(t[l]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(l,1))}});var be={touchstart:H,touchmove:2,touchend:z,touchcancel:W};function ye(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,te.apply(this,arguments)}function we(e,t){var n=S(e.touches),r=S(e.changedTouches);return t&(z|W)&&(n=T(n.concat(r),"identifier",!0)),[n,r]}k(ye,te,{handler:function(e){var t=be[e.type];if(t===H&&(this.started=!0),this.started){var n=we.call(this,e,t);t&(z|W)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:L,srcEvent:e})}}});var ke={touchstart:H,touchmove:2,touchend:z,touchcancel:W},Ce="touchstart touchmove touchend touchcancel";function _e(){this.evTarget=Ce,this.targetIds={},te.apply(this,arguments)}function Ne(e,t){var n=S(e.touches),r=this.targetIds;if(t&(2|H)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=S(e.changedTouches),l=[],u=this.target;if(i=n.filter((function(e){return E(e.target,u)})),t===H)for(o=0;o-1&&r.splice(e,1)}),Oe)}}function Re(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ze(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ze(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ve},canEmit:function(){for(var e=0;et.threshold&&o&t.direction},attrTest:function(e){return $e.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=We(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),k(Ye,$e,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ie]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),k(Ge,He,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ae]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||e.eventType&(z|W)&&!o)this.reset();else if(e.eventType&H)this.reset(),this._timer=v((function(){this.state=8,this.tryEmit()}),t.time,this);else if(e.eventType&z)return 8;return Ve},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&z?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),k(Je,$e,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ie]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),k(Xe,$e,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:J|X,pointers:1},getTouchAction:function(){return Ke.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(J|X)?t=e.overallVelocity:n&J?t=e.overallVelocityX:n&X&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&e.eventType&z},emit:function(e){var t=We(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),k(Qe,He,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[je]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance0&&l[e].has(r=this.stack[this.stack.length-1]);)this.onclosetag(r);!this.options.xmlMode&&u.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):s.has(e)&&this.foreignContext.push(!1)),null===(n=(t=this.cbs).onopentagname)||void 0===n||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&u.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(c.has(e)||s.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&u.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null===(n=(t=this.cbs).onattribute)||void 0===n||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(d),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,r,o;this.updatePosition(4),null===(n=(t=this.cbs).oncomment)||void 0===n||n.call(t,e),null===(o=(r=this.cbs).oncommentend)||void 0===o||o.call(r)},e.prototype.oncdata=function(e){var t,n,r,o,i,a;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(t=this.cbs).oncdatastart)||void 0===n||n.call(t),null===(o=(r=this.cbs).ontext)||void 0===o||o.call(r,e),null===(a=(i=this.cbs).oncdataend)||void 0===a||a.call(i)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=f},7918:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(5096)),i=r(n(4374)),a=r(n(1554)),l=r(n(7178));function u(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function s(e,t,n){var r=e.toLowerCase();return e===r?function(e,o){o===r?e._state=t:(e._state=n,e._index--)}:function(o,i){i===r||i===e?o._state=t:(o._state=n,o._index--)}}function d(e,t){var n=e.toLowerCase();return function(r,o){o===n||o===e?r._state=t:(r._state=3,r._index--)}}var f=s("C",24,16),h=s("D",25,16),p=s("A",26,16),v=s("T",27,16),m=s("A",28,16),g=d("R",35),b=d("I",36),y=d("P",37),w=d("T",38),k=s("R",40,1),C=s("I",41,1),_=s("P",42,1),N=s("T",43,1),O=d("Y",45),x=d("L",46),E=d("E",47),D=s("Y",49,1),R=s("L",50,1),P=s("E",51,1),S=d("I",54),T=d("T",55),A=d("L",56),j=d("E",57),I=s("I",58,1),B=s("T",59,1),M=s("L",60,1),F=s("E",61,1),L=s("#",63,64),U=s("X",66,65),V=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(n=null==e?void 0:e.decodeEntities)||void 0===n||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return c(e)||this.xmlMode&&!u(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||u(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||u(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){u(e)||(">"===e?this._state=1:1!==this.special?4===this.special||"s"!==e&&"S"!==e?4!==this.special||"t"!==e&&"T"!==e?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||u(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:u(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):u(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||u(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):u(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):u(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){u(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||u(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||u(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?l.default:i.default),this.sectionStart+1=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(a.default,n))return this.emitPartial(a.default[n]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1"9")&&!c(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(a.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,n){var r=this.sectionStart+e;if(r!==this._index){var i=this.buffer.substring(r,this._index),a=parseInt(i,t);this.emitPartial(o.default(a)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index{var r=n(6110)(n(9325),"DataView");e.exports=r},1549:(e,t,n)=>{var r=n(2032),o=n(3862),i=n(6721),a=n(2749),l=n(5749);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(3702),o=n(80),i=n(4739),a=n(8655),l=n(1175);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(6110)(n(9325),"Map");e.exports=r},3661:(e,t,n)=>{var r=n(3040),o=n(7670),i=n(289),a=n(4509),l=n(2949);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(6110)(n(9325),"Promise");e.exports=r},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},8859:(e,t,n)=>{var r=n(3661),o=n(1380),i=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(79),o=n(1420),i=n(938),a=n(3605),l=n(9817),u=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=l,c.prototype.set=u,e.exports=c},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},1033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},3945:e=>{e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n{var r=n(6131);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},9905:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r{var r=n(8096),o=n(2428),i=n(6449),a=n(3656),l=n(361),u=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),s=!n&&o(e),d=!n&&!s&&a(e),f=!n&&!s&&!d&&u(e),h=n||s||d||f,p=h?r(e.length,String):[],v=p.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,v))||p.push(m);return p}},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n{e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return e.split("")}},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},7805:(e,t,n)=>{var r=n(3360),o=n(5288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},6547:(e,t,n)=>{var r=n(3360),o=n(5288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2429:(e,t,n)=>{var r=n(909);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},4733:(e,t,n)=>{var r=n(1791),o=n(5950);e.exports=function(e,t){return e&&r(t,o(t),e)}},3838:(e,t,n)=>{var r=n(1791),o=n(7241);e.exports=function(e,t){return e&&r(t,o(t),e)}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9999:(e,t,n)=>{var r=n(7217),o=n(3729),i=n(6547),a=n(4733),l=n(3838),u=n(3290),c=n(3007),s=n(2271),d=n(8948),f=n(2),h=n(3349),p=n(5861),v=n(6189),m=n(7199),g=n(5529),b=n(6449),y=n(3656),w=n(7730),k=n(3805),C=n(8440),_=n(5950),N=n(7241),O="[object Arguments]",x="[object Function]",E="[object Object]",D={};D[O]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[E]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[x]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,R,P,S,T){var A,j=1&n,I=2&n,B=4&n;if(R&&(A=S?R(t,P,S,T):R(t)),void 0!==A)return A;if(!k(t))return t;var M=b(t);if(M){if(A=v(t),!j)return c(t,A)}else{var F=p(t),L=F==x||"[object GeneratorFunction]"==F;if(y(t))return u(t,j);if(F==E||F==O||L&&!S){if(A=I||L?{}:g(t),!j)return I?d(t,l(A,t)):s(t,a(A,t))}else{if(!D[F])return S?t:{};A=m(t,F,j)}}T||(T=new r);var U=T.get(t);if(U)return U;T.set(t,A),C(t)?t.forEach((function(r){A.add(e(r,n,R,r,t,T))})):w(t)&&t.forEach((function(r,o){A.set(o,e(r,n,R,o,t,T))}));var V=M?void 0:(B?I?h:f:I?N:_)(t);return o(V||t,(function(r,o){V&&(r=t[o=r]),i(A,o,e(r,n,R,o,t,T))})),A}},9344:(e,t,n)=>{var r=n(3805),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},909:(e,t,n)=>{var r=n(641),o=n(8329)(r);e.exports=o},2523:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i{var r=n(4528),o=n(5891);e.exports=function e(t,n,i,a,l){var u=-1,c=t.length;for(i||(i=o),l||(l=[]);++u0&&i(s)?n>1?e(s,n-1,i,a,l):r(l,s):a||(l[l.length]=s)}return l}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},641:(e,t,n)=>{var r=n(6649),o=n(5950);e.exports=function(e,t){return e&&r(e,t,o)}},7422:(e,t,n)=>{var r=n(1769),o=n(7797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n{var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2552:(e,t,n)=>{var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},6131:(e,t,n)=>{var r=n(2523),o=n(5463),i=n(6959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},7534:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270:(e,t,n)=>{var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,l))}},7068:(e,t,n)=>{var r=n(7217),o=n(5911),i=n(1986),a=n(689),l=n(5861),u=n(6449),c=n(3656),s=n(7167),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,g){var b=u(e),y=u(t),w=b?f:l(e),k=y?f:l(t),C=(w=w==d?h:w)==h,_=(k=k==d?h:k)==h,N=w==k;if(N&&c(e)){if(!c(t))return!1;b=!0,C=!1}if(N&&!C)return g||(g=new r),b||s(e)?o(e,t,n,v,m,g):i(e,t,w,n,v,m,g);if(!(1&n)){var O=C&&p.call(e,"__wrapped__"),x=_&&p.call(t,"__wrapped__");if(O||x){var E=O?e.value():e,D=x?t.value():t;return g||(g=new r),m(E,D,n,v,g)}}return!!N&&(g||(g=new r),a(e,t,n,v,m,g))}},9172:(e,t,n)=>{var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},1799:(e,t,n)=>{var r=n(7217),o=n(270);e.exports=function(e,t,n,i){var a=n.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a{e.exports=function(e){return e!=e}},5083:(e,t,n)=>{var r=n(1882),o=n(7296),i=n(3805),a=n(7473),l=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,s=u.toString,d=c.hasOwnProperty,f=RegExp("^"+s.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:l).test(a(e))}},6038:(e,t,n)=>{var r=n(5861),o=n(346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},4901:(e,t,n)=>{var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},5389:(e,t,n)=>{var r=n(3663),o=n(7978),i=n(3488),a=n(6449),l=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},8984:(e,t,n)=>{var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2903:(e,t,n)=>{var r=n(3805),o=n(5527),i=n(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var l in e)("constructor"!=l||!t&&a.call(e,l))&&n.push(l);return n}},5128:(e,t,n)=>{var r=n(909),o=n(4894);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},3663:(e,t,n)=>{var r=n(1799),o=n(776),i=n(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},7978:(e,t,n)=>{var r=n(270),o=n(8156),i=n(631),a=n(8586),l=n(756),u=n(7197),c=n(7797);e.exports=function(e,t){return a(e)&&l(t)?u(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},5250:(e,t,n)=>{var r=n(7217),o=n(7805),i=n(6649),a=n(2824),l=n(3805),u=n(7241),c=n(4974);e.exports=function e(t,n,s,d,f){t!==n&&i(n,(function(i,u){if(f||(f=new r),l(i))a(t,n,u,s,e,d,f);else{var h=d?d(c(t,u),i,u+"",t,n,f):void 0;void 0===h&&(h=i),o(t,u,h)}}),u)}},2824:(e,t,n)=>{var r=n(7805),o=n(3290),i=n(1961),a=n(3007),l=n(5529),u=n(2428),c=n(6449),s=n(3693),d=n(3656),f=n(1882),h=n(3805),p=n(1331),v=n(7167),m=n(4974),g=n(9884);e.exports=function(e,t,n,b,y,w,k){var C=m(e,n),_=m(t,n),N=k.get(_);if(N)r(e,n,N);else{var O=w?w(C,_,n+"",e,t,k):void 0,x=void 0===O;if(x){var E=c(_),D=!E&&d(_),R=!E&&!D&&v(_);O=_,E||D||R?c(C)?O=C:s(C)?O=a(C):D?(x=!1,O=o(_,!0)):R?(x=!1,O=i(_,!0)):O=[]:p(_)||u(_)?(O=C,u(C)?O=g(C):h(C)&&!f(C)||(O=l(_))):x=!1}x&&(k.set(_,O),y(O,_,b,w,k),k.delete(_)),r(e,n,O)}}},6001:(e,t,n)=>{var r=n(7420),o=n(631);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},7420:(e,t,n)=>{var r=n(7422),o=n(3170),i=n(1769);e.exports=function(e,t,n){for(var a=-1,l=t.length,u={};++a{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255:(e,t,n)=>{var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},4552:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},9302:(e,t,n)=>{var r=n(3488),o=n(6757),i=n(2865);e.exports=function(e,t){return i(o(e,t,r),e+"")}},3170:(e,t,n)=>{var r=n(6547),o=n(1769),i=n(361),a=n(3805),l=n(7797);e.exports=function(e,t,n,u){if(!a(e))return e;for(var c=-1,s=(t=o(t,e)).length,d=s-1,f=e;null!=f&&++c{var r=n(7334),o=n(3243),i=n(3488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},5160:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{var r=n(1873),o=n(4932),i=n(6449),a=n(4394),l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4128:(e,t,n)=>{var r=n(1800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},5765:(e,t,n)=>{var r=n(8859),o=n(5325),i=n(9905),a=n(9219),l=n(4517),u=n(4247);e.exports=function(e,t,n){var c=-1,s=o,d=e.length,f=!0,h=[],p=h;if(n)f=!1,s=i;else if(d>=200){var v=t?null:l(e);if(v)return u(v);f=!1,s=a,p=new r}else p=t?[]:h;e:for(;++c{var r=n(1769),o=n(8090),i=n(8969),a=n(7797);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},9219:e=>{e.exports=function(e,t){return e.has(t)}},4066:(e,t,n)=>{var r=n(3488);e.exports=function(e){return"function"==typeof e?e:r}},1769:(e,t,n)=>{var r=n(6449),o=n(8586),i=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},8754:(e,t,n)=>{var r=n(5160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,l=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}},6169:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3736:(e,t,n)=>{var r=n(1873),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},3007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{var r=n(6547),o=n(3360);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var l=-1,u=t.length;++l{var r=n(1791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},8948:(e,t,n)=>{var r=n(1791),o=n(6375);e.exports=function(e,t){return r(e,o(e),t)}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},2e3:(e,t,n)=>{var r=n(3945),o=n(2429),i=n(5389),a=n(6449);e.exports=function(e,t){return function(n,l){var u=a(n)?r:o,c=t?t():{};return u(n,e,i(l,2),c)}}},999:(e,t,n)=>{var r=n(9302),o=n(6800);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&o(n[0],n[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++r{var r=n(4894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,l=Object(n);(t?a--:++a{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}},2507:(e,t,n)=>{var r=n(8754),o=n(9698),i=n(3912),a=n(3222);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,l=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return l[e]()+u}}},5539:(e,t,n)=>{var r=n(882),o=n(828),i=n(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},2006:(e,t,n)=>{var r=n(5389),o=n(4894),i=n(5950);e.exports=function(e){return function(t,n,a){var l=Object(t);if(!o(t)){var u=r(n,3);t=i(t),n=function(e){return u(l[e],e,l)}}var c=e(t,n,a);return c>-1?l[u?t[c]:c]:void 0}}},4517:(e,t,n)=>{var r=n(6545),o=n(3950),i=n(4247),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},3138:(e,t,n)=>{var r=n(1331);e.exports=function(e){return r(e)?void 0:e}},4647:(e,t,n)=>{var r=n(4552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},3243:(e,t,n)=>{var r=n(6110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5911:(e,t,n)=>{var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,a,l,u){var c=1&n,s=e.length,d=t.length;if(s!=d&&!(c&&d>s))return!1;var f=u.get(e),h=u.get(t);if(f&&h)return f==t&&h==e;var p=-1,v=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p{var r=n(1873),o=n(7828),i=n(5288),a=n(5911),l=n(317),u=n(4247),c=r?r.prototype:void 0,s=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=l;case"[object Set]":var p=1&r;if(h||(h=u),e.size!=t.size&&!p)return!1;var v=f.get(e);if(v)return v==t;r|=2,f.set(e,t);var m=a(h(e),h(t),r,c,d,f);return f.delete(e),m;case"[object Symbol]":if(s)return s.call(e)==s.call(t)}return!1}},689:(e,t,n)=>{var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,c=r(e),s=c.length;if(s!=r(t).length&&!u)return!1;for(var d=s;d--;){var f=c[d];if(!(u?f in t:o.call(t,f)))return!1}var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var v=!0;l.set(e,t),l.set(t,e);for(var m=u;++d{var r=n(5970),o=n(6757),i=n(2865);e.exports=function(e){return i(o(e,void 0,r),e+"")}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:(e,t,n)=>{var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},3349:(e,t,n)=>{var r=n(2199),o=n(6375),i=n(7241);e.exports=function(e){return r(e,i,o)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},776:(e,t,n)=>{var r=n(756),o=n(5950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},6110:(e,t,n)=>{var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},659:(e,t,n)=>{var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},4664:(e,t,n)=>{var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},6375:(e,t,n)=>{var r=n(4528),o=n(8879),i=n(4664),a=n(3345),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=l},5861:(e,t,n)=>{var r=n(5580),o=n(8223),i=n(2804),a=n(6545),l=n(8303),u=n(2552),c=n(7473),s="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",v=c(r),m=c(o),g=c(i),b=c(a),y=c(l),w=u;(r&&w(new r(new ArrayBuffer(1)))!=p||o&&w(new o)!=s||i&&w(i.resolve())!=d||a&&w(new a)!=f||l&&w(new l)!=h)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return p;case m:return s;case g:return d;case b:return f;case y:return h}return t}),e.exports=w},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9326:(e,t,n)=>{var r=n(1769),o=n(2428),i=n(6449),a=n(361),l=n(294),u=n(7797);e.exports=function(e,t,n){for(var c=-1,s=(t=r(t,e)).length,d=!1;++c{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},5434:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},6189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},7199:(e,t,n)=>{var r=n(9653),o=n(6169),i=n(3201),a=n(3736),l=n(1961);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},5529:(e,t,n)=>{var r=n(9344),o=n(8879),i=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},5891:(e,t,n)=>{var r=n(1873),o=n(2428),i=n(6449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{var r=n(5288),o=n(4894),i=n(361),a=n(3805);e.exports=function(e,t,n){if(!a(n))return!1;var l=typeof t;return!!("number"==l?o(n)&&i(t,n.length):"string"==l&&t in n)&&r(n[t],e)}},8586:(e,t,n)=>{var r=n(6449),o=n(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,n)=>{var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},756:(e,t,n)=>{var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6757:(e,t,n)=>{var r=n(1033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),u=Array(l);++a{var r=n(7422),o=n(5160);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},9325:(e,t,n)=>{var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},4974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},2865:(e,t,n)=>{var r=n(9570),o=n(1811)(r);e.exports=o},1811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,n)=>{var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},6959:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r{var r=n(1074),o=n(9698),i=n(2054);e.exports=function(e){return o(e)?i(e):r(e)}},1802:(e,t,n)=>{var r=n(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},2054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",s=c+u+"(?:\\u200d(?:"+[i,a,l].join("|")+")"+c+u+")*",d="(?:"+[i+r+"?",r,a,l,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+s,"g");e.exports=function(e){return e.match(f)||[]}},2225:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",l="\\d+",u="["+n+"]",c="["+r+"]",s="[^"+t+i+l+n+r+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+o+"]",p="(?:"+c+"|"+s+")",v="(?:"+h+"|"+s+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",g="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",w=y+b+"(?:\\u200d(?:"+["[^"+t+"]",d,f].join("|")+")"+y+b+")*",k="(?:"+[u,d,f].join("|")+")"+w,C=RegExp([h+"?"+c+"+"+m+"(?="+[a,h,"$"].join("|")+")",v+"+"+g+"(?="+[a,h+p,"$"].join("|")+")",h+"?"+p+"+"+m,h+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l,k].join("|"),"g");e.exports=function(e){return e.match(C)||[]}},4058:(e,t,n)=>{var r=n(4792),o=n(5539)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=o},4792:(e,t,n)=>{var r=n(3222),o=n(5808);e.exports=function(e){return o(r(e).toLowerCase())}},8055:(e,t,n)=>{var r=n(9999);e.exports=function(e){return r(e,5)}},7334:e=>{e.exports=function(e){return function(){return e}}},8221:(e,t,n)=>{var r=n(3805),o=n(124),i=n(9374),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,c,s,d,f,h,p=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=u,r=c;return u=c=void 0,p=t,d=e.apply(r,n)}function y(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-p>=s}function w(){var e=o();if(y(e))return k(e);f=setTimeout(w,function(e){var n=t-(e-h);return m?l(n,s-(e-p)):n}(e))}function k(e){return f=void 0,g&&u?b(e):(u=c=void 0,d)}function C(){var e=o(),n=y(e);if(u=arguments,c=this,h=e,n){if(void 0===f)return function(e){return p=e,f=setTimeout(w,t),v?b(e):d}(h);if(m)return clearTimeout(f),f=setTimeout(w,t),b(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(v=!!n.leading,s=(m="maxWait"in n)?a(i(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g),C.cancel=function(){void 0!==f&&clearTimeout(f),p=0,u=h=c=f=void 0},C.flush=function(){return void 0===f?d:k(o())},C}},828:(e,t,n)=>{var r=n(4647),o=n(3222),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},681:(e,t,n)=>{var r=n(2006)(n(4469));e.exports=r},4469:(e,t,n)=>{var r=n(2523),o=n(5389),i=n(1489),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var c=u-1;return void 0!==n&&(c=i(n),c=n<0?a(u+c,0):l(c,u-1)),r(e,o(t,3),c,!0)}},5970:(e,t,n)=>{var r=n(3120);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},9754:(e,t,n)=>{var r=n(3729),o=n(909),i=n(4066),a=n(6449);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},3215:(e,t,n)=>{var r=n(641),o=n(4066);e.exports=function(e,t){return e&&r(e,o(t))}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},631:(e,t,n)=>{var r=n(8077),o=n(9326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3488:e=>{e.exports=function(e){return e}},2428:(e,t,n)=>{var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,n)=>{var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3693:(e,t,n)=>{var r=n(4894),o=n(346);e.exports=function(e){return o(e)&&r(e)}},3812:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,u=(l?l.isBuffer:void 0)||o;e.exports=u},2193:(e,t,n)=>{var r=n(8984),o=n(5861),i=n(2428),a=n(6449),l=n(4894),u=n(3656),c=n(5527),s=n(7167),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||s(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},2404:(e,t,n)=>{var r=n(270);e.exports=function(e,t){return r(e,t)}},9132:(e,t,n)=>{var r=n(270);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},1882:(e,t,n)=>{var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730:(e,t,n)=>{var r=n(9172),o=n(7301),i=n(6009),a=i&&i.isMap,l=a?o(a):r;e.exports=l},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1331:(e,t,n)=>{var r=n(2552),o=n(8879),i=n(346),a=Function.prototype,l=Object.prototype,u=a.toString,c=l.hasOwnProperty,s=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==s}},8440:(e,t,n)=>{var r=n(6038),o=n(7301),i=n(6009),a=i&&i.isSet,l=a?o(a):r;e.exports=l},5015:(e,t,n)=>{var r=n(2552),o=n(6449),i=n(346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},4394:(e,t,n)=>{var r=n(2552),o=n(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7167:(e,t,n)=>{var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},8970:(e,t,n)=>{var r=n(3360),o=n(2e3)((function(e,t,n){r(e,n,t)}));e.exports=o},5950:(e,t,n)=>{var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},7241:(e,t,n)=>{var r=n(695),o=n(2903),i=n(4894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},8090:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5378:(e,t,n)=>{var r=n(4932),o=n(5389),i=n(5128),a=n(6449);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},104:(e,t,n)=>{var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},5364:(e,t,n)=>{var r=n(5250),o=n(999)((function(e,t,n){r(e,t,n)}));e.exports=o},3950:e=>{e.exports=function(){}},124:(e,t,n)=>{var r=n(9325);e.exports=function(){return r.Date.now()}},179:(e,t,n)=>{var r=n(4932),o=n(9999),i=n(9931),a=n(1769),l=n(1791),u=n(3138),c=n(8816),s=n(3349),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),l(e,s(e),n),c&&(n=o(n,7,u));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},4383:(e,t,n)=>{var r=n(6001),o=n(8816)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},1086:(e,t,n)=>{var r=n(4932),o=n(5389),i=n(7420),a=n(3349);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},583:(e,t,n)=>{var r=n(7237),o=n(7255),i=n(8586),a=n(7797);e.exports=function(e){return i(e)?r(a(e)):o(e)}},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},7350:(e,t,n)=>{var r=n(8221),o=n(3805);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},7400:(e,t,n)=>{var r=n(9374);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489:(e,t,n)=>{var r=n(7400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},9374:(e,t,n)=>{var r=n(4128),o=n(3805),i=n(4394),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9884:(e,t,n)=>{var r=n(1791),o=n(7241);e.exports=function(e){return r(e,o(e))}},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},14:(e,t,n)=>{var r=n(5389),o=n(5765);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},5808:(e,t,n)=>{var r=n(2507)("toUpperCase");e.exports=r},6645:(e,t,n)=>{var r=n(1733),o=n(5434),i=n(3222),a=n(2225);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},6585:e=>{var t=1e3,n=60*t,r=60*n,o=24*r;function i(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,a){a=a||{};var l,u,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===c&&isFinite(e))return a.long?(l=e,(u=Math.abs(l))>=o?i(l,u,o,"day"):u>=r?i(l,u,r,"hour"):u>=n?i(l,u,n,"minute"):u>=t?i(l,u,t,"second"):l+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=r?Math.round(e/r)+"h":i>=n?Math.round(e/n)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2490:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;var o=r(n(4353)),i=n(1105),a=r(n(6986)),l=r(n(1840)),u=r(n(8134)),c=r(n(8623)),s=r(n(7375)),d=r(n(445));o.default.extend(d.default),o.default.extend(s.default),o.default.extend(a.default),o.default.extend(l.default),o.default.extend(u.default),o.default.extend(c.default),o.default.extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var f={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"},h=function(e){return f[e]||e.split("_")[0]},p=function(){(0,i.noteOnce)(!1,"Not match any format. Please help to fire a issue about this.")},v={getNow:function(){return(0,o.default)()},getFixedDate:function(e){return(0,o.default)(e,"YYYY-MM-DD")},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return(0,o.default)().locale(h(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(h(e)).weekday(0)},getWeek:function(e,t){return t.locale(h(e)).week()},getShortWeekDays:function(e){return(0,o.default)().locale(h(e)).localeData().weekdaysMin()},getShortMonths:function(e){return(0,o.default)().locale(h(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(h(e)).format(n)},parse:function(e,t,n){for(var r=h(e),i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=u,t.default=void 0,t.note=a,t.noteOnce=s,t.preMessage=void 0,t.resetWarned=l,t.warning=i,t.warningOnce=c;var n={},r=[],o=t.preMessage=function(e){r.push(e)};function i(e,t){}function a(e,t){}function l(){n={}}function u(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function c(e,t){u(i,e,t)}function s(e,t){u(a,e,t)}c.preMessage=o,c.resetWarned=l,c.noteOnce=s,t.default=c},7787:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case s:case p:case h:case l:return e;default:return t}}case r:return t}}}Symbol.for("react.module.reference"),t.ForwardRef=s,t.isFragment=function(e){return v(e)===o},t.isMemo=function(e){return v(e)===h}},6351:(e,t,n)=>{"use strict";e.exports=n(7787)},6892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=(r=n(3215))&&r.__esModule?r:{default:r},i=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,l,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,s=Array(c),d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,l,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,s=Array(c),d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=l(n(5015)),o=l(n(3215)),i=l(n(1331)),a=l(n(5378));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,i.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=u},8527:(e,t,n)=>{"use strict";t.H8=void 0;var r=c(n(9265)),o=c(n(6203)),i=c(n(6892)),a=c(n(6686)),l=c(n(5268)),u=c(n(2693));function c(e){return e&&e.__esModule?e:{default:e}}a.default,t.H8=a.default,l.default,u.default;t.Ay=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},6203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(3215)),o=a(n(8055)),i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])})),t})),n};t.default=l},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;u{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{var r=n(6018).FilterCSS,o=n(6018).getDefaultWhiteList,i=n(9349);var a=new r;function l(e){return e.replace(u,"<").replace(c,">")}var u=//g,s=/"/g,d=/"/g,f=/&#([a-zA-Z0-9]*);?/gim,h=/:?/gim,p=/&newline;?/gim,v=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,m=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,g=/u\s*r\s*l\s*\(.*/gi;function b(e){return e.replace(s,""")}function y(e){return e.replace(d,'"')}function w(e){return e.replace(f,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function k(e){return e.replace(h,":").replace(p," ")}function C(e){for(var t="",n=0,r=e.length;n{var r=n(2048),o=n(5930),i=n(8327);function a(e,t){return new i(t).process(e)}(t=e.exports=a).filterXSS=a,t.FilterXSS=i,function(){for(var e in r)t[e]=r[e];for(var n in o)t[n]=o[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},5930:(e,t,n)=>{var r=n(9349);function o(e){var t,n=r.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=r.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function i(e){return"0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function s(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){"use strict";var r="",a=0,l=!1,u=!1,c=0,s=e.length,d="",f="";e:for(c=0;c"===h||c===s-1){r+=n(e.slice(a,l)),d=o(f=e.slice(l,c+1)),r+=t(l,r.length,d,f,i(f)),a=c+1,l=!1;continue}if('"'===h||"'"===h)for(var p=1,v=e.charAt(c-p);""===v.trim()||"="===v;){if("="===v){u=h;continue e}v=e.charAt(c-++p)}}else if(h===u){u=!1;continue}}return a{e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n{var r=n(6018).FilterCSS,o=n(2048),i=n(5930),a=i.parseTag,l=i.parseAttr,u=n(9349);function c(e){return null==e}function s(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=o.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=o.whiteList,this.attributeWrapSign=!0===e.singleQuotedAttributeValue?"'":o.attributeWrapSign,e.onTag=e.onTag||o.onTag,e.onTagAttr=e.onTagAttr||o.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||o.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||o.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||o.safeAttrValue,e.escapeHtml=e.escapeHtml||o.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r(e.css))}s.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,s=n.onIgnoreTag,d=n.onTagAttr,f=n.onIgnoreTagAttr,h=n.safeAttrValue,p=n.escapeHtml,v=t.attributeWrapSign,m=t.cssFilter;n.stripBlankChar&&(e=o.stripBlankChar(e)),n.allowCommentTag||(e=o.stripCommentTag(e));var g=!1;n.stripIgnoreTagBody&&(g=o.StripTagBody(n.stripIgnoreTagBody,s),s=g.onIgnoreTag);var b=a(e,(function(e,t,n,o,a){var g={sourcePosition:e,position:t,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(r,n)},b=i(n,o,g);if(!c(b))return b;if(g.isWhite){if(g.isClosing)return"";var y=function(e){var t=u.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=u.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=u.trim(e.slice(0,-1))),{html:e,closing:n}}(o),w=r[n],k=l(y.html,(function(e,t){var r=-1!==u.indexOf(w,e),o=d(n,e,t,r);return c(o)?r?(t=h(n,e,t,m))?e+"="+v+t+v:e:c(o=f(n,e,t,r))?void 0:o:o}));return o="<"+n,k&&(o+=" "+k),y.closing&&(o+=" /"),o+">"}return c(b=s(n,o,g))?p(o):b}),p);return g&&(b=g.remove(b)),b},e.exports=s},3393:e=>{"use strict";e.exports=class{constructor(e){this.max=e,this.size=0,this.cache=new Map,this._cache=new Map}get(e,t){let n=this.cache.get(e);const r=t&&t.maxAge;let o;function i(){return o=o||Date.now(),o}if(n){if(n.expired&&i()>n.expired)n.expired=0,n.value=void 0;else if(void 0!==r){const e=r?i()+r:0;n.expired=e}return n.value}if(n=this._cache.get(e),n){if(n.expired&&i()>n.expired)n.expired=0,n.value=void 0;else if(this._update(e,n),void 0!==r){const e=r?i()+r:0;n.expired=e}return n.value}}set(e,t,n){const r=n&&n.maxAge,o=r?Date.now()+r:0;let i=this.cache.get(e);i?(i.expired=o,i.value=t):(i={value:t,expired:o},this._update(e,i))}keys(){const e=new Set,t=Date.now();for(const e of this.cache.entries())n(e);for(const e of this._cache.entries())n(e);function n(n){const r=n[0],o=n[1];(n[1].value&&!n[1].expired||o.expired>=t)&&e.add(r)}return Array.from(e.keys())}_update(e,t){this.cache.set(e,t),this.size++,this.size>=this.max&&(this.size=0,this._cache=this.cache,this.cache=new Map)}}},4883:t=>{"use strict";t.exports=e},1845:e=>{"use strict";e.exports=t},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633:(e,t,n)=>{var r=n(3738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",d=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new A(r||[]);return l(i,"_invoke",{value:R(e,n,a)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var v="suspendedStart",m="suspendedYield",g="executing",b="completed",y={};function w(){}function k(){}function C(){}var _={};f(_,c,(function(){return this}));var N=Object.getPrototypeOf,O=N&&N(N(j([])));O&&O!==i&&a.call(O,c)&&(_=O);var x=C.prototype=w.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function n(o,i,l,u){var c=p(e[o],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,u)}),(function(e){n("throw",e,l,u)})):t.resolve(d).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,u)}))}u(c.arg)}var o;l(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function R(e,n,r){var o=v;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var u=P(l,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=p(e,n,r);if("normal"===c.type){if(o=r.done?b:m,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=b,r.method="throw",r.arg=c.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},4374:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},1554:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},7178:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var i={};return(()=>{"use strict";o.r(i),o.d(i,{AddAttrOperation:()=>ha,AnchorType:()=>Sr,AttributeHelper:()=>El,BLOCK_CARD_SCHEMA:()=>el,BlockCardNode:()=>qy,BlockNodeAttributeCommand:()=>Sl,BoxNode:()=>Ly,BoxNodeHelper:()=>$y,CARD_ATTRS_SCHEMA:()=>nl,CHANGE_ADD_ATTR:()=>fb,CHANGE_ADD_NODE:()=>vb,CHANGE_MOVE_NODE:()=>gb,CHANGE_REMOVE_ATTR:()=>hb,CHANGE_REMOVE_NODE:()=>mb,CHANGE_UPDATE_ATTR:()=>pb,CHANGE_UPDATE_TEXT:()=>bb,CardData:()=>Ll,CardHelper:()=>ar,CardNode:()=>zy,CardNodeName:()=>Hi,CardType:()=>Bi,CardUtil:()=>Ri,Category:()=>ze,ChangeObserver:()=>Cb,Command:()=>gt,CommandManager:()=>il,DataSource:()=>qt,DataSourceManager:()=>$t,DefaultSchema:()=>al,DisplayContext:()=>Im,EditCardUI:()=>Yh,Editing:()=>Ga,Editor:()=>Vh,EditorAbstractCommand:()=>Ay,EditorAbstractService:()=>By,EditorFactory:()=>Py,EditorPlugin:()=>Wh,Element:()=>Or,Engine:()=>Ny,EngineOption:()=>ky,EnvAdapter:()=>Pu,FillerManager:()=>Pb,FocusManager:()=>Bp,FrameworkEditor:()=>r,FrameworkEngine:()=>a,FrameworkInfra:()=>f,FrameworkKernel:()=>e,FrameworkPublic:()=>u,FrameworkUiLib:()=>p,FrameworkUtils:()=>t,FrameworkViewer:()=>l,GeneralCommand:()=>Wl,GeneralCommandV2:()=>zl,GeneralRenderController:()=>Am,GeneralRenderHelper:()=>pm,Hole:()=>Mi,INLINE_CARD_ATTRS:()=>Yo,INLINE_CARD_SCHEMA:()=>tl,INodeHelper:()=>Wo,INodeUtil:()=>Si,InlineCardNode:()=>Wy,InlineNodeCommand:()=>Kl,InsertOperation:()=>sa,Job:()=>Ha,JobMode:()=>He,JsonDataSource:()=>hl,KNodeType:()=>Ct,Kernel:()=>wl,KernelAbstractCommand:()=>wt,KernelAbstractService:()=>at,KernelFactory:()=>_l,KernelOption:()=>dt,KernelPlugin:()=>ft,LEFT_PLACEHOLDER_NAME:()=>Ib,Layer:()=>wp,MetaFilter:()=>Ge,Model:()=>sl,ModelCardNode:()=>Ui,ModelDocument:()=>ua,ModelNode:()=>kr,ModelNodeHelper:()=>Da,MoveOperation:()=>da,NODE_CHANGE_ATTR_ADD:()=>ya,NODE_CHANGE_ATTR_CHANGE:()=>ka,NODE_CHANGE_ATTR_REMOVE:()=>wa,NODE_CHANGE_INSERT:()=>ba,NODE_CHANGE_REMOVE:()=>ga,NODE_CHANGE_TEXT_CHANGE:()=>Ca,NativeDocument:()=>eb,NodeConverter:()=>Yt,NodeType:()=>_t,NodeUtil:()=>zt,OpenEditorFactory:()=>Fet,OpenViewerFactory:()=>_lt,OperationDataMapKey:()=>_a,OperationType:()=>la,Plugins:()=>Ve,Position:()=>Nt,PositionUtil:()=>rr,Printer:()=>cm,RIGHT_PLACEHOLDER_NAME:()=>Bb,Range:()=>Wt,RangeUtil:()=>zo,ReaderManager:()=>Ti,RemoveAttrOperation:()=>pa,RemoveOperation:()=>fa,RenderAbstractCommand:()=>Qy,RenderAbstractService:()=>tw,RenderController:()=>Ag,RenderDrawer:()=>av,RenderPlugin:()=>rb,RenderUnit:()=>$g,RenderUnitManager:()=>Yg,RootChildCard:()=>or,RootNode:()=>$i,RootNodeName:()=>Vi,Schema:()=>rl,ScrollRenderTask:()=>Um,Selection:()=>Ar,SelectionUtil:()=>Di,SnapshotUtil:()=>ol,TableSelectionUtil:()=>ja,TextConverter:()=>Kt,TextNode:()=>Gi,TextNodeName:()=>zi,TileProcessor:()=>Wm,TileRenderController:()=>Km,ToggleAttributeCommand:()=>Jl,ToolbarOptionHelper:()=>Vet,Transaction:()=>ca,TreeHelper:()=>Sb,UpdateAttrOperation:()=>va,UpdateTextOperation:()=>ma,VBlockCardNode:()=>Ww,VBoxNode:()=>ok,VBoxNodeHelper:()=>iC,VInlineCardNode:()=>zw,ValuedAttributeCommand:()=>Zl,View:()=>gy,ViewBlockCardNode:()=>Jb,ViewBlockFillerNode:()=>Zb,ViewDocument:()=>py,ViewElement:()=>Vb,ViewInlineCardNode:()=>ny,ViewInlineFillerNode:()=>iy,ViewModelMapper:()=>jb,ViewNode:()=>Fb,ViewNodeHelper:()=>n,ViewPosition:()=>Ym,ViewRange:()=>Gm,ViewRootNode:()=>$b,ViewSelection:()=>cb,ViewTextFillerNode:()=>uy,ViewTextNode:()=>dy,ViewTree:()=>Kb,Viewer:()=>MI,ViewerPlugin:()=>Lw,Viewport:()=>Zg,VirtualBlockCardNode:()=>Tv,VirtualBlockFillerNode:()=>Iv,VirtualBoxNode:()=>qv,VirtualCardNode:()=>Rv,VirtualContainerNode:()=>Hv,VirtualElement:()=>Yv,VirtualInlineCardNode:()=>Xv,VirtualInlineFillerNode:()=>em,VirtualNode:()=>xv,VirtualRootNode:()=>Qg,VirtualTextFillerNode:()=>rm,VirtualTextNode:()=>am,WriterManager:()=>Ai,addOperation:()=>Na,applyChanges:()=>jm,closestViewNode:()=>Ky,commitJob:()=>La,createByViewNode:()=>lm,createOpenEditor:()=>Let,createOpenViewer:()=>Nlt,destroyTreeByRootNode:()=>lv,enhancedBoxUIBase:()=>qh,enhancedCardUIBase:()=>Gh,enhancedViewerCardUIBase:()=>oC,flushJob:()=>Va,fullRender:()=>gm,getAttrValue:()=>Nl,getDrawNodes:()=>qp,getFirstRenderRootNodeByViewNode:()=>Bg,getFirstVisibleViewNode:()=>Mm,getLastRenderRootNodeByViewNode:()=>Lg,getModelPositionInfo:()=>Mb,getNextRenderUnitNode:()=>Vg,getPrevRenderUnitNode:()=>zg,getRectByViewRange:()=>zp,getRenderUnitWithAncestor:()=>qg,getRenderUnitsByViewRanges:()=>qm,getRenderUnitsByViewSelection:()=>$m,getShrinkViewRange:()=>Wp,getViewNode:()=>Yy,getVirtualNode:()=>Gy,insertByViewNode:()=>Bv,isBlockDrawNode:()=>Zp,isCardRange:()=>nv,isCommitted:()=>Ua,isFillerNode:()=>rv,isLikeEmpty:()=>nw,isRenderUnitNode:()=>jg,isTdRange:()=>tv,maskAddon:()=>Qh,maximizeAddon:()=>ep,parseTableLayout:()=>Ko,parseToRowLayout:()=>qo,printMissing:()=>dm,printUnit:()=>fm,renderCursor:()=>Bm,repairByViewNode:()=>vv,reprintUnit:()=>mm,resizerAddon:()=>ap,scrollRender:()=>Vm,scrollToViewSelection:()=>Sm,setINode:()=>ll,sortViewNode:()=>um,spacingAddon:()=>up,toDOMRange:()=>Cm,toViewRange:()=>xg,toolbarItems:()=>sfe,uIEventAddon:()=>fp,version:()=>vl,widthModeAddon:()=>sp});var e={};o.r(e),o.d(e,{AddAttrOperation:()=>ha,AnchorType:()=>Sr,AttributeHelper:()=>El,BLOCK_CARD_SCHEMA:()=>el,BlockNodeAttributeCommand:()=>Sl,CARD_ATTRS_SCHEMA:()=>nl,CardData:()=>Ll,CardHelper:()=>ar,CardNodeName:()=>Hi,CardType:()=>Bi,CardUtil:()=>Ri,Category:()=>ze,Command:()=>gt,CommandManager:()=>il,DataSource:()=>qt,DataSourceManager:()=>$t,DefaultSchema:()=>al,Editing:()=>Ga,Element:()=>Or,GeneralCommand:()=>Wl,GeneralCommandV2:()=>zl,Hole:()=>Mi,INLINE_CARD_ATTRS:()=>Yo,INLINE_CARD_SCHEMA:()=>tl,INodeHelper:()=>Wo,INodeUtil:()=>Si,InlineNodeCommand:()=>Kl,InsertOperation:()=>sa,Job:()=>Ha,JobMode:()=>He,JsonDataSource:()=>hl,KNodeType:()=>Ct,Kernel:()=>wl,KernelAbstractCommand:()=>wt,KernelAbstractService:()=>at,KernelFactory:()=>_l,KernelOption:()=>dt,KernelPlugin:()=>ft,MetaFilter:()=>Ge,Model:()=>sl,ModelCardNode:()=>Ui,ModelDocument:()=>ua,ModelNode:()=>kr,ModelNodeHelper:()=>Da,MoveOperation:()=>da,NODE_CHANGE_ATTR_ADD:()=>ya,NODE_CHANGE_ATTR_CHANGE:()=>ka,NODE_CHANGE_ATTR_REMOVE:()=>wa,NODE_CHANGE_INSERT:()=>ba,NODE_CHANGE_REMOVE:()=>ga,NODE_CHANGE_TEXT_CHANGE:()=>Ca,NodeConverter:()=>Yt,NodeType:()=>_t,NodeUtil:()=>zt,OperationDataMapKey:()=>_a,OperationType:()=>la,Position:()=>Nt,PositionUtil:()=>rr,Range:()=>Wt,RangeUtil:()=>zo,ReaderManager:()=>Ti,RemoveAttrOperation:()=>pa,RemoveOperation:()=>fa,RootChildCard:()=>or,RootNode:()=>$i,RootNodeName:()=>Vi,Schema:()=>rl,Selection:()=>Ar,SelectionUtil:()=>Di,SnapshotUtil:()=>ol,TableSelectionUtil:()=>ja,TextConverter:()=>Kt,TextNode:()=>Gi,TextNodeName:()=>zi,ToggleAttributeCommand:()=>Jl,Transaction:()=>ca,UpdateAttrOperation:()=>va,UpdateTextOperation:()=>ma,ValuedAttributeCommand:()=>Zl,WriterManager:()=>Ai,addOperation:()=>Na,commitJob:()=>La,default:()=>eu,flushJob:()=>Va,getAttrValue:()=>Nl,isCommitted:()=>Ua,parseTableLayout:()=>Ko,parseToRowLayout:()=>qo,setINode:()=>ll});var t={};o.r(t),o.d(t,{ArithmeticUtil:()=>Rc,AsyncCoordinator:()=>Ac,AutoScroll:()=>zd,Color:()=>su,ColorParse:()=>hu,DOMEventListener:()=>wd,DOMSelectionHelper:()=>Ad,HOT_KEY_MAP:()=>df,HSLAColor:()=>cu,HTMLBlockTags:()=>wf,HTMLExcludeTags:()=>Cf,HTMLHeadingTags:()=>_f,HTMLInlineTags:()=>kf,HTMLNodeHelper:()=>Nd,HTMLStringUtil:()=>Cd,HotKeyMatcher:()=>mf,INJECTOR_EMBED_TOOLTIP:()=>Ch,INJECTOR_TRANSLATE_CONTENT:()=>_h,INJECTOR_VIDEO_REMARK:()=>yh,INJECTOR_VIP_ICON:()=>kh,INJECTOR_VIP_TOOLTIP:()=>wh,Keyboard:()=>ed,LibLoader:()=>Df,MouseToDrag:()=>Kd,MutationObserve:()=>rd,RGBAColor:()=>uu,RGBColor:()=>lu,Strings:()=>On,Svg:()=>bh,UIInjector:()=>Nh,URLUtil:()=>xh,Visibility:()=>Sh,addUrlParam:()=>Ph,ajax:()=>cs,android:()=>Us,app:()=>Ws,assert:()=>kt,bindDOMEvent:()=>kc,bindDOMEventForReactComponent:()=>vd,bindDOMLongPress:()=>md,bindEvent:()=>jc,bindEventForReactComponent:()=>gd,buildParams:()=>Bc,checkOwnership:()=>yd,chrome:()=>As,clearProxy:()=>ds,cloneObject:()=>lr,closest:()=>Nc,convertSvgContent:()=>ud,convertSvgImg:()=>cd,copyText:()=>vs,createDOMElement:()=>pd,createElement:()=>hd,dataURIToFile:()=>sd,delayTask:()=>dd,desktop:()=>Fs,dingtalk:()=>Bs,docDayjs:()=>dh,edge:()=>Ts,errorHandler:()=>us,eventNeedIgnore:()=>Dc,filesize:()=>lf,firefox:()=>js,formatNodeName:()=>cf,genIntersectionObserver:()=>Ds,generateHashID:()=>Za,generateNodeId:()=>gr,getCardNodeOffset:()=>Yd,getClassName:()=>od,getCommonAncestor:()=>kd,getDevicePixelRatio:()=>fd,getNodeHeight:()=>Gd,getPoint:()=>Wd,hasOwnProperty:()=>yr,ios:()=>Ls,ipad:()=>zs,isAFormData:()=>Lc,isDOMHTMLElement:()=>Ud,isDOMTextNode:()=>Ld,isEventBoundaryCardNode:()=>Ec,isEventBoundaryNode:()=>xc,isInputEvent:()=>Vd,isStateChange:()=>Nf,isSupport:()=>nf,isSupportWebp:()=>Js,isSvgDataUrl:()=>ld,isValidId:()=>Of,loadImage:()=>ad,loadJS:()=>Pf,macos:()=>Vs,match:()=>$f,matchAll:()=>qf,matchType:()=>Wf,measure:()=>Ns,measureAndModify:()=>xs,mergeClass:()=>Yf,mergeClassName:()=>Kf,mergeOptions:()=>Xf,mimeMap:()=>Qf,mixedClass:()=>eh,mixin:()=>nh,mixinDecorator:()=>th,mobile:()=>Ms,modify:()=>Os,node:()=>Ss,nodeOffset:()=>Dd,observe:()=>fh,observeViewModel:()=>hh,ownerIDByHTMLElement:()=>bd,parseKeys:()=>vf,Commons:()=>Eh,queueMicrotask:()=>mh,rangeContainsNode:()=>jd,reqwest:()=>is,runAtThisOrScheduleAtNextAnimationFrame:()=>ms,safari:()=>Is,sanitizeUrl:()=>Rh,scheduleAtNextAnimationFrame:()=>gs,scrollbarIsVisible:()=>wc,setErrorHandler:()=>fs,setProxy:()=>ss,startDrag:()=>Zd,storage:()=>Tf,strToArray:()=>gn,svgToPNG:()=>Md,template:()=>yc,toCSV:()=>tf,toFilterFunction:()=>Hd,toHotKeyText:()=>ff,toQueryString:()=>Fc,urlAppend:()=>Mc,uuid:()=>mr,validUrl:()=>Dh,windows:()=>Hs,wordCount:()=>Ih,wrapHandle:()=>Xd,yuquePad:()=>$s,yuquePhone:()=>qs});var n={};o.r(n),o.d(n,{getModelNodeByViewNode:()=>Rp,getOwnViewNodeByDOM:()=>Ep,getValueByDOM:()=>Cp,getValueByViewNode:()=>Op,getViewNodeByDOM:()=>xp,getVirtualNodeByDOM:()=>Ap,getVirtualNodeByViewNode:()=>Pp,isRenderRootViewNode:()=>Dp,removeVirtualNodeByViewNode:()=>Sp,setValueOnDOM:()=>kp,setValueOnViewNode:()=>_p,setViewNodeOnDOM:()=>Np,setVirtualNodeOnViewNode:()=>Tp});var r={};o.r(r),o.d(r,{EditCardUI:()=>Yh,Editor:()=>Vh,EditorAbstractCommand:()=>Ay,EditorAbstractService:()=>By,EditorFactory:()=>Py,EditorPlugin:()=>Wh,EnvAdapter:()=>Pu,enhancedBoxUIBase:()=>qh,enhancedCardUIBase:()=>Gh,maskAddon:()=>Qh,maximizeAddon:()=>ep,resizerAddon:()=>ap,spacingAddon:()=>up,uIEventAddon:()=>fp,widthModeAddon:()=>sp});var a={};o.r(a),o.d(a,{BlockCardNode:()=>qy,BoxNode:()=>Ly,BoxNodeHelper:()=>$y,CHANGE_ADD_ATTR:()=>fb,CHANGE_ADD_NODE:()=>vb,CHANGE_MOVE_NODE:()=>gb,CHANGE_REMOVE_ATTR:()=>hb,CHANGE_REMOVE_NODE:()=>mb,CHANGE_UPDATE_ATTR:()=>pb,CHANGE_UPDATE_TEXT:()=>bb,CardNode:()=>zy,ChangeObserver:()=>Cb,DisplayContext:()=>Im,Engine:()=>Ny,EngineOption:()=>ky,FillerManager:()=>Pb,FocusManager:()=>Bp,GeneralRenderController:()=>Am,GeneralRenderHelper:()=>pm,InlineCardNode:()=>Wy,LEFT_PLACEHOLDER_NAME:()=>Ib,Layer:()=>wp,NativeDocument:()=>eb,Printer:()=>cm,RIGHT_PLACEHOLDER_NAME:()=>Bb,RenderAbstractCommand:()=>Qy,RenderAbstractService:()=>tw,RenderController:()=>Ag,RenderDrawer:()=>av,RenderPlugin:()=>rb,RenderUnit:()=>$g,RenderUnitManager:()=>Yg,ScrollRenderTask:()=>Um,TileProcessor:()=>Wm,TileRenderController:()=>Km,TreeHelper:()=>Sb,View:()=>gy,ViewBlockCardNode:()=>Jb,ViewBlockFillerNode:()=>Zb,ViewDocument:()=>py,ViewElement:()=>Vb,ViewInlineCardNode:()=>ny,ViewInlineFillerNode:()=>iy,ViewModelMapper:()=>jb,ViewNode:()=>Fb,ViewNodeHelper:()=>n,ViewPosition:()=>Ym,ViewRange:()=>Gm,ViewRootNode:()=>$b,ViewSelection:()=>cb,ViewTextFillerNode:()=>uy,ViewTextNode:()=>dy,ViewTree:()=>Kb,Viewport:()=>Zg,VirtualBlockCardNode:()=>Tv,VirtualBlockFillerNode:()=>Iv,VirtualBoxNode:()=>qv,VirtualCardNode:()=>Rv,VirtualContainerNode:()=>Hv,VirtualElement:()=>Yv,VirtualInlineCardNode:()=>Xv,VirtualInlineFillerNode:()=>em,VirtualNode:()=>xv,VirtualRootNode:()=>Qg,VirtualTextFillerNode:()=>rm,VirtualTextNode:()=>am,applyChanges:()=>jm,closestViewNode:()=>Ky,createByViewNode:()=>lm,default:()=>rw,destroyTreeByRootNode:()=>lv,fullRender:()=>gm,getDrawNodes:()=>qp,getFirstRenderRootNodeByViewNode:()=>Bg,getFirstVisibleViewNode:()=>Mm,getLastRenderRootNodeByViewNode:()=>Lg,getModelPositionInfo:()=>Mb,getNextRenderUnitNode:()=>Vg,getPrevRenderUnitNode:()=>zg,getRectByViewRange:()=>zp,getRenderUnitWithAncestor:()=>qg,getRenderUnitsByViewRanges:()=>qm,getRenderUnitsByViewSelection:()=>$m,getShrinkViewRange:()=>Wp,getViewNode:()=>Yy,getVirtualNode:()=>Gy,insertByViewNode:()=>Bv,isBlockDrawNode:()=>Zp,isCardRange:()=>nv,isFillerNode:()=>rv,isLikeEmpty:()=>nw,isRenderUnitNode:()=>jg,isTdRange:()=>tv,printMissing:()=>dm,printUnit:()=>fm,renderCursor:()=>Bm,repairByViewNode:()=>vv,reprintUnit:()=>mm,scrollRender:()=>Vm,scrollToViewSelection:()=>Sm,sortViewNode:()=>um,toDOMRange:()=>Cm,toViewRange:()=>xg});var l={};o.r(l),o.d(l,{CommonHandlers:()=>UE,EnvAdapter:()=>aw,VBlockCardNode:()=>Ww,VBoxNode:()=>ok,VBoxNodeHelper:()=>iC,VCardNode:()=>Hw,VInlineCardNode:()=>zw,VLayerManager:()=>Yw,VToolbar:()=>hI,Viewer:()=>gI,ViewerAbstractCommand:()=>Aw,ViewerAbstractService:()=>Bw,ViewerBaseRenderController:()=>Mk,ViewerBlockCardNode:()=>dk,ViewerBlockFillerNode:()=>pk,ViewerBoxNode:()=>gk,ViewerCardNode:()=>uk,ViewerCardUI:()=>rC,ViewerChangeObserver:()=>Sk,ViewerDocument:()=>jk,ViewerDrawer:()=>kw,ViewerElement:()=>xw,ViewerFactory:()=>BI,ViewerGeneralRenderController:()=>Hk,ViewerInlineCardNode:()=>wk,ViewerNode:()=>Cw,ViewerOption:()=>rk,ViewerPlugin:()=>Lw,ViewerRenderer:()=>Yk,ViewerRootNode:()=>Pw,ViewerTextNode:()=>_k,ViewerTileRenderControl:()=>qk,ViewerTree:()=>Pk,ViewerTreeHelper:()=>Ok,ViewerTreeModelMapper:()=>xk,assertIsViewerElement:()=>AI,assertIsViewerNode:()=>_w,closetModelNode:()=>uw,createViewerNode:()=>ik,createViewerOption:()=>iw,default:()=>MI,enhancedViewerCardUIBase:()=>oC,filterViewerNode:()=>Ek,focusAddon:()=>bI,generateViewerTree:()=>Dk,getBlockNodeLikeViewRanges:()=>Jk,getBlockNodeViewRanges:()=>Gk,getDrawNodes:()=>hw,getRectByViewRange:()=>fw,getViewerNode:()=>lw,isBlockDrawNode:()=>bw,isCardRange:()=>mw,isFillerNode:()=>gw,isTdRange:()=>vw,maskAddon:()=>wI,maximizeAddon:()=>CI,renderSubTree:()=>Fk,resizerAddon:()=>NI,spacingAddon:()=>xI,toolbarAddon:()=>DI,transformDOMRangeToViewRange:()=>Xk,widthModeAddon:()=>PI,wordingAddon:()=>TI});var u={};o.r(u),o.d(u,{ANCHOR_TYPE_BOTTOM_LEFT:()=>km,ANCHOR_TYPE_END:()=>ym,ANCHOR_TYPE_START:()=>bm,ANCHOR_TYPE_TOP_RIGHT:()=>wm,AbstractService:()=>tt,AttrTranslator:()=>bp,AttributeSynchronizer:()=>Cv,CARD:()=>RL,CARD_SPACING:()=>Pl,CARD_SPACING_BOTH:()=>Tl,CARD_SPACING_BOTTOM:()=>jl,CARD_SPACING_TOP:()=>Al,COLLAPSE:()=>jt,COLUMN:()=>Er,COLUMNS:()=>xr,COMMAND_EXECUTED:()=>vt,COMMAND_NOT_EXECUTED:()=>pt,COMMAND_UNAVAILABLE:()=>ht,COMMAND_UNKNOWN:()=>mt,COMMENT_LEFT_GAP:()=>lI,CommandInterceptor:()=>Eu,CommandState:()=>ct,DEFAULT_LINK:()=>SL,DEFAULT_TOOLBAR:()=>ZL,DONT_SHOW:()=>DL,Drawer:()=>Fp,ENV_LARK:()=>TL,ENV_YUQUE:()=>AL,EVENT_AFTER_CONTENT_CHANGE:()=>ta,EVENT_BEFORE_CONTENT_CHANGE:()=>ea,EVENT_BOUNDARY_ATTR_NAME:()=>Cc,EVENT_BOUNDARY_CLASS_NAME:()=>_c,EVENT_CONTENT_CHANGE:()=>Zi,EVENT_JOB_CREATED:()=>Qi,EVENT_NODE_WILL_CHANGE:()=>Ji,EVENT_OPERATION_ROLLBACK:()=>ra,EVENT_OPERATION_SUBMITTED:()=>Xi,EVENT_SELECTION_CHANGE:()=>na,FOCUS_CARD:()=>jL,FOCUS_CARD_AFTER:()=>BL,FOCUS_CARD_BEFORE:()=>IL,HIGH_PRIORITY:()=>UL,HTML_WRITER_MODE:()=>PL,HTML_WRITER_MODE_CLEAN:()=>FL,HTML_WRITER_MODE_INLINE:()=>ML,Hub:()=>qa,INHERIT_INLINE_CARD:()=>Bn,INHERIT_TEXT:()=>Mn,INHERIT_TYPES:()=>Fn,INLINE_INHERIT_ATTRS:()=>Ln,KEY_IN_COMPOSITION:()=>Xs,LOW_PRIORITY:()=>HL,MAX_COLS:()=>Dr,MEDIUM_PRIORITY:()=>VL,MIN_WIDTH:()=>Rr,MOBILE_TOOLBAR:()=>eU,NOT_SELECTED:()=>xL,OVERLAY_PLACEMENT_BOTTOM:()=>WE,OVERLAY_PLACEMENT_BOTTOM_LEFT:()=>qE,OVERLAY_PLACEMENT_BOTTOM_RIGHT:()=>$E,OVERLAY_PLACEMENT_LEFT:()=>KE,OVERLAY_PLACEMENT_LEFT_BOTTOM:()=>GE,OVERLAY_PLACEMENT_LEFT_TOP:()=>YE,OVERLAY_PLACEMENT_RIGHT:()=>JE,OVERLAY_PLACEMENT_RIGHT_BOTTOM:()=>QE,OVERLAY_PLACEMENT_RIGHT_TOP:()=>XE,OVERLAY_PLACEMENT_TOP:()=>VE,OVERLAY_PLACEMENT_TOP_LEFT:()=>HE,OVERLAY_PLACEMENT_TOP_RIGHT:()=>zE,PureCommand:()=>Nu,Registry:()=>yp,SCENE_MOBILE_APP:()=>zL,SELECTED:()=>EL,SOURCE_FROM_DROP:()=>QB,SOURCE_FROM_INIT:()=>JB,SOURCE_FROM_MATERIAL_LIBRARY:()=>eM,SOURCE_FROM_PASTE:()=>XB,SOURCE_FROM_UI:()=>ZB,SUMMARY:()=>It,SidebarUIDescriptor:()=>QL,TABLE_BOX_NODE_NAME:()=>dw,TABLE_INNER_WRAP_NODE_NAME:()=>sw,TABLE_TOOLBAR:()=>tU,TABLE_WRAP_NODE_NAME:()=>cw,THEME_DARK:()=>pp,THEME_LIGHT:()=>hp,THROUTH_INHERIT_ATTRS:()=>Un,TYPE_ATTR_NAME:()=>mp,TYPE_DEFAULT:()=>WL,TYPE_NOTE:()=>$L,TYPE_SIMPLE:()=>qL,TYPE_SMALL:()=>KL,TYPE_STYLE_NAME:()=>vp,Theme:()=>XL,TinyCanvas:()=>Mp,UI_TYPE:()=>YL,VIEWER_BODY_SELECTOR:()=>Qw,VIEWER_MODE:()=>Kw,VIEWER_ROOT_SELECTOR:()=>Xw,WIDTH_MODE_CONTAIN:()=>Bl,WIDTH_MODE_NORMAL:()=>Il,createPluginRegister:()=>uI,fileTypeEnum:()=>LL,getRectsByRange:()=>Hp,getRectsByTextNode:()=>Lp,sliceTextNodeByLine:()=>Up,unwrapID:()=>rt,wrapID:()=>nt});var c={};o.r(c),o.d(c,{IMarkdownService:()=>vF,MarkdownDataSourcePlugin:()=>IH,pluginRegister:()=>ZV});var s={};o.r(s),o.d(s,{AttributeHTMLWriter:()=>WF,HTMLDataSourcePlugin:()=>YG,HtmlAttributeReader:()=>G1,HtmlNodePreReader:()=>b2,HtmlNodeReader:()=>HM,HtmlStyleReader:()=>LF,HtmlTextNodePreWriter:()=>Kee,IHTMLKernelService:()=>UI,NodeHTMLWriter:()=>EB,parseToNodeTree:()=>FG,pluginRegister:()=>CG});var d={};o.r(d),o.d(d,{ILakeKernelService:()=>zI,LakeAttrReader:()=>CJ,LakeCardPreReader:()=>Xee,LakeCardReader:()=>ZM,LakeCardWriter:()=>aF,LakeNodePreReader:()=>Qee,LakeNodeReader:()=>OZ,LakeNodeWriter:()=>AB,LakePlugin:()=>OX,LakeStyleReader:()=>xJ,pluginRegister:()=>CX});var f={};o.r(f),o.d(f,{BaseTask:()=>Lre,ColorRegistry:()=>gu,ColorScheme:()=>du,DefaultThemeSchema:()=>wu,LANG_EVENT_MAP:()=>fc,Locale:()=>mc,TaskManager:()=>$re,TaskObserver:()=>Jre,TaskThread:()=>zre,Theme:()=>_u,VirtualTask:()=>Gre,colorRegistry:()=>yu,i18n:()=>gc,langEvent:()=>hc});var h={};o.r(h),o.d(h,{ITextDataSourceKernelService:()=>$Q,TextDataSourcePlugin:()=>j9,TextWriter:()=>H1,pluginRegister:()=>zQ});var p={};o.r(p),o.d(p,{ALL_TYPE:()=>eke,AsyncView:()=>mwe,Avatar:()=>ywe,BoundaryPopover:()=>Cj,Breadcrumb:()=>Pwe,Button:()=>Swe,CONTAINER_TYPE_BORDER_ICON:()=>Xwe,CONTAINER_TYPE_ICON:()=>Ywe,CONTAINER_TYPE_LABEL:()=>Qwe,CONTAINER_TYPE_NORMAL:()=>Gwe,CONTAINER_TYPE_SUBMENU:()=>Zwe,CONTAINER_TYPE_TWO_COLUMN:()=>Jwe,CardDataViewHelper:()=>Iwe,CardResizer:()=>rp,CardToolbar:()=>Ej,CardToolbarView:()=>Oj,CardView:()=>MOe,Checkbox:()=>OCe,CommandMenu:()=>MCe,CommandMenuItem:()=>DCe,ContainerRightToolbar:()=>Aj,ContainerRightToolbarView:()=>Pj,ContainerToolbar:()=>Jj,ContainerToolbarView:()=>Kj,DatePicker:()=>LNe,Divider:()=>UNe,DragDrop:()=>Wj,Dropdown:()=>KP,DropdownItem:()=>kS,EmbedIcon:()=>owe,EmbedNav:()=>VNe,EmbedView:()=>VOe,ErrorTips:()=>WNe,FileItem:()=>Kwe,Form:()=>AOe,HOCTooltip:()=>yS,ICON_CDN:()=>jOe,Icon:()=>tD,Input:()=>hj,ItemContainer:()=>qwe,ItemGroup:()=>nke,MaskHelper:()=>Jh,Menu:()=>RA,MiniToolbar:()=>aI,Modal:()=>Wxe,ModeMenu:()=>Kxe,ModeSelect:()=>tDe,Option:()=>nDe,OverlayBar:()=>fDe,OverlayBarButton:()=>aDe,OverlayBarDivider:()=>cDe,OverlayManager:()=>xj,Popconfirm:()=>vDe,Popover:()=>Fj,Radio:()=>EDe,RangeHighlighter:()=>mRe,ReactProxyComponent:()=>jwe,Record:()=>pc,ResizerHelper:()=>op,SearchBox:()=>aCe,SearchCardMenu:()=>pCe,SearchText:()=>pRe,Select:()=>PDe,SelectItem:()=>PA,SidebarView:()=>BDe,Spin:()=>UDe,SubMenu:()=>oke,Switch:()=>Hj,TableItem:()=>dke,TableSelector:()=>lke,Tabs:()=>fRe,TextItem:()=>hke,TitleView:()=>qOe,ToolbarButton:()=>lwe,anchorProxy:()=>hRe,bgColorIcon:()=>Zye,calcGrid:()=>RCe,calcPositionByNode:()=>vj,calcPositionByPoint:()=>bj,cellBgColorIcon:()=>ewe,filterToolbarItems:()=>Xj,fontColorIcon:()=>twe,getIcon:()=>Uwe,getIconByItemConfig:()=>nD,getNextPos:()=>SCe,getRemark:()=>Lwe,getTextByItemConfig:()=>rD,getViewPortRect:()=>pj,isEqualPos:()=>PCe,itemConfig:()=>Zj,message:()=>LE,normalizePos:()=>TCe,notification:()=>rDe,pickAttribute:()=>Vwe,wrapTooltip:()=>wS});var v={};o.r(v),o.d(v,{IToolbarEditorService:()=>URe,MINI_TOOLBAR_TRIGGER:()=>_de,TOOLBAR_AGENT:()=>cfe,TYPE_DEFAULT:()=>ife,TYPE_NOTE:()=>ufe,TYPE_SIMPLE:()=>lfe,TYPE_TABLE:()=>afe,ToolbarEditorPlugin:()=>oBe,ToolbarUIDescriptor:()=>zRe,WIDGET_TYPES:()=>Lje,pluginRegister:()=>Vde});var m={};o.r(m),o.d(m,{IUiSwitchEditorService:()=>FUe,UISwitchEditorPlugin:()=>WUe,UISwitchViewerPlugin:()=>VHe,pluginRegister:()=>zde});var g={};o.r(g),o.d(g,{ALL_TYPES:()=>fLe,ISlashService:()=>SRe,SlashEditorPlugin:()=>qLe,SlashPlugin:()=>K4,SlashRenderPlugin:()=>a$e,TYPE_COLLAPSE:()=>cLe,TYPE_GENERAL:()=>lLe,TYPE_NOTE:()=>dLe,TYPE_SIMPLE:()=>sLe,TYPE_TABLE:()=>uLe,isValidType:()=>hLe,pluginRegister:()=>F4});var b={};o.r(b),o.d(b,{CustomCardEditorPlugin:()=>c$e,CustomCardPlugin:()=>hle,CustomCardViewerPlugin:()=>b$e,pluginRegister:()=>Kae});var y={};o.r(y),o.d(y,{ColorPickerSupportEditorPlugin:()=>J$e,pluginRegister:()=>jde});var w={};o.r(w),o.d(w,{AllowDownloadCheck:()=>RJe,AudioCardEditorPlugin:()=>gJe,AudioCardPlugin:()=>$se,AudioCardViewerPlugin:()=>DJe,TYPE_COPYRIGHT:()=>xse,TYPE_ERROR:()=>wse,TYPE_PENDING:()=>kse,TYPE_TRANSCODED:()=>Ose,TYPE_TRANSCODING:()=>Nse,TYPE_UPLOADED:()=>_se,TYPE_UPLOADING:()=>Cse,editAudioUIAddon:()=>QGe,pluginRegister:()=>efe,viewerAudioUIAddon:()=>CJe});var k={};o.r(k),o.d(k,{HotKeyRenderPlugin:()=>b0e,IHotKeyRendererService:()=>OTe,hotKeyCardUIAddon:()=>J2e,pluginRegister:()=>Bde});var C={};o.r(C),o.d(C,{AutoScrollRenderPlugin:()=>t9e,pluginRegister:()=>Ade});var _={};o.r(_),o.d(_,{INPUT_LATENCY_TIMEOUT:()=>xle,LogType:()=>k9e,MAX_TIME_EXPR:()=>Ole,MonitorEditorPlugin:()=>$$e,MonitorPlugin:()=>Vle,MonitorPluginOption:()=>Dle,MonitorRenderPlugin:()=>s7e,MonitorViewerPlugin:()=>A9e,pluginRegister:()=>Nle});var N={};o.r(N),o.d(N,{ACCEPT_KEY_DESIGN:()=>BW,ACCEPT_KEY_LOCAL_DOC:()=>LW,ACCEPT_KEY_MAC_OFFICE:()=>jW,ACCEPT_KEY_MIND:()=>IW,ACCEPT_KEY_MS_OFFICE:()=>AW,ACCEPT_KEY_PDF:()=>MW,ACCEPT_KEY_UPLOAD:()=>FW,FileCardEditorPlugin:()=>lje,FileCardPlugin:()=>Mq,FileCardViewerPlugin:()=>V7e,IFileKernelService:()=>fF,LOCAL_DOC_ACCEPT_KEY_MAP:()=>UW,eFileBlockUIBase:()=>NAe,eFileInlineUIBase:()=>WAe,editFileBlockUIAddon:()=>OAe,editFileInlineUIAddon:()=>qAe,pluginRegister:()=>eq,vFileBlockUIBase:()=>S7e,vFileInlineUIBase:()=>O7e,viewerFileBlockUIAddon:()=>T7e,viewerFileInlineUIAddon:()=>x7e});var O={};o.r(O),o.d(O,{EditorWidgets:()=>RSe,IImageEditorService:()=>mPe,IMAGE_FROM_ENUM:()=>YB,IMAGE_ORIGINAL_TYPE_ENUM:()=>KB,IMAGE_STATUS_DONE:()=>rM,IMAGE_STATUS_ENUM:()=>$B,IMAGE_STATUS_ERROR:()=>oM,IMAGE_STATUS_PENDING:()=>tM,IMAGE_STATUS_UPLOADING:()=>nM,IMAGE_UPLOAD_TYPE_BASE64:()=>vPe,IMAGE_UPLOAD_TYPE_FILE:()=>hPe,IMAGE_UPLOAD_TYPE_URL:()=>pPe,ImageCardEditorPlugin:()=>uTe,ImageCardViewerPlugin:()=>Net,ImagePlugin:()=>wF,ImageRenderPlugin:()=>mXe,ImageUploadTask:()=>_Se,ViewerWidgets:()=>PSe,editImageUIAddon:()=>pSe,editableImageUIBase:()=>hSe,pluginRegister:()=>fM,viewerImageUIAddon:()=>bet,viewerImageUIBase:()=>get});var x={};o.r(x),o.d(x,{HeadingEditorPlugin:()=>CBe,HeadingPlugin:()=>vY,HeadingRenderPlugin:()=>r0e,HeadingViewerPlugin:()=>rnt,IHeadingKernelService:()=>OK,IHeadingRenderService:()=>$Ze,IHeadingViewerService:()=>Vtt,pluginRegister:()=>JK});var E={};o.r(E),o.d(E,{TextDiagramCardEditorPlugin:()=>HGe,TextDiagramCardPlugin:()=>gse,TextDiagramCardViewerPlugin:()=>clt,editTextDiagramUIAddon:()=>PGe,pluginRegister:()=>Zde,viewerTextDiagramUIAddon:()=>rlt});var D={};o.r(D),o.d(D,{ALERT:()=>JI,ALERT_TYPE:()=>lB,ALERT_TYPE_COLOR1:()=>nB,ALERT_TYPE_COLOR2:()=>rB,ALERT_TYPE_COLOR3:()=>oB,ALERT_TYPE_COLOR4:()=>iB,ALERT_TYPE_COLOR5:()=>aB,ALERT_TYPE_DANGER:()=>ZI,ALERT_TYPE_INFO:()=>XI,ALERT_TYPE_SORT:()=>uB,ALERT_TYPE_SUCCESS:()=>eB,ALERT_TYPE_TIPS:()=>tB,ALERT_TYPE_WARNING:()=>QI,AlertEditorPlugin:()=>MRe,AlertPlugin:()=>LB,AlertRenderPlugin:()=>sXe,AlertViewerPlugin:()=>Get,ColorSelector:()=>gRe,pluginRegister:()=>Kde});var R={};o.r(R),o.d(R,{ALIGNMENT_CENTER:()=>CF,ALIGNMENT_DISTRIBUTED:()=>OF,ALIGNMENT_JUSTIFY:()=>NF,ALIGNMENT_LEFT:()=>kF,ALIGNMENT_RIGHT:()=>_F,AlignmentEditorPlugin:()=>mTe,AlignmentPlugin:()=>XF,AlignmentRenderPlugin:()=>CXe,AlignmentValues:()=>xF,AlignmentViewerPlugin:()=>Qet,HtmlAttrName:()=>PF,HtmlNodeName:()=>RF,HtmlStyle:()=>EF,LakeStyle:()=>DF,pluginRegister:()=>TF});var P={};o.r(P),o.d(P,{AoneDataSourcePlugin:()=>Iae,pluginRegister:()=>aae,readCangJie:()=>Olt,readDingContent:()=>sae});var S={};o.r(S),o.d(S,{BasicTextStyleEditorPlugin:()=>CTe,BasicTextStylePlugin:()=>dU,BasicTextStyleRenderPlugin:()=>DXe,BasicTextStyleViewerPlugin:()=>ttt,pluginRegister:()=>tL});var T={};o.r(T),o.d(T,{BgColorEditorPlugin:()=>ATe,BgColorPlugin:()=>AU,BgColorRenderPlugin:()=>jXe,BgColorViewerPlugin:()=>ott,pluginRegister:()=>hU});var A={};o.r(A),o.d(A,{BookmarkEditor:()=>h7e,BookmarkEditorPlugin:()=>$Ke,BookmarkPlugin:()=>xue,BookmarkRenderPlugin:()=>m7e,BookmarkViewerPlugin:()=>dat,editBookmarkBlockUIAddon:()=>xKe,editBookmarkInlineUIAddon:()=>LKe,pluginRegister:()=>zKe,viewerBookmarkUIAddon:()=>nat});var j={};o.r(j),o.d(j,{BreakLinePlugin:()=>UU,BreakLineRenderPlugin:()=>MXe,pluginRegister:()=>jU});var I={};o.r(I),o.d(I,{CalendarCardEditorPlugin:()=>UYe,CalendarCardPlugin:()=>Cce,CalendarCardViewerPlugin:()=>Bat,editCalendarUIAddon:()=>RYe,pluginRegister:()=>Qde,viewerCalendarUIAddon:()=>Pat});var B={};o.r(B),o.d(B,{CardPlugin:()=>pV,CardRenderPlugin:()=>oQe,pluginRegister:()=>OM});var M={};o.r(M),o.d(M,{ClearFormatEditorPlugin:()=>LTe,ClearFormatPlugin:()=>CV,ClearFormatRenderPlugin:()=>lQe,pluginRegister:()=>mV});var F={};o.r(F),o.d(F,{ClipboardPlugin:()=>MV,ClipboardRenderPlugin:()=>BQe,ClipboardViewerPlugin:()=>htt,IClipboardRenderService:()=>yQe,pluginRegister:()=>NV});var L={};o.r(L),o.d(L,{CodeEditorPlugin:()=>HTe,CodePlugin:()=>UH,CodeRenderPlugin:()=>zQe,CodeViewerPlugin:()=>ytt,pluginRegister:()=>HV});var U={};o.r(U),o.d(U,{CodeBlockCardPlugin:()=>Y7,CodeblockCardEditorPlugin:()=>wHe,CodeblockCardViewerPlugin:()=>yot,editCodeblockUIAddon:()=>GVe,pluginRegister:()=>$de,viewerCodeblockUIAddon:()=>cot});var V={};o.r(V),o.d(V,{CollapseEditorPlugin:()=>Xze,CollapsePlugin:()=>ere,CollapseRenderPlugin:()=>K6e,CollapseViewerPlugin:()=>yit,pluginRegister:()=>one});var H={};o.r(H),o.d(H,{ColorEditorPlugin:()=>GTe,ColorPlugin:()=>yz,ColorRenderPlugin:()=>GQe,ColorViewerPlugin:()=>Ctt,pluginRegister:()=>zH});var z={};o.r(z),o.d(z,{ColumnsEditorPlugin:()=>Yze,ColumnsPlugin:()=>tne,ColumnsRenderPlugin:()=>b6e,ColumnsViewerPlugin:()=>Zot,IColumnsKernelService:()=>cte,pluginRegister:()=>ite});var W={};o.r(W),o.d(W,{ContainerPlugin:()=>Pz,pluginRegister:()=>kz});var q={};o.r(q),o.d(q,{ContentPlugin:()=>Qz,IContentKernelService:()=>Uz,pluginRegister:()=>Sz});var $={};o.r($),o.d($,{DarkModeEditorPlugin:()=>QKe,DarkModeViewerPlugin:()=>pat,pluginRegister:()=>YKe});var K={};o.r(K),o.d(K,{DeletePlugin:()=>dW,DeleteRenderPlugin:()=>oZe,IDeleteKernelService:()=>n8e,pluginRegister:()=>Zz});var Y={};o.r(Y),o.d(Y,{DropFilePlugin:()=>wW,DropFileRenderPlugin:()=>lZe,pluginRegister:()=>fW});var G={};o.r(G),o.d(G,{FallbackCardEditorPlugin:()=>iAe,FallbackCardPlugin:()=>TW,FallbackCardViewerPlugin:()=>Stt,pluginRegister:()=>kW});var J={};o.r(J),o.d(J,{FileReader:()=>FM,FileReaderEditorPlugin:()=>sje,FileReaderPlugin:()=>Qq,IFileReaderKernelService:()=>HB,PreFileReader:()=>$Se,pluginRegister:()=>Gq});var X={};o.r(X),o.d(X,{FocusEditorPlugin:()=>pje,FocusPlugin:()=>i$,FocusRenderPlugin:()=>hZe,focusCardUIAddon:()=>xlt,pluginRegister:()=>Zq});var Q={};o.r(Q),o.d(Q,{FontsizeEditorPlugin:()=>kje,FontsizePlugin:()=>iK,FontsizeRenderPlugin:()=>yZe,FontsizeViewerPlugin:()=>jtt,IFontsizeService:()=>P$,pluginRegister:()=>p$});var Z={};o.r(Z),o.d(Z,{FormatPainterEditorPlugin:()=>Pje,FormatPainterPlugin:()=>wK,FormatPainterRenderPlugin:()=>xZe,IFormatKernelService:()=>uK,IFormatRenderService:()=>Nje,pluginRegister:()=>pK});var ee={};o.r(ee),o.d(ee,{FullscreenEditorPlugin:()=>sBe,IFullscreenEditorService:()=>Aje,pluginRegister:()=>Ide});var te={};o.r(te),o.d(te,{HistoryEditorPlugin:()=>DBe,HistoryPlugin:()=>IY,HistoryRenderPlugin:()=>a0e,IHistoryService:()=>bY,pluginRegister:()=>_Y});var ne={};o.r(ne),o.d(ne,{HrCardEditorPlugin:()=>VBe,HrCardPlugin:()=>vG,HrCardViewerPlugin:()=>cnt,editHrUIAddon:()=>TBe,editableHrUIBase:()=>SBe,pluginRegister:()=>KY});var re={};o.r(re),o.d(re,{INDENT_BLACKLIST:()=>JG,IndentEditorPlugin:()=>GBe,IndentPlugin:()=>BJ,IndentRenderPlugin:()=>N0e,IndentViewerPlugin:()=>fnt,MAX_INDENT:()=>GG,pluginRegister:()=>oJ});var oe={};o.r(oe),o.d(oe,{IINodeReaderKernelService:()=>qB,INodeCardPreReader:()=>ZSe,INodeCardReader:()=>GM,INodeReaderPlugin:()=>VJ,pluginRegister:()=>FJ});var ie={};o.r(ie),o.d(ie,{InputPlugin:()=>rX,InputRenderPlugin:()=>U0e,pluginRegister:()=>HJ});var ae={};o.r(ae),o.d(ae,{KernelAssistantPlugin:()=>Jie,pluginRegister:()=>zZ});var le={};o.r(le),o.d(le,{LabelCardEditorPlugin:()=>kMe,LabelCardPlugin:()=>ZX,LabelCardViewerPlugin:()=>Nnt,LabelRenderPlugin:()=>W0e,editLabelUIAddon:()=>cMe,editableLabelUIBase:()=>uMe,pluginRegister:()=>Yde,vLabelCardUIBase:()=>gnt,viewerLabelUIAddon:()=>bnt});var ue={};o.r(ue),o.d(ue,{ILayoutService:()=>lQ,LayoutEditorPlugin:()=>xMe,LayoutPlugin:()=>kQ,LayoutViewerPlugin:()=>Ent,pluginRegister:()=>dQ});var ce={};o.r(ce),o.d(ce,{LineHeightEditorPlugin:()=>jMe,LineHeightPlugin:()=>UQ,LineHeightRenderPlugin:()=>J0e,LineHeightViewerPlugin:()=>Pnt,pluginRegister:()=>_Q});var se={};o.r(se),o.d(se,{ILinkKernelService:()=>JQ,ILinkRenderService:()=>MMe,LinkEditorPlugin:()=>zMe,LinkElement:()=>a1e,LinkPlugin:()=>GZ,LinkRenderPlugin:()=>h1e,LinkViewerPlugin:()=>Mnt,pluginRegister:()=>tZ});var de={};o.r(de),o.d(de,{IListDataProcessService:()=>s0,INDEX_TYPE_CHANGE_EVENT:()=>e0,ITaskListModel:()=>Elt,ITaskListRenderDataService:()=>E1e,ITaskListViewerDataService:()=>Unt,LIST_ICONS:()=>r0,LIST_INDEX_ATTR_NAMES:()=>ZZ,LIST_LABEL:()=>o0,LIST_NAMES:()=>t0,ListEditorPlugin:()=>cFe,ListPlugin:()=>R2,ListRenderPlugin:()=>z1e,ListViewerPlugin:()=>rrt,MAX_LIST_LEVEL:()=>QZ,NAME_MAP:()=>n0,getLastHeadingIndexType:()=>y0,getLastIndexType:()=>g0,pluginRegister:()=>JZ,setLastHeadingIndexType:()=>w0,setLastIndexType:()=>b0});var fe={};o.r(fe),o.d(fe,{MarkPlugin:()=>z2,MarkRenderPlugin:()=>G1e,MarkViewerPlugin:()=>crt,pluginRegister:()=>P2});var he={};o.r(he),o.d(he,{HeadMarkdownMatcher:()=>qI,IMarkdownKernelService:()=>GI,MarkdownPlugin:()=>G2,MarkdownRenderPlugin:()=>Q1e,PairMarkdownMatcher:()=>QF,PatternMarkdownMatcher:()=>GB,TriggerType:()=>WI,pluginRegister:()=>$I});var pe={};o.r(pe),o.d(pe,{INotificationManager:()=>n2e,MarkdownPasteParsePlugin:()=>n3,MarkdownPasteParseRenderPlugin:()=>d2e,pluginRegister:()=>J2});var ve={};o.r(ve),o.d(ve,{KaTeXUtil:()=>mWe,MathCardEditorPlugin:()=>JWe,MathCardPlugin:()=>Rre,MathCardViewerPlugin:()=>Sit,editMathUIAddon:()=>jWe,extendBBox:()=>aWe,extendKaTeX:()=>lWe,getKaTex:()=>dWe,isTrust:()=>eWe,pluginRegister:()=>Jde,registerTrust:()=>Zze,viewerMathUIAddon:()=>Oit});var me={};o.r(me),o.d(me,{MentionCardEditorPlugin:()=>nze,MentionCardPlugin:()=>kee,MentionCardViewerPlugin:()=>Sot,eMentionUIBase:()=>WHe,editMentionUIAddon:()=>qHe,pluginRegister:()=>Xde,vMentionCardUI:()=>Not,viewerMentionUIAddon:()=>Oot});var ge={};o.r(ge),o.d(ge,{IMetaService:()=>c$,MetaDescriptor:()=>C$,MetaPlugin:()=>f3,pluginRegister:()=>a$});var be={};o.r(be),o.d(be,{IMiniToolbarService:()=>fI,MiniToolbarEditorPlugin:()=>_Fe,MiniToolbarViewerPlugin:()=>vrt,cardToolbarCardUIAddon:()=>q7e,containerRightToolbarCardUIAddon:()=>K7e,containerToolbarCardUIAddon:()=>G7e,editToolbarPresetAddon:()=>tet,pluginRegister:()=>cI,toolbarBoxUIAddon:()=>Rlt,toolbarControllerCardUIAddon:()=>X7e});var ye={};o.r(ye),o.d(ye,{MixedTextStyleEditorPlugin:()=>RFe,pluginRegister:()=>Mde});var we={};o.r(we),o.d(we,{MobileEditorPlugin:()=>IFe,pluginRegister:()=>Fde});var ke={};o.r(ke),o.d(ke,{PARAGRAPH_SPACING_DEFAULT:()=>B9,PARAGRAPH_SPACING_RELAX:()=>I9,ParagraphEditorPlugin:()=>LFe,ParagraphPlugin:()=>T3,ParagraphRenderPlugin:()=>g2e,ParagraphViewerPlugin:()=>brt,getOnlyImgCard:()=>Plt,pluginRegister:()=>p3});var Ce={};o.r(Ce),o.d(Ce,{PlaceholderRenderPlugin:()=>_6e,pluginRegister:()=>Lde});var _e={};o.r(_e),o.d(_e,{IQuickInputKernelService:()=>L3,IQuickInputRendererService:()=>aLe,QuickInputPlugin:()=>q3,QuickInputRenderPlugin:()=>S2e,pluginRegister:()=>B3});var Ne={};o.r(Ne),o.d(Ne,{IQuoteEditingService:()=>J3,QuoteEditorPlugin:()=>GFe,QuotePlugin:()=>v4,QuoteRenderPlugin:()=>M2e,QuoteViewerPlugin:()=>krt,pluginRegister:()=>K3});var Oe={};o.r(Oe),o.d(Oe,{IVisibilityRenderService:()=>U2e,RenderAssistantRenderPlugin:()=>t3e,pluginRegister:()=>Ude,visibilityAddon:()=>Tlt});var xe={};o.r(xe),o.d(xe,{SaveEditorPlugin:()=>rLe,SavePlugin:()=>C4,SaveRenderPlugin:()=>o3e,pluginRegister:()=>m4});var Ee={};o.r(Ee),o.d(Ee,{ISearchService:()=>mMe,SearchEditorPlugin:()=>M$e,SearchPlugin:()=>_le,SearchRenderPlugin:()=>w9e,pluginRegister:()=>ple});var De={};o.r(De),o.d(De,{SelectAllPlugin:()=>P4,SelectAllRenderPlugin:()=>c3e,SelectAllViewerPlugin:()=>Nrt,pluginRegister:()=>_4});var Re={};o.r(Re),o.d(Re,{ISelectionRenderService:()=>T4e,SelectionPlugin:()=>M4,SelectionRenderPlugin:()=>F4e,SelectionViewerPlugin:()=>Rrt,pluginRegister:()=>S4});var Pe={};o.r(Pe),o.d(Pe,{SubscriptPlugin:()=>v5,SubscriptRenderPlugin:()=>W4e,SubscriptViewerPlugin:()=>Trt,pluginRegister:()=>Q4});var Se={};o.r(Se),o.d(Se,{SummaryPlugin:()=>iae});var Te={};o.r(Te),o.d(Te,{TableEditorPlugin:()=>mUe,TablePlugin:()=>v9,TableRenderPlugin:()=>P8e,TableViewerPlugin:()=>Krt,editTableUIBase:()=>jlt,pluginRegister:()=>b5});var Ae={};o.r(Ae),o.d(Ae,{ThirdpartyCardViewerPlugin:()=>zit,ThirdpartyEditorPlugin:()=>vqe,ThirdpartyPlugin:()=>Lie,ThirdpartyServiceBase:()=>roe,ThirdpartyUtil:()=>Cie,editThirdpartyUIAddon:()=>cqe,editableThirdpartyUIBase:()=>uqe,pluginRegister:()=>Pre,vThirdpartyCardUIBase:()=>Bit,viewerThirdpartyUIAddon:()=>Mit});var je={};o.r(je),o.d(je,{ITOCEditorService:()=>bqe,ITOCKernelService:()=>xre,TOCEditorPlugin:()=>Kqe,TOCPlugin:()=>$ae,TOCViewerPlugin:()=>Xit});var Ie={};o.r(Ie),o.d(Ie,{TypeWriterEditorPlugin:()=>kUe,pluginRegister:()=>Hde});var Be={};o.r(Be),o.d(Be,{ITypographyKernelService:()=>h$,TYPOGRAPHY_CLASSIC:()=>oY,TYPOGRAPHY_TRADITIONAL:()=>rY,TypographyEditorPlugin:()=>Mlt,TypographyEnum:()=>nY,TypographyPlugin:()=>n7,TypographyRenderPlugin:()=>A8e,TypographyViewerPlugin:()=>Jrt,pluginRegister:()=>s$});var Me={};o.r(Me),o.d(Me,{IUploadEditorService:()=>sPe,UploadEditorPlugin:()=>JUe,pluginRegister:()=>Wde});var Fe={};o.r(Fe),o.d(Fe,{VideoCardEditorPlugin:()=>Wze,VideoCardViewerPlugin:()=>Wot,VideoPlugin:()=>ote,VideoUploadTask:()=>_ze,eVideoUIBase:()=>mze,editVideoUIAddon:()=>gze,pluginRegister:()=>Gde,vVideoUIBase:()=>Mot,viewerVideoUIAddon:()=>Fot});var Le={};o.r(Le),o.d(Le,{ViewResizeObserverEditorPlugin:()=>aVe,ViewResizeObserverViewerPlugin:()=>Zrt,pluginRegister:()=>qde});var Ue={};o.r(Ue),o.d(Ue,{VoteCardEditorPlugin:()=>iGe,VoteCardPlugin:()=>Xce,VoteCardViewerPlugin:()=>Jat,eVoteUIBase:()=>$Ye,editVoteUIAddon:()=>KYe,pluginRegister:()=>ZYe,vVoteUIBase:()=>Hat,viewerVoteUIAddon:()=>zat});var Ve={};o.r(Ve),o.d(Ve,{Alert:()=>D,Alignment:()=>R,AoneDataSource:()=>P,Audio:()=>w,AutoScroll:()=>C,BasicTextStyle:()=>S,BgColor:()=>T,Bookmark:()=>A,BreakLine:()=>j,Calendar:()=>I,Card:()=>B,ClearFormat:()=>M,Clipboard:()=>F,Code:()=>L,Codeblock:()=>U,Collapse:()=>V,Color:()=>H,ColorPickerSupport:()=>y,Columns:()=>z,Container:()=>W,Content:()=>q,CustomCard:()=>b,DarkMode:()=>$,Delete:()=>K,DropFile:()=>Y,FallbackCard:()=>G,File:()=>N,FileReader:()=>J,Focus:()=>X,Fontsize:()=>Q,FormatPainter:()=>Z,Fullscreen:()=>ee,Heading:()=>x,History:()=>te,HotKey:()=>k,Hr:()=>ne,HtmlDataSource:()=>s,Image:()=>O,Indent:()=>re,InodeDataSource:()=>oe,Input:()=>ie,KernelAssistant:()=>ae,Label:()=>le,LakeDataSource:()=>d,Layout:()=>ue,LineHeight:()=>ce,Link:()=>se,List:()=>de,Mark:()=>fe,Markdown:()=>he,MarkdownDataSource:()=>c,MarkdownPasteParse:()=>pe,Math:()=>ve,Mention:()=>me,Meta:()=>ge,MiniToolbar:()=>be,MixedTextStyle:()=>ye,Mobile:()=>we,Monitor:()=>_,Paragraph:()=>ke,Placeholder:()=>Ce,QuickInput:()=>_e,Quote:()=>Ne,RenderAssistant:()=>Oe,Save:()=>xe,Search:()=>Ee,Selectall:()=>De,Selection:()=>Re,Slash:()=>g,Subscript:()=>Pe,Summary:()=>Se,Table:()=>Te,TextDataSource:()=>h,TextDiagram:()=>E,Thirdparty:()=>Ae,Toc:()=>je,Toolbar:()=>v,TypeWriter:()=>Ie,Typography:()=>Be,UiSwitch:()=>m,Upload:()=>Me,Video:()=>Fe,ViewResizeObserver:()=>Le,Vote:()=>Ue});var He,ze={Root:"#root",LikeRoot:"~likeRoot",VirtualLikeRoot:"~virtualLikeRoot",TextContainer:"~textContainer",Level:"~level",Text:"#text",Block:"~block",Inline:"~inline",InlineBox:"$inlineBox",Card:"~card",InlineCard:"~inlineCard",BlockCard:"~blockCard",Sticky:"~sticky",DisallowEmpty:"~disallowEmpty",Clean:"~clean",Heading:"~heading",TableHole:"~tableHole",Table:"~table",TableRow:"~tableRow",TableCell:"~tableCell",Hole:"~hole",RootCardHole:"~rootChildHole",AttrContext:"~attrContext",AlertHole:"~AlertHole",ContainerHole:"~containerHole",WidthModeBox:"~widthModeBox",OnlyText:"~onlyText",Brick:"~brick"};function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function qe(e){var t=function(e,t){if("object"!=We(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=We(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==We(t)?t:String(t)}function $e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!t)throw e.globalLogger&&e.globalLogger("".concat(n||""),"".concat(r||n||""),o),new Error("lakex_editor_assert_error ".concat(n||""," ").concat(r||""))};kt.setGlobalLogger=function(e){return kt.globalLogger=e,function(){kt.globalLogger=void 0}},kt.fatal=function(){return kt(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],0)},kt.error=function(){return kt(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],1)},kt.warn=function(){return kt(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],2)},kt.info=function(){return kt(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],3)},kt.debug=function(){return kt(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],4)};var Ct,_t,Nt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ye(this,e),Object.defineProperty(this,"_node",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_offset",{enumerable:!0,configurable:!0,writable:!0,value:n})}return Ke(e,[{key:"node",get:function(){return this._node}},{key:"offset",get:function(){return this._offset}},{key:"isAtStart",get:function(){return 0===this._offset}},{key:"isAtEnd",get:function(){return this._node.isElement()?this._node.childCount===this._offset:!!this._node.isCardNode()||(kt.fatal(this._node.isTextNode(),"framework/kernel/src/model/selection/position.ts:44"),this._node.dataLength===this._offset)}},{key:"clone",value:function(){return new e(this._node,this._offset)}}],[{key:"equal",value:function(e,t){return e===t||e._node===t._node&&e._offset===t._offset}}]),e}();function Ot(e,t){var n={equal:!1,contains:!1,containedBy:!1,preceding:!1,following:!1};if(e===t)return n.equal=!0,n;if(e.isRootNode())return n.contains=!0,n;if(t.isRootNode())return n.containedBy=!0,n;for(var r=e.getPath(),o=t.getPath(),i=r.length,a=o.length,l=0,u=Math.min(i,a);ls)return n.following=!0,n}return kt.fatal(i!==a,"invalid compare node, aPath=".concat(r,", bPath=").concat(o),"framework/kernel/src/model/utils/node/compare-node.ts:65"),r.lengthe.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.enter,r=t.leave;(n||r)&&At(e,n,r)}function At(e,t,n){if(t&&!1===t(e))return!1;if(e.isElement())for(var r=e.children,o=r.length-1;o>=0;o--)if(!1===At(r[o],t,n))return!1;return!n||!1!==n(e)}!function(e){e.RootNode="RootNode",e.Element="Element",e.Card="Card",e.Hole="Hole",e.Text="Text"}(Ct||(Ct={})),function(e){e.Element="element",e.Card="card",e.Text="text"}(_t||(_t={}));var jt="collapse",It="summary";function Bt(e){return e.hasCategory(ze.Heading)}function Mt(e){return Bt(e)?parseInt(e.nodeName.slice(1),10):Number.MAX_VALUE}function Ft(e){return Bt(e)&&"true"===e.attrs.collapsed}function Lt(e){for(;e.parent;){if(e.parent.hasCategory(ze.Root))return e;e=e.parent}return null}function Ut(e,t){if(!(e&&e.isConnected&&t&&t.isConnected&&Bt(t)))return!1;if(e.closest(ze.Heading)===t)return!1;var n=Lt(e);if(!n)return!1;for(var r=Mt(t),o=n.previousSibling;o;){if(Bt(o)){if(o===t)return!0;if(Mt(o)<=r)return!1}o=o.previousSibling}return!1}function Vt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=function(){var r=Lt(e);if(!r)return 1;for(var o=Mt(e),i=r;i;){if(Bt(i)){var a=Mt(i);if(a0){var l=t.findIndex((function(e){return e.id===i.id}));i=t[l-1];continue}}i=i.previousSibling}};do{if(r())break}while(false);return n}function Ht(e,t){var n=t.attrs,r=e.getNodeSchema(t.name);return r?"element"===r.type?function(e,t){var n=t.name,r=t.attrs,o=t.children,i=e.createElement(n,r,t.id);return o&&o.forEach((function(t){var r=Ht(e,t);r&&e.acceptNode(n,r.nodeName)&&e.appendChild(i,r)})),i}(e,t):"text"===r.type?e.createTextNode(t.data,n,t.id):(kt.fatal("card"===r.type,"framework/kernel/src/model/utils/node/json-to-node.ts:38"),e.createCardNode(t.name,t.attrs,t.id)):null}var zt=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"closest",value:function(e,t){for(;e;){if(e.hasCategory(t))return e;e=e.parent}return null}},{key:"jsonToNode",value:function(e,t){return function(e,t){return Ht(e,t)}(e,t)}},{key:"getAncestors",value:function(e,t){return xt(e,t)}},{key:"getAncestor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(kt.fatal(t.length>0,"invalid getAncestor","framework/kernel/src/model/utils/node/index.ts:63");e;){if(e.hasCategory(t,n))return e;if(e.isRootNode())return null;e=e.parent}return null}},{key:"getCommonAncestor",value:function(e,t){return function(e,t){if(!e.length)return null;var n,r=[],o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var i=xt(n.value,t);if(!(null==i?void 0:i.length))return null;r.push(i)}}catch(e){o.e(e)}finally{o.f()}if(1===r.length)return r[0][r[0].length-1];for(var a=0,l=null;r.every((function(e){return e[Math.min(a,e.length-1)]===r[0][Math.min(a,r[0].length-1)]}));)l=r[0][Math.min(a,r[0].length-1)],a++;return l}(e,t)}},{key:"compare",value:function(e,t){return Ot(e,t)}},{key:"unwrapNode",value:function(e,t){return function(e,t){var n=t.parentNode;kt.fatal(t.isElement()&&n,"failed to execute unwrapNode","framework/kernel/src/model/utils/node/unwrap-node.ts:8"),t.children.forEach((function(r){e.insertBefore(n,r,t)})),e.removeChild(n,t)}(e,t)}},{key:"getHeadInputPosition",value:function(e){return St(e)}},{key:"getTailInputPosition",value:function(e){return function(e){var t,n=[];if(Tt(e,{leave:function(r){if(r.isTextNode()){if(n.push(r),!r.isEmpty())return t=new Nt(r,r.dataLength),!1}else if(r.hasCategory(ze.TextContainer))n.push(r);else if(e.hasCategory(ze.TextContainer))return t=new Nt(e,e.childCount),!1;return!0}}),t)return t;if(n.length){var r=n[0];return r.isTextNode()?(kt.fatal(0===r.dataLength,"framework/kernel/src/model/utils/node/get-tail-input-position.ts:39"),new Nt(r,r.dataLength)):(kt.fatal(r.isElement()&&r.hasCategory(ze.TextContainer),"framework/kernel/src/model/utils/node/get-tail-input-position.ts:43"),new Nt(r,r.childCount))}return null}(e)}},{key:"isLikeEmptyElement",value:function(e){return Dt(e)}},{key:"walkNode",value:function(e,t){return Rt(e,t)}},{key:"reverseWalkNode",value:function(e,t){return Tt(e,t)}},{key:"getTopNode",value:function(e){return function(e){if(!e.parent)return null;for(var t=e.parent,n=e;t&&!t.isRootNode();)n=t,t=t.parent;return n}(e)}},{key:"isInCollapsed",value:function(e){return!!e.isConnected&&function(e){if(!e)return!1;var t=e.closest(jt);if(t&&t!==e&&!e.closest(It)&&"false"===t.attrs.open)return t;var n=Lt(e);if(!n)return!1;for(var r=n.previousSibling,o=Mt(n);r;){if(Bt(r)){var i=Mt(r);if(i=0;o--){var i=t[o];if(!(i.offset>=n.offset)){var a=Mt(i);if(a0&&t.childCount>0,"framework/kernel/src/model/utils/position/helpers/split-inline-node.ts:32"),e.insertAfter(t.parentNode,r,t),e.newPosition(r.parentNode,r.offset)}(e,n,r):t}function on(e){if(Array.isArray(e))return e}function an(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=55296&&n<56320&&t+1!==e.length))return r;var o=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(o)?o-56320+(r-55296<<10)+65536:r}function dn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function fn(e){return e<65536?1:2}function hn(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function pn(e){return function(e){if(Array.isArray(e))return an(e)}(e)||hn(e)||ln(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var vn,mn=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function gn(e){for(var t,n=[],r=0;t=mn.exec(e);){var o=t[0];n.push.apply(n,pn(e.substring(r,t.index))),n.push(o),r=t.index+o.length}return n.length?(n.push.apply(n,pn(e.substring(r))),n):pn(e)}var bn="function"==typeof String.prototype.normalize?function(e){return e.normalize("NFC")}:function(e){return e},yn=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:{from:0,to:0}}),Object.defineProperty(this,"done",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"matches",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"buffer",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"bufferPos",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"normalize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"query",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,vn,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.buffer=t||"",this.normalize=r?function(e){return r(bn(e))}:bn,this.query=this.normalize(n)}return Ke(e,[{key:"peek",value:function(){return this.bufferPos>=this.buffer.length?-1:sn(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var e=this.peek();if(e<0)return this.done=!0,this;var t=dn(e),n=this.normalize(t),r=this.bufferPos;this.bufferPos+=fn(e);for(var o=0,i=r;;o++){var a=n.charCodeAt(o),l=this.match(a,i);if(o===n.length-1){if(l)return this.value=l,this;break}i===r&&o3&&void 0!==arguments[3]?arguments[3]:1e9,r=new yn(e,t,arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?void 0:function(e){return e.toLowerCase()}),o=[];!r.next().done;){if(o.length>=n)return null;o.push(r.value)}return o}},{key:"replaceRange",value:function(e,t,n){return kt(t.from>=0&&t.to<=e.length,"framework/utils/src/strings/helpers/string-query.ts:156"),e.substring(0,t.from)+n+e.substring(t.to)}},{key:"replaceAll",value:function(e,t,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1e9;if(!e)return e;if(!t)return e;for(var o=new yn(e,t,arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?void 0:function(e){return e.toLowerCase()}),i=0,a="",l="",u=0;!(o.next().done||++i>r);)a+=e.slice(u,o.value.from)+n,u=o.value.to,l=e.slice(u);return a+l}}]),e}();function kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)throw new Error("invalid");return[e.substring(0,t),e.substring(t)]}},{key:"insertString",value:function(t,n,r){if(0===n)return r+t;var o=e.splitString(t,n);return o[0]+r+o[1]}},{key:"deleteChar",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=t.substring(0,n),i=t.substring(n);if("forward"===e){var a=gn(o);return(a=a.slice(0,a.length-r)).join("")+i}return o+gn(i).slice(r).join("")}},{key:"deleteString",value:function(e,t,n){return e.substring(0,t)+e.substring(n)}},{key:"substring",value:function(e,t,n){return e.substring(t,n)}},{key:"replaceString",value:function(e,t,n,r){return kt(t>=0&&n<=e.length,"framework/utils/src/strings/index.ts:126"),e.substring(0,t)+r+e.substring(n)}},{key:"replaceSourceText",value:function(e,t,n,r){if(!e)return e;var o=e.split(t);return r>=o.length-1?e:o.reduce((function(e,o,i){return 0===i?o:i===r+1?e+n+o:e+t+o}),"")}},{key:"replaceAll",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return wn.replaceAll(e,t,n,r)}},{key:"search",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return wn.matchAll(e,t,n)}},{key:"splitByRanges",value:function(e,t){var n,r=0,o=[],i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return kn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;o.push(e.substring(r,a.from)),o.push(e.slice(a.from,a.to)),r=a.to}}catch(e){i.e(e)}finally{i.f()}return o.push(e.slice(r)),o}},{key:"replaceRange",value:function(e,t,n){return e.substring(0,t.from)+n+e.substring(t.to)}},{key:"size",value:function(e){return e.length}}]),e}(),xn="between",En="front",Dn="behind",Rn="empty_text";function Pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xn,r=t.node,o=t.offset;return r.isTextNode()?0===o?function(e,t,n){if(n===xn)return e.newPosition(t.parentNode,t.offset);if(n===En||n===Dn)return e.newPosition(t,0);kt.fatal(n===Rn,"framework/kernel/src/model/utils/position/helpers/split-text-node.ts:54");var r=t.cloneNode(!1);return e.setTextNodeData(r,""),e.insertBefore(t.parentNode,r,t),e.newPosition(r,0)}(e,r,n):o===On.size(r.data)?function(e,t,n){if(n===xn)return e.newPosition(t.parentNode,t.offset+1);if(n===En||n===Dn)return e.newPosition(t,0);kt.fatal(n===Rn,"framework/kernel/src/model/utils/position/helpers/split-text-node.ts:77");var r=t.cloneNode(!1);return e.setTextNodeData(r,""),e.insertAfter(t.parentNode,r,t),e.newPosition(r,0)}(e,r,n):function(e,t,n,r){var o=cn(On.splitString(t.data,n),2),i=o[0],a=o[1];kt.fatal(i&&a,"framework/kernel/src/model/utils/position/helpers/split-text-node.ts:95");var l=t.cloneNode(!1);e.setTextNodeData(t,i),e.setTextNodeData(l,a),e.insertAfter(t.parentNode,l,t);var u=e.editing.kernel.getExtend("text_helper");if(u&&u.afterSplitText(e,t,l),r===xn)return e.newPosition(t.parentNode,t.offset+1);if(r===En)return e.newPosition(t,n);if(r===Dn)return e.newPosition(l,0);kt.fatal(r===Rn,"framework/kernel/src/model/utils/position/helpers/split-text-node.ts:120");var c=t.cloneNode(!1);return e.setTextNodeData(c,""),e.insertAfter(t.parentNode,c,t),e.newPosition(c,0)}(e,r,o,n):t}var Sn=1,Tn=2;function An(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];kt.fatal(e&&e.node.isConnected,"framework/kernel/src/model/utils/position/helpers/verify-position.ts:13");var n=t?3:0;e.node.isCardNode()?kt.fatal(0===e.offset,"framework/kernel/src/model/utils/position/helpers/verify-position.ts:18"):e.node.isTextNode()?kt.fatal(e.offset>=0&&e.offset<=e.node.data.length,"position.offset: ".concat(e.offset," is out of range, node.data.length: ").concat(e.node.data.length,", connected: ").concat(e.node.isConnected),"framework/kernel/src/model/utils/position/helpers/verify-position.ts:23"):(kt.fatal(e.node.isElement()&&e.offset>=0&&e.offset<=e.node.childCount,"framework/kernel/src/model/utils/position/helpers/verify-position.ts:28"),!0===t||(Sn|Tn)&n?kt.fatal(e.node.hasCategory([ze.TextContainer,ze.Root,ze.LikeRoot,ze.TableHole,ze.Hole]),"framework/kernel/src/model/utils/position/helpers/verify-position.ts:36"):t&&(Sn&n?kt.fatal(e.node.hasCategory(ze.TextContainer),"framework/kernel/src/model/utils/position/helpers/verify-position.ts:50"):Tn&t&&kt.fatal(e.node.hasCategory([ze.Root,ze.LikeRoot,ze.TableHole,ze.Hole]),"framework/kernel/src/model/utils/position/helpers/verify-position.ts:53")))}function jn(e,t,n){var r=t.node;return r.hasCategory([ze.Root,ze.LikeRoot])?t=function(e,t){var n=e.createElement(e.defaultElementName);return t.node.isEmpty()&&(t=e.insertNodeByPosition(t,n.cloneNode(!1))),e.insertNodeByPosition(t,n),e.newPosition(n,0)}(e,t):r.hasCategory([ze.TableHole,ze.Hole])?t=function(e,t){var n=t.node,r=t.offset,o=e.createElement(e.defaultElementName);return 1===r?(e.insertAfter(n.parentNode,o,n),e.newPosition(o,0)):(kt.fatal(0===r,"framework/kernel/src/model/utils/position/break-line.ts:198"),e.insertBefore(n.parentNode,o,n),t)}(e,t):(kt.fatal(r.hasCategory([ze.TextContainer,ze.Text]),"framework/kernel/src/model/utils/position/break-line.ts:31"),t=Dt(r.closest(ze.Block))?function(e,t){var n=Gt(t.node,ze.Block),r=n.attrs.level;if(r)return r>1?e.setAttribute(n,"level",r-1):e.removeAttribute(n,"level"),e.newPosition(n,0);var o=e.defaultElementName;if(n.nodeName===o&&Dt(n)&&"quote"===n.parentNode.nodeName)return Dt(n.parentNode)?(e.replaceChild(n.parentNode.parentNode,n,n.parentNode),e.newPosition(n,0)):(t=nn(e,e.newPosition(n.parentNode,n.offset+1)),e.insertNodeByPosition(t,n),e.newPosition(n,0));var i=t.node.closest(ze.Text),a=n.hasCategory(ze.Clean),l=a?{}:Xt(e,o,n.attrs),u=e.createElement(o,l);return i&&!a&&e.acceptNode(u.nodeName,i.nodeName)&&e.appendChild(u,i.cloneNode(!1)),e.insertAfter(n.parentNode,u,n),n.hasCategory(ze.DisallowEmpty)&&e.removeChild(n.parentNode,n),e.newPosition(u,0)}(e,t):function(e,t,n){var r=Qt(t),o=t=rn(e,Pn(e,t)),i=o.node,a=o.offset;if(!i.isElement())return t;kt.fatal(i.hasCategory(ze.Block),"framework/kernel/src/model/utils/position/break-line.ts:62");var l=function(e,t,n){var r=Gt(t.node,ze.Block);if(n||en(t)&&!r.hasCategory(ze.Sticky)){var o=r.hasCategory(ze.Clean)?{}:r.attrs,i=e.defaultElementName,a=Xt(e,i,o);return e.createElement(i,a)}return In(e,r.cloneNode(!1))}(e,t,n),u=null;return tn(t)?(e.insertBefore(i.parentNode,l,i),u=i,i.children.forEach((function(t){kt.fatal(t.hasCategory([ze.Inline,ze.InlineCard,ze.Text]),"framework/kernel/src/model/utils/position/break-line.ts:74"),Dt(t)&&e.removeChild(i,t)}))):(i.children.slice(a).forEach((function(t){kt.fatal(t.hasCategory([ze.Inline,ze.InlineCard,ze.Text]),"framework/kernel/src/model/utils/position/break-line.ts:89"),Dt(t)?e.removeChild(i,t):e.appendChild(l,t)})),i.children.slice(0,a).forEach((function(t){kt.fatal(t.hasCategory([ze.Inline,ze.InlineCard,ze.Text]),"framework/kernel/src/model/utils/position/break-line.ts:106"),Dt(t)&&e.removeChild(i,t)})),e.insertAfter(i.parentNode,l,i),u=l),!r||i.hasCategory(ze.Clean)||l.isEmpty()&&(e.setTextNodeData(r,""),e.appendChild(l,In(e,r))),e.newPosition(u,0)}(e,t,n)),An(t,!0),t}function In(e,t){return Object.keys(t.attrs).forEach((function(n){var r=e.getAttrSchema(n);(null==r?void 0:r.cleanByBreakLine)&&e.removeAttribute(t,n)})),t}var Bn="inlineCard",Mn="text",Fn=[Mn,Bn],Ln=["fontsize","color","bgColor","bold","italic","strikethrough","underline"],Un=["fontsize"];function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;void 0!==e.attrs[i]&&(n[i]=e.attrs[i])}}catch(e){o.e(e)}finally{o.f()}return n}function zn(e){var t,n,r,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return e;for(;e&&(null===(t=e.children)||void 0===t?void 0:t.length);)if(o){if(!e.children[0])break;e=e.children[0]}else{if(!(null===(n=e.children)||void 0===n?void 0:n[(null===(r=e.children)||void 0===r?void 0:r.length)-1]))break;e=e.children[e.children.length-1]}return e}function Wn(e){for(;e&&!e.previousSibling;)e=e.parent;return(null==e?void 0:e.previousSibling)||null}function qn(e,t,n){if(kt.fatal(t.node.hasCategory([ze.Root,ze.LikeRoot])||t.node.closest(ze.Block),"framework/kernel/src/model/utils/position/insert-inline-node.ts:13"),(t=Pn(e,t)).node.hasCategory([ze.Root,ze.LikeRoot])){var r=e.createElement(e.defaultElementName);e.appendChild(r,n),e.insertNodeByPosition(t,r)}else kt.fatal(e.acceptNode(t.node.nodeName,n.nodeName),"framework/kernel/src/model/utils/position/insert-inline-node.ts:27"),e.insertNodeByPosition(t,n);kt.fatal(n.isConnected,"framework/kernel/src/model/utils/position/insert-inline-node.ts:31")}function $n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(n);try{for(o.s();!(r=o.n()).done;)t=Yn(e,t,r.value)}catch(e){o.e(e)}finally{o.f()}return An(t),t}function Yn(e,t,n){var r=t,o=r.node,i=r.offset;if(!e.acceptNode(o.nodeName,n.nodeName)){if(o.hasCategory([ze.Root,ze.LikeRoot])){if(!e.acceptNode(e.defaultElementName,n.nodeName))return o.hasCategory(ze.VirtualLikeRoot)?Yn(e,t=nn(e,t),n):t;var a=e.createElement(e.defaultElementName);return e.insertNodeByPosition(t,a),t=e.newPosition(a,0),Yn(e,t,n)}return Yn(e,t=nn(e,t),n)}return e.insertNodeByPosition(e.newPosition(o,i),n)}function Gn(e,t,n,r){kt.fatal("string"==typeof n,"framework/kernel/src/model/utils/position/insert-text.ts:22");var o=t,i=o.node,a=o.offset,l=e.editing.kernel.getExtend("text_helper");if(l)return l.insertText(e,i,a,n,r);if(i.isTextNode())return e.setTextNodeData(i,On.insertString(i.data,a,n)),e.newPosition(i,a+On.size(n));var u=e.createTextNode(n,r);return e.insertByOffset(i,a,u),An(t=e.newPosition(u,On.size(n)),Sn),t}function Jn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.start,r=e.end,o=e.collapsed;if(An(n,t),!o)if(An(r,t),n.node===r.node)kt.fatal(r.offset>n.offset,"end.offset is less than start.offset. end: ".concat(r.node.nodeName,"_").concat(r.offset,"_").concat(r.node.isConnected,", start: ").concat(n.node.nodeName,"_").concat(n.offset,"_").concat(n.node.isConnected),"framework/kernel/src/model/utils/range/helpers/verify-range.ts:20");else{var i=Ot(n.node,r.node);if(i.preceding)return;kt.fatal(!i.equal&&!i.following,"framework/kernel/src/model/utils/range/helpers/verify-range.ts:31"),i.contains?kt.fatal(function(e,t){var n=Xn(t,e.node);return kt.fatal(n,"framework/kernel/src/model/utils/range/helpers/verify-range.ts:48"),n.offset>=e.offset}(n,r.node),"framework/kernel/src/model/utils/range/helpers/verify-range.ts:34"):(kt.fatal(i.containedBy,"framework/kernel/src/model/utils/range/helpers/verify-range.ts:36"),kt.fatal(function(e,t){var n=Xn(t,e.node);return kt.fatal(n,"framework/kernel/src/model/utils/range/helpers/verify-range.ts:59"),n.offset<=e.offset}(r,n.node),"framework/kernel/src/model/utils/range/helpers/verify-range.ts:37"))}}function Xn(e,t){for(;e;){if(e.parentNode===t)return e;e=e.parentNode}return null}function Qn(e,t){if(!t.collapsed&&(t=function(e,t){var n=t,r=n.start,o=n.end,i=n.collapsed;kt.fatal(!i,"framework/kernel/src/model/utils/range/helpers/format-inline-boundary.ts:28");var a=r.node,l=r.offset,u=o.node,c=o.offset;return a.isTextNode()&&0===l&&(l=a.offset,a=a.parentNode),u.isTextNode()&&c===u.dataLength&&(c=u.offset+1,u=u.parentNode),0===l&&a.hasCategory(ze.Inline)&&!a.hasCategory(ze.InlineBox)&&(kt.fatal(!a.parentNode.hasCategory(ze.Inline)||a.parentNode.hasCategory(ze.InlineBox),"framework/kernel/src/model/utils/range/helpers/format-inline-boundary.ts:54"),r=e.newPosition(a.parentNode,a.offset)),c===u.childCount&&u.hasCategory(ze.Inline)&&!u.hasCategory(ze.InlineBox)&&(kt.fatal(!u.parentNode.hasCategory(ze.Inline)||u.parentNode.hasCategory(ze.InlineBox),"framework/kernel/src/model/utils/range/helpers/format-inline-boundary.ts:66"),o=e.newPosition(u.parentNode,u.offset+1)),Jn(t=e.newRange(r,o)),t}(e,t),!t.collapsed))return t;var n=function(e,t){var n=t.node,r=t.offset;if(n.isTextNode())if(0===r)r=n.offset,n=n.parentNode;else{if(r!==n.dataLength)return t;r=n.offset+1,n=n.parentNode}return!n.hasCategory(ze.Inline)||n.hasCategory(ze.InlineBox)?t:0===r?(kt.fatal(!n.parentNode.hasCategory(ze.Inline)||n.parentNode.hasCategory(ze.InlineBox),"framework/kernel/src/model/utils/range/helpers/format-inline-boundary.ts:107"),e.newPosition(n.parentNode,n.offset)):r===n.childCount?(kt.fatal(!n.parentNode.hasCategory(ze.Inline)||n.parentNode.hasCategory(ze.InlineBox),"framework/kernel/src/model/utils/range/helpers/format-inline-boundary.ts:115"),e.newPosition(n.parentNode,n.offset+1)):t}(e,t.start);return e.newRange(n)}function Zn(e,t){var n=Qn(e,e.newRange(function(e,t){var n=t,r=n.node,o=n.offset;if(r.isTextNode()){if(r.parentNode.hasCategory(ze.Inline)&&!r.parentNode.hasCategory(ze.InlineBox)){if(0===o&&0===r.offset)return Zn(e,e.newPosition(r.parentNode.parentNode,r.parentNode.offset));if(o===r.dataLength&&r.offset===r.parentNode.childCount)return Zn(e,e.newPosition(r.parentNode.parentNode,r.parentNode.offset+1))}return t}if(r.hasCategory(ze.TextContainer)){if(r.hasCategory(ze.Inline)&&!r.hasCategory(ze.InlineBox)){if(0===o)return e.newPosition(t.node.parentNode,t.node.offset);if(o===r.childCount)return e.newPosition(t.node.parentNode,t.node.offset+1)}var i=r.getChildByOffset(o-1);if(i&&i.isTextNode())return e.newPosition(i,i.dataLength);var a=r.getChildByOffset(o);return a&&a.isTextNode()?e.newPosition(a,0):t}if(r.hasCategory([ze.Root,ze.LikeRoot])){if(0===o&&r.firstChild&&r.firstChild.hasCategory(ze.TextContainer))return Zn(e,e.newPosition(r.firstChild,0));if(o===r.childCount&&r.lastChild&&r.lastChild.hasCategory(ze.TextContainer))return Zn(e,e.newPosition(r.lastChild,r.lastChild.childCount))}r.hasCategory([ze.TableHole,ze.Hole])&&(0===o?t=e.newPosition(r.parentNode,r.offset):(kt.fatal(1===o,"framework/kernel/src/model/utils/position/make-sure-at-input.ts:115"),t=e.newPosition(r.parentNode,r.offset+1)),r=t.node,o=t.offset),kt.fatal(r.hasCategory([ze.Root,ze.LikeRoot]),"framework/kernel/src/model/utils/position/make-sure-at-input.ts:123");var l=e.createElement(e.defaultElementName);return e.insertNodeByPosition(t,l),e.newPosition(l,0)}(e,t)));return kt.fatal(n.collapsed,"framework/kernel/src/model/utils/position/make-sure-at-input.ts:13"),n.start}function er(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return An(e=0===e.offset?nr(e,t):tr(e,t)),e}function tr(e,t){var n=e,r=n.node,o=n.offset;if(r.isTextNode()||r.isCardNode()||o!==r.childCount)return e;kt.fatal(r.isElement(),"framework/kernel/src/model/utils/position/helpers/shrink-position.ts:32");var i=r.lastChild;if(!i||i.isCardNode())return e;if(i.hasCategory(ze.Inline)&&!t)return e;if(i.isElement())e=new Nt(i,i.childCount);else{if(!i.isTextNode())throw new Error("failed to execute shrinkPosition");e=new Nt(i,i.dataLength)}return tr(e,t)}function nr(e,t){var n=e.node;if(0!==e.offset||n.isCardNode()||n.isTextNode())return e;kt.fatal(n.isElement(),"framework/kernel/src/model/utils/position/helpers/shrink-position.ts:63");var r=n.firstChild;return!r||r.isCardNode()||r.hasCategory(ze.Inline)&&!t?e:nr(new Nt(r,0),t)}var rr=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"breakLine",value:function(){return jn.apply(void 0,arguments)}},{key:"insertNodes",value:function(){return Kn.apply(void 0,arguments)}},{key:"makeSureAtInput",value:function(){return Zn.apply(void 0,arguments)}},{key:"insertText",value:function(){return Gn.apply(void 0,arguments)}},{key:"getPreviousText",value:function(e){return function(e){var t=e.node,n=e.offset;if(!t.hasCategory([ze.TextContainer,ze.Text]))return null;var r=t.isTextNode(),o=r?On.substring(t.data,0,n):"",i=null;if(r)i=t.previousSibling;else{if(!t.hasCategory(ze.Block))return null;i=t.children[n-1]}if(!i||!i.isTextNode())return o||null;for(var a=[],l=!1;i&&i.isTextNode();){if(a.push(i.data),!i.previousSibling){l=!0;break}i=i.previousSibling}return{text:a.reverse().join("")+o,atStart:l}}(e)}},{key:"insertInlineNode",value:function(){return qn.apply(void 0,arguments)}},{key:"alignmentToElement",value:function(){return Jt.apply(void 0,arguments)}},{key:"shrinkPosition",value:function(e){return er(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}},{key:"closestInlineAttrs",value:function(e,t,n){return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mn,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[ze.Heading,ze.TableHole,ze.Table,ze.ContainerHole,ze.AlertHole];kt.fatal(Fn.includes(n),"framework/kernel/src/model/utils/position/closest-inline-attrs.ts:72");var o,i=e.node,a=e.offset;if(i.isTextNode())return Hn(i,Ln);if(i.hasCategory(ze.InlineCard)){if(n===Bn)return Hn(i,Ln);o=Hn(i,Ln)}var l=!1,u=[zn(null===(t=i.children)||void 0===t?void 0:t[Math.max(a-1,0)])||i];for(i.hasCategory([ze.Hole,ze.TableHole,ze.ContainerHole,ze.AlertHole])&&(l=!0,u.pop(),u.push(zn(i.previousSibling,!1)||i.previousSibling));u.length;){var c=u.pop();if(!c)break;if(c.isTextNode())return Object.assign(Object.assign({},Hn(c,l?Un:Ln)),o);if(c.hasCategory(ze.InlineCard)){if(l||n===Bn)return Hn(c,Un);o||(o=Hn(c,Ln))}for(var s=Wn(c);null==s?void 0:s.hasCategory(r);)s=Wn(s);if(!s)break;if(s.hasCategory([ze.TableCell,ze.TableRow]))break;if(!l&&s.hasCategory([ze.Block,ze.LikeRoot])){if(n===Mn&&o)return o;l=!0}var d=zn(s,!1);d&&u.push(d)}return{}}(e,t,n)}},{key:"isInEmptyLine",value:function(e){return function(e){var t=e.node;if(0!==e.offset)return!1;for(var n=t;n.childCount;){if(n.childCount>1)return!1;n=n.children[0]}if(n.isTextNode()&&n.dataLength>0)return!1;if(n.isCardNode())return!1;for(;!n.hasCategory(ze.Block);){if(n.childCount>1)return!1;n=n.parentNode}return n.childCount<=1}(e)}}]),e}();const or=["dataTable"];var ir,ar=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"createCardNode",value:function(e,t,n,r){var o=e.createCardNode(t,n,r);if(e.hasCategory(t,ze.BlockCard)){var i=e.createHole(or.includes(t)?"rootCardHole":"hole",(null==n?void 0:n.hindent)?{indent:n.hindent}:{});return e.appendChild(i,o),i}return kt.fatal(e.hasCategory(t,ze.InlineCard),"framework/kernel/src/model/utils/card/card-helper.ts:30"),o}}]),e}();function lr(e){var t=We(e);if(null===e||"string"===t||"number"===t||"undefined"===t||"boolean"===t||"function"===t)return e;if(kt("object"===t,"framework/utils/src/clone-object.ts:17"),Array.isArray(e))return e.map((function(e){return lr(e)}));kt("[object Object]"===Object.prototype.toString.call(e),"framework/utils/src/clone-object.ts:23");var n={};return Object.keys(e).forEach((function(t){n[t]=lr(e[t])})),n}var ur=new Uint8Array(16);function cr(){if(!ir&&!(ir="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ir(ur)}const sr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var dr=[],fr=0;fr<256;++fr)dr.push((fr+256).toString(16).substr(1));const hr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(dr[e[t+0]]+dr[e[t+1]]+dr[e[t+2]]+dr[e[t+3]]+"-"+dr[e[t+4]]+dr[e[t+5]]+"-"+dr[e[t+6]]+dr[e[t+7]]+"-"+dr[e[t+8]]+dr[e[t+9]]+"-"+dr[e[t+10]]+dr[e[t+11]]+dr[e[t+12]]+dr[e[t+13]]+dr[e[t+14]]+dr[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&sr.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},pr=function(e,t,n){var r=(e=e||{}).random||(e.rng||cr)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return hr(r)};var vr={};function mr(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:36;do{e="u"+pr().substring(0,t-1)}while(!e||vr[e]);return vr[e]=!0,e}function gr(){return mr(9)}var br=Object.prototype.hasOwnProperty;function yr(e,t){return!!e&&br.call(e,t)}function wr(e,t,n,r){var o,i=e.schema.getNodeSchema(t);r?(o=r,null==n||delete n.id):(null==n?void 0:n.id)?(o=n.id+"",delete n.id):o=(null==i?void 0:i.id)?i.id():gr();var a=e.getNodeById(o);return a?e.disableSameIdentifier?wr(e,t):!a.isConnected&&a.hasCategory(ze.Heading)&&(null==i?void 0:i.category.includes(ze.Heading))?o:wr(e,t):o}var kr=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"_document",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_nodeName",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_category",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_docVersion",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_attrs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_offset",{enumerable:!0,configurable:!0,writable:!0,value:-1}),r=lr(r),this._id=wr(t,n,r,o),this._docVersion=t.version,this._category=t.schema.getCategoryByNodeName(n),this._attrs=r||{},this._document.indexNode(this)}return Ke(e,[{key:"destroy",value:function(){this._document.unIndexNode(this)}},{key:"id",get:function(){return this._id}},{key:"document",get:function(){return this._document}},{key:"rootNode",get:function(){return this._document.rootNode}},{key:"attrs",get:function(){return Object.assign({},this._attrs)}},{key:"isConnected",get:function(){for(var e=this;e;){if(e.isRootNode())return!0;e=e.parent}return!1}},{key:"parent",get:function(){return this._parent}},{key:"parentNode",get:function(){return this._parent}},{key:"nodeName",get:function(){return this._nodeName}},{key:"nodeValue",get:function(){return null}},{key:"offset",get:function(){return this._offset}},{key:"previousSibling",get:function(){return this._parent?this._parent.getChildByOffset(this._offset-1):null}},{key:"nextSibling",get:function(){return this._parent?this._parent.getChildByOffset(this._offset+1):null}},{key:"category",get:function(){return this._category}},{key:"childCount",get:function(){return 0}},{key:"children",get:function(){return[]}},{key:"firstChild",get:function(){return null}},{key:"lastChild",get:function(){return null}},{key:"compare",value:function(e){var t={equal:!1,contains:!1,containedBy:!1,preceding:!1,following:!1};if(this===e)return t.equal=!0,t;if(this.isRootNode())return t.contains=!0,t;if(e.isRootNode())return t.containedBy=!0,t;for(var n=this.getPath(),r=e.getPath(),o=n.length,i=r.length,a=0,l=Math.min(o,i);ac)return t.following=!0,t}return kt(o!==i,"invalid compare node","framework/kernel/src/model/node/node.ts:241"),n.length1&&void 0!==arguments[1]&&arguments[1],r=this._category,o=0,i=(t="string"==typeof e?[e]:e).length;o1&&void 0!==arguments[1]&&arguments[1],n=this;n;){if(n.hasCategory(e,t))return n;n=n.parentNode}return null}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.toData(e)}},{key:"toData",value:function(e){var t={type:this.nodeType,id:this._id,name:this._nodeName,attrs:{}};return Object.keys(this._attrs).length&&(t.attrs=lr(this._attrs)),t}}]),e}();function Cr(){return Cr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Qe(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Cr.apply(this,arguments)}function _r(e,t,n){return t=Qe(t),Xe(e,Nr()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nr=function(){return!!e})()}var Or=function(e){function t(){var e;return Ye(this,t),e=_r(this,t,arguments),Object.defineProperty(Je(e),"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:_t.Element}),Object.defineProperty(Je(e),"_children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),e}return et(t,e),Ke(t,[{key:"children",get:function(){return this._children.slice()}},{key:"childCount",get:function(){return this._children.length}},{key:"firstChild",get:function(){return this._children[0]||null}},{key:"lastChild",get:function(){return this._children[this._children.length-1]||null}},{key:"isEmpty",value:function(){return 0===this._children.length}},{key:"getChildByOffset",value:function(e){return this._children[e]||null}},{key:"toData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Cr(Qe(t.prototype),"toData",this).call(this,e);return e&&this._children.length?n.children=this._children.map((function(t){return t.toJSON(e)})):n.children=[],n}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodeName,n=this.attrs,r=[];Object.keys(n).forEach((function(e){var t=n[e];"object"===We(t)?t=JSON.stringify(t):t+="",r.push("".concat(e,'="').concat(t,'"'))}));var o="";return e&&(o=this._children.map((function(t){return t.toString(e)})).join("")),"<".concat(t).concat(r.length?" "+r.join(" "):"",">").concat(o,"")}},{key:"cloneNode",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=lr(this._attrs);Object.keys(r).forEach((function(t){e._document.schema.allowCloneAttr(t)||delete r[t]}));var o=new t(this._document,this._nodeName,r);return n&&(o._children=this._children.map((function(e){return e.cloneNode(!0)}))),o}},{key:"isHole",value:function(){return!1}},{key:"isElement",value:function(){return!0}},{key:"isTextNode",value:function(){return!1}},{key:"isCardNode",value:function(){return!1}},{key:"isRootNode",value:function(){return!1}}]),t}(kr),xr="columns",Er="column",Dr=6,Rr=.08;function Pr(e,t){if(0===t.length)return e.rootNode;for(var n=e.rootNode,r=0,o=t.length;r1,"framework/kernel/src/model/selection/selection.ts:192"),this._ranges=function(e){if(1===e.length)return pn(e);var t=e.map((function(e,t){var n=e.start;return{start:[].concat(pn(n.node.getPath()),[n.offset]),index:t}})).sort((function(e,t){var n=function(e,t){for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);ol)return 1}return nr?1:0}(e.start,t.start);return-1===n?-1:1===n?1:0}));return t.map((function(t){var n=t.index;return e[n]}))}(n.slice())}return Ke(e,[{key:"destroy",value:function(){delete this._document,delete this._ranges,delete this._anchor,delete this._focus}},{key:"document",get:function(){return this._document}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"firstRange",get:function(){return this._ranges[0]}},{key:"lastRange",get:function(){return this._ranges[this._ranges.length-1]}},{key:"isTableSelection",get:function(){return this.rangeCount>1&&this._ranges[0].start.node.hasCategory(ze.TableCell)}},{key:"isColumnsSelection",get:function(){return this.rangeCount>1&&this._ranges[0].start.node.hasCategory(Er)}},{key:"isTextSelection",get:function(){return 1===this.rangeCount&&this.firstRange.start.node.isTextNode()&&this.firstRange.end.node.isTextNode()}},{key:"isCardSelection",get:function(){var e=this._ranges[0];return 1===this.rangeCount&&e.collapsed&&e.start.node.isCardNode()}},{key:"ranges",get:function(){return this._ranges.slice()}},{key:"collapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].collapsed}},{key:"isCollapsed",get:function(){return this.collapsed}},{key:"focus",get:function(){return this._focus}},{key:"anchor",get:function(){return this._anchor}},{key:"cloneSelection",value:function(){return new e(this._document,Tr(this._ranges),this._anchor,this._focus)}},{key:"cloneByRange",value:function(t){var n;return n=Array.isArray(t)?t:[t],e.createBy(this._document,Tr(n),this._anchor,this._focus)}},{key:"toJSON",value:function(){var e=this.ranges,t=this.anchor,n=this.focus;return e?{ranges:e.map((function(e){var t=e.start,n=e.end,r=e.collapsed;return{start:{nodePath:t.node.getPath(),offset:t.offset,isText:t.node.isTextNode()},end:{nodePath:n.node.getPath(),offset:n.offset,isText:n.node.isTextNode()},collapsed:r}})),anchor:t,focus:n}:null}}],[{key:"createBy",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr.start,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Sr.end;return new e(t,Array.isArray(n)?n:[n],r,o)}},{key:"fromJson",value:function(t,n){var r=n.ranges,o=n.anchor,i=n.focus;kt.fatal(r.length,"framework/kernel/src/model/selection/selection.ts:95");var a=r.map((function(e){var n,r,o=e.start,i=e.end,a=0,l=0;return n=o.nodePath?Pr(t,o.nodePath):o.node,r=i.nodePath?Pr(t,i.nodePath):i.node,kt.fatal(n&&r,"framework/kernel/src/model/selection/selection.ts:117"),n.isTextNode()?a=Math.min(n.dataLength,o.offset):n.isCardNode()?a=0:(kt.fatal(n.isElement(),"framework/kernel/src/model/selection/selection.ts:124"),a=Math.min(n.childCount||0,o.offset)),r.isTextNode()?l=Math.min(r.dataLength,i.offset):r.isCardNode()?l=0:(kt.fatal(r.isElement(),"framework/kernel/src/model/selection/selection.ts:137"),l=Math.min(r.childCount||0,i.offset)),Wt.createAt(new Nt(n,a),new Nt(r,l))})),l=o,u=i;return 1===a.length&&a[0].collapsed&&(l=Sr.start,u=Sr.start),new e(t,a,l,u)}},{key:"equal",value:function(e,t){return!(!e||!t)&&e.rangeCount===t.rangeCount&&e._ranges.every((function(e,n){return Wt.equal(e,t._ranges[n])}))}}]),e}();function jr(e,t){Jn(t);var n=t.start,r=t.end;if(t.collapsed)return n.node.isTextNode()?(n=Ir(e,n,!1).position,e.newRange(n)):t.cloneRange();if(r.node.isTextNode()&&(r=Ir(e,r,!0).position),n.node.isTextNode()){var o=Ir(e,n,!1);n=o.position,o.childrenChanged&&n.node===r.node&&(r=e.newPosition(r.node,r.offset+1))}var i=e.newRange(n,r);return kt.fatal(!i.collapsed,"framework/kernel/src/model/utils/range/split-text-content.ts:39"),Jn(i),i}function Ir(e,t,n){var r=t.node,o=t.offset;if(!r.isTextNode())return{position:t,childrenChanged:!1};if(0===o)return n&&Dt(r)?{position:e.newPosition(r.parentNode,r.offset+1),childrenChanged:!1}:{position:e.newPosition(r.parentNode,r.offset),childrenChanged:!1};if(o===r.dataLength)return{position:e.newPosition(r.parentNode,r.offset+1),childrenChanged:!1};var i=cn(On.splitString(r.data,o),2),a=i[0],l=i[1],u=r.cloneNode(!1);return e.setTextNodeData(u,l),e.setTextNodeData(r,a),e.insertAfter(r.parentNode,u,r),{position:e.newPosition(r.parentNode,r.offset+1),childrenChanged:!0}}function Br(e,t){kt.fatal(!e.collapsed,"walkRange error","framework/kernel/src/model/utils/range/walk-range.ts:20");var n,r=e.start,o=r.node,i=r.offset,a=function(e){var t=e.node,n=e.offset;if(t.isElement()){if(n2&&void 0!==arguments[2]&&arguments[2],r=t.node.closest(ze.Inline);return r&&Dt(r)?(r.hasCategory(ze.InlineBox)&&!n||(t=e.newPosition(r.parentNode,r.offset),e.removeChild(r.parentNode,r)),t):t}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){if(1===i)e.removeAttribute(n,"indent"),n.firstChild&&e.removeAttribute(n.firstChild,"hindent");else{var a=i-1;e.setAttribute(n,"indent",a),n.firstChild&&e.acceptAttr(n.firstChild.nodeName,"hindent",a)&&e.setAttribute(n.firstChild,"hindent",a)}return t}var l=n.previousSibling;return l?Dt(l)||l.hasCategory(ze.Hole)?(e.removeChild(n.parentNode,l),t):e.newPosition(l,l.childCount):t}(e,t):function(e,t){var n=t.node,r=t.offset;if(0===r){var o=e.createElement(e.defaultElementName);return e.insertBefore(n.parentNode,o,n),e.removeChild(n.parentNode,n),e.newPosition(o,0)}kt.fatal(1===r,"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:178");var i=n.nextSibling;return i?Dt(i)||i.hasCategory(ze.Hole)?(e.removeChild(n.parentNode,i),t):e.newPosition(i,0):t}(e,t)}(e,t,r):Wr(e,t,r),n&&(t=Ur(e,t)),An(t,!0),t}(e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function zr(e,t,n){var r=t,o=r.node,i=r.offset;if(!o.isTextNode())return t;if(0===o.dataLength)return t=e.newPosition(o.parentNode,o.offset),e.removeChild(o.parentNode,o),Wr(e,t,n);if(n){if(0===i)return Wr(e,e.newPosition(o.parentNode,o.offset),n);var a=On.deleteChar("forward",o.data,i),l=o.data.length-a.length;return e.setTextNodeData(o,a),e.newPosition(o,i-l)}return i===o.dataLength?Wr(e,e.newPosition(o.parentNode,o.offset+1),n):(e.setTextNodeData(o,On.deleteChar("backward",o.data,i)),e.newPosition(o,i))}function Wr(e,t,n){return n?qr(e,t):$r(e,t)}function qr(e,t){var n,r,o,i=t,a=i.node,l=i.offset;if(kt.fatal(a.hasCategory([ze.Block,ze.Inline,ze.Root,ze.LikeRoot]),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:210"),a.hasCategory([ze.Root,ze.LikeRoot])&&!a.hasCategory(ze.VirtualLikeRoot))return t.clone();if(a.hasCategory(ze.Inline)&&Dt(a))return t=e.newPosition(a.parentNode,a.offset),e.removeChild(a.parentNode,a),t;if(0===l){if(a.hasCategory(ze.Level)){if(kt.fatal(a.hasCategory(ze.Block),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:236"),null===(n=a.attrs)||void 0===n?void 0:n.level){var u=a.attrs.level-1;return u>0?e.setAttribute(a,"level",u):e.removeAttribute(a,"level"),t}var c=e.createElement(e.defaultElementName);return a.children.forEach((function(t){kt.fatal(e.acceptNode(c.nodeName,t.nodeName),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:253"),e.appendChild(c,t)})),e.insertBefore(a.parentNode,c,a),e.removeChild(a.parentNode,a),e.newPosition(c,0)}if(a.attrs.textIndent>0)return e.removeAttribute(a,"textIndent"),t;if(a.attrs.indent>0)return 1===a.attrs.indent?e.removeAttribute(a,"indent"):e.setAttribute(a,"indent",a.attrs.indent-1),t;if("center"===a.attrs.alignment||"right"===a.attrs.alignment)return e.removeAttribute(a,"alignment"),e.newPosition(a,0);if(a.hasCategory(ze.Heading)){if(kt.fatal(a.hasCategory(ze.Block),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:288"),void 0!==(null===(r=a.attrs)||void 0===r?void 0:r.indexType)&&(null===(o=a.parentNode)||void 0===o?void 0:o.isRootNode())&&a.attrs.indexType>=0)return e.removeAttribute(a,"indexType"),t;var s=a.previousSibling;if(((null==s?void 0:s.hasCategory(e.defaultElementName))||(null==s?void 0:s.hasCategory(ze.Heading)))&&Dt(s))return e.removeChild(a.parentNode,s),t.clone();var d=e.createElement(e.defaultElementName);return a.children.forEach((function(t){kt.fatal(e.acceptNode(d.nodeName,t.nodeName),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:318"),e.appendChild(d,t)})),e.insertBefore(a.parentNode,d,a),e.removeChild(a.parentNode,a),e.newPosition(d,0)}var f=a.parentNode,h=f.parentNode,p=a.previousSibling,v=a.nextSibling,m=Dt(a);if(m&&f.hasCategory(ze.VirtualLikeRoot)){if(1===f.childCount){var g=e.createElement(e.defaultElementName);return(null==h?void 0:h.hasCategory([ze.ContainerHole,ze.AlertHole]))?e.replaceChild(h.parentNode,g,h):e.replaceChild(f.parentNode,g,f),e.newPosition(g,0)}if(e.removeChild(f,a),!v&&!(null==h?void 0:h.hasCategory([ze.ContainerHole,ze.AlertHole]))){var b=e.createElement(e.defaultElementName);return e.insertAfter(f.parentNode,b,f),e.newPosition(b,0)}if(!p){var y=e.createElement(e.defaultElementName);return(null==h?void 0:h.hasCategory([ze.ContainerHole,ze.AlertHole]))?e.insertBefore(h.parentNode,y,h):e.insertBefore(f.parentNode,y,f),e.newPosition(y,0)}return e.newPosition(p,p.childCount)}if(a.hasCategory(ze.Inline)&&!p)return t=e.newPosition(a.parentNode,a.offset),Dt(a)&&e.removeChild(a.parentNode,a),qr(e,t);if(!p){var w=a.parentNode;if(!w.hasCategory(ze.VirtualLikeRoot)){if(m&&a.hasCategory(ze.Block)&&a.nodeName!==e.defaultElementName){var k=e.createElement(e.defaultElementName);return e.replaceChild(w,k,a),e.newPosition(k,0)}return t.clone()}if(!(p=w.previousSibling))return Dt(w)?(t=e.newPosition(w.parentNode,w.offset),e.removeChild(w.parentNode,w),t):t.clone()}if(p.hasCategory(ze.VirtualLikeRoot)){if(!p.lastChild||1===p.childCount&&Dt(p.lastChild))return e.removeChild(p.parentNode,p),t.clone();p=p.lastChild}if(p.isTextNode()||p.hasCategory(ze.Inline))return kt.fatal(a.hasCategory(ze.Inline),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:452"),Dt(a)&&e.removeChild(a.parentNode,a),p.isTextNode()?zr(e,e.newPosition(p,p.dataLength),!0):qr(e,e.newPosition(p,p.childCount));if(p.hasCategory([ze.TableHole,ze.Hole]))return kt.fatal(1===p.childCount,"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:476"),Dt(a)?(e.removeChild(a.parentNode,a),e.newPosition(p,1)):(e.replaceChild(p.parentNode,a,p),t.clone());if(!p.hasCategory(ze.Block))return t.clone();if(Dt(p)&&!p.hasCategory([ze.Level]))return e.removeChild(p.parentNode,p),t.clone();if(p.hasCategory(ze.OnlyText)){var C,_=e.newPosition(p,p.childCount),N=_.clone(),O=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(a.children);try{for(O.s();!(C=O.n()).done;){var x=C.value;if(!x.isTextNode())return _;N=e.insertNodeByPosition(N,x)}}catch(e){O.e(e)}finally{O.f()}return a.parentNode.hasCategory(ze.VirtualLikeRoot)&&Dt(a.parentNode)?e.removeChild(a.parentNode.parentNode,a.parentNode):e.removeChild(a.parentNode,a),_}var E=e.newPosition(p,p.childCount),D=E.clone();return a.children.forEach((function(t){kt.fatal(e.acceptNode(p.nodeName,t.nodeName),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:541"),D=e.insertNodeByPosition(D,t)})),a.parentNode.hasCategory(ze.VirtualLikeRoot)&&Dt(a.parentNode)?e.removeChild(a.parentNode.parentNode,a.parentNode):e.removeChild(a.parentNode,a),E}var R=a.getChildByOffset(l-1);if(kt.fatal(R,"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:563"),R.isTextNode())return zr(e,e.newPosition(R,R.dataLength),!0);if(R.hasCategory(ze.Inline)){if(Dt(R)){if(t=e.newPosition(R.parentNode,R.offset),e.removeChild(a,R),R.hasCategory(ze.InlineBox))return t}else t=e.newPosition(R,R.childCount);return qr(e,t)}return kt.fatal(R.isCardNode(),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:588"),e.removeChild(a,R),e.newPosition(a,l-1)}function $r(e,t){var n=t,r=n.node,o=n.offset;if(kt.fatal(r.hasCategory([ze.Block,ze.Inline,ze.Root,ze.LikeRoot]),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:598"),r.hasCategory([ze.Root,ze.LikeRoot])&&!r.hasCategory(ze.VirtualLikeRoot))return t.clone();if(Dt(r)){if(kt.fatal(r.parentNode,"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:619"),1===r.parentNode.childCount&&r.parentNode.hasCategory(ze.VirtualLikeRoot)){var i=r.parentNode.parentNode;if(null==i?void 0:i.hasCategory([ze.AlertHole])){var a=e.createElement(e.defaultElementName);return e.replaceChild(i.parentNode,a,i),e.newPosition(a,0)}t=e.newPosition(r.parentNode.parentNode,r.parentNode.offset);var l=r.parentNode.nextSibling;return e.removeChild(r.parentNode.parentNode,r.parentNode),l?St(l):$r(e,t)}var u=r.nextSibling;return r.hasCategory(ze.Block)?u?(e.removeChild(r.parentNode,r),St(u)):t.clone():(kt.fatal(r.hasCategory(ze.Inline),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:661"),r.hasCategory(ze.InlineBox)?(t=e.newPosition(r.parentNode,r.offset),e.removeChild(r.parentNode,r),t):u?(e.removeChild(r.parentNode,r),u.isTextNode()?zr(e,e.newPosition(u,0),!1):(kt.fatal(u.hasCategory(ze.Inline),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:687"),$r(e,e.newPosition(u,0)))):(t=e.newPosition(r.parentNode,r.offset),e.removeChild(r.parentNode,r),$r(e,t)))}if(o===r.childCount){var c=r.nextSibling;return c&&c.hasCategory(ze.VirtualLikeRoot)&&(kt.fatal(c.firstChild,"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:698"),c=c.firstChild),r.hasCategory(ze.Inline)?c?c.isTextNode()?zr(e,e.newPosition(c,0),!1):(kt.fatal(c.hasCategory(ze.Inline),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:714"),$r(e,e.newPosition(c,0))):$r(e,e.newPosition(r.parentNode,r.offset+1)):(kt.fatal(r.hasCategory(ze.Block),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:719"),c&&c.hasCategory(ze.TextContainer)?(kt.fatal(c.hasCategory(ze.Block),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:726"),c.children.forEach((function(t){e.appendChild(r,t)})),1===c.parentNode.childCount&&c.parentNode.hasCategory(ze.VirtualLikeRoot)?e.removeChild(c.parentNode.parentNode,c.parentNode):e.removeChild(c.parentNode,c),t.clone()):t.clone())}var s=r.getChildByOffset(o);return s.isCardNode()?(kt.fatal(s.hasCategory(ze.InlineCard),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:751"),e.removeChild(r,s),t.clone()):s.isTextNode()?zr(e,e.newPosition(s,0),!1):(kt.fatal(s.hasCategory(ze.Inline),"framework/kernel/src/model/utils/position/helpers/delete-content-by-position.ts:762"),$r(e,e.newPosition(s,0)))}var Kr=o(2404),Yr=o.n(Kr),Gr=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"insertNodeToOffset",value:function(t,n,r){kt.fatal("*"===r.nodeName&&t.isElement()&&n>=0&&n<=t.childCount,"failed to execute insertNodeToOffset","framework/kernel/src/model/utils/node/dangerous-node-helper.ts:34"),r._parent&&e.removeChild(r);var o=t._children;o.splice(n,0,r),r._parent=t,r._dirty=!0;for(var i=0,a=o.length;i2&&void 0!==arguments[2]&&arguments[2],r=t.start,o=t.end;return o=Zr(e,o,n,!1),t.collapsed?e.newRange(o):(r=Zr(e,r,n,!0),Wt.createAt(r,o))}function Zr(e,t,n){for(var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t.node.isElement();){var o=t,i=o.node,a=o.offset;if(i.hasCategory([ze.TableHole,ze.Hole]))return t;if(r){var l=i.children[a];if(!l||l.isCardNode())return t;if(l.hasCategory(ze.Inline)&&!n)return t;t=e.newPosition(l,0)}else{var u=i.children[a-1];if(!u||u.isCardNode())return t;if(u.hasCategory(ze.Inline)&&!n)return t;if(u.isTextNode())return e.newPosition(u,u.dataLength);kt.fatal(u.isElement(),"framework/kernel/src/model/utils/range/shrink-range.ts:74"),t=e.newPosition(u,u.childCount)}}return t}function eo(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.collapsed&&t.start.node.isCardNode()){kt.fatal(0===t.start.offset,"framework/kernel/src/model/utils/range/delete-content.ts:17");var o=t.start.node;t=e.newRange(e.newPosition(o.parentNode,r?o.offset+1:o.offset))}if(Jn(t,!0),t.collapsed){var i=Hr(e,t.start,n,r);t=i instanceof Wt?i:e.newRange(i)}else t=function(e,t,n){if(Jn(t,!0),function(e){var t=e.start,n=e.end;return t.node===n.node&&t.node.isTextNode()}(t))return function(e,t){var n=t,r=n.start,o=n.end;if(!r.node.isTextNode())return t;var i=r.node.data,a=i.substr(0,r.offset)+i.substr(o.offset);return e.setTextNodeData(r.node,a),e.newRange(e.newPosition(r.node,r.offset))}(e,t);if(t=jr(e,t),t=function(e,t){if(t.collapsed)return t;var n=t,r=n.start,o=n.end;return r.node.hasCategory([ze.TableHole,ze.Hole])&&(0===r.offset?r=e.newPosition(r.node.parentNode,r.node.offset):(kt.fatal(1===r.offset,"framework/kernel/src/model/utils/range/delete-content-by-range.ts:213"),r=e.newPosition(r.node.parentNode,r.node.offset+1))),o.node.hasCategory([ze.TableHole,ze.Hole])&&(1===o.offset?o=e.newPosition(o.node.parentNode,o.node.offset+1):(kt.fatal(0===o.offset,"framework/kernel/src/model/utils/range/delete-content-by-range.ts:222"),o=e.newPosition(o.node.parentNode,o.node.offset))),Jn(t=e.newRange(r,o)),t}(e,t),t.collapsed){var r=Hr(e,t.start,n,!0);if(r instanceof Nt)return e.newRange(r)}var o=t,i=o.start,a=o.end;kt.fatal(i.node.isElement()&&a.node.isElement(),"framework/kernel/src/model/utils/range/delete-content-by-range.ts:45");var l=e.createElement("*");Gr.insertNodeToOffset(a.node,a.offset,l);var u=[],c=[];Br(t,(function(e,t){var n=zt.compare(e,l);n.equal?t.stop():n.preceding?e.hasCategory([ze.TableRow,ze.TableCell])?c.push(e):(u.push(e),t.skip()):e.hasCategory(ze.Inline)||(kt.fatal(n.contains,"framework/kernel/src/model/utils/range/delete-content-by-range.ts:76"),c.push(e))})),Gr.removeChild(l),u.length&&u.forEach((function(t){var n=t.parentNode;e.removeChild(n,t)})),An(i,!0);var s=!i.node.hasCategory([ze.Root,ze.LikeRoot]);return c.length&&(s?function(e,t,n){n.isElement()&&(kt.fatal(t.node.isElement(),"framework/kernel/src/model/utils/range/delete-content-by-range.ts:133"),An(t,!0),function(e,t,n){return Xr(t.node)===Xr(n)}(0,t,n)?(t.node.hasCategory(ze.Inline)&&(kt.fatal(t.offset===t.node.childCount,"framework/kernel/src/model/utils/range/delete-content-by-range.ts:143"),t=e.newPosition(t.node.parentNode,t.node.offset+1)),kt.fatal(!n.hasCategory(ze.Inline),"framework/kernel/src/model/utils/range/delete-content-by-range.ts:150"),n.children.forEach((function(n){kt.fatal(e.acceptNode(t.node.nodeName,n.nodeName),"framework/kernel/src/model/utils/range/delete-content-by-range.ts:152"),t=e.insertNodeByPosition(t,n)})),e.removeChild(n.parentNode,n)):kt.fatal(!1,"framework/kernel/src/model/utils/range/delete-content-by-range.ts:138"))}(e,i,c.pop()):i=e.newPosition(c.pop(),0)),s?n&&(i=Ur(e,i,!0)):e.acceptNode(i.node.nodeName,e.defaultElementName)&&(i=e.insertNodeByPosition(i,e.createElement(e.defaultElementName))),An(i,Sn),Jn(t=e.newRange(i),!0),t}(e,t,n),kt.fatal(t.collapsed,"framework/kernel/src/model/utils/range/delete-content.ts:45");return Qr(e,t)}function to(e,t){var n=ro(e,t.node,t.offset),r=n.node,o=n.offset;return e.newPosition(r,o)}function no(e,t){var n=oo(e,t.node,t.offset),r=n.node,o=n.offset;return e.newPosition(r,o)}function ro(e,t,n){var r={node:t,offset:n};return 0!==n||t.isCardNode()?r:t.hasCategory(ze.Block)?{node:t.parentNode,offset:t.offset}:ro(e,t.parentNode,t.offset)}function oo(e,t,n){var r={node:t,offset:n};return t.isCardNode()?r:t.isTextNode()?n!==t.dataLength?r:oo(e,t.parentNode,t.offset+1):(kt.fatal(t.isElement(),"framework/kernel/src/model/utils/range/enlarge-range-contains-block-node.ts:140"),t.hasCategory(ze.Block)?n!==t.childCount?r:{node:t.parentNode,offset:t.offset+1}:ro(e,t.parentNode,t.offset+1))}var io=-1,ao=0,lo=1;function uo(e){var t=e.start,n=e.end,r=e.collapsed;return!!co(t)&&(!!r||!!co(n)&&function(e,t){for(var n=[].concat(pn(e.node.getPath()),[e.offset]),r=[].concat(pn(t.node.getPath()),[t.offset]),o=0,i=n.length;ol)return lo}return n.length===r.length?ao:io}(t,n)===io)}function co(e){var t=e.node,n=e.offset;return!(!t.isConnected||n<0||0!==n&&!(t.isTextNode()?n<=t.dataLength:t.isElement()?n<=t.childCount:(kt.fatal(t.isCardNode(),"framework/kernel/src/model/utils/range/is-valid-range.ts:46"),!1)))}function so(e,t){if(t.collapsed)return t;var n=t,r=n.start,o=n.end,i=zt.closest(r.node,ze.Block),a=zt.closest(o.node,ze.Block);return i||a?(i&&(r=function(e,t){var n=fo(e,t.node,t.offset),r=n.node,o=n.offset;return e.newPosition(r,o)}(e,r)),a&&(o=function(e,t){var n=ho(e,t.node,t.offset),r=n.node,o=n.offset;return e.newPosition(r,o)}(e,o)),t=e.newRange(r,o),kt.fatal(!t.collapsed,"framework/kernel/src/model/utils/range/enlarge-range-in-block-node.ts:37"),uo(t),t):t}function fo(e,t,n){var r={node:t,offset:n};return 0!==n||t.isCardNode()||t.hasCategory(ze.Block)?r:fo(e,t.parentNode,t.offset)}function ho(e,t,n){var r={node:t,offset:n};return t.isCardNode()?r:t.isTextNode()?n!==t.dataLength?r:ho(e,t.parentNode,t.offset+1):(kt.fatal(t.isElement(),"framework/kernel/src/model/utils/range/enlarge-range-in-block-node.ts:104"),t.hasCategory(ze.Block)?r:fo(e,t.parentNode,t.offset+1))}function po(e,t){var n=t||{},r=n.enter,o=n.leave;(r||o)&&(r=r||function(){},o=o||function(){},e.collapsed?function(e,t,n){for(var r=xt(e.node,[ze.Root,ze.LikeRoot]),o=[],i=0,a=r.length;i=0;m--)r(d[m]);kt.fatal(o.size===i.size,"framework/kernel/src/model/utils/range/full-walk-range.ts:132")}(o,e,t,n)}(e,r,o))}function vo(e,t,n){var r=e.nextSibling;return r&&go(r,t,n)?r:null}function mo(e,t,n){if(!e.isElement())return null;for(var r=e.firstChild;r;){if(go(r,t,n))return r;r=r.nextSibling}return r}function go(e,t,n){for(var r=e.getPath(),o=0,i=Math.min(r.length,t.length);ot[o])break}for(var a=n[n.length-1],l=n.slice(0,-1),u=0,c=Math.min(r.length,l.length);u=t}var Co=function(){function e(){Ye(this,e),Object.defineProperty(this,"_sections",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_section",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_textFragment",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}return Ke(e,[{key:"isStopped",get:function(){return this._stopped}},{key:"stop",value:function(){this._stopped=!0}},{key:"nextSection",value:function(){this._section?kt.fatal(this._sections[this._sections.length-1]===this._section,"framework/kernel/src/model/utils/range/get-text-sections.ts:45"):kt.fatal(0===this._sections.length,"framework/kernel/src/model/utils/range/get-text-sections.ts:43"),this._section=[],this._textFragment=null,this._sections.push(this._section)}},{key:"break",value:function(){this._section||this.nextSection(),this._section.push(null),this.nextText()}},{key:"nextText",value:function(){this._textFragment=null}},{key:"pushText",value:function(e,t,n){this._section||this.nextSection(),this._textFragment||(this._textFragment={text:"",fragments:[]},this._section.push(this._textFragment)),this._textFragment.text=this._textFragment.text+e,this._textFragment.fragments.push({text:e,start:t,end:n})}},{key:"getResult",value:function(){return this._sections}}]),e}();function _o(e,t){if(Jn(t),t.collapsed)return[];var n=t.start,r=t.end,o=new Co;return function(e,t,n,r){for(;!e.isStopped;)n=No(e,t,n,r)}(o,e,n,r),o.getResult()}function No(e,t,n,r){var o=n.node,i=n.offset;if(o.isTextNode())return function(e,t,n,r){var o=n.node,i=n.offset,a=r.node,l=r.offset;return o.isTextNode()?o===a?(kt.fatal(i<=l,"framework/kernel/src/model/utils/range/get-text-sections.ts:210"),e.pushText(On.substring(o.data,i,l),{node:o,offset:i},{node:o,offset:l}),e.stop(),null):(e.pushText(On.substring(o.data,i),{node:o,offset:i},{node:o,offset:o.dataLength}),t.newPosition(o.parentNode,o.offset+1)):null}(e,t,n,r);kt.fatal(o.isElement(),"framework/kernel/src/model/utils/range/get-text-sections.ts:135");var a,l=o.getChildByOffset(i);if(l)l.hasCategory(ze.BlockCard)?(e.nextSection(),a=t.newPosition(o,i+1)):l.isTextNode()?(e.nextText(),a=t.newPosition(l,0)):l.hasCategory(ze.InlineCard)?(e.break(),a=t.newPosition(o,i+1)):(kt.fatal(l.isElement(),"framework/kernel/src/model/utils/range/get-text-sections.ts:171"),l.hasCategory(ze.Block)?(e.nextSection(),a=t.newPosition(l,0)):a=t.newPosition(l,0));else{if(o.isRootNode())return e.stop(),null;a=t.newPosition(o.parentNode,o.offset+1)}return function(e,t){if(Nt.equal(e,t))return bo;var n=e.node,r=e.offset,o=t.node,i=t.offset;if(n===o)return ri,"framework/kernel/src/model/utils/position/compare-position.ts:27"),wo);var a=Ot(n,o);return a.preceding?yo:a.following?wo:a.contains?ko(n,r,o)?yo:wo:(kt.fatal(a.containedBy,"framework/kernel/src/model/utils/position/compare-position.ts:51"),ko(o,i,n)?wo:yo)}(a,r)!==yo?(e.stop(),null):a}function Oo(e,t){var n=[t.start];t.collapsed||n.push(t.end);var r=function(e,t){var n=[];return t.forEach((function(e){var t=e.node,r=e.offset,o=t;if(!t.hasCategory([ze.Root,ze.LikeRoot,ze.TableHole,ze.Hole])){t.isElement()&&(o=t.getChildByOffset(r)||t);var i=zt.getAncestors(o,ze.Block)[0];kt.fatal(i,"framework/kernel/src/model/utils/range/optimize-range.ts:295"),-1===n.indexOf(i)&&n.push(i)}})),n}(0,n);return r.forEach((function(t){n=function(e,t,n){return Rt(t,{leave:function(r){if(r!==t&&"*"!==r.nodeName){if(r.isTextNode()){if(""!==r.data||function(e,t){return e.some((function(e){return e.node===t}))}(n,r))return}else{if(!r.isElement())return;if(r.childCount>0)return}(function(e,t){for(var n=t.parentNode;n;){if(n.childCount>1)return!1;if(n===e)return!0;n=n.parentNode}return!0})(t,r)||r.hasCategory(ze.InlineBox)||(n=n.map((function(t){var n=t.node,o=t.offset;return r===n?e.newPosition(n.parentNode,n.offset):r.parentNode!==n?t:o>r.offset?(kt.fatal(o-1>=0,"framework/kernel/src/model/utils/range/optimize-range.ts:95"),e.newPosition(n,o-1)):t})),e.removeChild(r.parentNode,r))}}}),n}(e,t,n)})),r.forEach((function(t){n=xo(e,t,n)})),Jn(t=e.newRange(n[0],n[1])),t}function xo(e,t,n){if(!t.isElement())return n;for(var r=t.firstChild;r&&r.nextSibling;){var o=r.nextSibling;a=o,(i=r).isTextNode()&&a.isTextNode()&&Ro(i.attrs,a.attrs)&&o.isTextNode()?(n=Eo(e,r,o,n),kt.fatal(!o.isConnected,"framework/kernel/src/model/utils/range/optimize-range.ts:138"),kt.fatal(r.isConnected,"framework/kernel/src/model/utils/range/optimize-range.ts:139")):r=o}var i,a;return t.children.forEach((function(t){n=xo(e,t,n)})),n}function Eo(e,t,n,r){return t.isTextNode()?n.isTextNode()?function(e,t,n,r){kt.fatal(t.parentNode===n.parentNode,"framework/kernel/src/model/utils/range/optimize-range.ts:185");var o=t.data,i=n.data;return e.setTextNodeData(t,o+i),r=r.map((function(r){var a=r.node,l=r.offset;if(a===n)return e.newPosition(t,On.size(o)+l);if(n.parentNode===a){if(n.offset=0,"framework/kernel/src/model/utils/range/optimize-range.ts:201"),e.newPosition(a,l-1);if((t.offset+1===l||n.offset===l)&&i)return e.newPosition(t,On.size(o))}return r})),e.removeChild(n.parentNode,n),r.forEach((function(e){return An(e)})),r}(e,t,n,r):r:t.isElement()&&n.isElement()?function(e,t,n,r){kt.fatal(t.nextSibling===n,"framework/kernel/src/model/utils/range/optimize-range.ts:228");var o=t.childCount,i=n.childCount;return n.children.forEach((function(n){e.appendChild(t,n)})),r=r.map((function(r){var a=r.node,l=r.offset;if(a===n)return e.newPosition(t,o+l);if(n.parent===a){if(kt.fatal(t.parent===a,"framework/kernel/src/model/utils/range/optimize-range.ts:245"),n.offset=0,"framework/kernel/src/model/utils/range/optimize-range.ts:248"),e.newPosition(a,l-1);if((t.offset+1===l||n.offset===l)&&i>0)return e.newPosition(t,o)}return r})),e.removeChild(n.parentNode,n),r.forEach((function(e){return An(e)})),r}(e,t,n,r):r}function Do(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ro(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((function(e,n){return Ro(e,t[n])}));if("object"!==We(e)&&"object"!==We(t))return!1;if(e&&t){kt.fatal(Do(e)&&Do(t),"framework/kernel/src/model/utils/range/optimize-range.ts:357");var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return Ro(e[n],t[n])}))}return!1}function Po(e,t,n){var r=t.node,o=t.offset;if(!r.isTextNode())return{position:t,hasNewNode:!1};if(0===o)return n&&Dt(r)?{position:e.newPosition(r.parentNode,r.offset+1),hasNewNode:!1}:{position:e.newPosition(r.parentNode,r.offset),hasNewNode:!1};if(o===On.size(r.data))return{position:e.newPosition(r.parentNode,r.offset+1),hasNewNode:!1};var i=cn(On.splitString(r.data,o),2),a=i[0],l=i[1];kt.fatal(a&&l,"framework/kernel/src/model/utils/range/split-text-node-by-range.ts:84");var u=r.cloneNode(!1);return e.setTextNodeData(r,a),e.setTextNodeData(u,l),e.insertAfter(r.parentNode,u,r),{position:e.newPosition(r.parentNode,r.offset+1),hasNewNode:!0}}function So(e,t,n,r){for(var o=null,i=null,a=-1,l=-1,u=0,c=0,s=r.length;ct){var f=d.start.node;l=c,a=t-u,o=e.newPosition(f,a)}else u+=d.count}var h=n;if(a+h<=r[l].count)i=e.newPosition(r[l].end.node,a+h);else{h-=r[l].count-a;for(var p=l+1,v=r.length;p0,"framework/kernel/src/model/utils/range/search-text.ts:173"),m.count>=h){i=e.newPosition(m.end.node,h);break}h-=m.count}}kt.fatal(o&&i,"framework/kernel/src/model/utils/range/search-text.ts:185");var g=e.newRange(o,i);return Jn(g),g}function To(e,t,n,r){var o=t.collapsed;if(t.collapsed){var i=function(e,t,n,r){if(r){var o=zt.closest(t.node,ze.Block);if(o&&o.hasCategory(r))return t}var i=xt((t=Pn(e,t,Rn)).node),a=e.textAttrs,l=n.some((function(e){var t=e.name;return a.includes(t)}));return i.forEach((function(t){n.forEach((function(n){var r=n.name,o=n.value;e.acceptAttrName(t.nodeName,r)&&(null==o?e.removeAttribute(t,r):e.setAttribute(t,r,o))}))})),Ao(e,t.node,n,l)||t}(e,t.start,n,r);t=e.newRange(i)}else t=function(e,t,n,r){var o=[],i=[];return n.forEach((function(e){null!==e.value&&void 0!==e.value?o.push(e):i.push(e)})),function(e,t,n,r){po(t,{enter:function(t){if(r&&t.hasCategory(ze.Block)&&t.hasCategory(r))return!1;n.forEach((function(n){var r=n.name;e.removeAttribute(t,r)}))}})}(e,t=jr(e,t),i,r),function(e,t,n,r){var o=e.textAttrs,i=n.some((function(e){var t=e.name;return o.includes(t)}));po(t,{enter:function(t){if(r&&t.hasCategory(ze.Block)&&t.hasCategory(r))return!1;n.forEach((function(n){var r=n.name,o=n.value;e.acceptAttrName(t.nodeName,r)&&e.setAttribute(t,r,o)}))},leave:function(t){Ao(e,t,n,i)}})}(e,t,o,r),t}(e,t,n,r);return kt.fatal(o===t.collapsed,"framework/kernel/src/model/utils/range/update-attribute.ts:47"),Jn(t),Oo(e,t)}function Ao(e,t,n,r){var o=e.defaultElementName;if(t.isEmpty()&&t.hasCategory([ze.Root,ze.LikeRoot])){var i,a=e.createElement(o);return e.appendChild(t,a),r&&(i=e.createTextNode(""),e.appendChild(a,i)),n.forEach((function(t){var n=t.name,r=t.value;e.acceptAttr(a.nodeName,n,r)&&e.setAttribute(a,n,r),i&&e.acceptAttr(i.nodeName,n,r)&&e.setAttribute(i,n,r)})),i?e.newPosition(i,0):e.newPosition(a,0)}if(r&&t.isEmpty()&&t.hasCategory(ze.TextContainer)){var l=e.createTextNode("");return e.appendChild(t,l),n.forEach((function(t){var n=t.name,r=t.value;l&&e.acceptAttr(l.nodeName,n,r)&&e.setAttribute(l,n,r)})),e.newPosition(l,0)}return null}function jo(e,t){var n=Gt(e,ze.Block);if(!n)return null;if(e.isTextNode()&&(0===t?(t=e.offset,e=e.parentNode):t===e.dataLength?(t=e.offset+1,e=e.parentNode):t=-1),-1===t)return{blockNode:n,offset:t};for(;e!==n;){var r=e.parentNode,o=r.childCount;if(0===t)t=e.offset,e=r;else{if(t!==o){t=-1;break}t=e.offset+1,e=r}}return{blockNode:n,offset:t}}var Io=-1,Bo=0,Mo=1,Fo=2;function Lo(e,t,n,r){if(kt.fatal(n===Bo||n===Mo||n===Io||n===Fo,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:38"),kt.fatal(!t.node.isCardNode(),"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:45"),r&&kt.fatal(!Nt.equal(t,r.position),"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:49"),t.node.hasCategory([ze.Root,ze.LikeRoot,ze.TableHole,ze.Table,ze.Hole,ze.Card]))return t;if(kt.fatal(t.node.isTextNode()||t.node.hasCategory(ze.Block),"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:65"),t.node.isTextNode()&&(t=function(e,t,n){var r=t.node,o=t.offset;if(!r.isTextNode())return t;if(o===r.dataLength)return e.newPosition(r.parentNode,r.offset+1);if(0===o)return e.newPosition(r.parentNode,r.offset);var i=cn(On.splitString(r.data,o),2),a=i[0],l=i[1],u=r.cloneNode(!1);return e.setTextNodeData(r,a),e.setTextNodeData(u,l),e.insertAfter(r.parentNode,u,r),n&&function(e,t,n){var r=e.node,o=e.offset,i=n.position,a=i.node,l=i.offset;if(a===r){if(l<=o)return;n.position=new Nt(t,l-o)}else if(a===r.parentNode){if(l<=r.offset)return;n.position=new Nt(a,l+1)}}(t,u,n),e.newPosition(u.parentNode,u.offset)}(e,t,r)),kt.fatal(!t.node.isTextNode(),"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:73"),t.node.hasCategory(ze.Inline))t=rn(e,t);else{if(t.node.isEmpty())return t;kt.fatal(t.node.firstChild.isTextNode()||t.node.firstChild.hasCategory(ze.Inline)||t.node.firstChild.isCardNode(),"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:82")}return kt.fatal(t.node.hasCategory(ze.Block),"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:89"),n===Fo?(kt.fatal(t.node.hasCategory(ze.Block),"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:92"),t):n===Io?(kt.fatal(!r,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:99"),function(e,t){var n=t.node,r=t.offset,o=n.getChildByOffset(r-1);if(o)return o.isCardNode()&&kt.fatal(!1,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:158"),e.newPosition(o,o.dataLength);if(o=n.getChildByOffset(r),kt.fatal(o,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:166"),o.isCardNode()&&kt.fatal(!1,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:169"),o.isEmpty())return e.newPosition(o,0);var i=o.cloneNode(!1);return e.setTextNodeData(i,""),e.insertBefore(o.parentNode,i,o),e.newPosition(i,0)}(e,t)):n===Mo?(kt.fatal(!r,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:105"),function(e,t){var n=t.node,r=t.offset,o=n.getChildByOffset(r);if(o&&!o.isCardNode())return e.newPosition(o,0);if(!(o=n.getChildByOffset(r-1)))return t;if(kt.fatal(o,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:201"),o.isCardNode())return t;if(o.isEmpty())return e.newPosition(o,0);var i=o.cloneNode(!1);return e.setTextNodeData(i,""),e.insertAfter(o.parentNode,i,o),e.newPosition(i,0)}(e,t)):(kt.fatal(n===Bo,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:109"),t=function(e,t,n){var r=t.node,o=t.offset,i=r.getChildByOffset(o)||r.getChildByOffset(o-1);return kt.fatal(i,"framework/kernel/src/model/utils/position/helpers/break-block-content.ts:228"),i.isEmpty()||(i=i.cloneNode(!1),e.setTextNodeData(i,""),e.insertByOffset(r,o,i),n&&n.node===r&&n.offset>o&&(n.position=e.newPosition(r,n.offset+1))),e.newPosition(i,0)}(e,t,r),An(t),t)}function Uo(e,t){t.collapsed||(t=eo(e,t)),kt.fatal(t.collapsed,"framework/kernel/src/model/utils/range/split-block-content.ts:15");var n=Lo(e,t.start,Fo);return e.newRange(n)}function Vo(e,t,n){var r=e.createElement("*"),o=r.cloneNode(!1),i=!t.start.node.isTextNode(),a=!t.end.node.isTextNode(),l=t.start,u=t.end;a&&Gr.insertNodeToOffset(u.node,u.offset,o),i&&Gr.insertNodeToOffset(l.node,l.offset,r),a&&(u=e.newPosition(o.parentNode,o.offset+1)),i&&(l=e.newPosition(r.parentNode,r.offset));var c=[];return po(e.newRange(l,u),{enter:function(e){e.nodeName===n&&c.push(e)}}),c.forEach((function(t){!function(e,t){var n=t.parentNode,r=t.children,o=t.offset;r.reverse().forEach((function(t){e.insertByOffset(n,o,t)})),e.removeChild(n,t)}(e,t)})),l=t.start,u=t.end,i&&(l=e.newPosition(r.parentNode,r.offset),Gr.removeChild(r)),a&&(u=e.newPosition(o.parentNode,o.offset),Gr.removeChild(o)),Jn(t=e.newRange(l,u)),t}var Ho={isValidRange:uo,isEqualRange:function(e,t){return e.start.node===t.start.node&&e.start.offset===t.start.offset&&e.end.node===t.end.node&&e.end.offset===t.end.offset},deleteContent:eo,walkRange:Br,fullWalkRange:po,shrinkRange:Qr,shrinkBlockNodeBoundary:function(e,t){var n,r;if(t.collapsed)return t;var o=jo(t.start.node,t.start.offset);if(!o)return t;var i=jo(t.end.node,t.end.offset);if(!i)return t;if(o.blockNode===i.blockNode)return t;var a={node:t.start.node,offset:t.start.offset};o.offset===o.blockNode.childCount&&(null===(n=o.blockNode.nextSibling)||void 0===n?void 0:n.hasCategory(ze.Block))&&(a.node=o.blockNode.nextSibling,a.offset=0);var l={node:t.end.node,offset:t.end.offset};0===i.offset&&(null===(r=i.blockNode.previousSibling)||void 0===r?void 0:r.hasCategory(ze.Block))&&(l.node=i.blockNode.previousSibling,l.offset=l.node.childCount);var u=e.newRange(e.newPosition(a.node,a.offset),e.newPosition(l.node,l.offset));return uo(u)?u:t},setAttribute:function(e,t,n,r){return To(e,t,[{name:n,value:r}])},removeAttribute:function(e,t,n){var r=Array.isArray(n)?n:[n];if(t.collapsed){var o=function(e,t,n){return xt((t=Pn(e,t,Rn)).node).forEach((function(t){n.forEach((function(n){e.removeAttribute(t,n)}))})),t}(e,t.start,r);t=e.newRange(o)}else t=function(e,t,n){return t=function(e,t){kt.fatal(!t.collapsed,"framework/kernel/src/model/utils/range/split-text-node-by-range.ts:14");var n=Po(e,t.end,!0);An(t.start);var r=Po(e,t.start,!1);r.position.node===n.position.node&&r.hasNewNode&&(n.position=e.newPosition(n.position.node,n.position.offset+1));var o=e.newRange(r.position,n.position);return Jn(o),kt.fatal(!o.collapsed&&!o.start.node.isTextNode()&&!o.end.node.isTextNode(),"framework/kernel/src/model/utils/range/split-text-node-by-range.ts:37"),o}(e,t),Jn(t),po(t,{enter:function(t){n.forEach((function(n){e.removeAttribute(t,n)}))}}),t}(e,t,r);return Jn(t),Oo(e,t)},updateAttribute:To,enlargeRangeContainsBlockNode:function(e,t){if(t.collapsed)return t;var n=t,r=n.start,o=n.end,i=zt.closest(r.node,ze.Block),a=zt.closest(o.node,ze.Block);return i||a?i===a?function(e,t,n){var r=n.parentNode;if(!r)return t;var o=t,i=o.start,a=o.end;return i=to(e,i),a=no(e,a),i.node!==r||a.node!==r||Jn(t=e.newRange(i,a)),t}(e,t,i):(i&&(r=to(e,r)),a&&(o=no(e,o)),t=e.newRange(r,o),kt.fatal(!t.collapsed,"framework/kernel/src/model/utils/range/enlarge-range-contains-block-node.ts:47"),Jn(t),t):t},enlargeRangeInBlockNode:so,enlargeRangeToCommonAncestor:function(e,t){kt.fatal(!t.collapsed,"framework/kernel/src/model/utils/range/enlarge-range-to-common-ancestor.ts:12");for(var n=t.commonAncestorContainer,r=t.start.node,o=t.start.offset;r!==n;)o=r.offset,r=r.parentNode;for(var i=t.end.node,a=t.end.offset;i!==n;)a=i.offset+1,i=i.parentNode;return kt.fatal(r===i&&o0,"framework/kernel/src/model/utils/range/wrap-inline-node.ts:42"),e.insertNodeByPosition(t.start,n),r.forEach((function(t){e.appendChild(n,t)})),Jn(t=Wt.selectNodeContents(n)),t},unwrapInlineNode:function(e,t,n){kt.fatal(e.hasCategory(n.nodeName,ze.Inline),"framework/kernel/src/model/utils/range/unwrap-inline-node.ts:14");var r=Gr.markRange(e,t);return n.children.forEach((function(t){e.insertBefore(n.parentNode,t,n)})),e.removeChild(n.parentNode,n),Jn(t=Gr.recoverRange(e,r)),t},getTextSections:_o,searchText:function(e,t,n,r){return n?function(e,t,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).isIgnoreCase,o=void 0===r||r,i=n.map((function(e){var t=[],n=null;return e.forEach((function(e){e?(kt.fatal(1===e.fragments.length,"framework/kernel/src/model/utils/range/search-text.ts:68"),n?(n.positions.push({offset:On.size(n.text),count:On.size(e.text),start:e.fragments[0].start,end:e.fragments[0].end}),n.text+=e.text):(n={positions:[],text:""},t.push(n),n.text=e.text,n.positions.push({offset:0,count:On.size(e.text),start:e.fragments[0].start,end:e.fragments[0].end}))):n=null})),t})),a=[],l=On.size(t);return o&&(t=t.toLowerCase()),i.forEach((function(n){n.forEach((function(n){var r=n.text,i=n.positions,u=0;o&&(r=r.toLowerCase());do{if(-1===(u=r.indexOf(t,u)))return;a.push(So(e,u,l,i)),u+=l}while(u>0)}))})),a}(e,n,_o(e,t),r):[]},getTextContent:function(e,t){return _o(e,t).map((function(e){return e.map((function(e){return e?e.text:""})).join("")})).join("\n")},wrapRootNode:function(e,t,n){kt.fatal(n.hasCategory(ze.LikeRoot)&&!n.isConnected,"framework/kernel/src/model/utils/range/wrap-root-node.ts:16"),t=Vo(e,t,n.nodeName);var r=e.createElement("*"),o=r.cloneNode(!1),i=!t.start.node.isTextNode(),a=!t.end.node.isTextNode(),l=t,u=l.start,c=l.end;a&&e.insertNodeByPosition(t.end,o),i&&e.insertNodeByPosition(t.start,r),a&&(c=e.newPosition(t.end.node,o.offset+1));var s=[];return po(e.newRange(u,c),{enter:function(e){if(e.parentNode&&e.parentNode.hasCategory([ze.Root,ze.LikeRoot]))return s.push(e),!1}}),kt.fatal(s.length>0,"framework/kernel/src/model/utils/range/wrap-root-node.ts:56"),rr.insertNodes(e,e.newPosition(s[0].parentNode,s[0].offset),[n]),s.forEach((function(t){e.appendChild(n,t)})),i&&(kt.fatal(r.isConnected,"framework/kernel/src/model/utils/range/wrap-root-node.ts:70"),u=e.newPosition(r.parentNode,r.offset),e.removeChild(r.parentNode,r)),a&&(kt.fatal(o.isConnected,"framework/kernel/src/model/utils/range/wrap-root-node.ts:79"),c=e.newPosition(o.parentNode,o.offset),e.removeChild(o.parentNode,o)),Jn(t=e.newRange(u,c)),t},unwrapNode:Vo,deleteNode:function(e,t){var n=e.getSelection();kt.fatal(1===n.rangeCount&&t.isConnected,"framework/kernel/src/model/utils/range/delete-node.ts:10");var r=n.firstRange,o=Gr.markRange(e,r);return e.removeChild(t.parentNode,t),Jn(r=Gr.recoverRange(e,o)),r},replaceText:function(e,t,n){for(var r,o=t.length-1;o>=0;o--){var i=eo(e,t[o]);kt.fatal(i.collapsed,"framework/kernel/src/model/utils/range/replace-text.ts:15"),r=n?Gn(e,i.start,n):i.start}return kt.fatal(r,"framework/kernel/src/model/utils/range/replace-text.ts:24"),e.newRange(r)},replaceMultiText:function(e,t){for(var n,r=t.length-1;r>=0;r--){var o=eo(e,t[r].range);kt.fatal(o.collapsed,"framework/kernel/src/model/utils/range/replace-multi-text.ts:21"),n=t[r].text?Gn(e,o.start,t[r].text):o.start}return kt.fatal(n,"framework/kernel/src/model/utils/range/replace-multi-text.ts:30"),e.newRange(n)},replaceBlockNodeAndContentTextAttr:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];n&&kt.fatal(e.hasCategory(n,ze.Block),"framework/kernel/src/model/utils/range/replace-block-node-and-content-text-attr.ts:26");var a=new Set,l=e.defaultElementName,u=!(!n||n===l&&!r);if(po(t,{enter:function(e){if(e.hasCategory(ze.Block))return a.add(e),!1},leave:function(t){if(u&&t.isEmpty()&&t.hasCategory([ze.Root,ze.LikeRoot])){var n=e.createElement(l);e.appendChild(t,n),a.add(n)}}}),!a.size)return t;var c=Gr.markRange(e,t);return a.forEach((function(t){!function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=!!o,l=t;if(n)if(kt.fatal(e.acceptNode(t.parentNode.nodeName,n),"framework/kernel/src/model/utils/range/replace-block-node-and-content-text-attr.ts:92"),t.nodeName!==n){var u=e.createElement(n,r);l=u,e.replaceChild(t.parentNode,u,t),t.children.forEach((function(t){e.appendChild(u,t)}))}else{var c=t.attrs;Object.keys(c).forEach((function(n){i.includes(n)||e.removeAttribute(t,n)})),r&&Object.keys(r).forEach((function(n){i.includes(n)||e.setAttribute(t,n,r[n])}))}a&&function(e){var t=e.childCount;return 0===t||1===t&&"*"===e.firstChild.nodeName}(l)&&e.appendChild(l,e.createTextNode("")),l.children.forEach((function(t){if(t.isTextNode()){var n=t.attrs;Object.keys(n).forEach((function(n){e.removeAttribute(t,n)})),o&&Object.keys(o).forEach((function(n){e.setAttribute(t,n,o[n])}))}}))}(e,t,n,r,o,i)})),Jn(t=Gr.recoverRange(e,c)),t}};const zo=Ho;var Wo=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"createFragment",value:function(e,t){return{type:"fragment",name:"#fragment",children:pn(e||[]),attrs:Object.assign({},t)}}},{key:"isEmptyNode",value:function(e){return e.type===_t.Element||"fragment"===e.type?!e.children||0===e.children.length:(kt.fatal(e.type===_t.Text,"framework/kernel/src/public/inode-helper.ts:26"),!e.data)}},{key:"isElementNode",value:function(e){return e.type===_t.Element}},{key:"isTextNode",value:function(e){return e.type===_t.Text}},{key:"isCardNode",value:function(e){return e.type===_t.Card}},{key:"isFragmentNode",value:function(e){return"fragment"===e.type}},{key:"createElement",value:function(e,t,n){return{id:n||"",type:_t.Element,name:e,attrs:Object.assign({},t)}}},{key:"createCard",value:function(e,t,n){var r={type:_t.Card,name:e};return t&&(r.attrs={value:t}),n&&(r.id=n),r}},{key:"isLikeEmpty",value:function(t){return t.type===_t.Text?0===t.data.length:t.type===_t.Element&&(0===t.children.length||t.children.every((function(t){return e.isLikeEmpty(t)})))}},{key:"createTextNode",value:function(e,t,n){var r={type:_t.Text,name:"#text",data:"string"!=typeof e?"":e};return t&&(r.attrs=Object.assign({},t)),n&&(r.id=n),r}},{key:"appendChild",value:function(e,t){e.children?e.children.push(t):e.children=[t]}},{key:"prependChild",value:function(e,t){e.children?e.children.unshift(t):e.children=[t]}},{key:"setChildByOffset",value:function(e,t,n){e.children||(e.children=[]),e.children[t]=n}},{key:"setChildren",value:function(e,t){e.children=pn(t)}},{key:"removeChild",value:function(e,t){var n=e.children.indexOf(t);kt.fatal(-1!==n,"framework/kernel/src/public/inode-helper.ts:173"),e.children.splice(n,1)}},{key:"unwrapNode",value:function(e,t){var n,r=e.children.indexOf(t);kt.fatal(-1!==r,"framework/kernel/src/public/inode-helper.ts:183"),(n=e.children).splice.apply(n,[r,1].concat(pn(t.children||[])))}},{key:"cloneNode",value:function(e){var t={type:e.type,id:e.id,name:e.name};return yr(e,"data")&&(t.data=e.data),e.attrs&&(t.attrs=Object.assign({},e.attrs)),t}},{key:"setAttribute",value:function(e,t,n){var r={};"string"==typeof t?r[t]=n:r=Object.assign({},t),e.attrs=Object.assign(Object.assign({},e.attrs),r)}},{key:"removeAttribute",value:function(e,t){e.attrs&&delete e.attrs[t]}}]),e}();function qo(e){kt.fatal(e.length>1,"framework/kernel/src/model/utils/table/parse-to-row-layout.ts:23");var t={},n=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER,a=e[0].start.node.parentNode.parentNode;e.forEach((function(e){var a=e.start.node;kt.fatal(a.hasCategory(ze.TableCell),"framework/kernel/src/model/utils/table/parse-to-row-layout.ts:36");var l=a.parentNode.offset,u=a.attrs.col,c=a.attrs.rowSpan||1,s=a.attrs.colSpan||1;t[l]||(t[l]={}),kt.fatal(!t[l][u],"framework/kernel/src/model/utils/table/parse-to-row-layout.ts:47"),t[l][u]=e,n=Math.min(n,l),r=Math.max(r,l+c-1),o=Math.min(o,u),i=Math.max(i,u+s-1)})),kt.fatal(n>=0&&o>=0,"framework/kernel/src/model/utils/table/parse-to-row-layout.ts:57"),kt.fatal(r2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(kt.fatal(t.ranges.length,"framework/kernel/src/model/utils/selection/delete-content.ts:17"),t.isTableSelection){var a=t.firstRange.start.node.parentNode.parentNode;if(kt.fatal(a.hasCategory(ze.Table),"framework/kernel/src/model/utils/selection/delete-content.ts:21"),t.firstRange.start.node===a.firstChild.firstChild&&t.lastRange.end.node===a.lastChild.lastChild)return function(e,t,n,r){if(!n){var o=!0;if(t.children.forEach((function(t){t.children.forEach((function(t){zt.isLikeEmptyElement(t)||(o=!1,t.children.forEach((function(n){e.removeChild(t,n)})))}))})),!o)return null}if(!r)return null;var i=t.parentNode;kt.fatal(i.hasCategory(ze.TableHole),"framework/kernel/src/model/utils/selection/delete-content.ts:74");var a=e.createElement(e.defaultElementName);return e.insertBefore(i.parentNode,a,i),e.removeChild(i.parentNode,i),e.newSelection(e.newRange(e.newPosition(a,0)))}(e,a,o,i)||t}var l=t.ranges.map((function(t){return zo.deleteContent(e,t,n,r)}));return e.newSelection([l[0]])}function Xo(e,t,n){var r=function(e,t){var n=new Set,r={recordCheckNode:function(e){n.add(e)}};return Wo.isFragmentNode(t)?Zo(e,ei(r,e,null,Qo(e,t.children||[])),Array.from(n)):null}(e,n);return r?function(e,t,n){var r={isTopProcessContext:!0,needBreak:!1,allowMergeFirstLine:!0,textAttrs:t.node.isTextNode()&&lr(t.node.attrs)||{}};return 1!==n.length||n[0].nodeName!==e.defaultElementName||e.acceptNode(t.node.nodeName,e.defaultElementName)||(n=n[0].children),t=n.some((function(e){return!e.hasCategory([ze.Text,ze.Inline])}))?Lo(e,t,Fo):Pn(e,t),t=function(e,t){if(!t.node.isElement())return t;for(var n=t.node,r=n.children,o=t.offset,i=o,a=r.length;i=0;u--){var c=r[u];if(!c.isTextNode()||0!==c.dataLength)break;e.removeChild(n,c),o--}return e.newPosition(n,o)}(e,t),t=oi(r,e,t,n)}(e,t,r):t}function Qo(e,t){var n=[];return t.forEach((function(t){var r;if(null===(r=t.children)||void 0===r?void 0:r.length){var o=Qo(e,t.children);if(e.hasCategory(t.name,[ze.VirtualLikeRoot,ze.LikeRoot,ze.Root],!1))return Wo.setChildren(t,o),void n.push(t);if(Wo.setChildren(t,[]),o.length>0&&o[0].name===e.defaultElementName&&(o[0].children||[]).every((function(n){return e.acceptNode(t.name,n.name)}))&&o.every((function(t){return e.hasCategory(t.name,[ze.Block,ze.BlockCard,ze.Hole,ze.AlertHole,ze.Table,ze.TableHole])}))){var i=o[0],a=i.children||[];o=[].concat(pn(a),pn(o.slice(1))),Wo.setAttribute(t,Object.assign(Object.assign({},t.attrs),ni(e,t.name,i.attrs)))}var l=null,u=!1;o.forEach((function(r){e.acceptNode(t.name,r.name)?(l?u&&(l=Wo.cloneNode(t),n.push(l)):(l=t,n.push(l)),u=!1,Wo.appendChild(l,r)):(u=!0,n.push(r))}))}else n.push(t)})),n}function Zo(e,t,n){return n.forEach((function(n){if(zt.isLikeEmptyElement(n))if(n.parentNode){var r=[n.parentNode];e.removeChild(n.parentNode,n),Zo(e,t,r)}else{var o=t.indexOf(n);-1!==o&&t.splice(o,1)}})),t}function ei(e,t,n,r){var o=[];return r?(r&&r.forEach((function(r){var i=function(e,t,n,r){var o,i,a=t.getNodeSchema(r.name);return a?a.category.includes(ze.Table)?function(e,t,n,r){if(!(null==n?void 0:n.hasCategory(ze.TableHole))){var o=t.createHole("tableHole");return ti(e,t,o,r),kt.fatal(o.firstChild.hasCategory(ze.Table),"framework/kernel/src/model/utils/position/helpers/insert-inode-by-position.ts:447"),li(t,r,o),n?ri(e,t,n,o,r):[o]}return li(t,r,n),ti(e,t,n,r)}(e,t,n,r):(null===(o=a.parents)||void 0===o?void 0:o.includes(ze.ContainerHole))?function(e,t,n,r){if(!(null==n?void 0:n.hasCategory(ze.ContainerHole))){var o=t.createHole("containerHole");return ti(e,t,o,r),li(t,r,o),n?ri(e,t,n,o,r):[o]}return li(t,r,n),ti(e,t,n,r)}(e,t,n,r):(null===(i=a.parents)||void 0===i?void 0:i.includes(ze.AlertHole))?function(e,t,n,r){if(!(null==n?void 0:n.hasCategory(ze.AlertHole))){var o=t.createHole("alertHole");return ti(e,t,o,r),kt.fatal(o.firstChild.hasCategory("alert"),"framework/kernel/src/model/utils/position/helpers/insert-inode-by-position.ts:417"),li(t,r,o),n?ri(e,t,n,o,r):[o]}return li(t,r,n),ti(e,t,n,r)}(e,t,n,r):a.type===_t.Element?ti(e,t,n,r):a.type===_t.Text?function(e,t,n,r){var o=ni(t,r.name,r.attrs),i=t.editing.kernel.getExtend("text_helper");if(i){var a=i.createTextNode(t,r,o);if(!n)return a;var l=[];return a.forEach((function(o){l=l.concat(ri(e,t,n,o,r))})),l}var u=t.createTextNode(r.data,o,r.id);return n?ri(e,t,n,u,r):[u]}(e,t,n,r):(kt.fatal(a.type===_t.Card,"framework/kernel/src/model/utils/position/helpers/insert-inode-by-position.ts:245"),function(e,t,n,r){var o=ar.createCardNode(t,r.name,ni(t,r.name,r.attrs),r.id);return(null==n?void 0:n.hasCategory(ze.Hole))?(li(t,r,n),ri(e,t,n,o.firstChild,r)):(li(t,r,o),ri(e,t,n,o,r))}(e,t,n,r)):r.children?ei(e,t,n,r.children):[]}(e,t,n,r);i.forEach((function(e){o.push(e)}))})),o):o}function ti(e,t,n,r){var o,i;i=(null===(o=t.getNodeSchema(r.name))||void 0===o?void 0:o.category.includes(ze.Hole))?t.createHole(r.name,ni(t,r.name,r.attrs),r.id):t.createElement(r.name,ni(t,r.name,r.attrs),r.id);var a=ri(e,t,n,i,r),l=[];return i.parentNode||a.includes(i)?l=ei(e,t,i,r.children):n?l=ei(e,t,n,r.children):(a.push(i),l=ei(e,t,i,r.children)),l.forEach((function(e){a.push(e)})),a}function ni(e,t,n){var r={};return n?(Object.keys(n).forEach((function(o){var i=n[o];e.acceptAttr(t,o,i)&&(r[o]=i)})),r):r}function ri(e,t,n,r){var o,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(n&&t.acceptNode(n.nodeName,r.nodeName))return e.wrapNode=null,t.appendChild(n,r),[];if(e.wrapNode){if(t.acceptNode(e.wrapNode.nodeName,r.nodeName))return t.appendChild(e.wrapNode,r),[];e.wrapNode=null}if(!n)return[r];var a=t.defaultElementName;if(t.acceptNode(a,r.nodeName)&&t.acceptNode(n.nodeName,a)){var l=i?ni(t,a,i.attrs):{},u=t.createElement(a,l);return e.wrapNode=u,t.appendChild(u,r),t.appendChild(n,u),[]}if(r.nodeName===t.defaultElementName&&n.nodeName!==r.nodeName&&n.hasCategory(ze.Block)){var c=[];return null===(o=r.children)||void 0===o||o.forEach((function(r){ri(e,t,n,r,null).forEach((function(e){c.push(e)}))})),c}return e.recordCheckNode(n),n.parentNode?ri(e,t,n.parentNode,r,i):[r]}function oi(e,t,n,r){var o=e.isTopProcessContext&&function(e){var t=e.node,n=e.offset;if(t.isTextNode()&&n!==t.dataLength)return!0;var r=zt.closest(t,ze.Block);if(!r)return!1;for(;t!==r;){if(n!==t.childCount)return!0;n=(t=t.parentNode).offset+1}return kt.fatal(t===r,"framework/kernel/src/model/utils/position/helpers/insert-inode-by-position.ts:888"),n0,"framework/kernel/src/model/utils/position/helpers/insert-inode-by-position.ts:844"),kt.fatal(i.childCount>0,"framework/kernel/src/model/utils/position/helpers/insert-inode-by-position.ts:845"),r.parentNode.hasCategory([ze.AlertHole,ze.ContainerHole])){var a=r.parentNode,l=e.createElement(a.nodeName);return e.appendChild(l,i),e.insertAfter(a.parentNode,l,a),e.newPosition(l.parentNode,l.offset)}return e.insertAfter(r.parentNode,i,r),e.newPosition(i.parentNode,i.offset)}(t,n),e.needBreak=!1),kt.fatal(n.node.isElement(),"framework/kernel/src/model/utils/position/helpers/insert-inode-by-position.ts:636"),n=ii(e,t,n,r),e.allowMergeFirstLine=!1})),o?ai(t,n):n}function ii(e,t,n,r){var o,i=n.node;if(kt.fatal(i.isElement(),"framework/kernel/src/model/utils/position/helpers/insert-inode-by-position.ts:659"),i.hasCategory([ze.Hole,ze.TableHole])&&(r.hasCategory([ze.Hole,ze.TableHole])||i.childCount>0)){var a=t.newPosition(i.parentNode,0===n.offset?i.offset:i.offset+1);return ii(e,t,a,r)}if(t.acceptNode(i.nodeName,r.nodeName))return ui(r,(function(n){!function(e,t,n){var r;if(!n.isTextNode())return n;if(n.isTextNode()&&(!n.attrs||0===Object.keys(n.attrs).length)){try{var o=e.editing.kernel;o.hasExtendMethod("beforeInsertTextInheritAttrs")&&(t=null===(r=o.getExtendMethod("beforeInsertTextInheritAttrs"))||void 0===r?void 0:r(e,n,t))}catch(e){}Object.keys(t).forEach((function(r){e.document.schema.allowCloneAttr(r)&&e.setAttribute(n,r,t[r])}))}}(t,e.textAttrs,n)})),t.insertNodeByPosition(n,r);if(i.hasCategory([ze.Root,ze.LikeRoot])){var l=function(e,t,n){var r=e.defaultElementName;return e.acceptNode(r,n.nodeName)?e.createElement(r):null}(t,0,r);if(l)return t.insertNodeByPosition(n,l),ii(e,t,t.newPosition(l,0),r);if(!i.hasCategory(ze.VirtualLikeRoot))return r.isElement()&&!r.isEmpty()?oi(e,t,n,r.children):n}if(e.allowMergeFirstLine&&(i.nodeName===r.nodeName||r.hasCategory([ze.ContainerHole,ze.AlertHole])&&(null===(o=r.firstChild)||void 0===o?void 0:o.nodeName)===i.nodeName||r.nodeName===t.defaultElementName&&i.hasCategory(ze.TextContainer))){var u=r.hasCategory([ze.ContainerHole,ze.AlertHole])?r.firstChild:r;return u.children.forEach((function(e){n=t.insertNodeByPosition(n,e)})),function(e,t,n){var r=n.attrs,o=t.nodeName;Object.keys(r).forEach((function(n){var i=r[n];!e.isStandardAttr(o,n)&&e.acceptAttr(o,n,i)&&e.setAttribute(t,n,i)}))}(t,i,u),e.needBreak=!0,n}return e.needBreak=!0,oi(e,t,n,[r])}function ai(e,t){var n=t,r=n.node,o=n.offset;if(!r.isElement())return t;if(r.hasCategory(ze.Block)&&o===r.childCount)return ai(e,e.newPosition(r.parentNode,r.offset+1));var i=r.getChildByOffset(o-1),a=r.getChildByOffset(o);if(!i||!a)return t;if(i.nodeName!==a.nodeName||!i.isElement())return t;var l=e.newPosition(i,i.childCount);return t=l.clone(),a.children.forEach((function(n){t=e.insertNodeByPosition(t,n)})),e.removeChild(a.parentNode,a),l}function li(e,t,n){var r;(null===(r=null==t?void 0:t.attrs)||void 0===r?void 0:r.hindent)&&n&&e.acceptAttr(n.nodeName,"indent",t.attrs.hindent)&&e.setAttribute(n,"indent",t.attrs.hindent)}function ui(e,t){var n;e.isTextNode()?t(e):e.isElement()&&(null===(n=e.children)||void 0===n||n.forEach((function(e){ui(e,t)})))}function ci(e,t,n){var r=t[0];kt.fatal(r&&r.collapsed,"framework/kernel/src/model/utils/range/insert-inode-to-columns.ts:34");var o=Xo(e,r.start,n);return[e.newRange(o)]}var si=["cellBgColor","verticalAlign"];function di(e,t,n,r){kt.fatal("td"===t.name,"framework/kernel/src/model/utils/range/helpers/sync-cell-node-attrs.ts:17");var o=t.attrs||{};si.concat(null!=r?r:[]).forEach((function(t){yr(o,t)&&e.setAttribute(n,t,o[t])}))}function fi(e,t,n){var r,o,i=qo(t),a=i.rowLayout,l=i.minCol,u=i.maxCol,c=i.minRow,s=i.maxRow;if((null===(r=n.attrs)||void 0===r?void 0:r.rowCount)===s-c+1&&(null===(o=n.attrs)||void 0===o?void 0:o.colCount)===u-l+1)return function(e,t,n,r){kt.fatal(n.rowLayout.length===r.attrs.rowCount,"framework/kernel/src/model/utils/range/insert-inode-to-table.ts:231"),kt.fatal(r.children.length===n.maxRow-n.minRow+1,"framework/kernel/src/model/utils/range/insert-inode-to-table.ts:232");var o=[],i=t[0].start.node.parentNode.parentNode,a=n.minRow,l=n.minCol;t.forEach((function(t){e.removeChild(t.start.node.parentNode,t.start.node)}));var u=[];return r.children.forEach((function(t,n){var r,i,a=[];if(u.push(a),null===(r=t.children)||void 0===r?void 0:r.length)for(var c=0,s=t.children.length;co.attrs.col}));-1===l?e.appendChild(r,o):e.insertByOffset(r,l,o);for(var u=1,c=t.length;u0}));if(!o.length)return null;for(var i=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:e.editing.kernel;if(n=(null==a?void 0:a.hasExtendMethod("normalizeINodeTree"))?null===(r=a.getExtendMethod("normalizeINodeTree"))||void 0===r?void 0:r(e,n):pi(e,n),!t.isCardSelection&&(t.isTableSelection||t.isColumnsSelection||t.isCollapsed)||(t=Jo(e,t)),1===t.rangeCount){kt.fatal(t.firstRange.collapsed,"framework/kernel/src/model/utils/selection/insert-inode.ts:43");var l=t.firstRange.start,u=zt.closest(l.node,ze.TableCell);if(1===(null===(o=n.children)||void 0===o?void 0:o.length)&&"table"===(null===(i=n.children[0])||void 0===i?void 0:i.name)&&u){var c=function(e,t,n){var r=t.attrs.col,o=t.parentNode.offset,i=t.parentNode.parentNode;return n.children.forEach((function(t,n){var a,l=i.children[o+n];!l&&t&&(l=function(e,t,n,r){var o,i={};(null===(o=n.attrs)||void 0===o?void 0:o.height)&&(i.height=n.attrs.height);var a=e.createElement("tr",i);e.appendChild(t,a);for(var l=0,u=r;l=n)return u}kt.fatal(!1,"framework/kernel/src/model/utils/range/insert-inode-to-table-cell.ts:190")}(e,l,r+n);return function(e,t,n){Array.from(t.children).reverse().forEach((function(n){e.removeChild(t,n)})),di(e,n,t),Xo(e,e.newPosition(t,0),Wo.createFragment(n.children))}(e,o,t),o}))})),function(e,t,n){var r=t.attrs.colCount,o=t.attrs,i=o.colWidths,a=o.rowCount,l=o.colCount;if(t.children.forEach((function(e){if(e.lastChild){var t=e.lastChild.attrs,n=t.col,o=t.colSpan,i=void 0===o?1:o;r=Math.max(r,n+i)}})),hi.parseTableLayout(t).forEach((function(n,o){for(var i=n.length;il,"framework/kernel/src/model/utils/range/insert-inode-to-table-cell.ts:95"),e.setAttribute(t,"colCount",r);var u=n.attrs.colWidths.slice(l-r);kt.fatal(u.length===r-l,"framework/kernel/src/model/utils/range/insert-inode-to-table-cell.ts:102"),e.setAttribute(t,"colWidths",i.concat(u))}}(e,i,n),Wt.selectNodeContents(t)}(e,u,n.children[0]);return e.newSelection([c])}var s=Xo(e,l,n);return e.newSelection([e.newRange(s)])}if(t.isColumnsSelection){var d=function(e,t,n){return t=function(e,t){return t.map((function(t){kt.fatal(t.start.node.hasCategory(Er),"framework/kernel/src/model/utils/range/insert-inode-to-columns.ts:15"),kt.fatal(t.start.node===t.end.node,"framework/kernel/src/model/utils/range/insert-inode-to-columns.ts:16");var n=t.start.node;return n.children.forEach((function(t){e.removeChild(n,t)})),e.newRange(e.newPosition(n,0))}))}(e,t),1===n.children.length&&"columns"===n.children[0].name?function(e,t,n){return n.children.length<=t.length?t.map((function(t,r){kt.fatal(t&&t.collapsed,"framework/kernel/src/model/utils/range/insert-inode-to-columns.ts:49");var o=t.start.node,i=n.children[r];return i&&Xo(e,t.start,Wo.createFragment([i])),e.newRange(e.newPosition(o,0),e.newPosition(o,o.childCount))})):ci(e,t,Wo.createFragment([n]))}(e,t,n.children[0]):ci(e,t,n)}(e,t.ranges,n);return e.newSelection(d)}var f=function(e,t,n){var r,o;if(t=function(e,t){return t.map((function(t){kt.fatal(t.start.node.hasCategory(ze.TableCell),"framework/kernel/src/model/utils/range/insert-inode-to-table.ts:212"),kt.fatal(t.start.node===t.end.node,"framework/kernel/src/model/utils/range/insert-inode-to-table.ts:213");var n=t.start.node;return n.children.forEach((function(t){e.removeChild(n,t)})),e.newRange(e.newPosition(n,0))}))}(e,t),1===(null===(r=n.children)||void 0===r?void 0:r.length)){if("table"===n.children[0].name)return fi(e,t,n.children[0]);if(1===(null===(o=n.children[0].children)||void 0===o?void 0:o.length)&&"table"===n.children[0].children[0].name)return fi(e,t,n.children[0].children[0])}return function(e,t,n){var r=function(e,t,n){var r=[],o=null;return t.children.forEach((function(t){e.hasCategory(t.name,[ze.Text,ze.InlineCard])?(o||(o=Wo.createElement(n)),Wo.appendChild(o,t)):(o&&(r.push(o),o=null),r.push(t))})),o&&(r.push(o),o=null),r}(e,n,e.defaultElementName),o=qo(t).rowLayout,i=[];return o.forEach((function(t,n){var o=t.cells,a=r[n%r.length];kt.fatal(a,"framework/kernel/src/model/utils/range/insert-inode-to-table.ts:51"),o.forEach((function(t){kt.fatal(t.range.collapsed,"framework/kernel/src/model/utils/range/insert-inode-to-table.ts:54"),Xo(e,t.range.start,Wo.createFragment([a]));var n=t.range.start.node;i.push(e.newRange(e.newPosition(n,0),e.newPosition(n,n.childCount)))}))})),i}(e,t,n)}(e,t.ranges,n);return e.newSelection(f)}function bi(e){for(var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n?function(e){return e.firstChild}:function(e){return e.lastChild},o=e.document.rootNode;o.childCount;){var i=r(o);if(i.isTextNode()){o=i;break}if(i.isCardNode()){i.hasCategory(ze.BlockCard)?kt.fatal(o.hasCategory(ze.Hole),"framework/kernel/src/model/utils/selection/move-to.ts:26"):kt.fatal(o.hasCategory(ze.TextContainer),"framework/kernel/src/model/utils/selection/move-to.ts:28");break}if(kt.fatal(o.isElement(),"framework/kernel/src/model/utils/selection/move-to.ts:33"),o.hasCategory([ze.AlertHole,ze.ContainerHole]))break;if(i.hasCategory(ze.Table)){kt.fatal(o.hasCategory(ze.TableHole),"framework/kernel/src/model/utils/selection/move-to.ts:40");break}if(i.hasCategory(ze.InlineBox))break;o=i}return o.isTextNode()?t=Wt.createAt(new Nt(o,n?0:o.dataLength)):(kt.fatal(o.isElement(),"framework/kernel/src/model/utils/selection/move-to.ts:58"),t=Wt.createAt(new Nt(o,n?0:o.childCount))),Jn(t,!0),e.cloneByRange(t)}function yi(e,t,n){t.forEach((function(t){if(t.isElement())yi(e,t.children,n);else if(t.isTextNode()||t.hasCategory(ze.InlineCard)){var r=t.hasCategory(ze.InlineCard);Object.keys(t.attrs).forEach((function(o){r&&Yo.includes(o)||(n?Array.isArray(n)?n.includes(o)||e.removeAttribute(t,o):"boolean"==typeof n&&(n||e.removeAttribute(t,o)):e.removeAttribute(t,o))}))}}))}function wi(e){var t=e.node,n=e.offset;return t.isTextNode()?0===n?new Nt(t.parentNode,t.offset):n===t.dataLength?new Nt(t.parentNode,t.offset+1):e:e}function ki(e,t){for(var n=t.node,r=zt.isInCollapsed(n),o=null;r&&(e.acceptAttr(r.nodeName,"open","true")&&e.setAttribute(r,"open","true"),e.acceptAttr(r.nodeName,"collapsed","false")&&e.setAttribute(r,"collapsed","false"),o!==(r=zt.isInCollapsed(n)));)o=r}function Ci(e,t){var n=Array.isArray(t)?t:t.ranges;if(n.length>1){var r=zt.closest(n[0].start.node,ze.TableCell),o=zt.closest(n[n.length-1].end.node,ze.TableCell);if(!(r&&o&&r.parentNode&&o.parentNode))return!1;var i=r.parentNode.parentNode;return!!i&&0===r.parentNode.offset&&o.parentNode.offset+(o.attrs.rowSpan||1)===i.childCount&&o.attrs.col+(o.attrs.colSpan||1)-r.attrs.col===i.attrs.colCount}return 1===e.attrs.rowCount&&1===e.attrs.colCount}function _i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t);try{for(a.s();!(n=a.n()).done;){var l=n.value,u=void 0;u=l.collapsed?l.start.node.toJSON(!1):null==(u=Oi(e,l))?void 0:u[0],kt.fatal("column"===u.name,"framework/kernel/src/model/utils/range/extract-inode.ts:156"),i+=u.attrs.width,o.push(u),Wo.appendChild(r,u)}}catch(e){a.e(e)}finally{a.f()}for(var c=0,s=o;c2&&void 0!==arguments[2]&&arguments[2];kt.fatal(!t.collapsed,"framework/kernel/src/model/utils/range/extract-inode.ts:65");var o=function(e){var t=e.node,n=e.offset;return kt.fatal(!t.isCardNode(),"framework/kernel/src/model/utils/range/extract-inode.ts:218"),t.isTextNode()?t:t.getChildByOffset(n)||t}(t.start),i=function(e){var t=e.node,n=e.offset;return kt.fatal(!t.isCardNode(),"framework/kernel/src/model/utils/range/extract-inode.ts:228"),t.isTextNode()?t:t.getChildByOffset(n-1)||t}(t.end),a=function(e){var t=e.commonAncestorContainer;return t.isTextNode()||kt.fatal(t.isElement(),"framework/kernel/src/model/utils/range/extract-inode.ts:244"),t}(t),l={nodes:[],map:new Map},u=!1;Br(t,(function(t){u?t!==i?xi(e,l,a,t):(kt.fatal(t!==o,"framework/kernel/src/model/utils/range/extract-inode.ts:89"),function(e,t,n,r){kt.fatal(!t.map.has(r),"framework/kernel/src/model/utils/range/extract-inode.ts:319");var o=xt(r),i=!1;o.forEach((function(r){i||r===n&&(i=!0),i&&!t.map.has(r)&&xi(e,t,n,r)})),kt.fatal(i,"framework/kernel/src/model/utils/range/extract-inode.ts:336")}(e,l,a,t)):(kt.fatal(0===l.nodes.length,"framework/kernel/src/model/utils/range/extract-inode.ts:81"),u=!0,function(e,t,n,r){var o=xt(r),i=!1;o.forEach((function(r){i||r===n&&(i=!0),i&&xi(e,t,n,r)})),kt.fatal(i,"framework/kernel/src/model/utils/range/extract-inode.ts:310")}(e,l,a,t))})),kt.fatal(1===l.nodes.length,"framework/kernel/src/model/utils/range/extract-inode.ts:95"),function(e,t,n,r){if(n!==r)n.isTextNode()&&(t.start.node===n?Ei(e,n,t.start.offset,n.dataLength):kt.fatal(t.start.node.getChildByOffset(t.start.offset)===n,"framework/kernel/src/model/utils/range/extract-inode.ts:377")),r.isTextNode()&&(t.end.node===r?Ei(e,r,0,t.end.offset):kt.fatal(t.end.node.getChildByOffset(t.end.offset-1)===r,"framework/kernel/src/model/utils/range/extract-inode.ts:387"));else if(n.isTextNode()){var o=t.start.offset,i=t.end.offset;if(t.start.node!==n&&(o=0),t.end.node!==r&&(i=r.dataLength),0===o&&i===r.dataLength)return;Ei(e,n,o,i)}}(l,t,o,i),null===(n=l.map)||void 0===n||n.clear(),kt.fatal(1===l.nodes.length,"framework/kernel/src/model/utils/range/extract-inode.ts:101");var c=l.nodes[0];if("#root"===c.name)return c.children||[];if(r&&a.hasCategory([ze.LikeRoot,ze.VirtualLikeRoot])&&c.id===a.id)return c.children||[];if(!a.hasCategory(ze.Block)||c.id!==a.id)return[c];var s=so(e,t);return s.start.node===a&&0===s.start.offset&&s.end.node===a&&s.end.offset===a.childCount?[c]:c.children||[]}function xi(e,t,n,r){var o=t.nodes,i=t.map,a=r.parentNode,l=r.toJSON(!1),u=l.attrs;if(u)for(var c=0,s=Object.keys(u);c2&&void 0!==arguments[2])||arguments[2],!(arguments.length>3&&void 0!==arguments[3])||arguments[3],!(arguments.length>4&&void 0!==arguments[4])||arguments[4],!(arguments.length>5&&void 0!==arguments[5])||arguments[5])}},{key:"extractINode",value:function(e,t){return Ni(e,t.ranges)}},{key:"insertINode",value:function(e,t,n){return gi(e,t,n)}},{key:"replaceBlockNode",value:function(e,t,n){return function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;n&&"function"!=typeof n&&kt.fatal(e.hasCategory(n.nodeName,[ze.Block,ze.TextContainer],!0),"framework/kernel/src/model/utils/selection/replace-block-node.ts:17");var i=t.ranges.map((function(t){return function(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(n&&t.collapsed&&t.start.node.isRootNode()&&t.start.isAtEnd)return r="function"==typeof n?n(e,null,null):n,e.appendChild(t.start.node,r),e.newRange(e.newPosition(r,0));var a=new Set;if(po(t,{enter:function(e){if(e.hasCategory(ze.Block))return a.add(e),!1},leave:function(t){if(t.isEmpty()&&t.hasCategory([ze.Root,ze.LikeRoot])){var n=e.createElement(e.defaultElementName);e.appendChild(t,n),a.add(n)}}}),!a.size)return t;var l=Gr.markRange(e,t);return a.forEach((function(t){!function(e,t,n,r,o){if(t){var i=e.replaceChild(n.parentNode,"cloneNode"in t?t.cloneNode(!1):t,n);r&&("function"==typeof r?r(e,i,n):Object.keys(n.attrs||{}).forEach((function(t){var r=n.attrs[t];e.acceptAttr(i.nodeName,t,r)&&!i.hasAttribute(t)&&e.setAttribute(i,t,r)}))),n.children.forEach((function(t){e.appendChild(i,t)})),yi(e,i.children,o)}else{var a=n.nodeName;Object.keys(n.attrs||{}).forEach((function(t){e.isStandardAttr(a,t)||e.removeAttribute(n,t)})),yi(e,n.children,o)}}(e,n,t,o,i)})),Jn(t=Gr.recoverRange(e,l)),t}(e,t,n,r,o)}));return t.cloneByRange(i)}(e,t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:null)}},{key:"isInCard",value:function(e){return e.isCardSelection}},{key:"isInHole",value:function(e){return!!e.isCollapsed&&!!e.firstRange.start.node.hasCategory(ze.Hole)}},{key:"isUnbreakable",value:function(e){return e.isCardSelection||e.isTableSelection||e.isColumnsSelection}},{key:"unCollapseAll",value:function(e,t){!function(e,t){ki(e,t.firstRange.start),t.collapsed||ki(e,t.firstRange.end)}(e,t)}},{key:"getSelectionIndent",value:function(e){return function(e){if(e.isCollapsed&&!(e.rangeCount>1)){var t=e.firstRange.start.node;if("number"==typeof t.attrs.indent)return t.attrs.indent;var n=t.closest(ze.Level);return n&&"number"==typeof n.attrs.level?n.attrs.level:void 0}}(e)}}]),e}(),Ri=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"insertCardNode",value:function(e,t,n,r){kt.fatal(1===t.rangeCount,"framework/kernel/src/model/utils/card/index.ts:34");var o=t.firstRange;if(t.isCollapsed&&!t.isCardSelection||(o=eo(e,o)),kt.fatal(o.collapsed,"framework/kernel/src/model/utils/card/index.ts:42"),o.start.node.hasCategory([ze.Hole,ze.TableHole])){var i=o.start.node;o=0===o.start.offset?e.newRange(e.newPosition(i.parentNode,i.offset)):e.newRange(e.newPosition(i.parentNode,i.offset+1))}var a=e.hasCategory(n,ze.InlineCard),l=a?function(e,t,n){var r=rr.closestInlineAttrs(t,Bn);return Object.keys(r).reduce((function(t,o){return"value"===o||e.acceptAttr(n,o,r[o])&&(t[o]=r[o]),t}),{})}(e,o.start,n):void 0;if(r&&(l=Object.assign(Object.assign({},l),{value:r})),!a&&l){var u=Di.getSelectionIndent(t);u&&(l.hindent=u)}var c,s=ar.createCardNode(e,n,l);return a?c=function(e,t,n){kt.fatal(n.hasCategory(ze.InlineCard),"framework/kernel/src/model/utils/card/index.ts:99");var r=Uo(e,e.newRange(t));if(r.start.node.hasCategory([ze.Root,ze.LikeRoot])){var o=e.createElement(e.defaultElementName);e.insertNodeByPosition(r.start,o),r=e.newRange(e.newPosition(o,0))}return kt.fatal(r.collapsed,"framework/kernel/src/model/utils/card/index.ts:111"),e.insertNodeByPosition(r.start,n)}(e,o.start,s):(kt.fatal(e.hasCategory(n,ze.BlockCard),"framework/kernel/src/model/utils/card/index.ts:85"),c=function(e,t,n){var r;kt.fatal(n.hasCategory(ze.Hole),"framework/kernel/src/model/utils/card/index.ts:117");var o=Gt(t.node,ze.Block);if(o){if(null===(r=o.parentNode)||void 0===r?void 0:r.hasCategory(ze.VirtualLikeRoot))return t=Pi(e,t),kt.fatal(t.node.hasCategory(ze.VirtualLikeRoot),"framework/kernel/src/model/utils/card/index.ts:132"),t=Pi(e,t),kt.fatal(t.node.hasCategory([ze.Root,ze.LikeRoot]),"framework/kernel/src/model/utils/card/index.ts:135"),e.insertNodeByPosition(t,n),e.newPosition(n,n.childCount);kt.fatal(e.acceptNode(o.parentNode.nodeName,n.nodeName),"framework/kernel/src/model/utils/card/index.ts:144")}else kt.fatal(t.node.hasCategory([ze.Root,ze.LikeRoot]),"framework/kernel/src/model/utils/card/index.ts:122"),t.node.hasCategory(ze.VirtualLikeRoot)&&(t=Pi(e,t),kt.fatal(t.node.hasCategory(ze.Root),"framework/kernel/src/model/utils/card/index.ts:127"));return o?Dt(o)?(e.replaceChild(o.parentNode,n,o),e.newPosition(n,n.childCount)):(t=Pi(e,t),kt.fatal(e.acceptNode(t.node.nodeName,n.nodeName),"framework/kernel/src/model/utils/card/index.ts:161"),e.insertNodeByPosition(t,n),e.newPosition(n,n.childCount)):(e.insertNodeByPosition(t,n),e.newPosition(n,n.childCount))}(e,o.start,s)),{selection:e.newSelection(e.newRange(c)),cardNode:s.hasCategory(ze.Hole)?s.firstChild:s}}}]),e}();function Pi(e,t){return function(e,t){var n,r=t.node;if(null===(n=r.parentNode)||void 0===n?void 0:n.hasCategory([ze.ContainerHole,ze.AlertHole])){if(nn(e,rn(e,Pn(e,t))),r.parentNode.childCount>1){var o=e.createElement(r.parentNode.nodeName),i=r.parentNode.children[1];return e.removeChild(r.parentNode,i),e.appendChild(o,i),e.insertAfter(r.parentNode.parentNode,o,r.parentNode),e.newPosition(o.parentNode,o.offset)}return e.newPosition(r.parentNode.parentNode,r.parentNode.offset+1)}return nn(e,rn(e,Pn(e,t)))}(e,rn(e,Pn(e,t)))}var Si=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"createFragment",value:function(){return{type:"fragment",name:"#fragment",children:[]}}},{key:"createElement",value:function(e,t){return{type:_t.Element,name:e,attrs:t}}},{key:"createTextNode",value:function(e,t){return{type:_t.Text,name:"#text",attrs:t,data:e}}},{key:"appendChild",value:function(e,t){return kt.fatal("#text"!==e.name,"framework/kernel/src/model/utils/inode/index.ts:38"),e.children||(e.children=[]),e.children.push(t),t}}]),e}(),Ti=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_readers",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Ke(e,[{key:"destroy",value:function(){delete this._kernel,delete this._readers}},{key:"register",value:function(e,t){this._readers[e]=t}},{key:"types",get:function(){return Object.keys(this._readers)}},{key:"getINode",value:function(e,t,n){var r=this._readers[e];return r?r.read(this._kernel,t,n):null}}]),e}(),Ai=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_writers",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Ke(e,[{key:"types",get:function(){return Object.keys(this._writers)}},{key:"destroy",value:function(){delete this._kernel,delete this._writers}},{key:"register",value:function(e,t){this._writers[e]=t}},{key:"matchType",value:function(e){return!!this._writers[e]}},{key:"getData",value:function(e,t,n){var r=this._writers[e];return r?r.write(this._kernel,t,n):null}}]),e}();function ji(e,t,n){return t=Qe(t),Xe(e,Ii()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ii(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ii=function(){return!!e})()}var Bi,Mi=function(e){function t(){return Ye(this,t),ji(this,t,arguments)}return et(t,e),Ke(t,[{key:"cloneNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Cr(Qe(t.prototype),"cloneNode",this).call(this,e)}},{key:"isRootNode",value:function(){return!1}},{key:"isHole",value:function(){return!0}}]),t}(Or);function Fi(e,t,n){return t=Qe(t),Xe(e,Li()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Li(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Li=function(){return!!e})()}!function(e){e.Block="block",e.Inline="inline"}(Bi||(Bi={}));var Ui=function(e){function t(e,n,r,o){var i;return Ye(this,t),i=Fi(this,t,[e,n,r,o]),Object.defineProperty(Je(i),"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:_t.Card}),Object.defineProperty(Je(i),"cardType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),i.cardType=e.schema.hasCategory(n,ze.BlockCard)?Bi.Block:Bi.Inline,i._attrs.cardType=i.cardType,i}return et(t,e),Ke(t,[{key:"cardValue",get:function(){var e=this._attrs.value;return e&&"object"===We(e)?Object.assign({},e):{}}},{key:"toString",value:function(){var e=this.nodeName,t=this.attrs,n=[];return Object.keys(t).forEach((function(e){if("cardType"!==e){var r=t[e];r?"object"===We(r)?r=JSON.stringify(r):r+="":r="",n.push("".concat(e,'="').concat(r,'"'))}})),"<".concat(e).concat(n.length?" "+n.join(" "):"",">")}},{key:"cloneNode",value:function(){var e=this,n=lr(this._attrs);return Object.keys(n).forEach((function(t){e._document.schema.allowCloneAttr(t)||delete n[t]})),new t(this._document,this._nodeName,n)}},{key:"isCardNode",value:function(){return!0}},{key:"toData",value:function(e){var n=Cr(Qe(t.prototype),"toData",this).call(this,e);return n.cardType=this.cardType,n}},{key:"isEmpty",value:function(){return!0}},{key:"isHole",value:function(){return!1}},{key:"isRootNode",value:function(){return!1}},{key:"isElement",value:function(){return!1}},{key:"isTextNode",value:function(){return!1}}]),t}(kr),Vi="#root",Hi="#card",zi="#text";function Wi(e,t,n){return t=Qe(t),Xe(e,qi()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qi=function(){return!!e})()}var $i=function(e){function t(e,n,r){return Ye(this,t),Wi(this,t,[e,Vi,n,r])}return et(t,e),Ke(t,[{key:"isRootNode",value:function(){return!0}},{key:"isCardNode",value:function(){return!1}},{key:"isHole",value:function(){return!1}},{key:"cloneNode",value:function(){throw new Error("can not clone rootNode")}}]),t}(Or);function Ki(e,t,n){return t=Qe(t),Xe(e,Yi()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Yi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yi=function(){return!!e})()}var Gi=function(e){function t(e,n,r,o){var i;return Ye(this,t),i=Ki(this,t,[e,zi,r,o]),Object.defineProperty(Je(i),"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:_t.Text}),Object.defineProperty(Je(i),"_data",{enumerable:!0,configurable:!0,writable:!0,value:""}),i._data=n||"",i}return et(t,e),Ke(t,[{key:"data",get:function(){return this._data}},{key:"dataLength",get:function(){return On.size(this._data)}},{key:"isEmpty",value:function(){return!this._data}},{key:"cloneNode",value:function(){var e=this,n=lr(this._attrs);return Object.keys(n).forEach((function(t){e._document.schema.allowCloneAttr(t)||delete n[t]})),new t(this._document,this._data,n)}},{key:"isElement",value:function(){return!1}},{key:"isRootNode",value:function(){return!1}},{key:"isHole",value:function(){return!1}},{key:"isCardNode",value:function(){return!1}},{key:"isTextNode",value:function(){return!0}},{key:"toString",value:function(){var e=this.attrs,t=[];return Object.keys(e).forEach((function(n){var r=e[n];r?"object"===We(r)?r=JSON.stringify(r):r+="":r="",t.push("".concat(n,'="').concat(r,'"'))})),"<#text".concat(t.length?" "+t.join(" "):"",">").concat(this._data,"")}},{key:"toData",value:function(){var e=Cr(Qe(t.prototype),"toData",this).call(this,!1);return e.data=this._data,e}}]),t}(kr),Ji="node.will.change",Xi="operation.submitted",Qi="job.created",Zi="contentchange",ea="beforecontentchange",ta="aftercontentchange",na="selectionchange",ra="operationRollback";function oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this._allNodes.values());try{for(o.s();!(n=o.n()).done;){var i=n.value;(null===(t=null==i?void 0:i.hasCategory)||void 0===t?void 0:t.call(i,e))&&r.push(i)}}catch(e){o.e(e)}finally{o.f()}return r}},{key:"getNodeByPath",value:function(e){if(0===e.length)return this._rootNode;for(var t=this._rootNode,n=0,r=e.length;n=o,"framework/kernel/src/model/editing/job/operations/insert.ts:24")}return Ke(e,[{key:"destroy",value:function(){delete this.type,delete this.jobMode,delete this.parentNode,delete this.childNode,delete this.offset}},{key:"apply",value:function(e){kt.fatal(this.parentNode.childCount>=this.offset&&!this.childNode.parentNode,"framework/kernel/src/model/editing/job/operations/insert.ts:36"),e.insertByOffset(this.parentNode,this.offset,this.childNode),kt.fatal(this.childNode.offset===this.offset&&this.childNode.parentNode===this.parentNode,"framework/kernel/src/model/editing/job/operations/insert.ts:40")}},{key:"reverse",value:function(e){kt.fatal(this.parentNode.getChildByOffset(this.offset)===this.childNode,"framework/kernel/src/model/editing/job/operations/insert.ts:47"),e.removeChild(this.parentNode,this.childNode)}}]),e}(),da=function(){function e(t,n,r,o,i,a,l){Ye(this,e),Object.defineProperty(this,"jobMode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"parentNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"oldParentNode",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"childNode",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"offset",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"oldOffset",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"realOffset",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:la.Move}),kt.fatal(n.childCount>l,"framework/kernel/src/model/editing/job/operations/move.ts:42")}return Ke(e,[{key:"destroy",value:function(){delete this.type,delete this.jobMode,delete this.parentNode,delete this.oldParentNode,delete this.childNode,delete this.offset,delete this.oldOffset,delete this.realOffset}},{key:"apply",value:function(e){kt.fatal(this.oldParentNode.getChildByOffset(this.oldOffset)===this.childNode,"framework/kernel/src/model/editing/job/operations/move.ts:57"),e.insertByOffset(this.parentNode,this.offset,this.childNode),kt.fatal(this.parentNode.getChildByOffset(this.realOffset)===this.childNode,"framework/kernel/src/model/editing/job/operations/move.ts:61")}},{key:"reverse",value:function(e){var t=this.oldOffset;this.oldParentNode===this.parentNode&&this.realOffset=o,"framework/kernel/src/model/editing/job/operations/remove.ts:24")}return Ke(e,[{key:"destroy",value:function(){delete this.type,delete this.jobMode,delete this.parentNode,delete this.childNode,delete this.offset}},{key:"apply",value:function(e){kt.fatal(this.parentNode.getChildByOffset(this.offset)===this.childNode,"framework/kernel/src/model/editing/job/operations/remove.ts:36"),e.removeChild(this.parentNode,this.childNode)}},{key:"reverse",value:function(e){kt.fatal(this.parentNode.childCount>=this.offset&&!this.childNode.parentNode,"framework/kernel/src/model/editing/job/operations/remove.ts:43"),e.insertByOffset(this.parentNode,this.offset,this.childNode),kt.fatal(this.childNode.offset===this.offset&&this.childNode.parentNode===this.parentNode,"framework/kernel/src/model/editing/job/operations/remove.ts:47")}}]),e}(),ha=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"jobMode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"attrName",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"attrValue",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:la.AddAttr})}return Ke(e,[{key:"destroy",value:function(){delete this.type,delete this.jobMode,delete this.node,delete this.attrName,delete this.attrValue}},{key:"apply",value:function(e){e.setAttribute(this.node,this.attrName,this.attrValue)}},{key:"reverse",value:function(e){e.removeAttribute(this.node,this.attrName)}}]),e}(),pa=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"jobMode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"attrName",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"oldAttrValue",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:la.RemoveAttr})}return Ke(e,[{key:"destroy",value:function(){delete this.type,delete this.jobMode,delete this.node,delete this.attrName,delete this.oldAttrValue}},{key:"apply",value:function(e){e.removeAttribute(this.node,this.attrName)}},{key:"reverse",value:function(e){e.setAttribute(this.node,this.attrName,this.oldAttrValue)}}]),e}(),va=function(){function e(t,n,r,o,i){Ye(this,e),Object.defineProperty(this,"jobMode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"attrName",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"attrValue",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"oldAttrValue",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:la.UpdateAttr})}return Ke(e,[{key:"destroy",value:function(){delete this.type,delete this.jobMode,delete this.node,delete this.attrName,delete this.attrValue,delete this.oldAttrValue}},{key:"apply",value:function(e){e.setAttribute(this.node,this.attrName,this.attrValue)}},{key:"reverse",value:function(e){e.setAttribute(this.node,this.attrName,this.oldAttrValue)}}]),e}(),ma=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"jobMode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"text",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"oldText",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:la.UpdateText})}return Ke(e,[{key:"destroy",value:function(){delete this.type,delete this.jobMode,delete this.node,delete this.text,delete this.oldText}},{key:"apply",value:function(e){e.setTextNodeData(this.node,this.text)}},{key:"reverse",value:function(e){e.setTextNodeData(this.node,this.oldText)}}]),e}(),ga="remove",ba="insert",ya="addAttr",wa="removeAttr",ka="changeAttr",Ca="changeText",_a={Move:"document.node.move",Insert:"document.node.insert",Remove:"document.node.remove",UpdateText:"document.node.text.change",AddAttr:"document.node.attr.add",UpdateAttr:"document.node.attr.change",RemoveAttr:"document.node.attr.remove"};function Na(e,t){if(t){var n,r=t.type;if(r===_a.Move){var o=t.data;n=new da(e.mode,o.parentNode,o.oldParent,o.childNode,o.offset,o.oldOffset,o.realOffset)}else if(r===_a.Insert){var i=t.data;n=new sa(e.mode,i.parentNode,i.childNode,i.offset)}else if(r===_a.Remove){var a=t.data;n=new fa(e.mode,a.parentNode,a.childNode,a.offset)}else if(r===_a.UpdateText){var l=t.data;n=new ma(e.mode,l.node,l.text,l.oldText)}else if(r===_a.AddAttr){var u=t.data;n=new ha(e.mode,u.node,u.name,u.value)}else if(r===_a.UpdateAttr){var c=t.data;n=new va(e.mode,c.node,c.name,c.value,c.oldValue)}else{if(r!==_a.RemoveAttr)throw new Error("invalid operation type");var s=t.data;n=new pa(e.mode,s.node,s.name,s.value)}e._unSyncOperations.push(n),function(e,t){var n=t.type;if(n===_a.Move){var r=t.data;Ea(e,r.childNode,"remove"),Oa(e,r.oldParent),Ea(e,r.childNode,"insert"),Oa(e,r.parentNode)}else if(n===_a.Insert){var o=t.data;Ea(e,o.childNode,"insert"),Oa(e,o.parentNode)}else if(n===_a.Remove){var i=t.data;Ea(e,i.childNode,"remove"),Oa(e,i.parentNode)}else if(n===_a.UpdateText)!function(e,t){e.editing.emit("nodechange",{type:"text",job:e,node:t})}(e,t.data.node);else if(n===_a.AddAttr){var a=t.data;xa(e,{subType:"add",node:a.node,attrName:a.name,value:a.value})}else if(n===_a.UpdateAttr){var l=t.data;xa(e,{subType:"update",node:l.node,attrName:l.name,oldValue:l.oldValue,value:l.value})}else{if(n!==_a.RemoveAttr)throw new Error("invalid operation type");var u=t.data;xa(e,{subType:"remove",node:u.node,attrName:u.name,oldValue:u.value})}}(e,t)}}function Oa(e,t){e.editing.emit("nodechange",{type:"children",job:e,node:t})}function xa(e,t){e.editing.emit("nodechange",Object.assign({type:"attribute",job:e},t))}function Ea(e,t,n){e.editing.emit("nodechange",{type:n,job:e,node:t})}var Da=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"assertAcceptNode",value:function(e,t,n){if(!e.acceptNode(t,n))throw new Error("invalid node insert: ".concat(t," can't contain ").concat(n))}},{key:"prependChild",value:function(t,n,r){return 0===n.childCount?e.appendChild(t,n,r):e.insertBefore(t,n,r,n.firstChild)}},{key:"appendChild",value:function(e,t,n){if(n.parent===t&&n._offset+1===t.childCount)return null;var r=n.parent,o=n._offset,i=t.children.length;return r&&Ra(e,r,n),Pa(e,ba,{parentNode:t,childNode:n,offset:t.childCount}),n._offset=t.childCount,n._parent=t,Sa(t).push(n),r?{type:_a.Move,data:{oldParent:r,oldOffset:o,parentNode:t,offset:i,realOffset:n._offset,childNode:n}}:{type:_a.Insert,data:{parentNode:t,childNode:n,offset:n._offset}}}},{key:"removeChild",value:function(e,t,n){var r=n._offset;return Ra(e,t,n),{type:_a.Remove,data:{parentNode:t,childNode:n,offset:r}}}},{key:"insertBefore",value:function(e,t,n,r){if(kt.fatal(r.parent===t,"framework/kernel/src/model/editing/job/helper/node.ts:135"),n===r)return null;var o=n.parent,i=n._offset,a=r.offset;o&&Ra(e,o,n);var l=Sa(t),u=l.indexOf(r);Pa(e,ba,{parentNode:t,childNode:n,offset:u});for(var c=l.length-1;c>=u;c--)l[c]._offset++,l[c+1]=l[c];return n._offset=u,n._parent=t,l[u]=n,o?{type:_a.Move,data:{oldParent:o,oldOffset:i,parentNode:t,offset:a,realOffset:n._offset,childNode:n}}:{type:_a.Insert,data:{parentNode:t,childNode:n,offset:n._offset}}}},{key:"insertAfter",value:function(t,n,r,o){if(o.parent!==n)throw new Error("invalid referenceElement");if(r===o)return null;var i=o.nextSibling;return i?e.insertBefore(t,n,r,i):e.appendChild(t,n,r)}},{key:"insertByOffset",value:function(t,n,r,o){if(o.parent===n&&o.offset===r)return null;var i=Sa(n);if(kt.fatal(r<=i.length,"framework/kernel/src/model/editing/job/helper/node.ts:226"),r===i.length)return e.appendChild(t,n,o);var a=i[r];return a?e.insertBefore(t,n,o,a):e.appendChild(t,n,o)}},{key:"setTextNodeData",value:function(e,t,n){if(n=n||"",t.data===n)return null;Pa(e,Ca,{node:t,text:n});var r=t.data;return function(e,t){e._data=t}(t,n),{type:_a.UpdateText,data:{node:t,text:n,oldText:r}}}},{key:"removeAttribute",value:function(e,t,n){kt.fatal(t.hasAttribute(n),"framework/kernel/src/model/editing/job/helper/node.ts:276"),Pa(e,wa,{node:t,attrName:n});var r=Ta(t),o=r[n];return delete r[n],{type:_a.RemoveAttr,data:{node:t,name:n,value:o}}}},{key:"setAttribute",value:function(e,t,n,r){kt.fatal(e.acceptAttr(t.nodeName,n,r),"setAttribute ".concat(n," failed: ").concat(n," is not a valid attribute for ").concat(t.nodeName),"framework/kernel/src/model/editing/job/helper/node.ts:304");var o=Ta(t);if(t.hasAttribute(n)){var i=o[n];return i===r?null:(Pa(e,ka,{node:t,attrName:n,attrValue:lr(r)}),o[n]=r,{type:_a.UpdateAttr,data:{node:t,name:n,value:r,oldValue:i}})}return Pa(e,ya,{node:t,attrName:n,attrValue:lr(r)}),o[n]=r,{type:_a.AddAttr,data:{node:t,name:n,value:r}}}}]),e}();function Ra(e,t,n){var r=Sa(t),o=r.indexOf(n);if(-1===o)throw new Error("invalid child");Pa(e,ga,{parentNode:t,childNode:n}),r.splice(o,1);for(var i=o,a=r.length;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(r);try{for(i.s();!(o=i.n()).done;){var a=o.value.commonAncestorContainer.closest(ze.TableCell);if(!a)return!1;var l=a.closest(ze.Table);if(!((null==l?void 0:l.attrs.colHead)&&(null===(n=a.parent)||void 0===n?void 0:n.firstChild)===a||(null==l?void 0:l.attrs.rowHead)&&l.firstChild===a.parent))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}}]),e}();function Ia(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t,o=r.start,i=r.end,a=r.collapsed;return o.node.isCardNode()?(kt.fatal(a,"framework/kernel/src/model/utils/range/normalize-range.ts:21"),t):(o=Ma(e,o,a),i=Ma(e,i,!0),ja.isInvalidTablePosition(o)&&(o=ja.normalizeTdPosition(e,o),i=ja.normalizeTdPosition(e,i)),o.node.hasCategory([ze.TableHole,ze.Hole])||(o=Ba(e,o,a)),a?t=e.newRange(o):(i.node.hasCategory([ze.TableHole,ze.Hole])||(i=Ba(e,i,!0)),t=e.newRange(o,i)),t=Qn(e,t),n&&(t=Oo(e,t)),Jn(t,!0),t)}function Ba(e,t,n){var r=function(e,t,n){var r=t.node;return r.isTextNode()?t:(kt.fatal(r.isElement()&&r.hasCategory([ze.TextContainer,ze.Root,ze.LikeRoot]),"framework/kernel/src/model/utils/range/normalize-range.ts:132"),n?function(e,t){var n=t.node,r=t.offset;if(!n.isElement())return t;var o=n.getChildByOffset(r-1);if(o){if(o.isElement())return o.hasCategory([ze.Root,ze.LikeRoot,ze.TableHole,ze.Hole])||o.hasCategory(ze.InlineBox)?t:(kt.fatal(o.hasCategory([ze.TextContainer]),"framework/kernel/src/model/utils/range/normalize-range.ts:175"),zt.getTailInputPosition(o)||t);if(o.isTextNode()){if(!o.isEmpty())return e.newPosition(o,o.dataLength)}else kt.fatal(o.isCardNode(),"framework/kernel/src/model/utils/range/normalize-range.ts:182")}var i=n.getChildByOffset(r);if(i){if(i.isElement())return i.hasCategory(ze.Table)?(kt.fatal(i.firstChild.firstChild.hasCategory(ze.TableCell),"framework/kernel/src/model/utils/range/normalize-range.ts:191"),zt.getHeadInputPosition(i.firstChild.firstChild)||t):i.hasCategory(ze.InlineBox)?t:(kt.fatal(i.hasCategory([ze.TextContainer,ze.LikeRoot,ze.TableHole,ze.Hole]),"framework/kernel/src/model/utils/range/normalize-range.ts:205"),zt.getHeadInputPosition(i)||t);if(i.isTextNode()){if(!i.isEmpty()||!o||o.isCardNode())return e.newPosition(i,0)}else if(!o)return kt.fatal(i.isCardNode(),"framework/kernel/src/model/utils/range/normalize-range.ts:219"),t}return o?(kt.fatal(!o.hasCategory(ze.InlineBox),"framework/kernel/src/model/utils/range/normalize-range.ts:226"),kt.fatal((!i||i.isEmpty())&&(o.isCardNode()||o.isEmpty()),"framework/kernel/src/model/utils/range/normalize-range.ts:227"),o.isCardNode()?t:e.newPosition(o,0)):(kt.fatal(n.isEmpty(),"framework/kernel/src/model/utils/range/normalize-range.ts:239"),t)}(e,t):function(e,t){var n=t.node,r=t.offset;if(!n.isElement())return t;var o=n.getChildByOffset(r);if(o){if(o.isElement())return o.hasCategory([ze.Root,ze.LikeRoot,ze.TableHole,ze.Hole])?t:(kt.fatal(o.hasCategory(ze.TextContainer),"framework/kernel/src/model/utils/range/normalize-range.ts:267"),zt.getHeadInputPosition(o)||t);if(o.isTextNode()){if(!o.isEmpty())return e.newPosition(o,0)}else kt.fatal(o.isCardNode(),"framework/kernel/src/model/utils/range/normalize-range.ts:274")}var i=n.getChildByOffset(r-1);if(i){if(i.isElement())return i.hasCategory(ze.Table)?(kt.fatal(i.lastChild.lastChild.hasCategory(ze.TableCell),"framework/kernel/src/model/utils/range/normalize-range.ts:283"),zt.getTailInputPosition(i.lastChild.lastChild)||t):(kt.fatal(i.hasCategory(ze.TextContainer),"framework/kernel/src/model/utils/range/normalize-range.ts:293"),zt.getTailInputPosition(i)||t);if(i.isTextNode()){if(!i.isEmpty()||!o||o.isCardNode())return e.newPosition(i,i.dataLength)}else if(!o)return kt.fatal(i.isCardNode(),"framework/kernel/src/model/utils/range/normalize-range.ts:300"),t}return o?(kt.fatal((!i||i.isEmpty())&&(o.isCardNode()||o.isEmpty()),"framework/kernel/src/model/utils/range/normalize-range.ts:307"),o.isCardNode()?t:e.newPosition(o,0)):(kt.fatal(n.isEmpty(),"framework/kernel/src/model/utils/range/normalize-range.ts:319"),t)}(e,t))}(e,t,n),o=r.node,i=r.offset;return o.isTextNode(),e.newPosition(o,i)}function Ma(e,t,n){var r=t.node,o=t.offset,i=[ze.TextContainer,ze.Root,ze.LikeRoot,ze.Text,ze.Hole,ze.TableHole];if(r.hasCategory(i))return t;kt.fatal(r.isElement(),"framework/kernel/src/model/utils/range/normalize-range.ts:95");var a=r;if(n){for(;0===o&&!a.hasCategory(i);)o=a.offset,a=a.parentNode;return e.newPosition(a,o)}for(;o===a.childCount&&!a.hasCategory(i);)o=a.offset+1,a=a.parentNode;return e.newPosition(a,o)}function Fa(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.ranges.length>1;return e.newSelection(t.ranges.map((function(t){if(r){var o=zt.closest(t.start.node,[ze.TableCell,Er]);return kt.fatal(o,"framework/kernel/src/model/utils/selection/normalize-selection.ts:25"),Wt.selectNodeContents(o)}return Ia(e,t,n)})),t.anchor,t.focus)}function La(e){e._committed=!0}function Ua(e){return e._committed}function Va(e){return e._flush()}var Ha=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.MODE_USER;Ye(this,e),Object.defineProperty(this,"_editing",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_model",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_mode",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_document",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cachedSelection",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_syncedOperations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_unSyncOperations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_committed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._document=n.document,this._cachedSelection=this._document.selection}return Ke(e,[{key:"destroy",value:function(){delete this._editing,delete this._model,delete this._document,delete this._cachedSelection,delete this._syncedOperations,delete this._unSyncOperations}},{key:"editing",get:function(){return this._editing}},{key:"mode",get:function(){return this._mode}},{key:"document",get:function(){return this._document}},{key:"defaultElementName",get:function(){return this._model.schema.defaultElementName}},{key:"textAttrs",get:function(){return this._model.schema.textAttrs}},{key:"operations",get:function(){return this._syncedOperations.concat(this._unSyncOperations)}},{key:"cachedSelection",get:function(){return this._cachedSelection}},{key:"isUserMode",value:function(){return this._mode===e.MODE_USER}},{key:"isHistoryMode",value:function(){return this._mode===e.MODE_HISTORY}},{key:"isAutoMode",value:function(){return this._mode===e.MODE_AUTO}},{key:"isOTMode",value:function(){return this._mode===e.MODE_OT}},{key:"isSilentMode",value:function(){return this._mode===e.MODE_SILENT}},{key:"getNodeById",value:function(e){return this._document.getNodeById(e)}},{key:"getNodesByName",value:function(e){return this._document.getNodesByName(e)}},{key:"getNodeByPath",value:function(e){return this._document.getNodeByPath(e)}},{key:"applyOperation",value:function(e){e.apply(this)}},{key:"hasCategory",value:function(e,t,n){return this._model.hasCategory(e,t,n)}},{key:"getNodeSchema",value:function(e){return this._model.getNodeSchema(e)}},{key:"isStandardAttr",value:function(e,t){return this._model.isStandardAttr(e,t)}},{key:"getAttrSchema",value:function(e){return this._model.getAttrSchema(e)}},{key:"isEmpty",value:function(){return 0===this._unSyncOperations.length}},{key:"_flush",value:function(){if(0===this._unSyncOperations.length)return null;var e=this._unSyncOperations.slice();return this._syncedOperations=this._syncedOperations.concat(this._unSyncOperations),this._unSyncOperations=[],e}},{key:"setSelectionWithoutOptimize",value:function(e){var t;t=Array.isArray(e)?Ar.createBy(this._document,e):e,this._document.selection=Fa(this,t,!1)}},{key:"setSelection",value:function(e){var t;t=Array.isArray(e)?Ar.createBy(this._document,e):e,this._document.selection=Fa(this,t)}},{key:"execCommand",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:e;return Wt.createAt(e,t)}},{key:"newSelection",value:function(e,t,n){return Ar.createBy(this._document,e,t,n)}},{key:"newSelectionFromJson",value:function(e){return Ar.fromJson(this._document,e)}},{key:"setSelectionFromJson",value:function(e){var t=Ar.fromJson(this._document,e);this.setSelection(t)}},{key:"selectNodeContents",value:function(e){return Ar.createBy(this._document,[Wt.selectNodeContents(e)])}},{key:"selectNode",value:function(e){return Ar.createBy(this._document,[Wt.selectNode(e)])}},{key:"createElement",value:function(e,t,n){var r=this;return t&&Object.keys(t).forEach((function(n){kt.fatal(r.acceptAttr(e,n,t[n]),"framework/kernel/src/model/editing/job/job.ts:298")})),this._document.createElement(e,t,n)}},{key:"createHole",value:function(e,t,n){return this._document.createHole(e,t,n)}},{key:"createTextNode",value:function(e,t,n){var r=this;return t&&Object.keys(t).forEach((function(e){kt.fatal(r.acceptAttr(ze.Text,e,t[e]),"framework/kernel/src/model/editing/job/job.ts:312")})),this._document.createTextNode(e,t,n)}},{key:"createInheritTextNode",value:function(e,t){var n=this,r=rr.closestInlineAttrs(t),o={};return Object.keys(r).forEach((function(e){n.acceptAttr(ze.Text,e,r[e])&&(o[e]=r[e])})),this.createTextNode(e,o)}},{key:"createCardNode",value:function(e,t,n){var r=this;return t&&Object.keys(t).forEach((function(n){kt.fatal(r.acceptAttr(e,n,t[n]),"framework/kernel/src/model/editing/job/job.ts:333")})),this._document.createCardNode(e,t,n)}},{key:"isValidAttr",value:function(e,t){return this._model.schema.isValidAttr(e,t)}},{key:"removeAttribute",value:function(e,t){e.hasAttribute(t)&&Na(this,Da.removeAttribute(this,e,t))}},{key:"setAttribute",value:function(e,t,n){if(e.attrs[t]!==n){var r=Da.setAttribute(this,e,t,n);r&&Na(this,r)}}},{key:"insertNodeByPosition",value:function(e,t){Da.assertAcceptNode(this._model,e.node.nodeName,t.nodeName);var n=Da.insertByOffset(this,e.node,e.offset,t);return n&&Na(this,n),kt.fatal(t.parentNode===e.node,"framework/kernel/src/model/editing/job/job.ts:381"),new Nt(e.node,t.offset+1)}},{key:"cloneNode",value:function(e){var t=this;if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return e.cloneNode(!1);var n=e.cloneNode(!1);return e.isElement()&&e.children.forEach((function(e){e=t.cloneNode(e,!0),t.appendChild(n,e)})),n}},{key:"appendChild",value:function(e,t){Da.assertAcceptNode(this._model,e.nodeName,t.nodeName),Na(this,Da.appendChild(this,e,t))}},{key:"prependChild",value:function(e,t){Da.assertAcceptNode(this._model,e.nodeName,t.nodeName),Na(this,Da.prependChild(this,e,t))}},{key:"replaceChild",value:function(e,t,n){kt.fatal(t!==n,"framework/kernel/src/model/editing/job/job.ts:426");var r,o=n.offset;return Na(this,Da.removeChild(this,e,n)),r="function"==typeof t?t(this,n,e):t,Da.assertAcceptNode(this._model,e.nodeName,r.nodeName),Na(this,Da.insertByOffset(this,e,o,r)),r}},{key:"removeChild",value:function(e,t){Na(this,Da.removeChild(this,e,t))}},{key:"insertBefore",value:function(e,t,n){Da.assertAcceptNode(this._model,e.nodeName,t.nodeName),Na(this,Da.insertBefore(this,e,t,n))}},{key:"insertAfter",value:function(e,t,n){Da.assertAcceptNode(this._model,e.nodeName,t.nodeName),Na(this,Da.insertAfter(this,e,t,n))}},{key:"insertByOffset",value:function(e,t,n){Da.assertAcceptNode(this._model,e.nodeName,n.nodeName);var r=Da.insertByOffset(this,e,t,n);r&&Na(this,r)}},{key:"setTextNodeData",value:function(e,t){Na(this,Da.setTextNodeData(this,e,t))}}]),e}();function za(e,t,n){return t=Qe(t),Xe(e,Wa()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wa=function(){return!!e})()}Object.defineProperty(Ha,"MODE_USER",{enumerable:!0,configurable:!0,writable:!0,value:He.User}),Object.defineProperty(Ha,"MODE_INIT",{enumerable:!0,configurable:!0,writable:!0,value:He.Init}),Object.defineProperty(Ha,"MODE_AUTO",{enumerable:!0,configurable:!0,writable:!0,value:He.Auto}),Object.defineProperty(Ha,"MODE_HISTORY",{enumerable:!0,configurable:!0,writable:!0,value:He.History}),Object.defineProperty(Ha,"MODE_OT",{enumerable:!0,configurable:!0,writable:!0,value:He.OT}),Object.defineProperty(Ha,"MODE_SILENT",{enumerable:!0,configurable:!0,writable:!0,value:He.Silent});var qa=function(e){function t(){var e;return Ye(this,t),e=za(this,t,arguments),Object.defineProperty(Je(e),"_$extendMethods",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(Je(e),"_$extends",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(Je(e),"_$services",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(Je(e),"_pluginEventEmitter",{enumerable:!0,configurable:!0,writable:!0,value:new ut}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._pluginEventEmitter.removeAllListeners(),this.removeAllListeners(),delete this._pluginEventEmitter,delete this._$extendMethods,delete this._$extends,delete this._$services}},{key:"extendMethods",value:function(e){var t=this,n=this._$extendMethods;Object.keys(e).forEach((function(r){kt(!yr(n,r),"framework/public/src/hub.ts:34"),kt(!t[r],"framework/public/src/hub.ts:35"),t[r]=function(){return e[r].apply(e,arguments)},n[r]=e[r]}))}},{key:"hasExtendMethod",value:function(e){return yr(this._$extendMethods,e)}},{key:"getExtendMethod",value:function(e){return this._$extendMethods[e]}},{key:"getExtendInterface",value:function(){return this}},{key:"extend",value:function(e,t){var n=this._$extends;kt(void 0===this[e],"framework/public/src/hub.ts:71"),kt(!yr(n,e),"framework/public/src/hub.ts:72"),n[e]=t,this[e]=t}},{key:"hasExtend",value:function(e){return yr(this._$extends,e)}},{key:"getExtend",value:function(e){return this._$extends[e]}},{key:"emitPluginEvent",value:function(e,t){var n;null===(n=this._pluginEventEmitter)||void 0===n||n.emit(e,t)}},{key:"onPluginEvent",value:function(e,t){var n=this;return this._pluginEventEmitter.on(e,t),function(){n._pluginEventEmitter.off(e,t)}}},{key:"emitSafe",value:function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:Ha.MODE_USER,t=this._jobs[this._jobs.length-1];return t&&(t.isEmpty()?(this._jobs.pop(),t=this._jobs[this._jobs.length-1],kt.fatal(!t||!t.isEmpty(),"framework/kernel/src/model/editing/index.ts:91")):Ua(t)||this._commitJob(t)),t=new Ha(this,this.model,e),this.emit(Qi,{job:t}),this._jobs.push(t),t}},{key:"commitJob",value:function(e){this._commitJob(e),this.requestFlush()}},{key:"cancelJob",value:function(e){}},{key:"_flush",value:function(){if(this._isFlushing)this._flushAgain=!0;else{this._isFlushing=!0,this._flushAgain=!1;var e=2;try{for(this._doFlush();this._flushAgain;){if(this._flushAgain=!1,--e<0)throw new Error("failed to execute flush");this._doFlush()}}finally{this._isFlushing=!1}}}},{key:"_rollback",value:function(){var e=this._jobs,t=[];if(0!==e.length){var n=e[0].cachedSelection;e.forEach((function(e){var n=Va(e);(null==n?void 0:n.length)&&n.forEach((function(e){t.push(e)}))}));var r=this.newJob(He.Auto);t.reverse().forEach((function(e){e.reverse(r)})),this._cleanJobs(!0),$a.setSelection(this.model.document,n.cloneSelection()),this.emit(ra)}else this.emit(ra)}},{key:"_doFlush",value:function(){var e=this;this._hasContentChange()&&this.emit(ea);var t=this._jobs,n=[],r=[],o=null,i=null,a=null;t.forEach((function(e,l){if(!e.isEmpty()){var u;o?e.mode!==He.Auto&&kt.fatal(o===e.mode,"framework/kernel/src/model/editing/index.ts:203"):o=e.mode,Ua(e)?(u=n,i||(i=e.cachedSelection)):(kt.fatal(t.length===l+1,"framework/kernel/src/model/editing/index.ts:210"),u=r,a||(a=e.cachedSelection));var c=Va(e);c&&c.length&&c.forEach((function(e){u.push(e)}))}})),this._cleanJobs();var l=n.concat(r);if(l.length){kt.fatal(t.length>0,"framework/kernel/src/model/editing/index.ts:238"),kt.fatal(0===n.length||0===r.length,"framework/kernel/src/model/editing/index.ts:240");var u=this.model.document.selection,c={selection:u.cloneSelection(),mode:o,isCommitted:n.length>0};n.length?(kt.fatal(i,"framework/kernel/src/model/editing/index.ts:256"),c.operations=n,c.previousSelection=i):(kt.fatal(0===n.length&&a,"framework/kernel/src/model/editing/index.ts:261"),c.operations=r,c.previousSelection=a),this.emit(Zi,c),c.mode!==He.Init&&c.mode!==He.OT&&Promise.resolve().then((function(){e.kernel&&e.emit(Xi,{operations:l,selection:u.cloneSelection()})}));try{this.model.document.submitOperations(l,u.cloneSelection(),c.mode)}finally{this.emit(ta)}}else{var s;n.length?(kt.fatal(i,"framework/kernel/src/model/editing/index.ts:295"),s=i):s=a;var d=this.model.document.selection;0!==l.length||Ar.equal(d,s)||(this.emit(na,{selection:d.cloneSelection()}),this.model.document.selectionChange({selection:d.cloneSelection()}))}}},{key:"_hasContentChange",value:function(){return this._jobs.some((function(e){return!e.isEmpty()}))}},{key:"_cleanJobs",value:function(){var e=[];if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this._jobs.forEach((function(e){e.destroy()})),void(this._jobs=[]);this._jobs.forEach((function(t){Ua(t)||t.isEmpty()?t.destroy():e.push(t)})),kt.fatal(e.length<=1,"framework/kernel/src/model/editing/index.ts:354"),this._jobs=e}},{key:"_commitJob",value:function(e){e._committed=!0}}]),t}(qa);function Ja(e,t,n){return(t=qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Qa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function Za(){for(var e="",t=Xa.charAt(Math.floor(Math.random()*Xa.length)),n=1;n<5;n++)e+=Qa.charAt(Math.floor(Math.random()*Qa.length));return t+e}var el={type:_t.Card,id:Za,category:[ze.Card,ze.BlockCard,ze.Brick],parents:[ze.Hole]},tl={type:_t.Card,id:Za,category:[ze.Card,ze.InlineCard],parents:[ze.TextContainer]},nl={value:{targets:[ze.Card]},cardType:{targets:[ze.Card]}},rl=function(){function e(){Ye(this,e),Object.defineProperty(this,"_rawSchemas",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_elementSchemas",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_attrSchemas",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_textAttrNames",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_contextAttrs",{enumerable:!0,configurable:!0,writable:!0,value:[]})}return Ke(e,[{key:"destroy",value:function(){this._textAttrNames.clear(),delete this._rawSchemas,delete this._elementSchemas,delete this._attrSchemas,delete this._textAttrNames,delete this._contextAttrs}},{key:"defaultElementName",get:function(){return this._rawSchemas[ze.Root].defaultElementName}},{key:"textAttrs",get:function(){return Array.from(this._textAttrNames)}},{key:"registerElement",value:function(e){var t=this,n=this._elementSchemas;this._rawSchemas=Object.assign(Object.assign({},e),this._rawSchemas),Object.keys(e).forEach((function(r){var o=e[r],i={type:_t.Element,parents:{},category:{},standardAttrs:[]};if(o.parents&&o.parents.forEach((function(e){i.parents[e]=!0})),o.category&&o.category.forEach((function(e){i.category[e]=!0})),o.excludes&&(i.excludes=o.excludes.slice()),o.children){var a={};o.children.forEach((function(e){a[e]=!0})),i.children=a}o.contextAttr&&Object.keys(o.contextAttr).forEach((function(e){t._contextAttrs.push(e)})),o.standardAttrs&&(i.standardAttrs=pn(o.standardAttrs)),i.category[r]=!0,n[r]=i}))}},{key:"registerAttr",value:function(e,t){var n=this,r={};"string"==typeof e?(kt.fatal(t,"framework/kernel/src/model/schema.ts:119"),r[e]=t):r=Object.assign({},e);var o=this._attrSchemas;Object.keys(r).forEach((function(e){var t=r[e];o[e]=t,t.targets.includes(ze.Text)&&n._textAttrNames.add(e)}))}},{key:"registerInlineCard",value:function(e){var t=lr(tl);this.registerElement(Ja({},e,t)),this.registerAttr(lr(nl))}},{key:"registerBlockCard",value:function(e){var t=lr(el);this.registerElement(Ja({},e,t)),this.registerAttr(lr(nl))}},{key:"getNodeSchema",value:function(e){return this._rawSchemas[e]||null}},{key:"isStandardAttr",value:function(e,t){var n=this._rawSchemas[e];return!!(null==n?void 0:n.standardAttrs)&&n.standardAttrs.includes(t)}},{key:"getAttrSchema",value:function(e){return this._attrSchemas[e]||null}},{key:"allowCloneAttr",value:function(e){var t=this._attrSchemas[e];return!!t&&!1!==t.allowClone}},{key:"allowExtractAttr",value:function(e){var t=this._attrSchemas[e];return!!t&&!1!==t.allowExtract}},{key:"acceptNode",value:function(e,t){if("*"===t&&"*"!==e)return!0;if("#fragment"===e)return!0;var n=this._elementSchemas[t],r=this._elementSchemas[e];return!(!n||!r)&&((!n.excludes||!n.excludes.some((function(e){return r.category[e]})))&&(!(r.children&&!Object.keys(n.category).some((function(e){return r.children[e]})))&&(Object.keys(n.parents).some((function(t){return t.startsWith("~")?!!r.category[t]:e===t}))||!1)))}},{key:"isValidAttr",value:function(e,t){if("id"===e&&"string"==typeof t)return!0;var n=this._attrSchemas[e];if(!n||void 0===t)return!1;if(n.values)if("function"==typeof n.values){if(!n.values(t))return!1}else if(-1===n.values.indexOf(t))return!1;return!0}},{key:"acceptAttr",value:function(e,t,n){return"id"===t&&"string"==typeof n||!!this.isValidAttr(t,n)&&this.acceptAttrName(e,t)}},{key:"acceptAttrName",value:function(e,t){if("id"===t)return!0;if(!this._elementSchemas[e])return!1;var n=this._attrSchemas[t];return kt.fatal(n&&n.targets,"framework/kernel/src/model/schema.ts:300"),(!n.excludes||!this.hasCategory(e,n.excludes,!1))&&this.hasCategory(e,n.targets,!1)}},{key:"hasCategory",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"string"==typeof t&&(t=[t]);var r=this._elementSchemas[e];if(!r)return!1;var o=r.category;if(n){for(var i=0,a=t.length;i1?i-1:0),l=1;l1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:null;this._document&&(this.emit("document.destroy",this._document),this._document.destroy());var n=new ua(this,null==e?void 0:e.attrs,null==t?void 0:t.entryPoint);this._document=n,this.emit("document.create",this._document,t);var r,o=this._editing,i=o.newJob(Ha.MODE_INIT);return e&&ll(i,e,this.kernel),n.entryPoint&&(r=Di.moveToNodeById(i,n.entryPoint)),r||(r=Di.toStart(i.getSelection())),i.setSelection(r),o.commitJob(i),n.ready(),this.emit("document.ready",n),this._document}},{key:"registerElement",value:function(e,t){var n={};"string"==typeof e?n[e]=t:n=e;var r={};Object.keys(n).forEach((function(e){r[e]=Object.assign(Object.assign({},n[e]),{type:_t.Element})})),this._schema.registerElement(r)}},{key:"registerAttr",value:function(e,t){this._schema.registerAttr(e,t)}},{key:"registerInlineCard",value:function(e){this._schema.registerInlineCard(e)}},{key:"registerBlockCard",value:function(e){this._schema.registerBlockCard(e)}},{key:"registerCommand",value:function(e,t){this._commandManager.registerCommand(e,t)}},{key:"acceptNode",value:function(e,t){return this._schema.acceptNode(e,t)}},{key:"acceptAttr",value:function(e,t,n){return this._schema.acceptAttr(e,t,n)}},{key:"hasCategory",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._schema.hasCategory(e,t,n)}},{key:"getNodeSchema",value:function(e){return this._schema.getNodeSchema(e)}},{key:"isStandardAttr",value:function(e,t){return this._schema.isStandardAttr(e,t)}},{key:"getAttrSchema",value:function(e){return this._schema.getAttrSchema(e)}},{key:"connectDocument",value:function(){throw new Error("can't support connect document")}},{key:"execCommand",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"json",n=arguments.length>1?arguments[1]:void 0;if(!(null===(e=r._model)||void 0===e?void 0:e.document))return null;if("lake"===t&&(t="text/lake"),!r._dataSourceManager.matchType(t))throw new Error("illegal data type");var o=r._model.editing.newJob(Ha.MODE_SILENT);return r._dataSourceManager.write(t,o,n)}}),Object.defineProperty(Je(r),"execCommand",{enumerable:!0,configurable:!0,writable:!0,value:function(e){for(var t,n,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a1?o-1:0),a=1;a1?o-1:0),a=1;a1?o-1:0),a=1;a1?n-1:0),o=1;o2&&void 0!==arguments[2]&&arguments[2];return this._model.hasCategory(e,t,n)}},{key:"setDocExtraContent",value:function(e){this._richContent=Object.assign(Object.assign({},this._richContent),e)}},{key:"getDocExtraContent",value:function(){return this._richContent}},{key:"registerCommand",value:function(e,t){this._model.registerCommand(e,t)}},{key:"queryCommandSupported",value:function(e){for(var t,n,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,a=t.ranges,l=new Set,u=!t.collapsed,c=function(){var t=a[s],r=t.start.node,c=t.end.node;return Ol(u,e,t.start,n,o,i).forEach((function(e){l.add(e)})),l.size>1?{v:Array.from(l)}:t.collapsed?0:(r!==c&&Ol(u,e,t.end,n,o,i).forEach((function(e){l.add(e)})),l.size>1?{v:Array.from(l)}:(zo.walkRange(t,(function(t,a){if(t===r||t===c)return a.skip();if(i){var s=zt.closest(t,ze.Block);if(s&&s.hasCategory(i))return a.skip()}xl(u,l,e,t,n,o),l.size>1&&a.stop()})),l.size>1?{v:Array.from(l)}:void 0))},s=0,d=a.length;s=0;c--)xl(e,l,t,u[c],r,o);return Array.from(l)}function xl(e,t,n,r,o,i){if(n.acceptAttrName(r.nodeName,o)&&!(e&&r.isTextNode()&&r.isEmpty())){if(!i&&n.isContextAttr(o)){var a=zt.closest(r,ze.AttrContext);if(a&&n.supportContextAttr(a.nodeName,o)){var l=n.processContextAttr(a.nodeName,o,r.getAttribute(o));return void t.add(l)}}r.hasAttribute(o)?t.add(r.attrs[o]):r.isTextNode()&&t.add(null)}}var El=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"getAttrValue",value:function(e,t,n){return Nl(e,t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4?arguments[4]:void 0)}}]),e}();function Dl(e,t,n){return t=Qe(t),Xe(e,Rl()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Rl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rl=function(){return!!e})()}var Pl,Sl=function(e){function t(){return Ye(this,t),Dl(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();if(Di.isInCard(t))return t.firstRange.start.node.hasCategory(ze.InlineCard)?gt.NOT_EXECUTED:ht;var n=t.firstRange,r=n.start,o=n.end;if(r.node.closest(ze.OnlyText)||o.node.closest(ze.OnlyText))return ht;if(t.isCollapsed&&t.firstRange.start.node.hasCategory([ze.TableHole,ze.Hole]))return ht;var i=El.getAttrValue(e,this._formatSelection(t),this.attrName,!1);return i.length>1?gt.UNKNOWN:1===i.length&&i[0]?gt.EXECUTED:gt.NOT_EXECUTED}},{key:"getValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getSelection();if(Di.isInCard(t)&&!t.firstRange.start.node.hasCategory(ze.InlineCard))return null;var n=El.getAttrValue(e,this._formatSelection(t),this.attrName,!1);return Array.from(n)}},{key:"execute",value:function(e,t,n){var r=e.newJob();if(this.getState(r)===gt.UNAVAILABLE)return e.cancelJob(r),!1;var o=null;if(n){if(!(o=this._createSelectionById(r,n)))return!1}else if((o=r.getSelection()).collapsed&&o.firstRange.start.node.isRootNode()&&o.firstRange.start.isAtEnd){var i=r.createElement(r.defaultElementName);r.appendChild(o.firstRange.start.node,i),o=r.newSelection([r.newRange(r.newPosition(i,0))])}return(o=t?Di.setAttribute(r,this._formatSelection(o),this.attrName,t):Di.removeAttribute(r,this._formatSelection(o),this.attrName))&&r.setSelection(o),e.commitJob(r),!0}},{key:"_createSelectionById",value:function(e,t){var n=e.getNodeById(t);return(null==n?void 0:n.isConnected)?e.newSelection(e.newRange(e.newPosition(n,0))):null}},{key:"_formatSelection",value:function(e){return e.isCollapsed?e:Di.shrinkToElement(e)}}]),t}(wt),Tl="both",Al="top",jl="bottom";!function(e){e.BOTH="both",e.TOP="top",e.BOTTOM="bottom"}(Pl||(Pl={}));var Il="normal",Bl="contain";function Ml(e,t,n){return t=Qe(t),Xe(e,Fl()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Fl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fl=function(){return!!e})()}var Ll=function(e){function t(e,n){var r;return Ye(this,t),r=Ml(this,t),Object.defineProperty(Je(r),"_cardValue",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(Je(r),"_pluginOption",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._resetCardValue(e),r._pluginOption=n||null,r}return et(t,e),Ke(t,[{key:"init",value:function(){}},{key:"destroy",value:function(){this.removeAllListeners()}},{key:"cardAlias",get:function(){return null}},{key:"pluginOption",get:function(){return this._pluginOption}},{key:"resetCardValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];kt.fatal("boolean"==typeof t,"framework/kernel/src/public/card-data.ts:80"),this._resetCardValue(e,t),this.afterChange(t)}},{key:"formatCardValue",value:function(e){var t=this.constructor.DefaultCardValue;return Object.assign(Object.assign({},lr(t)),e)}},{key:"getCardValue",value:function(){return Object.assign({},this._cardValue)}},{key:"afterChange",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.emit("change",e)}},{key:"setCardSpacing",value:function(e){e!==this._cardValue.__spacing&&(e?this._cardValue.__spacing=e:delete this._cardValue.__spacing,this.emit("spacingChange"))}},{key:"addCardTopSpacing",value:function(){var e=this._cardValue.__spacing;e?e===Pl.BOTTOM&&(this._cardValue.__spacing=Pl.BOTH,this.emit("spacingChange")):(this._cardValue.__spacing=Pl.TOP,this.emit("spacingChange"))}},{key:"removeCardTopSpacing",value:function(){var e=this._cardValue.__spacing;e===Pl.BOTH?(this._cardValue.__spacing=Pl.BOTTOM,this.emit("spacingChange")):e===Pl.TOP&&(delete this._cardValue.__spacing,this.emit("spacingChange"))}},{key:"addCardBottomSpacing",value:function(){var e=this._cardValue.__spacing;e?e===Pl.TOP&&(this._cardValue.__spacing=Pl.BOTH,this.emit("spacingChange")):(this._cardValue.__spacing=Pl.BOTTOM,this.emit("spacingChange"))}},{key:"removeCardBottomSpacing",value:function(){var e=this._cardValue.__spacing;e===Pl.BOTH?(this._cardValue.__spacing=Pl.TOP,this.emit("spacingChange")):e===Pl.BOTTOM&&(delete this._cardValue.__spacing,this.emit("spacingChange"))}},{key:"toggleCardSpacing",value:function(){this._cardValue.__spacing?delete this._cardValue.__spacing:this._cardValue.__spacing=Pl.BOTH,this.emit("spacingChange")}},{key:"getWidthMode",value:function(){var e;return(null===(e=this._cardValue)||void 0===e?void 0:e.__widthMode)===Bl?Bl:Il}},{key:"toggleWidthMode",value:function(){var e,t=(null===(e=this._cardValue)||void 0===e?void 0:e.__widthMode)===Bl?Il:Bl;this._cardValue.__widthMode=t,this.emit("widthModeChange",t)}},{key:"removeCardSpacing",value:function(){delete this._cardValue.__spacing,this.emit("spacingChange")}},{key:"getCardSpacing",value:function(){return this._cardValue.__spacing}},{key:"hasCardSpacing",value:function(){return this._cardValue.__spacing===Pl.BOTH}},{key:"hasCardTopSpacing",value:function(){var e=this._cardValue.__spacing;return e===Pl.BOTH||e===Pl.TOP}},{key:"hasCardBottomSpacing",value:function(){var e=this._cardValue.__spacing;return e===Pl.BOTH||e===Pl.BOTTOM}},{key:"__getCardValueWithNewHeight",value:function(e){return Object.assign(Object.assign({},this._cardValue),{__height:e})}},{key:"recoverCardHeight",value:function(){delete this._cardValue.__height,this.emit("cardHeightReset")}},{key:"getCardHeight",value:function(){return this._cardValue.__height}},{key:"sync",value:function(e,t){return!!e}},{key:"_resetCardValue",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=!!this._cardValue,i=Ul(r.__height),a=Ul(null===(e=this._cardValue)||void 0===e?void 0:e.__height),l=r.__spacing,u=null===(t=this._cardValue)||void 0===t?void 0:t.__spacing,c=r.__widthMode,s=null===(n=this._cardValue)||void 0===n?void 0:n.__widthMode;this._cardValue=this.formatCardValue(r),kt.fatal(this._cardValue&&"object"===We(this._cardValue),"framework/kernel/src/public/card-data.ts:275"),o&&i!==a&&this.emit("heightChange",{newHeight:i,oldHeight:a}),o&&u!==l&&this.emit("spacingChange"),o&&c!==s&&this.emit("widthModeChange",c)}}],[{key:"setCardSpacingToValue",value:function(e,t){return kt.fatal(t,"framework/kernel/src/public/card-data.ts:34"),Object.assign(Object.assign({},t),{__spacing:e})}}]),t}(ut);function Ul(e){if(null!==e)return e}function Vl(e,t,n){return t=Qe(t),Xe(e,Hl()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Hl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hl=function(){return!!e})()}var zl=function(e){function t(){return Ye(this,t),Vl(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return t.rangeCount>1||Di.isInCard(t)||Di.isInHole(t)?ht:pt}}]),t}(wt),Wl=function(e){function t(){return Ye(this,t),Vl(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return t.rangeCount>1||Di.isInCard(t)||Di.isInHole(t)?ht:pt}}]),t}(gt);function ql(e,t,n){return t=Qe(t),Xe(e,$l()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($l=function(){return!!e})()}var Kl=function(e){function t(){var e;return Ye(this,t),e=ql(this,t,arguments),Object.defineProperty(Je(e),"_nodeName",{enumerable:!0,configurable:!0,writable:!0,value:""}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();if(t.isTableSelection)return ht;var n=t.firstRange;if(n.collapsed)return ht;var r=t.firstRange,o=r.start,i=r.end;if(o.node.closest(ze.OnlyText)||i.node.closest(ze.OnlyText))return ht;var a=n.start.node.closest(ze.Block),l=n.end.node.closest(ze.Block);if(!a||a!==l)return ht;var u=this._nodeName,c=n.start.node.closest(ze.Inline);if(c&&!e.acceptNode(c.nodeName,u))return ht;var s=n.end.node.closest(ze.Inline);if(s&&!e.acceptNode(s.nodeName,u))return ht;var d=(n=zo.enlargeRangeToCommonAncestor(e,n)).commonAncestorContainer;for(d.isTextNode()&&(d=d.parentNode);d!==a;){if(!e.acceptNode(d.nodeName,u))return ht;d=d.parentNode}var f=!0;return zo.walkRange(n,(function(t){f&&(e.acceptNode(u,t.nodeName)||(f=!1))})),f?pt:ht}}]),t}(wt);function Yl(e,t,n){return t=Qe(t),Xe(e,Gl()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Gl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gl=function(){return!!e})()}var Jl=function(e){function t(){var e;return Ye(this,t),e=Yl(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:""}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();if(Di.isInCard(t)||Di.isInHole(t))return gt.UNAVAILABLE;if(1===t.rangeCount&&t.isCollapsed&&rr.closestInlineAttrs(t.firstRange.start)[this.attrName])return gt.EXECUTED;var n=El.getAttrValue(e,this._formatSelection(e,t),this.attrName,!1);return n.length>1?gt.UNKNOWN:1===n.length&&n[0]?gt.EXECUTED:gt.NOT_EXECUTED}},{key:"getValue",value:function(e,t){var n=e.getSelection();return!(1!==n.rangeCount||!n.isCollapsed||!rr.closestInlineAttrs(n.firstRange.start)[this.attrName])||El.getAttrValue(e,this._formatSelection(e,e.getSelection()),this.attrName,!1,t)}},{key:"execute",value:function(e,t){var n=e.newJob(),r=n.getSelection();if(this.getState(n)===gt.UNAVAILABLE)return e.cancelJob(n),!1;if(r.collapsed&&r.firstRange.start.node.isRootNode()&&r.firstRange.start.isAtEnd){var o=n.createElement(n.defaultElementName);n.appendChild(r.firstRange.start.node,o),r=n.newSelection([n.newRange(n.newPosition(o,0))])}else r=this._formatSelection(n,r);return r=El.getAttrValue(n,r,this.attrName,!0,t)[0]?Di.removeAttribute(n,r,this.attrName,t):Di.setAttribute(n,r,this.attrName,!0,t),n.setSelection(r),e.commitJob(n),!0}},{key:"_formatSelection",value:function(e,t){if(t.rangeCount>1)return t;var n=t.ranges.map((function(t){return zo.shrinkRange(e,t,!0)}));return t.cloneByRange(n)}}]),t}(wt);function Xl(e,t,n){return t=Qe(t),Xe(e,Ql()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ql(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ql=function(){return!!e})()}var Zl=function(e){function t(){var e;return Ye(this,t),e=Xl(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:"none"}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();if(Di.isInCard(t)||Di.isInHole(t))return ht;var n=El.getAttrValue(e,this._formatSelection(t),this.attrName,!1);return n.length>1?gt.UNKNOWN:1===n.length&&n[0]?gt.EXECUTED:gt.NOT_EXECUTED}},{key:"getValue",value:function(e){var t,n,r=e.getSelection();if(Di.isInCard(r))return(null===(n=null===(t=r.firstRange.commonAncestorContainer)||void 0===t?void 0:t.attrs)||void 0===n?void 0:n[this.attrName])||null;r=this._formatSelection(r);var o=El.getAttrValue(e,r,this.attrName,!1);if(1===o.length&&o[0])return o[0];if(o.length>1)return o[0];if(r.isCollapsed){var i=rr.closestInlineAttrs(r.firstRange.start);return(null==i?void 0:i[this.attrName])||null}return null}},{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getSelection();if(this.getState(r)===gt.UNAVAILABLE)return e.cancelJob(r),!1;if(o.collapsed&&o.firstRange.start.node.isRootNode()&&o.firstRange.start.isAtEnd){var i=r.createElement(r.defaultElementName);r.appendChild(o.firstRange.start.node,i),o=r.newSelection([r.newRange(r.newPosition(i,0))])}var a;return a=t?Di.setAttribute(r,this._formatSelection(o),this.attrName,t,n):Di.removeAttribute(r,this._formatSelection(o),this.attrName,n),r.setSelection(a),e.commitJob(r),!0}},{key:"_formatSelection",value:function(e){return e.isCollapsed?e:Di.shrinkToElement(e)}}]),t}(wt);const eu=wl;var tu=o(1845),nu=o.n(tu);function ru(e,t,n){return t=Qe(t),Xe(e,ou()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ou=function(){return!!e})()}function iu(e,t){return t=Math.pow(10,t),Math.round(e*t)/t}function au(e){return iu(Math.max(0,Math.min(1,e)),3)}var lu=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"r",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"g",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"b",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rgbHEX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.r=t,this.g=n,this.b=r}return Ke(e,[{key:"getRelativeLuminance",value:function(){return iu(.2126*e._relativeLuminanceForComponent(this.r)+.7152*e._relativeLuminanceForComponent(this.g)+.0722*e._relativeLuminanceForComponent(this.b),4)}},{key:"_toTwoHex",value:function(e){var t=e.toString(16);return 2===t.length?t:"0"+t}},{key:"toRGBHex",value:function(){return this._rgbHEX||(this._rgbHEX="#".concat(this._toTwoHex(this.r)).concat(this._toTwoHex(this.g)).concat(this._toTwoHex(this.b))),this._rgbHEX}},{key:"toHEX",value:function(){return this.toRGBHex()}},{key:"toCSSValue",value:function(){return this.toRGBHex()}}],[{key:"_relativeLuminanceForComponent",value:function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}}]),e}(),uu=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return Ye(this,t),o=ru(this,t,[e,n,r]),Object.defineProperty(Je(o),"a",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(o),"_cssValue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),o.a=i,o}return et(t,e),Ke(t,[{key:"toHEX",value:function(){return Cr(Qe(t.prototype),"toHEX",this).call(this)+this._toTwoHex(this.a)}},{key:"toCSSValue",value:function(){return this._cssValue||(this.a+this.b+this.r+this.g===0&&(this._cssValue="transparent"),1===this.a?this._cssValue=Cr(Qe(t.prototype),"toCSSValue",this).call(this):this._cssValue="rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")")),this._cssValue}}]),t}(lu),cu=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Ye(this,e),Object.defineProperty(this,"h",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"s",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"l",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"a",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.h=0|Math.max(Math.min(360,t),0),this.s=au(n),this.l=au(r),this.a=au(o)}return Ke(e,[{key:"toRGBA",value:function(){return e.toRGBA(this)}},{key:"invert",value:function(){return new e(this.h,this.s,1-this.l,this.a)}},{key:"toCSSValue",value:function(){return this.toRGBA().toCSSValue()}}],[{key:"equals",value:function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}},{key:"fromRGB",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=t.r/255,o=t.g/255,i=t.b/255,a=Math.max(r,o,i),l=Math.min(r,o,i),u=0,c=0,s=(l+a)/2,d=a-l;if(d>0){switch(c=Math.min(s<=.5?d/(2*s):d/(2-2*s),1),a){case r:u=(o-i)/d+(o1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}},{key:"toRGBA",value:function(t){var n,r,o,i=t.h/360,a=t.s,l=t.l,u=t.a;if(0===a)n=r=o=l;else{var c=l<.5?l*(1+a):l+a-l*a,s=2*l-c;n=e._hue2rgb(s,c,i+1/3),r=e._hue2rgb(s,c,i),o=e._hue2rgb(s,c,i-1/3)}return new uu(Math.round(255*n),Math.round(255*r),Math.round(255*o),u)}}]),e}(),su=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_rgba",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_hsla",{enumerable:!0,configurable:!0,writable:!0,value:null}),t instanceof lu?this._rgba=t:this._hsla=t}return Ke(e,[{key:"rgba",get:function(){return this._rgba||(kt(this._hsla,"framework/utils/src/color/color.ts:251"),this._rgba=this._hsla.toRGBA()),this._rgba}},{key:"hsla",get:function(){return this._hsla||(kt(this._rgba,"framework/utils/src/color/color.ts:259"),this._hsla=cu.fromRGBA(this._rgba)),this._hsla}},{key:"a",get:function(){var e,t;return(null===(e=this._hsla)||void 0===e?void 0:e.a)||(null===(t=this._rgba)||void 0===t?void 0:t.a)||1}},{key:"r",get:function(){return this.rgba.r}},{key:"g",get:function(){return this.rgba.g}},{key:"b",get:function(){return this.rgba.b}},{key:"h",get:function(){return this.hsla.h}},{key:"s",get:function(){return this.hsla.s}},{key:"l",get:function(){return this.hsla.l}},{key:"toCSSValue",value:function(){return this.rgba.toCSSValue()}},{key:"lighten",value:function(t){return new e(new cu(this.h,this.s,this.l+this.l*t,this.a))}},{key:"darken",value:function(t){return new e(new cu(this.h,this.s,this.l-this.l*t,this.a))}},{key:"transparent",value:function(t){var n=this.rgba,r=n.r,o=n.g,i=n.b,a=n.a;return new e(new uu(r,o,i,a*t))}},{key:"invert",value:function(){return new e(this.hsla.invert())}},{key:"isTransparent",value:function(){return 0===this.a}},{key:"isOpaque",value:function(){return 1===this.a}},{key:"blend",value:function(t){var n=t.rgba,r=this.rgba.a,o=n.a,i=r+o*(1-r);if(i<1e-6)return e.transparent;var a=this.rgba.r*r/i+n.r*o*(1-r)/i,l=this.rgba.g*r/i+n.g*o*(1-r)/i,u=this.rgba.b*r/i+n.b*o*(1-r)/i;return new e(new uu(a,l,u,i))}},{key:"getRelativeLuminance",value:function(){return this.rgba.getRelativeLuminance()}},{key:"isLighterThan",value:function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}},{key:"isDarkerThan",value:function(e){return this.getRelativeLuminance()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:du.LIGHT;if(e.ref&&!e.process)return"var(".concat(bu(e.ref),")");var r=e.ref?this.getRefColoScheme(e.ref):e,o=r[n]||r[du.LIGHT];if(o){var i=hu.parse(o);return kt(i,"color parse error ".concat(o),"framework/infra/src/theme/color-registry.ts:104"),(null===(t=e.process)||void 0===t?void 0:t.call(e,i))||o}return null}},{key:"toStyleValues",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:du.LIGHT,r=[".",e,"{"],o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return mu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.colorMap);try{for(o.s();!(t=o.n()).done;){var i=cn(t.value,2),a=i[0],l=i[1],u=this.getProcessColorValue(l,n);u&&r.push(bu(a),":",u,";")}}catch(e){o.e(e)}finally{o.f()}return r.push("}"),r.join("")}}]),e}();function bu(e){return"--lakex-".concat(e.replace(/\./g,"-"))}const yu=(new gu).registerColors(vu).getIColorRegistry();var wu=function(){function e(){Ye(this,e),Object.defineProperty(this,"colorScheme",{enumerable:!0,configurable:!0,writable:!0,value:du.LIGHT}),Object.defineProperty(this,"colorRegistry",{enumerable:!0,configurable:!0,writable:!0,value:yu}),Object.defineProperty(this,"selector",{enumerable:!0,configurable:!0,writable:!0,value:"lakex-default-theme"}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("style")})}return Ke(e,[{key:"apply",value:function(e){this.style.innerText=this.colorRegistry.toStyleValues(this.selector,this.colorScheme),this.style.parentNode!==e&&(this.style.remove(),e.appendChild(this.style)),e.classList.contains(this.selector)||e.classList.add(this.selector)}},{key:"remove",value:function(e){this.style.parentNode&&this.style.remove(),e.classList.contains(this.selector)&&e.classList.remove(this.selector)}},{key:"getColor",value:function(e){var t;return(null===(t=this.colorRegistry.getColor(e))||void 0===t?void 0:t[this.colorScheme])||null}},{key:"transform",value:function(e,t,n){return yu.transform(e,t,n)}}]),e}();function ku(e,t,n){return t=Qe(t),Xe(e,Cu()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Cu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cu=function(){return!!e})()}var _u=function(e){function t(e){var n;return Ye(this,t),n=ku(this,t),Object.defineProperty(Je(n),"domNode",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"currentThemeSchema",{enumerable:!0,configurable:!0,writable:!0,value:new wu}),Object.defineProperty(Je(n),"schemeMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(Je(n),"selectorUsedDoms",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),n.schemeMap.set("default",n.currentThemeSchema),n}return et(t,e),Ke(t,[{key:"updateStyles",value:function(){this.currentThemeSchema.apply(this.domNode)}},{key:"removeCurrentTheme",value:function(){this.currentThemeSchema.remove(this.domNode)}},{key:"registerTheme",value:function(e,t){kt(!this.schemeMap.get(e),"the theme schema named ".concat(e," has already register"),"framework/infra/src/theme/index.ts:43"),this.schemeMap.set(e,t)}},{key:"setActiveTheme",value:function(e){var t=this,n=this.schemeMap.get(e);n&&this.currentThemeSchema!==n&&(this.currentThemeSchema&&this.removeCurrentTheme(),this.selectorUsedDoms.forEach((function(e){e.classList.remove(t.currentThemeSchema.selector),e.classList.add(n.selector)})),this.currentThemeSchema=n,this.updateStyles(),this.emit("themeChange"))}},{key:"bindThemeSelector",value:function(e){var t=this;return this.selectorUsedDoms.has(e)?(console.error("已经对该元素绑定过主题选择器"),function(){}):(this.selectorUsedDoms.add(e),this.currentThemeSchema&&e.classList.add(this.currentThemeSchema.selector),function(){t.selectorUsedDoms.delete(e)})}},{key:"isDark",value:function(){return this.currentThemeSchema.colorScheme===du.DARK}},{key:"getColorByToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff";return this.currentThemeSchema.getColor(e)||t}},{key:"transform",value:function(e,t,n){return this.currentThemeSchema.transform(e,t,n)}},{key:"toPersistentValue",value:function(e){return e&&this.transform(this.currentThemeSchema.colorScheme,null,e)||e}},{key:"toVisualValue",value:function(e){return e&&this.transform(null,this.currentThemeSchema.colorScheme,e)||e}},{key:"getSchemeName",value:function(){return this.isDark()?"dark":"light"}},{key:"getThemeSelector",value:function(){return this.currentThemeSchema.selector}}]),t}(lt);Object.defineProperty(_u,"colorRegistry",{enumerable:!0,configurable:!0,writable:!0,value:yu});var Nu=function(){function e(){Ye(this,e)}return Ke(e,[{key:"getState",value:function(){}},{key:"getValue",value:function(){}},{key:"isEnabled",value:function(){return!0}},{key:"execute",value:function(){}},{key:"destroy",value:function(){}}]),e}();function Ou(e,t,n){return t=Qe(t),Xe(e,xu()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function xu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xu=function(){return!!e})()}var Eu=function(e){function t(){var e;return Ye(this,t),e=Ou(this,t,arguments),Object.defineProperty(Je(e),"_$commandUnderlay",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_$commands",{enumerable:!0,configurable:!0,writable:!0,value:{}}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){var e=this;this.removeAllListeners(),Object.keys(this._$commands).forEach((function(t){var n=e._$commands[t];null==n||n.destroy()}))}},{key:"registerCommand",value:function(e,t){var n=this,r={};"string"==typeof e?r[e]=t:r=e,Object.keys(r).forEach((function(e){var t=r[e];kt(t instanceof Nu,"framework/public/src/command-interceptor.ts:41"),["undo","redo"].includes(e)||kt(!n._$commands[e],"duplicate command name ".concat(e),"framework/public/src/command-interceptor.ts:44"),n._$commands[e]=t}))}},{key:"execCommand",value:function(e){for(var t,n,r,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a1?o-1:0),a=1;a1?r-1:0),i=1;i1?r-1:0),i=1;i1?o-1:0),a=1;a=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn.x&&e<=n.x+n.width&&t>n.y&&t<=n.height+n.y}function Qu(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nd.right||id.bottom)&&(h.isInPadding=!0),s.hovered||(s.hover(),t.hoverEvent.emit(s.originAreaConfig,h)),t.moveEvent.emit(s.originAreaConfig,h)):s.hovered&&(s.leave(),t.leaveEvent.emit(s.originAreaConfig,h))}}catch(e){c.e(e)}finally{c.f()}}}catch(e){a.e(e)}finally{a.f()}}(e,t,t.domNodeAreas)})))}}),this.hoverEvent=new Gu(this),this.leaveEvent=new Gu(this),this.moveEvent=new Gu(this),document.addEventListener("pointermove",this.onPointerMove)}return Ke(e,[{key:"addAreaToMap",value:function(e){switch(e.type){case"domNode":var t=this.domNodeAreas.get(e.areaConfig.domNode);return(null==t?void 0:t.length)?t.push(e):this.domNodeAreas.set(e.areaConfig.domNode,[e]),e;case"pixelRect":var n=e.areaConfig;return this.pixelRectAreas.set("".concat(n.x,"_").concat(n.y,"_").concat(n.width,"_").concat(n.height),e),e;default:return!1}}},{key:"removeAreaFromMap",value:function(e){switch(e.type){case"domNode":var t=this.domNodeAreas.get(e.areaConfig.domNode);return!!(null==t?void 0:t.length)&&(1===t.length?this.domNodeAreas.delete(e.areaConfig.domNode):this.domNodeAreas.set(e.areaConfig.domNode,t.filter((function(t){return t!==e}))),!0);case"pixelRect":var n=e.areaConfig;return this.pixelRectAreas.delete("".concat(n.x,"_").concat(n.y,"_").concat(n.width,"_").concat(n.height)),!0;default:return!1}}},{key:"getInternalArea",value:function(e){if("domNode"in e){var t=this.domNodeAreas.get(e.domNode);if(null==t?void 0:t.length)return t.find((function(t){return t.isSame(e)}))}if("width"in e)return this.pixelRectAreas.get("".concat(e.x,"_").concat(e.y,"_").concat(e.width,"_").concat(e.height))}},{key:"registerArea",value:function(e){var t=this.getInternalArea(e);if(t)return t;var n=new $u(e);return this.addAreaToMap(n)}},{key:"deleteArea",value:function(e){var t;return!!(t=e instanceof $u?e:this.getInternalArea(e))&&(this.hoverEvent.removeAllListeners(e),this.moveEvent.removeAllListeners(e),this.leaveEvent.removeAllListeners(e),this.removeAreaFromMap(t))}},{key:"destroy",value:function(){document.removeEventListener("pointermove",this.onPointerMove),this.moveRaf&&(cancelAnimationFrame(this.moveRaf),this.moveRaf=void 0),this.pixelRectAreas=new Map,this.domNodeAreas=new Map,this.hoverEvent.destroy(),this.moveEvent.destroy(),this.leaveEvent.destroy()}}]),e}(),tc=o(4883),nc=o.n(tc);function rc(e,t,n){return t=Qe(t),Xe(e,oc()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oc=function(){return!!e})()}var ic=function(e){function t(e){var n;return Ye(this,t),n=rc(this,t,[e]),Object.defineProperty(Je(n),"_ref",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_props",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._props=e.props,n._ref=nc().createRef(),n}return et(t,e),Ke(t,[{key:"update",value:function(e){this._props=e,this.forceUpdate()}},{key:"getRef",value:function(){return this._ref}},{key:"render",value:function(){var e=this.props.Component;return nc().createElement(e,Object.assign({},this._props,{ref:this._ref}))}}]),t}(nc().Component);function ac(e,t,n,r){return new Promise((function(o){requestAnimationFrame((function(){if(t instanceof Element){var i=function(e,t,n){var r=n.placement,o=n.offsetH,i=void 0===o?0:o,a=n.offsetV,l=void 0===a?0:a,u=0,c=0,s="";switch(r){case"left":c=e.left,u=e.top+e.height/2,s="translate(-100%, -50%)";break;case"leftTop":c=e.left,u=e.top,s="translate(-100%, 0)";break;case"leftBottom":c=e.left,u=e.bottom,s="translate(-100%, -100%)";break;case"right":c=e.right,u=e.top+e.height/2,s="translate(0, -50%)";break;case"rightTop":c=e.right,u=e.top,s="translate(0, 0)";break;case"rightBottom":c=e.right,u=e.bottom,s="translate(0, -100%)";break;case"top":c=e.left+e.width/2,u=e.top,s="translate(-50%, -100%)";break;case"topLeft":c=e.left,u=e.top,s="translate(0, -100%)";break;case"topRight":c=e.right,u=e.top,s="translate(-100%, -100%)";break;case"bottom":c=e.left+e.width/2,u=e.bottom,s="translate(-50%, 0)";break;case"bottomLeft":c=e.left,u=e.bottom,s="translate(0, 0)";break;case"bottomRight":c=e.left+e.width/2,u=e.bottom,s="translate(-100%, 0)"}return{left:c+i-t.left,top:u+l-t.top,transform:s}}(t.getBoundingClientRect(),r.getBoundingClientRect(),n);"function"==typeof n.onAlign&&n.onAlign([Number(e.style.left.slice(0,-2)),Number(e.style.top.slice(0,-2))],[i.left,i.top],e),e.style.cssText="position:absolute;top:".concat(i.top,"px;left:").concat(i.left,"px;transform:").concat(i.transform),o(e)}else e.style.cssText="position:absolute;top:".concat(0,"px;left:",0,"px")}))}))}var lc=function(){function e(t){var n=this;Ye(this,e),Object.defineProperty(this,"mountNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pos",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reactRef",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"layerDOM",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"componentRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"compInstance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onComponentMount",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.compInstance=e,n.reactRef=null==e?void 0:e._ref;var t=nu().findDOMNode(e);t instanceof HTMLElement&&(n.componentRootNode=t),n.pos&&"domNode"in n.pos&&n.componentRootNode&&ac(n.componentRootNode,n.pos.domNode,n.pos,n.layerDOM),!n.pos||n.pos}});var r=t.pos,o=t.layerDOM,i=t.Component,a=t.props;this.mountNode=document.createElement("div"),this.pos=r,this.layerDOM=o,nu().render(nc().createElement(ic,{Component:i,props:a,ref:this.onComponentMount}),this.mountNode),this.layerDOM.prepend(this.mountNode)}return Ke(e,[{key:"updatePos",value:function(e){var t;e&&(this.pos=e),this.componentRootNode&&this.pos&&("x"in this.pos||("domNode"in this.pos&&(t=this.pos.domNode),t&&ac(this.componentRootNode,t,this.pos,this.layerDOM)))}},{key:"update",value:function(e){var t,n=e.props,r=e.pos;null===(t=this.compInstance)||void 0===t||t.update(n),this.updatePos(r)}},{key:"getReactRef",value:function(){var e;return null===(e=this.compInstance)||void 0===e?void 0:e.getRef()}},{key:"destroyUI",value:function(){nu().unmountComponentAtNode(this.mountNode),this.mountNode.remove()}}]),e}();function uc(e,t){return{on:t[e].on,off:t[e].off}}var cc=function(){function e(t){var n;Ye(this,e),Object.defineProperty(this,"ps",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"layerDOM",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.ps=new ec,this.layerDOM=document.createElement("div"),this.layerDOM.className="ne-editor-ui-sys",null===(n=t.editorWrapNode)||void 0===n||n.prepend(this.layerDOM)}return Ke(e,[{key:"hoverEvent",get:function(){return uc("hoverEvent",this.ps)}},{key:"leaveEvent",get:function(){return uc("leaveEvent",this.ps)}},{key:"moveEvent",get:function(){return uc("moveEvent",this.ps)}},{key:"createUI",value:function(e){return new lc({Component:e,props:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},pos:arguments.length>2?arguments[2]:void 0,layerDOM:this.layerDOM})}},{key:"createArea",value:function(e){return new Bu(this.ps,e)}},{key:"destroy",value:function(){this.ps.destroy()}},{key:"destroyUI",value:function(e){e.destroyUI()}},{key:"destroyArea",value:function(e){this.ps.deleteArea(e)}}]),e}(),sc=o(4772),dc=o.n(sc),fc={CHANGE:"change"},hc=new ut;const pc={AI助手:"AI助手","Mac 办公套件":"Mac office suite","Office 文件":"Windows office suite","PDF 文件":"PDF","YYYY 年 M 月":"MMM YYYY",markdown语法转换失败:"markdown syntax convert error","{count} 票":"{count} Ticket","、":"、",三栏:"Three Col",上一个:"Prev",上传中:"Uploading",上传失败:"Upload error",上传文件:"Upload",上标:"Superscript",下一个:"Next",下划线:"Underline",下标:"Subscript",下载:"Download",两栏:"Tow Col",两端对齐:"Justify",书签:"Bookmark",五栏:"Five Col",人:"people",人已投票:"people have voted",今天:"Today",从第:"Since",代码主题:"Theme",代码块:"Code block",代码语言:"Language",任务列表:"To-Do list",优酷:"Youku",使用分栏组织页面:"Use columns to organize the page",使用日历添加日程:"Add a calendar schedule",保存:"Save",保存文档:"Save draft",信息提示框:"Information",修改样式:"Modify style",全宽展示:"Adaptive width display",全屏:"Maximize",全选:"Select All",全部替换:"Repalce all",公式:"Formula",六栏:"Six Col",关闭:"Close",内容:"content",内容加载中:"Content loading","内容已变更,无法插入 Markdown 内容":"The content has been changed, the markdown content cannot be inserted",内部三方工具:"Internal tools",减少缩进:"Decrease indent",减少行高:"Decrease lineHeight",分割线:"Divider",分栏卡片:"Columns",列:"column(s)",列等宽:"Cols equal width",删除:"Delete",删除所选列:"Delete selected column(s)",删除所选行:"Delete selected row(s)",删除线:"Strike-through",删除表格:"Delete table",剪切:"Cut",单元格背景色:"cell background color",卡片:"Card",卡片缺失:"Card not found",危险提示框:"Dangerous",发起投票活动:"Start a poll",取消:"Cancel",取消自适应:"Cancel adaptive",取消链接:"Delete link",可折叠内容:"Collapsible content",可自定义链接标题:"Define the link title",右对齐:"Right align",合并单元格:"Merge cells",向上插入:"Insert above",向下插入:"Insert below",向右插入:"Insert right",向左插入:"Insert left",告警提示框:"Warning",哔哩哔哩:"BiliBili",四栏:"Four Col",图片:"Image",图片上传失败:"Failed to upload the image, please retry",图片加载失败:"Network error, can't display image",图片格式已对所有图片生效:"Attributes applied to all images",在此输入内容:"Enter content here",垂直对齐:"Vertical Align",垂直居中:"Align middle",基础:"Basic",增加缩进:"Increase indent",增加行高:"Increase lineHeight",墨刀:"Mockingbot",复制:"Copy",复制代码:"Copy",复制失败:"Copied failed",复制成功:"Copied successfully",复制段落链接:"Copy paragraph link",复制链接:"Copy link",复制错误信息:"Copy error message",大纲:"Toc",如:"like",字体颜色:"Text color",字号减小:"Decrease fontsize",字号加大:"Increase fontsize",字号调整:"Font-size Adjust",宜搭:"Yida",对本文档的图片一键应用样式和边距:"Applied style and spacing to all images",对齐方式:"Align",小工具:"Tools",居中对齐:"Centre align",展开:"Unfold",嵌入本地文件:"Embed local files",嵌入页面:"Embed",左对齐:"Left align","已开启格式刷,按 Esc 退出":"Format Brush is turned on, press Esc to exit",已截止:"Ended",已投票:"Voted",布局和样式:"Layout and Style",底部对齐:"Align bottom",开启自适应:"Enable adaptive",引用:"Quote",快捷键:"Shortcut",思维导图文件:"Mind map file",成功提示框:"Success",截止:"end",截止日期:"Deadline",打开文档:"Open in YuqueDesktop",打开菜单:"open menu","批量应用格式:":"Applied to all",投票:"Vote","投票中...":"voting ...",投票成功:"Vote success",折叠块:"Collapse",拆分单元格:"Split cells",拖拽:"reposition",换行:"Breakline",提及:"Mention",提及人:"mention user",提及人和内容:"Mention user or content",提及人或内容:"Mention user or content",提及某人:"Mention",插入分割线:"Visually divide blocks",插入卡片:"Insert Card",插入序号列到最左侧:"Insert numbering column at left",插入引用:"Quotation",插入引用格式:"Insert a quote block",插入特色卡片:"Insert image, table, attachment, codeblock, etc.",插入表格:"Insert Table",插入链接:"Link",搜索结果:"Result",撤销:"Undo","支持 Axure, Photoshop, Sketch":"Supported Axure, Photoshop, Sketch","支持 Latex 语法":"Support LaTeX syntax","支持 MindManager, XMind, MindNode":"Supported MindManager, XMind, MindNode","支持 Office、PDF、Sketch 等":"Office, PDF, Sketch ...","支持 Pages, Numbers, Keynote":"Supported Pages, Numbers, Keynote","支持 Word, Excel, PPT":"Supported Word, Excel, PPT","支持PlantUML、Mermaid等":"Generate diagrams by code","支持pdf、ppt等多种格式":"Support pdf、ppt files",支持多种语言和主题切换:"Capture a code snippet",收起:"Fold","文件上传失败,请重试":"Failed to upload the file, please retry",文本:"Text",文本绘图:"Text diagram",斜体:"Italic","无匹配内容,请重新输入":"No matching content, please re-enter",无匹配卡片:"No suitable card",无可用卡片:"No available cards",无序列表:"Bulleted list","无效音频,请重新上传":"Invalid audio, please re-upload",无标题:"No title",无标题折叠块:"Untitled collapse",日历:"Calendar",星期一:"Monday",星期三:"Wednesday",星期二:"Tuesday",星期五:"Friday",星期六:"Saturday",星期四:"Thursday",星期日:"Sunday","是否需要做样式转换?":"Do need to do a style conversion?",显示边框:"Show border",暂不支持显示该网站内容:"No support for displaying the content of this website",暂无匹配的搜索结果:"No matching search results yet",更多:"More",更多文本样式:"More text styles",替换:"Replace",替换为:"Replace",最近使用:"Recently Used",有序列表:"Numbered list",未能插入内容:"Failed to insert content",未能获取内容:"Failed to get content",本地文件:"Local File",本地视频:"Local Video",本地音频:"Local audio",查找:"Find",查找替换:"Search & Replace",查看帮助:"Help",查看帮助文档:"Help",查看示例:"Example",查看结果:"View Results",查询失败:"Query failure","查询音频信息中...":"Querying audio information...",标宽展示:"Standard width display",标题:"Title",标题1:"Heading 1",标题2:"Heading 2",标题3:"Heading 3",标题4:"Heading 4",标题5:"Heading 5",标题6:"Heading 6","标题{headingNo}":"Heading {headingNo}",标题列:"Title column",标题序号:"Heading NO",标题行:"Title row",标题行列:"Table head",根据宽度等分列宽:"Split columns equally",格式刷:"Paint format","检测到粘贴内容符合 Markdown 语法,是否需要做样式转换?":"Do need to do style conversion detect that the pasted content conforms to Markdown syntax?",模板:"Template",正在移动1列分栏:"Moving 1 column","正在移动{count}列":"Moving {count} columns","正在移动{count}行":"Moving {count} rows","正在获取投票数据...":"fetching ...",正文:"Normal",正文与标题:"Heading and text","此处不支持播放音频,可点击文件名播放":"This does not support playback of audio, you can click on the file name to play","此处为语雀投票卡片,点击链接查看:":"Here is the yuque vote card, click on the link to view:",浏览器访问:"Open in browser",淘宝视频:"TaoBao Video","添加 TeX 公式":"New equation",添加图片描述:"Insert caption",添加描述:"Add describe",添加日程标题:"Untitled",添加说明:"Add a description",添加选项:"Add",添加间距:"Add spacing",清除内容:"Clear",清除格式:"Clean formatting",渐变色:"Gradient",点击:"Click to ",状态:"Status",玫红色:"magenta",用彩色背景来高亮提示:"Colorful text blocks","由于版权保护,不支持在公开文档中直接播放该音频,可点击文件名播放":"Due to copyright protection, the audio is not supported for direct playback in public documents, but can be played by clicking on the file name",码上掘金:"JueJin Code",确定:"Ok","确定删除该选项?":"Are you sure you want to delete it?",确认:"Ok",程序员:"程序员",立即转换:"Convert Now",第三方服务:"Third party Service",粗体:"Bold",粘贴:"Paste","粘贴页面链接到此处,支持:":"Paste page url here, support: ",素材库:"Material",紫色:"purple",红色:"red",纯文本粘贴:"Paste Text Only",继续编号:"Continue Count",绿色:"green",编辑链接:"Edit link",缩进宽度:"Indent Unit",缩进模式:"Indent Style",缩进调整:"Indent Adjust",网易云音乐:"163 Music",翻译:"Translate",背景颜色:"Highlight color",自动换行:"Auto Wrap",自动缩进:"Auto Indent",自动缩进成功:"Indent success",自定义:"Custom",自适应宽度:"Adaptive width",蓝色:"blue",虾米:"Xiami",行:"row(s)",行内代码:"Inline code",行号:"Line numbers",行起自动编号:"row fill number",行高调整:"Leading Adjust",表格:"Table",视频导入:"Video import",视频已损坏:"Video is damaged","视频无法播放,请稍后重试":"Video is damaged, please retry",解释代码:"解释代码",设置标签:"Set label",设置状态:"SET STATUS",设置编号:"Set numbering",设计文件:"Design files",访问链接:"Visit link",评论:"Add Comment","该卡片引入的链接无法访问:":"The link introduced by this card is not accessible:",该卡片暂时无法显示:"Card cannot be displayed",请刷新页面后再试:"Please refresh the page and try again",请输入:"Please input",请输入代码块名称:"Please input name",请输入投票标题:"Enter a title",请输入折叠卡片标题:"Please input title",请输入搜索内容:"Please input search",请输入正确的链接:"Please enter the correct link",请输入链接:"Does not support embedding the link",转为卡片:"Convert to card",转码失败:"Transcoding failure",软换行:"Soft Breakline",返回文档:"Back to document",退出全屏:"Exit Maximize","选项 {no}":"Option {no}",配色方案:"Color Scheme",重做:"Redo",重新投票:"re-vote",重新编号:"Re-count",金数据:"JinShuJu",链接:"Link",链接地址:"Link address","链接解析失败,请重试":"Link parsing failed, please retry",长按:"Drag to ",阅读页可下载:"Download allowed",附件:"Attachment",隐藏边框:"Hide border","非法 TeX 公式":"Invalid equation",音频导入:"Import audio files",音频文件不能播放:"Audio files cannot be played",顶部对齐:"Align top",预览:"Preview",高亮块:"Highlighter",高亮提示框:"Tips",高德地图:"AMap",黄色:"yellow",默认:"Default"};var vc=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"getLanguage",value:function(){return e._lang}},{key:"setEnLang",value:function(t){e.i18n=dc()({en:t,useEn:function(){return"enUS"===e._lang}}),this.enMap=t}},{key:"addEnLang",value:function(t){this.enMap=Object.assign(Object.assign({},this.enMap),t),e.i18n=dc()({en:this.enMap,useEn:function(){return"enUS"===e._lang}})}},{key:"setLanguage",value:function(t){e._lang="enUS"===t||"en-US"===t||"en"===t||"en-us"===t?"enUS":"zhCN",hc.emit(fc.CHANGE,e._lang)}}]),e}();Object.defineProperty(vc,"_lang",{enumerable:!0,configurable:!0,writable:!0,value:"zhCN"}),Object.defineProperty(vc,"i18n",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(vc,"enMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),vc.setLanguage(function(){var e="zh-cn";if("undefined"!=typeof window&&"undefined"!=typeof document){var t=window.location.search,n=new URLSearchParams(t).get("language");if(n)return n;var r=document.cookie.match(/(?:^|; ?)lang=([^;]+)(?:;|$)/);return r?r[1]:e}return e}()),vc.setEnLang(pc);const mc=vc;var gc=function(e,t){return vc.i18n?vc.i18n(e,t):e},bc=document.createElement("div");function yc(e){bc.innerHTML=e;var t=bc.childNodes.length;return kt(t>0,"framework/utils/src/dom/template.ts:10"),1===t?bc.childNodes[0]:Array.from(bc.childNodes)}function wc(){var e,t=document.createElement("div");t.style.cssText="width: 100px; height: 10px; position: fixed; top: -9999999px; left: -9999999px; overflow: scroll;",t.innerHTML="
",document.body.appendChild(t);var n=100!==(null===(e=t.firstElementChild)||void 0===e?void 0:e.getBoundingClientRect().width);return t.remove(),n}function kc(e,t,n,r){for(var o=arguments.length,i=new Array(o>4?o-4:0),a=4;a2&&void 0!==arguments[2]?arguments[2]:void 0;if((null==e?void 0:e.nodeType)===Node.TEXT_NODE&&(e=e.parentNode),!(null==e?void 0:e.closest))return null;var r=e.closest(t);return r?(n||(n=e.closest(".ne-doc-lite-editor")||e.closest(".ne-doc-lite-viewer")),n&&!n.contains(r)?null:r):null}function Oc(e,t){return Nc(e,"[".concat(Cc,"],.").concat(_c),t)}function xc(e,t){return null!==Oc(e,t)}function Ec(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block",n=Oc(e,arguments.length>2?arguments[2]:void 0);return n&&n.getAttribute("data-card-type")===t}function Dc(e,t){return!(e.target.isConnected&&!xc(e.target,t))}var Rc=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"toPercentage",value:function(e,t){if(e>t)return 0;var n=e/t;return n>=0&&n<=1?Math.floor(1e4*n)/100:0}}]),e}(),Pc=o(4756),Sc=o.n(Pc),Tc={},Ac=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"get",value:function(e,t){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function n(){var r;return Sc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Tc.hasOwnProperty(e)){n.next=2;break}return n.abrupt("return",Tc[e]);case 2:return r=t(),Tc[e]=r,n.abrupt("return",r);case 5:case"end":return n.stop()}}),n)})))}}]),e}();function jc(e,t,n,r){for(var o=arguments.length,i=new Array(o>4?o-4:0),a=4;a0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)e.hasOwnProperty(t)&&Zc.hasOwnProperty(t)&&(Zc[t]=e[t])};const is=rs;var as={},ls={progress:function(){},error:function(){},success:function(){},data:{},method:"post",url:""},us=function(e){var t;try{if(null===(t=e.xhr)||void 0===t?void 0:t.response){var n=JSON.parse(e.xhr.response);if(as.customErrorHandler&&as.customErrorHandler(n))return e;if(n.message)return n}}catch(e){}};function cs(e){if(e=Object.assign(Object.assign({},ls),e),as.proxy)return as.proxy(e);var t=is();return t.start(e),t}function ss(e){as.proxy=e}function ds(){delete as.proxy}function fs(e){as.customErrorHandler=e}var hs=o(7965),ps=o.n(hs);function vs(e,t){if(e)return ps()(e,Object.assign({format:"text/plain"},t))}var ms,gs,bs,ys,ws,ks,Cs,_s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ye(this,e),Object.defineProperty(this,"_runner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"priority",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_canceled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._runner=t,this.priority=n,this._canceled=!1}return Ke(e,[{key:"dispose",value:function(){this._canceled=!0}},{key:"execute",value:function(){if(!this._canceled)try{this._runner()}catch(e){console.error(e)}}}],[{key:"sort",value:function(e,t){return t.priority-e.priority}}]),e}();function Ns(e){return gs(e,1e4)}function Os(e){return gs(e,-1e4)}function xs(e,t){var n=null,r=null;return n=Ns((function(){var n=e();r=ms((function(){t(n)}),-1e4)})),{dispose:function(){null==n||n.dispose(),null==r||r.dispose()}}}function Es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(n);try{for(i.s();!(o=i.n()).done;){var a=o.value;t.map.has(a.target)&&t.map.get(a.target)(a,t.observer)}}catch(e){i.e(e)}finally{i.f()}e(n,t.observer),n=[]};return function(e){n=n.concat(e),r||(r=!0,requestAnimationFrame(o))}}(e,n),t);return n.observer={get root(){return o.root},get rootMargin(){return o.rootMargin},get thresholds(){return o.thresholds},takeRecords:function(){return o.takeRecords()},disconnect:function(){return r.clear(),o.disconnect()},observe:function(e,t){t&&"function"==typeof t&&r.set(e,t),o.observe(e)},unobserve:function(e){r.delete(e),o.unobserve(e)}},n.observer}bs=[],ys=null,ws=!1,ks=!1,Cs=function(){for(ws=!1,ys=bs,bs=[],ks=!0;ys.length>0;)ys.sort(_s.sort),ys.shift().execute();ks=!1},gs=function(e){var t=new _s(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0);return bs.push(t),ws||(ws=!0,requestAnimationFrame(Cs)),t},ms=function(e,t){if(ks){var n=new _s(e,t);return ys.push(n),n}return gs(e,t)};var Rs="undefined"!=typeof process&&"string"==typeof process.platform&&"number"==typeof process.pid?process:null,Ps="undefined"!=typeof navigator?navigator.userAgent:"",Ss=!!Rs&&!Ps,Ts=/edge/i.test(Ps),As=!Ts&&/chrome/i.test(Ps),js=/firefox/i.test(Ps),Is=!Ts&&!As&&/safari/i.test(Ps),Bs=/dingtalk/i.test(Ps),Ms=/mobile/i.test(Ps),Fs=/YuqueDesktopApp\/[\d.]+/i.test(Ps),Ls=/os [\.\_\d]+ like mac os/i.test(Ps),Us=/android/i.test(Ps),Vs=Ps?!Ls&&/mac os x/i.test(Ps):"darwin"===(null==Rs?void 0:Rs.platform),Hs=Ps?/windows\s*(?:nt)?\s*[\.\_\d]+/i.test(Ps):"win32"===(null==Rs?void 0:Rs.platform),zs=/ipad/i.test(Ps)||"undefined"!=typeof navigator&&"MacIntel"===(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.maxTouchPoints)>1,Ws=/YuqueMobileApp/i.test(Ps),qs=/YuqueMobileApp.+\(.+Device\/Phone/i.test(Ps),$s=/YuqueMobileApp.+\(.+Device\/Pad/i.test(Ps);const Ks={node:Ss,edge:Ts,chrome:As,firefox:js,safari:Is,mobile:Ms,desktop:Fs,ios:Ls,android:Us,macos:Vs,windows:Hs,ipad:zs,app:Ws,yuquePhone:qs,yuquePad:$s};var Ys=!1,Gs=!1;function Js(){if(Ys)return Gs;var e=document.createElement("canvas");return Gs=!(!e.getContext||!e.getContext("2d"))&&(Ks.chrome||Ks.firefox||0===e.toDataURL("image/webp").indexOf("data:image/webp")),Ys=!0,Gs}var Xs=229,Qs={isKeyInComposition:function(e){return e.keyCode===Xs},isEnter:function(e){return e.key?"Enter"===e.key:13===e.keyCode},isCmdEnter:function(e){return Qs.isEnter(e)&&Qs.onlyMeta(e)},isShift:function(e){return e.key?"Shift"===e.key:16===e.keyCode},isBackspace:function(e){return e.key?"Backspace"===e.key:8===e.keyCode},isDelete:function(e){return e.key?"Delete"===e.key:46===e.keyCode},isArrowKey:function(e){var t=e.key,n=e.keyCode;return t?"ArrowLeft"===t||"ArrowRight"===t||"ArrowUp"===t||"ArrowDown"===t:n>=37&&n<=40},isHome:function(e){return e.key?"Home"===e.key:36===e.keyCode},isEnd:function(e){return e.key?"End"===e.key:35===e.keyCode},isChar:function(e,t){var n=e.key,r=e.keyCode;return t=t.toUpperCase(),n?n.toUpperCase()===t:r===t.charCodeAt(0)},isTab:function(e){return e.key?"Tab"===e.key:9===e.keyCode},isArrowDown:function(e){return e.key?"ArrowDown"===e.key:40===e.keyCode},isArrowRight:function(e){return e.key?"ArrowRight"===e.key:39===e.keyCode},isArrowUp:function(e){return e.key?"ArrowUp"===e.key:38===e.keyCode},isArrowLeft:function(e){return e.key?"ArrowLeft"===e.key:37===e.keyCode},hasModifyKey:function(e){return e.metaKey||e.ctrlKey||e.shiftKey||e.altKey},onlyMeta:function(e){return e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey},onlyAlt:function(e){return e.altKey&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey},onlyCtrl:function(e){return e.ctrlKey&&!e.altKey&&!e.metaKey&&!e.shiftKey},onlyShift:function(e){return!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.shiftKey},isEscape:function(e){return e.key?"Escape"===e.key:27===e.keyCode}},Zs=Qs;const ed=Zs;Object.keys(Zs).forEach((function(e){var t=Zs[e];Zs[e]=function(e){if(e.keyCode===Xs)return!1;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var n=e.split(",")[0].split(":")[1].split(";")[0],r=new Uint8Array(t.length),o=0;o1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement(e);return n._neCustom=!0,Array.isArray(t.className)?n.className=t.className.join(" "):t.className&&(n.className=t.className),t.style&&Object.keys(t.style).forEach((function(e){n.style[e]=t.style[e]})),Object.keys(t).forEach((function(e){"className"!==e&&"style"!==e&&n.setAttribute(e,t[e])})),n}var pd=hd;function vd(e,t,n,r){for(var o=arguments.length,i=new Array(o>4?o-4:0),a=4;a3&&void 0!==arguments[3]?arguments[3]:1e3;kt("function"==typeof e.destroy,"framework/utils/src/dom/event/bind-dom-long-press.ts:20"),kt("function"==typeof t.addEventListener,"framework/utils/src/dom/event/bind-dom-long-press.ts:21");var o=null,i=function(){o&&(clearTimeout(o),o=null)},a=function(e){o=window.setTimeout((function(){n(e),i()}),r)};t.addEventListener("touchstart",a),t.addEventListener("touchmove",i),t.addEventListener("touchend",i),t.addEventListener("touchcancel",i);var l=e.destroy;e.destroy=function(){for(var n=arguments.length,r=new Array(n),o=0;o4?o-4:0),a=4;a2&&void 0!==arguments[2]?arguments[2]:null;Ye(this,e),Object.defineProperty(this,"_scope",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_eventFilter",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_handlers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}return Ke(e,[{key:"destroy",value:function(){this.removeAllListener(),this._domNode=null,this._eventFilter=null,this._handlers=[]}},{key:"on",value:function(e,t,n){var r=this,o=t,i=this._eventFilter;return t=function(e){var t=e;if(yd(t,r._scope)&&(!i||!1!==i(t))){for(var n=arguments.length,a=new Array(n>1?n-1:0),l=1;l1?t-1:0),a=1;a/g,">").replace(/"/g,""")}},{key:"decodeHTML",value:function(e){return"string"!=typeof e?e:e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}}]),e}(),_d=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Nd=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"createElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"element",name:e,attrs:t.attrs,style:t.style,className:t.className}}},{key:"createTextNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"text",name:"#text",plain:!1,data:e,attrs:t.attrs,style:t.style,className:t.className}}},{key:"createPlainTextNode",value:function(t){var n=e.createTextNode(t);return n.plain=!0,n}},{key:"updateAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.attrs,r=t.style,o=t.className;if(n&&(e.attrs=Object.assign(Object.assign({},e.attrs),n)),r&&(e.style=Object.assign(Object.assign({},e.style),r)),o){var i=[];i=Array.isArray(o)?o:[o],i=Array.from(new Set([].concat(pn(e.className||[]),pn(i)))),e.className=i}}},{key:"appendChild",value:function(e,t){kt("#text"!==e.name,"framework/utils/src/dom/html-node-helper.ts:113"),e.children||(e.children=[]),e.children.push(t)}},{key:"setChildren",value:function(e,t){e.children=pn(t)}},{key:"isLikeEmpty",value:function(t){return"text"===t.type?0===t.data.length:"element"===t.type&&(!t.children||0===t.children.length||t.children.every((function(t){return e.isLikeEmpty(t)})))}},{key:"toHTML",value:function(e){return Od(e)}},{key:"setAttribute",value:function(e,t,n){e.attrs||(e.attrs={}),e.attrs[t]=n}},{key:"removeAttribute",value:function(e,t){e.attrs&&delete e.attrs[t]}},{key:"removeAllAttribute",value:function(e){delete e.attrs}},{key:"removeAllStyle",value:function(e){delete e.style}},{key:"cloneNode",value:function(e){var t={type:e.type,name:e.name,attrs:lr(e.attrs),style:lr(e.style),className:lr(e.className)};return e.data&&(t.data=e.data),t}},{key:"formatStyleName",value:function(e){return Ed(e)}}]),e}();function Od(e){if("text"===e.type)return function(e){var t=e.data,n=void 0===t?"":t;n=Cd.encodeHTML(n),e.plain||(n=n.replace(/\n/g,"
"));var r=xd(e.attrs,e.style,e.className);return r?"").concat(n,""):n||""}(e);var t;kt("element"===e.type,"framework/utils/src/dom/html-node-helper.ts:202"),e.children&&(t=e.children.map((function(e){return Od(e)})));var n=function(e){var t=e.name,n=e.attrs,r=e.style,o=e.className;kt(t,"framework/utils/src/dom/html-node-helper.ts:219");var i=["<".concat(t)],a=xd(n,r,o);return a&&i.push(" "+a),i.push(">"),_d.includes(t)?[i.join(""),""]:[i.join(""),"")]}(e),r=cn(n,2),o=r[0],i=r[1];return o+(t?t.join(""):"")+i}function xd(e,t,n){var r=[],o=[];if(e&&Object.keys(e).forEach((function(t){if("class"!==t&&"style"!==t){var n=e[t];void 0!==n&&r.push(Cd.encodeHTML(t)+'="'+Cd.encodeHTML(n+"")+'"')}})),t&&Object.keys(t).forEach((function(e){var n=t[e];void 0!==n?o.push("".concat(Ed(e),": ").concat(n)):console.warn("warning: invalid style value for "+e)})),n&&n.length)if(Array.isArray(n))n=n.filter((function(e){return!!e})).map((function(e){return e.trim()})),r.push('class="'.concat(Cd.encodeHTML(n.join(" ")),'"'));else{var i=n.trim();i&&r.push('class="'.concat(Cd.encodeHTML(i),'"'))}var a=[];return r.length&&a.push(r.join(" ")),o.length&&a.push('style="'+Cd.encodeHTML(o.join("; "))+'"'),a.join(" ")}function Ed(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}function Dd(e){return Array.from(e.parentNode.childNodes).indexOf(e)}var Rd=o(2193),Pd=o.n(Rd),Sd=o(9884),Td=o.n(Sd),Ad=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"createRange",value:function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset,i=document.createRange();if(t===r)return n===o?(i.setStart(t,n),i.collapse(!0)):n2&&void 0!==arguments[2])||arguments[2];if(e.collapsed)return!1;var r=document.createRange();return r.selectNode(t),n?1!==e.compareBoundaryPoints(Range.START_TO_END,r)&&-1!==e.compareBoundaryPoints(Range.END_TO_START,r):e.compareBoundaryPoints(Range.START_TO_START,r)<1&&e.compareBoundaryPoints(Range.END_TO_END,r)>-1}var Id=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},Bd=null;function Md(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Id(this,void 0,void 0,Sc().mark((function n(){var r,o,i;return Sc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Bd||(Bd=document.createElement("canvas")),r=null,o=new Promise((function(e){r=e})),(i=new Image).crossOrigin="anonymous",i.onload=function(){var e=i.naturalWidth||i.width,n=i.naturalHeight||i.height,o=e*t,a=n*t;if(!(o>0&&a>0))return r(null);Fd(o,a).drawImage(i,0,0,o,a);var l=Bd.toDataURL("image/png");Bd&&(Bd.width=0,Bd.height=0),r({url:l,width:o,height:a,originalWidth:e,originalHeight:n})},i.onerror=function(){r(null)},i.src=e,n.abrupt("return",o);case 9:case"end":return n.stop()}}),n)})))}function Fd(e,t){return Bd||(Bd=document.createElement("canvas")),Bd.width=e,Bd.height=t,Bd.getContext("2d")}function Ld(e){return!!e&&e.nodeType===Node.TEXT_NODE}function Ud(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE}function Vd(e){return"input"===e.type}function Hd(e){return e}var zd=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"scrollContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewPercent",{enumerable:!0,configurable:!0,writable:!0,value:60}),Object.defineProperty(this,"speed",{enumerable:!0,configurable:!0,writable:!0,value:120}),Object.defineProperty(this,"initialSpeed",{enumerable:!0,configurable:!0,writable:!0,value:120}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"iteration",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"lastRaf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastRunRaf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastTs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastAccurateScrollTop",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.scrollContainer=t,this.viewPercent="number"==typeof n?n:this.viewPercent,this.speed="number"==typeof r?r:this.speed,this.initialSpeed="number"==typeof r?r:this.speed}return Ke(e,[{key:"run",value:function(e){this.reset(),this.clientY=e.clientY,this.lastRunRaf=requestAnimationFrame(this.schedule.bind(this))}},{key:"schedule",value:function(t){this.iteration++,this.iteration>e.MAX_ITERATION?this.reset():(void 0===this.lastTs&&(this.lastTs=t),this.iteration%2!=0?(this.doScroll(t,this.lastTs),this.lastTs=t,this.lastRaf=requestAnimationFrame(this.schedule.bind(this))):this.lastRaf=requestAnimationFrame(this.schedule.bind(this)))}},{key:"doScroll",value:function(e,t){var n=this.clientY,r=this.getScrollContainerRect();this.scrollContainer&&"number"==typeof n&&r&&void 0!==this.lastAccurateScrollTop&&(this.isAheadOfView(n,r)?this.lastAccurateScrollTop-=this.getCurScrollDiff(e-t):this.isBehindOfView(n,r)&&(this.lastAccurateScrollTop+=this.getCurScrollDiff(e-t)),this.scrollContainer.scrollTop=this.lastAccurateScrollTop,this.isInView(n,r)||this.accelerate(e-t))}},{key:"accelerate",value:function(e){this.speed+=2*this.iteration}},{key:"getCurScrollDiff",value:function(e){return this.speed*(e/1e3)}},{key:"isInView",value:function(e,t){var n=cn(this.getThresholdY(t),2),r=n[0];return er}},{key:"isAheadOfView",value:function(e,t){var n=cn(this.getThresholdY(t),2),r=n[0];return n[1],en[1]}},{key:"getScrollContainerRect",value:function(){var e;return null===(e=this.scrollContainer)||void 0===e?void 0:e.getBoundingClientRect()}},{key:"getThresholdY",value:function(e){var t=e.height,n=e.top+t/2;return[n-t*this.viewPercent/200,n+t*this.viewPercent/200]}},{key:"reset",value:function(){var e;this.lastRaf&&cancelAnimationFrame(this.lastRaf),this.lastRunRaf&&cancelAnimationFrame(this.lastRunRaf),this.lastRaf=void 0,this.lastRunRaf=void 0,this.clientY=void 0,this.speed=this.initialSpeed,this.iteration=0,this.lastTs=void 0,this.lastAccurateScrollTop=null===(e=this.scrollContainer)||void 0===e?void 0:e.scrollTop}},{key:"destroy",value:function(){this.reset(),this.scrollContainer=void 0}}]),e}();function Wd(e,t){if(document.caretPositionFromPoint){var n=document.caretPositionFromPoint(e,t);return n?{node:n.offsetNode,offset:n.offset}:null}if(document.caretRangeFromPoint){var r=document.caretRangeFromPoint(e,t);return r?{node:r.startContainer,offset:r.startOffset}:null}return null}function qd(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function $d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=i&&(document.removeEventListener("pointermove",r.onDistanceChange),r.startDrag())}}),Object.defineProperty(this,"onPointerUp",{enumerable:!0,configurable:!0,writable:!0,value:function(e){0===e.button&&(e.preventDefault(),r.releasePointerCapture(),document.removeEventListener("pointerup",r.onPointerUp),document.removeEventListener("dragstart",r.preventNativeEvent),document.removeEventListener("pointermove",r.onDistanceChange),document.removeEventListener("pointermove",r.onPointerMove),r.dragging&&r.onDrop(e),r._dispatchPointerLeaveEvent(e))}}),Object.defineProperty(this,"onPointerMove",{enumerable:!0,configurable:!0,writable:!0,value:function(e){r.dragging&&(e.preventDefault(),r.lastRaf&&cancelAnimationFrame(r.lastRaf),r.lastRaf=requestAnimationFrame((function(){var t;null===(t=r.autoScroll)||void 0===t||t.run(e),r.onDragMove(e),r._dispatchPointerEvent(e)})))}}),this.triggerNode=t,n&&(this.autoScroll=new zd(n),this.scrollContainer=n),t&&kc(this,t,"pointerdown",this.onPointerDown,!1)}return Ke(e,[{key:"onDragStart",value:function(e){}},{key:"onDragMove",value:function(e){}},{key:"onDrop",value:function(e){}},{key:"startDrag",value:function(){this.dragging=!0,document.documentElement.setPointerCapture(this.startEvent.pointerId),document.documentElement.style.cursor="grabbing",document.addEventListener("pointermove",this.onPointerMove),this.onDragStart(this.startEvent)}},{key:"_dispatchPointerEvent",value:function(e){var t,n,r=Wd(e.clientX,e.clientY);if((null==r?void 0:r.node)&&"BODY"!==r.node.nodeName&&this.trackHoveredNodeList){var o,i=null===(n=(t=r.node).closest)||void 0===n?void 0:n.call(t,'[data-dragover="hover"]'),a=qd(this.trackHoveredNodeList);try{for(a.s();!(o=a.n()).done;){var l=o.value;l!==i&&(l.dispatchEvent(new PointerEvent("mouseleave",Object.assign(Object.assign({},e),{bubbles:!0}))),this.trackHoveredNodeList.delete(l))}}catch(e){a.e(e)}finally{a.f()}i&&(this.trackHoveredNodeList.has(i)||i.dispatchEvent(new PointerEvent("mouseenter",Object.assign(Object.assign({},e),{bubbles:!0}))),this.trackHoveredNodeList.add(i))}}},{key:"_dispatchPointerLeaveEvent",value:function(e){if(this.trackHoveredNodeList){var t,n=qd(this.trackHoveredNodeList);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.dispatchEvent(new PointerEvent("mouseleave",Object.assign(Object.assign({},e),{bubbles:!0}))),this.trackHoveredNodeList.delete(r)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"preventNativeEvent",value:function(e){e.preventDefault()}},{key:"calcDistance",value:function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}},{key:"releasePointerCapture",value:function(){this.startEvent&&document.documentElement.hasPointerCapture(this.startEvent.pointerId)&&(document.documentElement.releasePointerCapture(this.startEvent.pointerId),document.documentElement.style.cursor="")}},{key:"reset",value:function(){var e;this.startEvent&&(this.startEvent=void 0,this.releasePointerCapture()),null===(e=this.autoScroll)||void 0===e||e.reset(),this.lastRaf&&(cancelAnimationFrame(this.lastRaf),this.lastRaf=void 0)}},{key:"destroy",value:function(){var e;this.reset(),this.clientX=void 0,this.clientY=void 0,this.dragging=!1,this.triggerNode=void 0,null===(e=this.autoScroll)||void 0===e||e.destroy(),this.autoScroll=void 0,this.trackHoveredNodeList=void 0,document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("dragstart",this.preventNativeEvent),document.removeEventListener("pointermove",this.onDistanceChange),document.removeEventListener("pointermove",this.onPointerMove)}}]),e}();function Yd(e,t){return["ne-hole","ne-root-card-hole"].includes(e.parentNode.nodeName.toLowerCase())?t:Dd(e)+t}function Gd(e){return Ud(e)?e.getBoundingClientRect().height:(kt(Ld(e),"framework/utils/src/drag-drop/helpers/get-node-height.ts:9"),e.parentNode.getBoundingClientRect().height)}var Jd=window.TouchEvent||function(){return Ke((function e(){Ye(this,e)}))}();function Xd(e,t){var n=!1,r=-1,o=null,i=function(){n=!1,null!==o&&e(o)},a=function(e){o=t(e)||o,n||(n=!0,r=requestAnimationFrame(i))};return a.cancel=function(){n&&cancelAnimationFrame(r),o=null},a}function Qd(e){return e instanceof Jd}function Zd(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.preventDefault(),e.stopPropagation();var o=-1,i=-1,a=-1;Qd(e)?(i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=e.changedTouches[0].identifier):(i=e.clientX,a=e.clientY);var l={destroy:function(){}},u=function(e){if(e.preventDefault(),e.stopPropagation(),Qd(e)){if(-1!==o)for(var t=0;t1?t-1:0),r=1;r0&&(e='"'.concat(e,'"')),e}(e[r.key])+",",!(r.key in e)&&t.warning&&console.warn("property ".concat(r.key," didn't in "),e)})),n=n.substr(0,n.length-1),r+=n+"\n"}}));var o=new Blob([n+"\n"+r],{type:t.mime}),i=URL.createObjectURL(o);if(t.el&&(t.el.setAttribute("href",i),t.el.setAttribute("download",t.fileName)),t.auto){var a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",t.fileName),a.style.visibility="hidden",document.body.appendChild(a),a.click(),document.body.removeChild(a)}return setTimeout((function(){"revokeObjectURL"in URL&&URL.revokeObjectURL(i),o=null}),4e4),o},nf=function(){return"undefined"!=typeof Blob&&"undefined"!=typeof URL&&"createObjectURL"in URL&&"download"in document.createElement("a")},rf=/^(b|B)$/,of={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},af={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function lf(e){var t,n,r,o,i,a,l,u,c,s,d,f,h,p,v,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=[],b=0;if(isNaN(e))throw new Error("Invalid arguments");return r=!0===m.bits,d=!0===m.unix,n=m.base||2,s=void 0!==m.round?m.round:d?1:2,f=void 0!==m.separator&&m.separator||"",h=void 0!==m.spacer?m.spacer:d?"":" ",v=m.symbols||m.suffixes||{},p=2===n&&m.standard||"jedec",c=m.output||"string",i=!0===m.fullform,a=m.fullforms instanceof Array?m.fullforms:[],t=void 0!==m.exponent?m.exponent:-1,o=n>2?1e3:1024,(l=(u=Number(e))<0)&&(u=-u),(-1===t||isNaN(t))&&(t=Math.floor(Math.log(u)/Math.log(o)))<0&&(t=0),t>8&&(t=8),0===u?(g[0]=0,g[1]=d?"":of[p][r?"bits":"bytes"][t]):(b=u/(2===n?Math.pow(2,10*t):Math.pow(1e3,t)),r&&(b*=8)>=o&&t<8&&(b/=o,t++),g[0]=Number(b.toFixed(t>0?s:0)),g[1]=10===n&&1===t?r?"kb":"kB":of[p][r?"bits":"bytes"][t],d&&(g[1]="jedec"===p?g[1].charAt(0):t>0?g[1].replace(/B$/,""):g[1],rf.test(g[1])&&(g[0]=Math.floor(g[0]),g[1]=""))),l&&(g[0]=-g[0]),g[1]=v[g[1]]||g[1],"array"===c?g:"exponent"===c?t:"object"===c?{value:g[0],suffix:g[1],symbol:g[1]}:(i&&(g[1]=a[t]?a[t]:af[p][t]+(r?"bit":"byte")+(1===g[0]?"":"s")),f.length>0&&(g[0]=g[0].toString().replace(".",f)),g.join(h))}lf.partial=function(e){return function(t){return lf(t,e)}};var uf=/[A-Z]/g;function cf(e){return e.replace(uf,(function(e){return"-".concat(e.toLowerCase())}))}var sf={cmd:Ks.macos?"⌘":"Ctrl",command:Ks.macos?"⌘":"Ctrl",option:Ks.macos?"⌥":"Alt",opt:Ks.macos?"⌥":"Alt",shift:"⇧",190:".",188:",",49:"1"};const df=sf;function ff(e,t){return e.map((function(e){var t=(e+"").toLowerCase();return sf[t]||t[0].toUpperCase()+t.substring(1)})).join(t||" ")}var hf=/^[a-z0-9]$/i,pf=Ks.macos||Ks.ios;function vf(e){e=e.map((function(e){return(e+"").toLowerCase()}));var t={any:!1,cmd:!1,alt:!1,shift:!1,ctrl:!1};e.forEach((function(n){"cmd"===n?pf?t.cmd=!0:t.ctrl=!0:"ctrl"===n?t.ctrl=!0:"shift"===n?t.shift=!0:"alt"===n||"opt"===n||"option"===n?t.alt=!0:"*"===n?t.any=!0:n?(kt(!t.key,"invalid shortcut-key name: "+e,"framework/utils/src/hot-key-matcher/parse-keys.ts:54"),hf.test(n+"")?t.key=(n+"").toUpperCase().charCodeAt(0):t.key=n):console.warn("invalid shortcut-key: "+e)}));var n={any:!1,cmd:!1,shift:!1,alt:!1,ctrl:!1};return t.any?n.any=!0:(n.cmd=t.cmd,n.shift=t.shift,n.alt=t.alt,n.ctrl=t.ctrl),{keyName:t.key,modifier:n}}var mf=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_keyInfo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._keyInfo=vf(t)}return Ke(e,[{key:"match",value:function(e){var t=e.key,n=e.keyCode;if(!t)return!1;var r=this._keyInfo,o=r.keyName,i=r.modifier;return(t.toLowerCase()===o||n===o)&&gf(e,i)}}],[{key:"parseKeys",value:function(e){return vf(e)}},{key:"isMatchModifier",value:function(e,t){return gf(e,t)}}]),e}();function gf(e,t){return!!t.any||t.cmd===e.metaKey&&t.alt===e.altKey&&t.ctrl===e.ctrlKey&&t.shift===e.shiftKey}var bf=["h1","h2","h3","h4","h5","h6"],yf=["html","body","address","article","aside","blockquote","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","hr","legend","menu","nav","ol","optgroup","option","p","pre","section","summary","ul","table","tbody","thead","tr","li"].concat(bf),wf={},kf={},Cf={},_f={};function Nf(e,t){for(var n in kt("object"===We(e),"framework/utils/src/is-state-changed.ts:8"),kt("object"===We(t),"framework/utils/src/is-state-changed.ts:9"),kt(e,"framework/utils/src/is-state-changed.ts:10"),e)if(!Yr()(t[n],e[n]))return!0;return!1}function Of(e){return!(!e||"nodeName"===e)}bf.forEach((function(e){_f[e]=!0})),yf.forEach((function(e){wf[e]=!0})),["a","abbr","acronym","area","audio","b","base","basefont","bdi","bdo","big","body","br","button","canvas","caption","cite","code","col","colgroup","datalist","del","dfn","em","embed","font","frame","frameset","head","html","i","iframe","img","input","ins","kbd","keygen","label","link","map","mark","meta","meter","noframes","object","output","param","progress","q","rp","rt","ruby","s","samp","select","small","source","span","strike","strong","sub","sup","td","textarea","tfoot","th","time","title","track","tt","u","var","video","wbr","applet"].forEach((function(e){kf[e]=!0})),["svg","script","noscript"].forEach((function(e){Cf[e]=!0}));var xf=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},Ef={},Df=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"libName",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"loadFunction",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"lib",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"loadingPromise",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:[]})}return Ke(e,[{key:"isReady",value:function(){return!!this.lib}},{key:"get",value:function(){return this.lib?this.lib:null}},{key:"onLoaded",value:function(e){var t=this;return this.listeners.push(e),function(){var n=t.listeners.indexOf(e);-1!==n&&t.listeners.splice(n,1)}}},{key:"load",value:function(){return xf(this,void 0,void 0,Sc().mark((function e(){var t=this;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.lib){e.next=2;break}return e.abrupt("return",this.lib);case 2:if(!this.loadingPromise){e.next=4;break}return e.abrupt("return",this.loadingPromise);case 4:return this.loadingPromise=new Promise((function(e){return xf(t,void 0,void 0,Sc().mark((function t(){var n,r=this;return Sc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.loadFunction();case 3:n=t.sent,this.lib=n,this.loadingPromise=null,e(n),setTimeout((function(){r.listeners.forEach((function(e){e()}))})),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(0),this.loadingPromise=null,console.warn("failed to load libiary: ".concat(this.libName)),console.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,10]])})))})),e.abrupt("return",this.loadingPromise);case 6:case"end":return e.stop()}}),e,this)})))}}],[{key:"getLoader",value:function(t,n){if(Ef[t])return Ef[t];var r=new e(t,n);return Ef[t]=r,r}}]),e}(),Rf={codemirror:"https://gw.alipayobjects.com/as/g/larkgroup/lake-codemirror/7.1.3/CodeMirror.js"};function Pf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return new Promise((function(n,r){var o=document.querySelector('script[src="'.concat(e,'"]'));o||((o=document.createElement("script")).src=e),o.getAttribute("loaded")?n():o.getAttribute("error")?r(new Error("load failed : ".concat(e))):(o.addEventListener("load",(function(){o.setAttribute("loaded","true"),n()}),!1),o.addEventListener("error",(function(){o.setAttribute("error","true"),r(new Error("load failed: ".concat(e)))}),!1),t.appendChild(o))}))}var Sf=function(){var e="__check_if_storage_supported",t=!0;if("undefined"!=typeof window)try{window.localStorage.setItem(e,"1"),window.localStorage.removeItem(e)}catch(e){t=!1}else t=!1;return t}()?window.localStorage:{_store:{},setItem:function(e,t){this._store[e]=t},getItem:function(e){return this._store[e]||null}};const Tf=Sf;var Af=Symbol("matchType"),jf=Symbol("matchAll"),If=function(e){return"function"==typeof e},Bf=function(e){return e},Mf=function(e){return If(e)?e:function(){return e}},Ff=function(e,t){return kt(t,"cant match anything ".concat(e),"framework/utils/src/match.ts:43"),t.result(e)},Lf=function(e,t){return function(e){return(null==e?void 0:e.type)===Af}(n=e)||function(e){return(null==e?void 0:e.type)===jf}(n)?[e].concat(pn(t)):t;var n},Uf=function(e){return function(t){return t.check(e)}},Vf=function(e){return function(t){return e.find(t)}},Hf=function(e){return If(e)?e:Bf},zf=function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:"";if(!e||!t||"object"!==We(t))return e;try{var r=new URL(e,n);Object.keys(t).forEach((function(e){r.searchParams.append(e,t[e])}));var o=r.search;return e.split("?")[0]+o}catch(t){return console.warn(t),e}}var Sh=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"disappear",value:function(e,t){var n,r=(null===(n=null==e?void 0:e.editor)||void 0===n?void 0:n.renderer)||e.renderer;if(!(null==r?void 0:r.option.virtualRendering))if(t){if(!t.querySelector(".ne-max")){var o=t.getBoundingClientRect().height;e._visibility={node:t,height:t.style.height},t.style.height=o+"px",t.classList.add("ne-invisible")}}else e._visibility=null}},{key:"appear",value:function(e){var t,n=e._visibility;if(n){e._visibility=null;var r=n.height,o=n.node;o.classList.remove("ne-invisible");var i=(null===(t=null==e?void 0:e.editor)||void 0===t?void 0:t.renderer)||e.renderer;(null==i?void 0:i.option.virtualRendering)||(o.style.height=r||"")}}}]),e}(),Th=/[\u0100-\uffff]+/g,Ah=/--+/g,jh=/\s+/;function Ih(e){if(!e)return 0;var t=0;return(e=(e=e.replace(Th,(function(e){return e.codePointAt(0)>127?(t+=pn(e).length," "):e})).replace(Ah,(function(e,n,r){return jh.test(r[n-1])&&t++," "}))).trim())&&(t+=e.split(jh).length),t}var Bh="ne-ui-scrollbar-visible",Mh=function(){function e(t,n){var r,o=this;Ye(this,e),Object.defineProperty(this,"editor",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_editorRootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_headerLayer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_uiLayer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_uiExtraBox",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_boxWrapNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_editorExtraBox",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_editBox",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_overlayContainer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_innerOverlayContainer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_editorWrapNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_isMaxView",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_maxViewNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_scrollbarIsVisible",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_exitMaxBeforeCallback",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_exitMaxAfterCallback",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_editorNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_theme",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),wc()&&(this._scrollbarIsVisible=!0,n.classList.add(Bh)),this.editor=t,this._editorRootNode=n,this._boxWrapNode=yc('
'),this._editorExtraBox=this._boxWrapNode.firstChild.firstChild.firstChild,this._editBox=this._editorExtraBox.nextSibling,this._editorNode=yc('
'),this._headerLayer=yc('
")),this._uiLayer=yc('
'),this._uiExtraBox=yc('
'),this._overlayContainer=yc('
'),this._innerOverlayContainer=yc('
');var i=yc('
'),a=yc('
');i.appendChild(a),a.appendChild(this._innerOverlayContainer),a.appendChild(this._boxWrapNode),this._editorWrapNode=a,this._editorNode.appendChild(this._headerLayer),this._editorNode.appendChild(this._uiLayer),this._editorNode.appendChild(this._uiExtraBox),this._editorNode.appendChild(i),document.body.appendChild(this._overlayContainer),n.innerHTML="",n.appendChild(this._editorNode),kc(this,a,"mousedown",(function(e){e.target===a&&e.preventDefault()}),!1),kc(this,this._uiLayer,"mousedown",(function(e){Dc(e,o._editorRootNode)||e.preventDefault()}),!1),kc(this,this._headerLayer,"mousedown",(function(e){e.preventDefault()})),kc(this,this._headerLayer,"click",(function(e){var t,n;(null===(t=e.target)||void 0===t?void 0:t.closest(".ne-ui-exit-max-view-btn"))&&(null===(n=o.editor)||void 0===n||n.exitMaxView())}));var l=null===(r=t.option)||void 0===r?void 0:r.getScrollNode(),u=Date.now();kc(this,l||document.body,"scroll",(function(){var e,n=Date.now(),r=u;u=n,n-r<500||null===(e=t.uiEmitter)||void 0===e||e.emit("closePopover")}),{passive:!0})}return Ke(e,[{key:"destroy",value:function(){var e;this._editorRootNode&&(this._editorRootNode.classList.remove(Bh),this._editorRootNode.innerHTML=""),null===(e=this._overlayContainer)||void 0===e||e.remove()}},{key:"reset",value:function(){try{this.exitMaxView()}catch(e){}}},{key:"initTheme",value:function(e){var t=this;this._theme=e,this._overlayContainer&&(this._overlayContainer.className="ne-overlay-container ".concat(e.getThemeSelector())),this._innerOverlayContainer&&(this._innerOverlayContainer.className="ne-inner-overlay-container ".concat(e.getThemeSelector())),jc(this,e,"themeChange",(function(){t._overlayContainer&&(t._overlayContainer.className="ne-overlay-container ".concat(e.getThemeSelector())),t._innerOverlayContainer&&(t._innerOverlayContainer.className="ne-inner-overlay-container ".concat(e.getThemeSelector()))}))}},{key:"isMaxView",get:function(){return this._isMaxView}},{key:"scrollbarIsVisible",get:function(){return this._scrollbarIsVisible}},{key:"editorRootNode",get:function(){return this._editorRootNode}},{key:"uiExtraBox",get:function(){return this._uiExtraBox}},{key:"editorWrapNode",get:function(){return this._editorWrapNode}},{key:"editorExtraBox",get:function(){return this._editorExtraBox}},{key:"editBox",get:function(){return this._editBox}},{key:"editorNode",get:function(){return this._editorNode}},{key:"uiLayer",get:function(){return this._uiLayer}},{key:"overlayContainer",get:function(){return this._overlayContainer}},{key:"innerOverlayContainer",get:function(){return this._innerOverlayContainer}},{key:"enterMaxView",value:function(e,t,n,r){var o,i,a,l,u,c,s,d=this;if(this._isMaxView||!e)return!1;var f=null===(i=null===(o=this.editor)||void 0===o?void 0:o.option)||void 0===i?void 0:i.getScrollNode().scrollTop;null===(a=this.editor)||void 0===a||a.emit("beforeEnterMaxView"),this._isMaxView=!0,this._maxViewNode=e,this._exitMaxBeforeCallback=n,this._exitMaxAfterCallback=r,null===(l=this._editorRootNode)||void 0===l||l.classList.add("ne-ui-max-view"),null===(u=this._maxViewNode)||void 0===u||u.classList.add("ne-ui-max-view-node","ne-max"),t.toolbar?null===(s=this._editorRootNode)||void 0===s||s.classList.remove("ne-ui-max-view-no-toolbar"):null===(c=this._editorRootNode)||void 0===c||c.classList.add("ne-ui-max-view-no-toolbar");var h=function e(n){var r;27===n.keyCode&&(d._isMaxView&&(null===(r=t.preventEscExitMaxView)||void 0===r?void 0:r.call(t))||(setTimeout((function(){var e;null===(e=d.editor)||void 0===e||e.exitMaxView()}),0),document.removeEventListener("keydown",e)))};return document.addEventListener("keydown",h),this._clear=function(){d._clear=function(){},document.removeEventListener("keydown",h),"number"==typeof f&&(d.editor.option.getScrollNode().scrollTop=f)},!0}},{key:"exitMaxView",value:function(){var e,t;if(!this._isMaxView)return!1;var n=this._exitMaxBeforeCallback,r=this._exitMaxAfterCallback;return this._exitMaxBeforeCallback=null,this._exitMaxAfterCallback=null,null==n||n(),this._isMaxView=!1,null===(e=this._editorRootNode)||void 0===e||e.classList.remove("ne-ui-max-view","ne-ui-concise-max-view"),null===(t=this._maxViewNode)||void 0===t||t.classList.remove("ne-ui-max-view-node","ne-max"),this._clear(),null==r||r(),!0}}]),e}();function Fh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i1?r-1:0),a=1;a1?r-1:0),i=1;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=this._recordInCollapsedNodes.indexOf(r);o>=0&&this._recordInCollapsedNodes.splice(o,1)}}catch(e){n.e(e)}finally{n.f()}}},{key:"emitEvent",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?i-1:0),l=1;l0&&void 0!==arguments[0]&&arguments[0]||!this.shouldRefreshMask()){var e=this.getCardMaskConfig();Jh.update(this,e)}}},{key:"_destroyMask",value:function(){Jh.destroyMask(this)}}]),t}(e)}function Zh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zh=function(){return!!e})()}function ep(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,Zh()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"beforeMaximizeChanged",value:function(e){}},{key:"afterMaximizeChanged",value:function(e){}},{key:"onLeaveMaxViewAsync",value:function(){}},{key:"onEnterMaxViewAsync",value:function(){}},{key:"enterMaxView",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.beforeMaximizeChanged(!0),this.editor.enterMaxView(this.cardRootNode.parentNode,t,(function(){e.beforeMaximizeChanged(!1)}),(function(){Promise.resolve().then((function(){e.onLeaveMaxViewAsync()})),e.afterMaximizeChanged(!1)})),setTimeout((function(){e.onEnterMaxViewAsync(),e.afterMaximizeChanged(!0)}))}}]),t}(e)}function tp(e,t,n){return t=Qe(t),Xe(e,np()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function np(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(np=function(){return!!e})()}var rp=function(e){function t(e,n,r,o){var i;return Ye(this,t),i=tp(this,t),Object.defineProperty(Je(i),"_boundaryNode",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(i),"_targetNodeHandle",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(i),"_resizerRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_resizerTriggerNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_maskNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_min",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(i),"_max",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(i),"_callback",{enumerable:!0,configurable:!0,writable:!0,value:null}),i._resizerRootNode=document.createElement("div"),i._resizerRootNode.className="ne-card-resizer",i._resizerTriggerNode=document.createElement("div"),i._resizerTriggerNode.className="ne-card-resizer-trigger",i._resizerTriggerNode.setAttribute("draggable","true"),i._resizerRootNode.appendChild(i._resizerTriggerNode),i._maskNode=document.createElement("div"),i._maskNode.className="ne-card-resizer-mask",i._update(o),n.appendChild(i._resizerRootNode),n.appendChild(i._maskNode),i._initEvent(),i}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._resizerRootNode.remove(),delete this._resizerRootNode,this._maskNode.remove(),delete this._maskNode,this.removeAllListeners()}},{key:"recoverHeight",value:function(){this._getTargetNode().style.height=""}},{key:"update",value:function(e){this._update(e)}},{key:"_update",value:function(e){var t=e.min,n=e.max;t?kt(t>=0,"framework/uilib/src/card-resizer/card-resizer.ts:69"):t=0,n?kt(n>t,"framework/uilib/src/card-resizer/card-resizer.ts:75"):n=Number.MAX_SAFE_INTEGER,this._min=t,this._max=n,this._callback=e.callback||null}},{key:"_initEvent",value:function(){var e,t=this;kc(this,this._resizerTriggerNode,"mousedown",(function(){var n=t._getTargetNode();t._maskNode.style.display="block",n.style.pointerEvents="none",t.emit("start"),kc(e={destroy:function(){t.emit("complete"),t._maskNode&&(t._maskNode.style.display="",t._maskNode.style.height=""),n.style.pointerEvents=""}},document,"mouseup",(function(){null==e||e.destroy()}),!1)}),!1),kc(this,this._resizerTriggerNode,"dragstart",(function(n){n.dataTransfer.effectAllowed="move",n.dataTransfer.dropEffect="move";var r=document.createElement("div");r.style.cssText="position: fixed; width: 1px; height: 1px; top: -99999px; left: -99999px;",document.body.appendChild(r),n.dataTransfer.setDragImage(r,0,0);var o=t._getTargetNode().getBoundingClientRect().y;t._maskNode.style.height=t._getValidHeight(n.clientY-o)+"px",t._processDrag({destroy:function(){}},e,r)}),!1)}},{key:"_processDrag",value:function(e,t,n){var r=this,o=this._getTargetNode();kc(e,this._boundaryNode,"dragover",(function(e){e.preventDefault();var t=o.getBoundingClientRect().y;r._handleResize(e.clientY-t)}),!1),kc(e,this._boundaryNode,"dragenter",(function(e){e.preventDefault();var t=o.getBoundingClientRect().y;r._handleResize(e.clientY-t)}),!1),kc(e,this._boundaryNode,"dragend",(function(i){if(i.preventDefault(),n){var a=o.getBoundingClientRect().y;t.destroy(),e.destroy(),n.remove(),n=null,r._completed(i.clientY-a)}}),!1),kc(e,this._boundaryNode,"drop",(function(i){if(i.preventDefault(),n){var a=o.getBoundingClientRect().y;t.destroy(),e.destroy(),n.remove(),n=null,r._completed(i.clientY-a)}}),!1)}},{key:"show",value:function(){this._resizerRootNode.style.display="block"}},{key:"hide",value:function(){this._resizerRootNode.style.display="none"}},{key:"_getTargetNode",value:function(){return"function"==typeof this._targetNodeHandle?this._targetNodeHandle():this._targetNodeHandle}},{key:"_getValidHeight",value:function(e){return Math.min(this._max,Math.max(e,this._min))}},{key:"_handleResize",value:function(e){return e=this._getValidHeight(e),this._getTargetNode().style.height=e+"px",this._getTargetNode().style.maxHeight="unset",e}},{key:"_completed",value:function(e){e=this._handleResize(e),this._getTargetNode().style.maxHeight="",this._callback&&this._callback(e),this.emit("resize",e)}}]),t}(ut),op=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"update",value:function(e,t,n,r,o,i,a,l){var u,c,s=e._$cardResizer;o?(o="object"!==We(o)?{callback:i}:Object.assign(Object.assign({},o),{callback:i}),s?s.update(o):e._$cardResizer=new rp(t,n,r,o),a&&(null===(u=e._$cardResizer)||void 0===u||u.on("start",a)),l&&(null===(c=e._$cardResizer)||void 0===c||c.on("complete",l))):s&&(s.recoverHeight(),s.destroy(),e._$cardResizer=null)}},{key:"destroyResizer",value:function(e){e._$cardResizer&&(e._$cardResizer.destroy(),e._$cardResizer=null)}}]),e}();function ip(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ip=function(){return!!e})()}function ap(e){return function(e){function t(){var e;Ye(this,t);for(var n=arguments.length,r=new Array(n),o=0;on.max?r.style.height=n.max+"px":r.style.height=t+"px")}}}},{key:"_destroyResizer",value:function(){op.destroyResizer(this)}},{key:"getResizerConfig",value:function(){return null}},{key:"destroy",value:function(){this._destroyResizer(),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}function lp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lp=function(){return!!e})()}function up(e){return function(e){function t(){var e;Ye(this,t);for(var n=arguments.length,r=new Array(n),o=0;o
',this._engineBox=n.firstChild,this._scrollableOverlayNode=r.scrollableOverlayNode||this._engineBox.firstChild,this._domRootNode=this._engineBox.lastChild,this._domRootNode.contentEditable="true",this._domRootNode.spellcheck=!1,this._domRootNode.value="",this._domRootNode.selectionStart=0,this._domRootNode.selectionEnd=0,this._domRootNode.tabIndex=1,this._initOverlay(r),kc(this,this._domRootNode,"dragstart",(function(e){var t;(null===(t=e.target)||void 0===t?void 0:t.nodeType)===Node.TEXT_NODE&&e.preventDefault()})),this._documentListener=new wd(t,this._mountNode.ownerDocument)}return Ke(e,[{key:"iLayer",get:function(){return this}},{key:"_initOverlay",value:function(e){var t=e.globalOverlayNode,n=e.scrollableOverlayNode;t?this._globalOverlayNode=t:(this._globalOverlayNode=hd("div",{className:"ne-engine-global-overlay"}),document.body.appendChild(this._globalOverlayNode)),n?this._scrollableOverlayNode=n:(this._scrollableOverlayNode=hd("div",{className:"ne-engine-scrollable-overlay"}),this._mountNode.firstChild.appendChild(this._scrollableOverlayNode))}},{key:"destroy",value:function(){this._mountNode=null,this._domRootNode=null,this._documentListener.destroy(),this._documentListener=null}},{key:"domRootNode",get:function(){return this._domRootNode}},{key:"globalOverlayNode",get:function(){return this._globalOverlayNode}},{key:"scrollableOverlayNode",get:function(){return this._scrollableOverlayNode}}]),e}();function kp(e,t,n){e[t]=n}function Cp(e,t){return e[t]}function _p(e,t,n){e[t]=n}function Np(e,t){kp(e,"_neRef",t)}function Op(e,t){return e[t]}function xp(e){if(e)return Cp(e,"_neRef")}function Ep(e){var t=xp(e),n=Ap(e);if((null==n?void 0:n.getMainDOMNode())===e)return t}function Dp(e){return!!e&&Op(e,"_isRenderRootNode")}function Rp(e){if(e)return Op(e,"_modelNode")}function Pp(e){if(e)return Op(e,"_virtualNode")}function Sp(e){delete e._virtualNode}function Tp(e,t){_p(e,"_virtualNode",t)}function Ap(e){return Pp(xp(e))}function jp(e,t,n){return t=Qe(t),Xe(e,Ip()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ip(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ip=function(){return!!e})()}var Bp=function(e){function t(e,n){var r;return Ye(this,t),r=jp(this,t),Object.defineProperty(Je(r),"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_domRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_rootNodeObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_focused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(r),"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(Je(r),"_preventFocus",{enumerable:!0,configurable:!0,writable:!0,value:!1}),r._renderer=e,r._domRootNode=n,r._rootNodeObserver=new wd(e.id,n),e.on("preventFocus",(function(e){r._preventFocus=e})),r._rootNodeObserver.on("mousedown",(function(){r._disabled||r._focused||r._preventFocus||(r._focused=!0,r.emit("focus"))})),r._rootNodeObserver.on("selectionchange",(function(e){r._disabled&&(e.stopPropagation(),e.stopImmediatePropagation())})),r._rootNodeObserver.on("focusin",(function(e){r._disabled||r._focused||r._preventFocus||(r._focused=!0,r.emit("focus"))})),r._rootNodeObserver.on("focusout",(function(e){if(!r._disabled&&r._focused)if(e.relatedTarget){if(n.contains(e.relatedTarget))return;r._focused=!1,r.emit("blur"),r._checkNodeBlur()}else setTimeout((function(){document.activeElement&&n.contains(document.activeElement)||(r._focused=!1,r.emit("blur"))}))})),r}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._rootNodeObserver.destroy()}},{key:"disable",value:function(){this._disabled=!0}},{key:"enable",value:function(){this._disabled=!1}},{key:"focus",value:function(e){this.emit("forceFocus",e),e=Object.assign({preventScroll:!1},e);var t=document.getSelection(),n=this._renderer.engine.view.getViewSelection(),r=this._renderer.scrollNode,o=r.scrollTop,i=r.scrollHeight;e.preventScroll||Math.abs(i-this._renderer.scrollNode.getBoundingClientRect().height)<1&&(e.preventScroll=!0),this._domRootNode.focus({preventScroll:e.preventScroll});var a=this._renderer.toDOMRange(n.firstRange);t.removeAllRanges(),t.addRange(a),this._renderer.scrollNode.scrollTop=o,e.preventScroll||this._renderer.scrollToCurrentSelection(!0),this._checkNodeFocus()}},{key:"blur",value:function(){this._focused&&document.activeElement instanceof HTMLElement&&this._renderer.domRootNode.contains(document.activeElement)&&(document.activeElement.blur(),this._focused=!1,this.emit("blur"),this._checkNodeBlur())}},{key:"isDisabled",value:function(){return this._disabled}},{key:"isFocus",value:function(){return this._focused}},{key:"_checkNodeFocus",value:function(){var e,t=this._renderer.engine.view.getViewSelection(),n=t.firstRange.start.node;t.collapsed&&n.isCardNode()&&(null===(e=Pp(n))||void 0===e||e.$focus(!0))}},{key:"_checkNodeBlur",value:function(){var e,t=this._renderer.engine.view.getViewSelection(),n=t.firstRange.start.node;t.collapsed&&n.isCardNode()&&(null===(e=Pp(n))||void 0===e||e.$focus(!0))}}]),t}(ut),Mp=function(){function e(t){Ye(this,e),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var n=t.container;if(!n)throw new Error("please set a dom container!");this.options=Object.assign(Object.assign({limitHeight:5e3,canvasCache:[],hPadding:0,container:n},t),{limitWidth:n.offsetWidth-2*(t.hPadding||0)}),n.style.overflow="hidden"}return Ke(e,[{key:"_removeCanvas",value:function(){var e=this.options;e.canvasCache.forEach((function(e){var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)})),e.canvasCache=[]}},{key:"_getCanvas",value:function(e){var t=this.options;return t.canvasCache[e]||this._createCanvasToCount(e+1),t.canvasCache[e]}},{key:"_createCanvasToCount",value:function(e){var t=this.options,n=t.limitHeight,r=t.container,o=t.canvasCache;if(!(o.length>=e))for(var i=o.length;i1&&void 0!==arguments[1]?arguments[1]:{};Ye(this,e),Object.defineProperty(this,"_destroyed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_domRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_boxNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_drawer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"boxRect",{enumerable:!0,configurable:!0,writable:!0,value:null}),this._domRootNode=t,this._boxNode=document.createElement("div"),this._boxNode.className="ne-drawer-box",t.nextSibling?t.parentNode.insertBefore(this._boxNode,t.nextSibling):t.parentNode.appendChild(this._boxNode),this._drawer=new Mp({container:this._boxNode,hPadding:"number"==typeof n.hPadding?n.hPadding:60}),this.refresh()}return Ke(e,[{key:"insideViewport",value:function(e){return e>=this._drawer.options.hPadding&&e<=this._drawer.options.hPadding+this._drawer.options.limitWidth}},{key:"destroy",value:function(){var e;this._destroyed=!0,this._drawer.destroy(),null===(e=this._boxNode)||void 0===e||e.remove(),this._boxNode=null}},{key:"refresh",value:function(){this._destroyed||(this.boxRect=this._boxNode.getBoundingClientRect())}},{key:"drawRanges",value:function(e,t,n){var r=this;if(this._destroyed||!e.length)return[];var o=this.getDrawRanges(e,n);return o.forEach((function(e){e&&(r._drawRects(e.rects,t),e.style=t)})),o}},{key:"drawRects",value:function(e,t){this._destroyed||this._drawRects(e,t)}},{key:"clearRects",value:function(e){var t=this;this._destroyed||e.forEach((function(e){t._drawer.clearRect(e)}))}},{key:"clearAll",value:function(){this._destroyed||this._drawer.clear()}},{key:"_drawRects",value:function(e,t){var n=this;e.forEach((function(e){n._drawer.draw("Rect",Object.assign(Object.assign({},e),{fill:t&&t.fill,stroke:t&&t.stroke}))}))}},{key:"getDrawRanges",value:function(e,t){var n=this;return this.refresh(),e.map((function(e){var r=n.getRectByViewRange(e,t);if(!r||0===r.length)return null;var o=r[r.length-1].bottom-r[0].top;return{viewRange:e,rects:n.parseRectsCoordinate(r),viewHeight:o}})).filter((function(e){return!!e}))}},{key:"clear",value:function(){this._destroyed||this._drawer.clear()}}]),e}();function Lp(e,t,n){return Up(e,t,n).map((function(e){return function(e,t,n){var r=document.createRange();return r.setStart(e,t),r.setEnd(e,n),r.getBoundingClientRect()}(e.textNode,e.startOffset,e.endOffset)}))}function Up(e,t,n){kt(t0?n.node.children[n.offset-1]:null,a=!n.node.isTextNode();if(o===i&&a)e.push({node:o});else if(o&&(Zp(o)?e.push({node:o}):o.isTextNode()&&e.push({isText:!0,node:o,startOffset:r?0:t.offset,endOffset:o===i?n.offset:o.dataLength}),o!==i&&i)){if(!Zp(o)&&o.isElement()&&o.firstChild)return ev(e,o.firstChild,n);if(o.nextSibling)return ev(e,o.nextSibling,n);for(;o.parentNode;){if(o.parentNode.nextSibling)return ev(e,o.parentNode.nextSibling,n);o=o.parentNode}}}function tv(e){return e.start.node===e.end.node&&"td"===e.start.node.nodeName}function nv(e){var t,n;return(null===(n=(t=e.start.node).isCardNode)||void 0===n?void 0:n.call(t))&&0===e.start.offset}function rv(e){return e&&e.classList&&e.classList.contains("ne-b-filler")}function ov(e,t,n){return t=Qe(t),Xe(e,iv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function iv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iv=function(){return!!e})()}var av=function(e){function t(){return Ye(this,t),ov(this,t,arguments)}return et(t,e),Ke(t,[{key:"parseRectsCoordinate",value:function(e){var t=this;return e.map((function(e){return{x:e.x-t.boxRect.x,y:e.y-t.boxRect.y,width:e.width,height:e.height||20}}))}},{key:"getRectByViewRange",value:function(e){return zp(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}}]),t}(Fp);function lv(e){kt(e.isRootNode(),"framework/engine/src/renderer/viewport/render-controller/lib/common/destory-tree-by-root-node.ts:6"),e.children.reverse().forEach((function(e){uv(e)}))}function uv(e){e.isElement()&&e.children.reverse().forEach((function(e){uv(e)})),e.destroy()}var cv=[ze.Block,ze.Hole,ze.LikeRoot,ze.Table,ze.TableRow,"columns","column"],sv=[ze.Hole,ze.TableHole,ze.LikeRoot,ze.Table,ze.TableRow,ze.TableCell,"columns","column"],dv=25,fv=33.094,hv="trow",pv="tcell";function vv(e){if(!e.isRootNode()){var t=Pp(e);kt(t,"framework/engine/src/renderer/viewport/render-controller/lib/common/repair-by-view-node.ts:16"),t.repair(),t.isConnected||Pp(e.parentNode).insertByViewNode(e),e.isElement()&&e.children.forEach((function(e){Pp(e)&&vv(e)}))}}function mv(e){if(!e.isRootNode()){var t=Pp(e);kt(t,"framework/engine/src/renderer/viewport/render-controller/lib/common/repair-by-view-node.ts:43"),t.repair(),e.hasCategory(sv)||(t.isConnected||Pp(e.parentNode).insertByViewNode(e),e.isElement()&&e.children.forEach((function(e){Pp(e)&&mv(e)})))}}var gv=o(7168),bv=o.n(gv),yv=null;function wv(e,t){var n=t||{preventDefault:!1};if(e.Manager){var r=e,o=function(e,t){var o=Object.create(n);return t&&r.assign(o,t),wv(new r(e,o),o)};return r.assign(o,r),o.Manager=function(e,t){var o=Object.create(n);return t&&r.assign(o,t),wv(new r.Manager(e,o),o)},o}var i=Object.create(e),a=e.element;function l(e){return e.match(/[^ ]+/g)}function u(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var t=!1;e.stopPropagation=function(){t=!0};var n=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof n&&(e.srcEvent.stopPropagation=function(){n(),e.stopPropagation()}),e.firstTarget=yv;for(var r=yv;r&&!t;){var o=r.hammer;if(o)for(var i,a=0;a0?i._handlers[t]=r:(e.off(t,u),delete i._handlers[t]))})),i},i.emit=function(t,n){yv=n.target,e.emit(t,n)},i.destroy=function(){var t=e.element.hammer,n=t.indexOf(i);-1!==n&&t.splice(n,1),t.length||delete e.element.hammer,i._handlers={},e.destroy()},i}var kv={id:"id"},Cv=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"syncDOMNodeAttrs",value:function(e,t,n){_v(e,n).forEach((function(e){var n=e.type,r=e.name;n===bp.ATTR_NAME?t.setAttribute(r,e.value):n===bp.STYLE_NAME?t.style[r]=e.value:n===bp.CUSTOM_NAME&&e.value(t)}));try{t.dispatchEvent(new CustomEvent("ne-after-attr-update"))}catch(e){}}},{key:"syncDomNodeAttr",value:function(e,t,n,r){var o=Ov(e,n,r);if(o){var i=o.name;o.type===bp.ATTR_NAME?t.setAttribute(i,o.value):o.type===bp.STYLE_NAME?t.style[o.name]=o.value:o.type===bp.CUSTOM_NAME&&o.value(t)}}},{key:"updateDOMNodeAttrs",value:function(e,t,n,r){var o=Nv(e,n,r),i=o.updated,a=o.removed;i.forEach((function(e){var n=e.type,r=e.name,o=e.value;n===bp.ATTR_NAME?t.setAttribute(r,o):n===bp.STYLE_NAME?t.style[r]=o:n===bp.CUSTOM_NAME&&o(t)})),a.forEach((function(e){var n=e.type,r=e.name;n===bp.ATTR_NAME?t.removeAttribute(r):n===bp.STYLE_NAME?t.style[r]="":n===bp.CUSTOM_NAME&&e.remove(t)}));try{t.dispatchEvent(new CustomEvent("ne-after-attr-update"))}catch(e){}}},{key:"translateAll",value:function(e,t){return _v(e,t)}},{key:"translateChange",value:function(e,t,n){return Nv(e,t,n)}}]),e}();function _v(e,t){var n=[];return Object.keys(t).forEach((function(r){var o=Ov(e,r,t[r]);o&&n.push(o)})),n}function Nv(e,t,n){var r=[],o=[];return Object.keys(n).forEach((function(i){var a=n[i];if("remove"===a.type){var l=Ov(e,i,a.attrValue);l&&r.push(l)}else{var u=Ov(e,i,t[i]);u&&o.push(u)}})),{removed:r,updated:o}}function Ov(e,t,n){if(kv[t])return{type:bp.ATTR_NAME,name:kv[t],value:n};if(t.startsWith("data-"))return{type:bp.ATTR_NAME,name:t,value:n};var r=e.getAttrTranslator(t);return r?r.translate(t,n):null}var xv=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isAppear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_destroyed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_viewNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_parentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),kt("*"!==n.nodeName,"framework/engine/src/renderer/node/virtual-node.ts:34"),this.renderer=t,this._viewNode=n}return Ke(e,[{key:"init",value:function(){}},{key:"_init",value:function(){var e,t,n=this.getMainDOMNode(),r=this.getContentDOMNode();kp(n,"_viewNode",this._viewNode),kp(n,"_neRef",this._viewNode),kp(r,"_viewNode",this._viewNode),kp(r,"_neRef",this._viewNode),Dp(this._viewNode)&&(n.setAttribute("ne-role","render-unit"),null===(t=null===(e=this.renderer)||void 0===e?void 0:e.emit)||void 0===t||t.call(e,"renderUnitInited",{mainDOMNode:n,viewNode:this.viewNode}))}},{key:"$afterInit",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.$appear()}},{key:"$appear",value:function(){kt(!1===this._isAppear,"framework/engine/src/renderer/node/virtual-node.ts:77"),this._isAppear=!0}},{key:"$disappear",value:function(){kt(!0===this._isAppear,"framework/engine/src/renderer/node/virtual-node.ts:82"),this._isAppear=!1}},{key:"$afterRefresh",value:function(e){}},{key:"destroy",value:function(){this._isAppear=!1,this._destroyed=!0,this._domNode=null}},{key:"$focus",value:function(){}},{key:"$blur",value:function(){}},{key:"registry",get:function(){return this.renderer.registry}},{key:"isConnected",get:function(){var e=this.getMainDOMNode();if(!e||!e.isConnected)return!1;var t=this.getContentDOMNode();return!(!t||!t.isConnected)}},{key:"isDestroyed",get:function(){return this._destroyed}},{key:"iRenderer",get:function(){return this.renderer}},{key:"parentNode",get:function(){var e=this.getMainDOMNode();return Ap(null==e?void 0:e.parentNode)},set:function(e){throw new Error("xxx")}},{key:"nodeName",get:function(){return this._viewNode.nodeName}},{key:"viewNode",get:function(){return this._viewNode}},{key:"isAppear",get:function(){return this._isAppear}},{key:"offset",get:function(){var e=this.getMainDOMNode();return e&&e.parentNode?[].indexOf.call(e.parentNode.childNodes,e):-1}},{key:"previousSibling",get:function(){if(!this._parentNode)return null;var e=this._parentNode.children,t=e.indexOf(this);return kt(-1!==t,"framework/engine/src/renderer/node/virtual-node.ts:169"),e[t-1]||null}},{key:"nextSibling",get:function(){if(!this._parentNode)return null;var e=this._parentNode.children,t=e.indexOf(this);return kt(-1!==t,"framework/engine/src/renderer/node/virtual-node.ts:182"),e[t+1]||null}},{key:"isRootNode",value:function(){return!1}},{key:"isTextNode",value:function(){return!1}},{key:"isCardNode",value:function(){return!1}},{key:"isBoxNode",value:function(){return!1}},{key:"isElement",value:function(){return!1}},{key:"isFillerNode",value:function(){return!1}},{key:"isBlockFillerNode",value:function(){return!1}},{key:"isInlineFillerNode",value:function(){return!1}},{key:"isTextFillerNode",value:function(){return!1}},{key:"updateAttribute",value:function(e,t){this._domNode&&Cv.updateDOMNodeAttrs(this.registry,this._domNode,this._viewNode.attrs,e)}},{key:"repair",value:function(){}},{key:"getMainDOMNode",value:function(){return this._domNode}},{key:"getContentDOMNode",value:function(){return this._domNode}}]),e}();function Ev(e,t,n){return t=Qe(t),Xe(e,Dv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Dv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dv=function(){return!!e})()}var Rv=function(e){function t(){var e;return Ye(this,t),e=Ev(this,t,arguments),Object.defineProperty(Je(e),"_instance",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_cardRootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_focused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_isFirstAppear",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(Je(e),"_hasChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_callAppeared",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_hammerManager",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_hoverTimer",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(e),"_hovered",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"isCardNode",value:function(){return!0}},{key:"isFocused",value:function(){return this._focused}},{key:"init",value:function(){var e=this._viewNode,t=e.nodeName,n=e.attrs,r=this.registry.getCardClass(t);kt(r,"CardClass for ".concat(t," not registered"),"framework/engine/src/renderer/node/virtual-card-node.ts:42");var o=this._createContainer(t),i=o.container,a=o.cardRootNode;i.setAttribute("id",n.id),this._cardRootNode=a,this._domNode=i,kp(this._domNode,"_neRef",this._viewNode),Cv.syncDOMNodeAttrs(this.registry,this._domNode,this._viewNode.attrs),this._hammerManager=wv(new(bv().Manager)(this._cardRootNode))}},{key:"$afterInit",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._newInstance(),Cr(Qe(t.prototype),"$afterInit",this).call(this,e),this.$enableHover(),this.$enableClick(),this.$enableMousedown(),this.$enableTap(),this.$enableLongPress()}},{key:"$unCollapsed",value:function(){var e,t;null===(t=null===(e=this._instance)||void 0===e?void 0:e.$unCollapsed)||void 0===t||t.call(e),this._callAppeared&&this._isFirstAppear&&this.$appear()}},{key:"$appear",value:function(){var e,n;if(this._callAppeared=!0,!(null===(e=this._instance)||void 0===e?void 0:e.isInCollapsed)){Cr(Qe(t.prototype),"$appear",this).call(this);var r=this._isFirstAppear;this._isFirstAppear=!1,null===(n=this._instance)||void 0===n||n.$appear(r,this._hasChange)}}},{key:"$disappear",value:function(){var e;null===(e=this._instance)||void 0===e||e.$disappear(),Cr(Qe(t.prototype),"$disappear",this).call(this)}},{key:"_newInstance",value:function(){var e,t=this._viewNode.nodeName,n=this.registry.getCardClass(t);kt(n,"CardClass for ".concat(t," not registered"),"framework/engine/src/renderer/node/virtual-card-node.ts:97");var r=n.definition,o=n.pluginInstance;kt(r&&o,"framework/engine/src/renderer/node/virtual-card-node.ts:99"),this._instance="factory"in r?r.factory(this.renderer,this._viewNode,this._cardRootNode,o,r.pluginContext):new r(this.renderer,this._viewNode,this._cardRootNode,o),null===(e=this._instance)||void 0===e||e.init()}},{key:"$afterRefresh",value:function(e){var n;kt("boolean"==typeof e,"framework/engine/src/renderer/node/virtual-card-node.ts:123"),this._isAppear?this._hasChange=!1:this._hasChange=!0,null===(n=this._instance)||void 0===n||n.$didUpdate(e),Cr(Qe(t.prototype),"$afterRefresh",this).call(this)}},{key:"$disable",value:function(){this._disabled=!0,this._domNode&&this._domNode.classList.add("ne-card-mask")}},{key:"$enable",value:function(){this._disabled=!1,this._domNode&&this._domNode.classList.remove("ne-card-mask")}},{key:"$enableHover",value:function(){var e=this;this._cardRootNode&&(kc(this,this._cardRootNode,"mouseenter",(function(t){e.$mouseenter(t),e._hoverTimer=window.setTimeout((function(){e.$hover()}),200)})),kc(this,this._cardRootNode,"mouseleave",(function(){e._hoverTimer&&clearTimeout(e._hoverTimer),e.$leave()})))}},{key:"$enableClick",value:function(){var e=this;this._cardRootNode&&kc(this,this._cardRootNode,"click",(function(t){e.$click(t)}))}},{key:"$enableMousedown",value:function(){var e=this;this._cardRootNode&&kc(this,this._cardRootNode,"mousedown",(function(t){e.$mousedown(t)}))}},{key:"$enableLongPress",value:function(){var e=this;this._cardRootNode&&md(this,this._cardRootNode,(function(){e.$longPress()}))}},{key:"$enableTap",value:function(){var e=this;this._cardRootNode&&this._hammerManager&&(this._hammerManager.add(new(bv().Tap)),this._hammerManager.on("tap",(function(t){e.$tap(t)})))}},{key:"$longPress",value:function(){var e;this._disabled||null===(e=this._instance)||void 0===e||e._$longPress()}},{key:"$click",value:function(e){var t;this._disabled||null===(t=this._instance)||void 0===t||t._$click(e)}},{key:"$mouseenter",value:function(e){var t;this._disabled||null===(t=this._instance)||void 0===t||t._$mouseenter(e)}},{key:"$mousedown",value:function(e){var t;this._disabled||null===(t=this._instance)||void 0===t||t._$mousedown(e)}},{key:"$tap",value:function(e){var t;this._disabled||null===(t=this._instance)||void 0===t||t._$tap(e)}},{key:"$hover",value:function(){var e;this._disabled||(this._domNode&&this._domNode.classList.add("ne-card-hovered"),null===(e=this._instance)||void 0===e||e._$hover(),this._hovered=!0)}},{key:"$leave",value:function(){this._instance&&!this._disabled&&this._hovered&&(this._domNode&&this._domNode.classList.remove("ne-card-hovered"),this._instance._$leave(),this._hovered=!1)}},{key:"$focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._instance&&(this._disabled||e&&!this._instance.constructor.$ExternalFocus||(this._instance._$beforeFocus(),this._focused=!0,this._instance.$focus(),this._instance._$afterFocus()))}},{key:"$blur",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._disabled&&this._instance){if(e&&!this._instance.constructor.$ExternalFocus)return;this._instance._$beforeBlur(),this._focused=!1,this._instance.$blur()}}},{key:"destroy",value:function(){var e;this._instance&&(this._instance.destroy(),this._instance._$destroy(),this._instance=null),null===(e=this._hammerManager)||void 0===e||e.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(xv);function Pv(e,t,n){return t=Qe(t),Xe(e,Sv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Sv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sv=function(){return!!e})()}Object.defineProperty(Rv,"$ExternalFocus",{enumerable:!0,configurable:!0,writable:!0,value:!1});var Tv=function(e){function t(){return Ye(this,t),Pv(this,t,arguments)}return et(t,e),Ke(t,[{key:"_createContainer",value:function(e){var t=document.createElement("ne-card"),n=document.createElement("ne-card-root");return t.setAttribute("data-card-name",e),t.setAttribute("data-card-type","block"),t.contentEditable="false",t.appendChild(n),{cardRootNode:n,container:t}}}]),t}(Rv);function Av(e,t,n){return t=Qe(t),Xe(e,jv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function jv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jv=function(){return!!e})()}var Iv=function(e){function t(){return Ye(this,t),Av(this,t,arguments)}return et(t,e),Ke(t,[{key:"isFillerNode",value:function(){return!0}},{key:"isBlockFillerNode",value:function(){return!0}},{key:"init",value:function(){this._domNode=document.createElement("span"),this._domNode.className="ne-b-filler",this._domNode.appendChild(document.createElement("br"))}},{key:"$afterRefresh",value:function(){this._repair()}},{key:"repair",value:function(){this._repair()}},{key:"_repair",value:function(){var e;this._domNode&&(1===this._domNode.childNodes.length&&"BR"===(null===(e=this._domNode.firstChild)||void 0===e?void 0:e.nodeName)||(this._domNode.innerHTML="
"))}}]),t}(xv);function Bv(e,t){var n=Pp(t);kt(n&&!n.isDestroyed,"framework/engine/src/renderer/node/helper/insert-by-view-node.ts:22"),Mv(e.getContentDOMNode(),t,n.getMainDOMNode())}function Mv(e,t,n){if(Array.from(e.childNodes).forEach((function(e){xp(e)||e.remove()})),0!==e.childNodes.length){var r=Ap(e),o=t.previousSibling,i=t.nextSibling,a=Pp(i),l=Pp(o);if(i&&a&&a.parentNode===r){var u=a.getMainDOMNode();u.previousSibling!==n&&e.insertBefore(n,u),function(e,t){var n=t.previousSibling;if(n){var r=Ap(e),o=Pp(n),i=Pp(t);o&&(null==o?void 0:o.isConnected)&&(null==o?void 0:o.parentNode)===r&&Lv(o)>Lv(i)&&Mv(e,n,o.getMainDOMNode())}}(e,t)}else if(o&&l&&l.parentNode===r){var c=l.getMainDOMNode();if(c.nextSibling)c.nextSibling!==n&&e.insertBefore(n,c.nextSibling),function(e,t){var n=t.nextSibling;if(n){var r=Ap(e),o=Pp(n),i=Pp(t);o&&o.isConnected&&o.parentNode===r&&Lv(o)-1,"framework/engine/src/renderer/node/helper/insert-by-view-node.ts:228"),t}function Uv(e,t,n){return t=Qe(t),Xe(e,Vv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Vv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vv=function(){return!!e})()}var Hv=function(e){function t(){return Ye(this,t),Uv(this,t,arguments)}return et(t,e),Ke(t,[{key:"children",get:function(){var e=this.getContentDOMNode();return e?(kt(e,"framework/engine/src/renderer/node/virtual-container-node.ts:18"),Array.from(e.childNodes).map((function(e){var t=xp(e);return t?Pp(t):null})).filter(Boolean)):[]}},{key:"insertByViewNode",value:function(e){Bv(this,e)}},{key:"repair",value:function(){var e=this.getContentDOMNode();e&&Array.from(e.childNodes).forEach((function(e){xp(e)||e.remove()}))}},{key:"removeChild",value:function(e){this.getContentDOMNode().removeChild(e.getMainDOMNode())}}]),t}(xv);function zv(e,t,n){return t=Qe(t),Xe(e,Wv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wv=function(){return!!e})()}var qv=function(e){function t(){var e;return Ye(this,t),e=zv(this,t,arguments),Object.defineProperty(Je(e),"_instance",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_isFirstAppear",{enumerable:!0,configurable:!0,writable:!0,value:!0}),e}return et(t,e),Ke(t,[{key:"isBoxNode",value:function(){return!0}},{key:"isElement",value:function(){return!0}},{key:"init",value:function(){this._newInstance()}},{key:"$afterInit",value:function(){var e;null===(e=this._instance)||void 0===e||e._afterInit(),Cr(Qe(t.prototype),"$afterInit",this).call(this,!0)}},{key:"$appear",value:function(){var e;Cr(Qe(t.prototype),"$appear",this).call(this);var n=this._isFirstAppear;this._isFirstAppear=!1,null===(e=this._instance)||void 0===e||e.$appear(n)}},{key:"$disappear",value:function(){var e;null===(e=this._instance)||void 0===e||e.$disappear(),Cr(Qe(t.prototype),"$disappear",this).call(this)}},{key:"$afterRefresh",value:function(e){var n;kt("boolean"==typeof e,"framework/engine/src/renderer/node/virtual-box-node.ts:46"),Cr(Qe(t.prototype),"$afterRefresh",this).call(this),null===(n=this._instance)||void 0===n||n.$didUpdate(e)}},{key:"destroy",value:function(){var e,n,r,o;null===(e=this._instance)||void 0===e||e.destroy(),null===(n=this._instance)||void 0===n||n._$destroy(),this._ui&&(null===(o=(r=this._ui).destroy)||void 0===o||o.call(r)),Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"updateAttribute",value:function(e,t){var n;kt(this._instance,"framework/engine/src/renderer/node/virtual-box-node.ts:61"),null===(n=this._instance)||void 0===n||n.updateAttribute(Cv.translateChange(this.registry,this._viewNode.attrs,e),e,t)}},{key:"_newInstance",value:function(){var e,t=this._viewNode,n=this.registry.getBoxDefinition(t.nodeName),r=this.registry.getBoxUIDefinition(t.nodeName);if(n){if(kt("clazz"in n||"factory"in n,"framework/engine/src/renderer/node/virtual-box-node.ts:83"),this._instance="clazz"in n?new n.clazz(this.renderer,t,t.nodeName,n.pluginContext):n.factory(this.renderer,t,t.nodeName,n.pluginContext),null===(e=this._instance)||void 0===e||e.init(Cv.translateAll(this.registry,t.attrs)),this._domNode=this._instance.getMainDOMNode(),Np(this._domNode,t),r&&"factory"in r)try{this._ui=r.factory(this._instance,t,this.renderer)}catch(e){console.warn(e)}}else console.warn("failed to create box-instance",t.nodeName)}},{key:"repair",value:function(){var e,t;null===(t=null===(e=this._instance)||void 0===e?void 0:e.repair)||void 0===t||t.call(e)}},{key:"getMainDOMNode",value:function(){return this._domNode}},{key:"getContentDOMNode",value:function(){return this._instance.getContentDOMNode()}}]),t}(Hv);function $v(e,t,n){return t=Qe(t),Xe(e,Kv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Kv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kv=function(){return!!e})()}var Yv=function(e){function t(){return Ye(this,t),$v(this,t,arguments)}return et(t,e),Ke(t,[{key:"isElement",value:function(){return!0}},{key:"init",value:function(){var e=this._viewNode;this._domNode=document.createElement("ne-".concat(cf(this.nodeName))),Np(this._domNode,e),Cv.syncDOMNodeAttrs(this.registry,this._domNode,e.attrs)}}]),t}(Hv);function Gv(e,t,n){return t=Qe(t),Xe(e,Jv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Jv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jv=function(){return!!e})()}var Xv=function(e){function t(){return Ye(this,t),Gv(this,t,arguments)}return et(t,e),Ke(t,[{key:"_createContainer",value:function(e){var t=document.createElement("ne-card"),n=document.createElement("ne-card-root");return t.setAttribute("data-card-name",e),t.setAttribute("data-card-type","inline"),t.contentEditable="false",t.appendChild(n),{cardRootNode:n,container:t}}}]),t}(Rv);function Qv(e,t,n){return t=Qe(t),Xe(e,Zv()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Zv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zv=function(){return!!e})()}var em=function(e){function t(){return Ye(this,t),Qv(this,t,arguments)}return et(t,e),Ke(t,[{key:"isFillerNode",value:function(){return!0}},{key:"isInlineFillerNode",value:function(){return!0}},{key:"init",value:function(){var e=document.createElement("span");e.className="ne-i-filler",e.appendChild(document.createElement("br")),this._domNode=e,Np(this._domNode,this._viewNode)}},{key:"$afterRefresh",value:function(){this._repair()}},{key:"repair",value:function(){this._repair()}},{key:"_repair",value:function(){var e;this._domNode&&(1===this._domNode.childNodes.length&&"BR"===(null===(e=this._domNode.firstChild)||void 0===e?void 0:e.nodeName)||(this._domNode.innerHTML="
"))}}]),t}(xv);function tm(e,t,n){return t=Qe(t),Xe(e,nm()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function nm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nm=function(){return!!e})()}var rm=function(e){function t(){return Ye(this,t),tm(this,t,arguments)}return et(t,e),Ke(t,[{key:"isFillerNode",value:function(){return!0}},{key:"isTextFillerNode",value:function(){return!0}},{key:"init",value:function(){var e=document.createElement("span");e.className="ne-t-filler",e.innerHTML="\ufeff",this._domNode=e,Np(this._domNode,this._viewNode)}},{key:"$afterRefresh",value:function(){this._repair()}},{key:"repair",value:function(){this._repair()}},{key:"_repair",value:function(){1===this._domNode.childNodes.length&&"\ufeff"===this._domNode.firstChild.data||(this._domNode.innerHTML="\ufeff")}}]),t}(xv);function om(e,t,n){return t=Qe(t),Xe(e,im()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function im(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(im=function(){return!!e})()}var am=function(e){function t(){var e;return Ye(this,t),e=om(this,t,arguments),Object.defineProperty(Je(e),"_textNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;this._domNode=document.createElement("ne-text"),this._textNode=document.createTextNode(""),this._domNode.appendChild(this._textNode),Np(this._domNode,this._viewNode),this._updateTextData(),Cv.syncDOMNodeAttrs(this.registry,this._domNode,this._viewNode.attrs),jc(this,this.renderer.theme,"themeChange",(function(){if(e._domNode){var t=e._viewNode.attrs;t.color&&Cv.syncDomNodeAttr(e.registry,e._domNode,"color",t.color),t.bgColor&&Cv.syncDomNodeAttr(e.registry,e._domNode,"bgColor",t.bgColor)}}))}},{key:"isConnected",get:function(){var e,t;return!!(null===(e=this._domNode)||void 0===e?void 0:e.isConnected)&&!!(null===(t=this._textNode)||void 0===t?void 0:t.isConnected)}},{key:"isTextNode",value:function(){return!0}},{key:"updateTextData",value:function(){this._updateTextData()}},{key:"repair",value:function(){this._updateTextData(),1===this._domNode.childNodes.length&&this._domNode.firstChild===this._textNode||(this._domNode.innerHTML="",this._domNode.appendChild(this._textNode))}},{key:"_updateTextData",value:function(){var e=this._viewNode.data;this._textNode.data!==e&&(this._textNode.data=e||"")}}]),t}(xv);function lm(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];kt(!Pp(t),"framework/engine/src/renderer/viewport/printer/helpers/create-by-view-node.ts:23");var r=function(e,t){return t.isTextNode()?new am(e,t):t.isBlockCardNode()?new Tv(e,t):t.isInlineCardNode()?new Xv(e,t):e.registry.isBoxNode(t.nodeName)?new qv(e,t):t.isTextFillerNode()?new rm(e,t):t.isBlockFillerNode()?new Iv(e,t):t.isInlineFillerNode()?new em(e,t):(kt(t.isElement(),"framework/engine/src/renderer/viewport/printer/helpers/create-by-view-node.ts:70"),new Yv(e,t))}(e,t);Tp(t,r),r.init(),r._init(),Pp(t.parentNode).insertByViewNode(t),r.$afterInit(n)}function um(e){return e.slice().sort((function(e,t){var n=e.compare(t);return kt(!n.equal,"framework/engine/src/renderer/viewport/printer/helpers/sort-view-node.ts:8"),n.contains||n.preceding?-1:1}))}var cm=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"destroyByViewNodes",value:function(e){e.forEach((function(e){var t=Pp(e);t&&!t.isDestroyed&&(Sp(e),t.getMainDOMNode().remove(),t.destroy())}))}},{key:"createByViewNodes",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(t=um(t)).forEach((function(t){Pp(t)||lm(e,t,n)}))}},{key:"attachTreeByViewNode",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];kt(Dp(t),"framework/engine/src/renderer/viewport/printer/index.ts:63"),t.ancestors.slice(1).filter((function(e){var t=Pp(e);return!t||!t.isConnected})).concat(sm(t)).forEach((function(r){Pp(r)?(t===r&&e.repairByViewNode(r),Pp(r.parentNode).insertByViewNode(r)):lm(e,r,n)}))}},{key:"forceAttachTreeByViewNode",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];kt(Dp(t),"framework/engine/src/renderer/viewport/printer/index.ts:99"),t.ancestors.slice(1).concat(sm(t)).forEach((function(r){Pp(r)?(t===r&&e.repairByViewNode(r),Pp(r.parentNode).insertByViewNode(r)):lm(e,r,n)}))}},{key:"forceAttachTreeByViewNodeNotRenderChildren",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.ancestors.slice(1);r=n?r.concat(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(e),e.isElement()&&!e.hasCategory([ze.LikeRoot])&&e.children.forEach((function(e){sm(e,t)})),t}(t)):r.concat(sm(t)),r.forEach((function(n){Pp(n)?(t===n&&e.repairByViewNode(n),Pp(n.parentNode).insertByViewNode(n)):lm(e,n,!0)}))}},{key:"updateTextByViewNodes",value:function(e){e.forEach((function(e){var t=Pp(e);kt(t&&t.isTextNode(),"framework/engine/src/renderer/viewport/printer/index.ts:165"),t.updateTextData()}))}},{key:"updateAttrByAttrChanges",value:function(e,t){e.forEach((function(e){var n=e.node,r=e.attrs,o=Pp(n);kt(o,"framework/engine/src/renderer/viewport/printer/index.ts:183"),o.updateAttribute(r,t),o.$afterRefresh(t)}))}},{key:"resetPosition",value:function(e,t,n,r){t.forEach((function(e){kt(e.isConnected,"framework/engine/src/renderer/viewport/printer/index.ts:197"),Pp(e.parentNode).insertByViewNode(e),r(e)&&Pp(e).$afterRefresh(n)}))}}]),e}();function sm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(e),e.isElement()&&e.children.forEach((function(e){sm(e,t)})),t}function dm(e,t,n){if(t){var r=t.attrChanges;cm.updateAttrByAttrChanges(r,n)}}function fm(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=n.addedNodes,a=n.textChanges,l=n.attrChanges,u=n.positionChanges,c=t.viewNode.ancestors;cm.updateTextByViewNodes(a),cm.updateAttrByAttrChanges(l,r);for(var s=c.length-1;s>=1;s--)Pp(c[s])||i.unshift(c[s]);cm.createByViewNodes(e,i,o),cm.resetPosition(e,u,r,(function(e){return!l.includes(e)}))}function hm(e,t){if(e.isRootNode())return e.children[t]||e.children[t-1];for(var n=e;n;){var r=n.parentNode;if(null==r?void 0:r.isRootNode())return n;n=r}kt(!1,"framework/engine/src/renderer/viewport/render-controller/lib/common/get-point-node.ts:23")}var pm=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"renderByChanges",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=t.removedNodes,i=t.addedNodes,a=t.textChanges,l=t.attrChanges,u=t.positionChanges,c=e.renderUnitManager,s=e.renderer;cm.destroyByViewNodes(o);var d=new Set;new Set([].concat(pn(i),pn(l.map((function(e){return e.node}))),pn(a),pn(u))).forEach((function(e){var t=c.getRenderUnitWithAncestor(e);t&&d.add(t)}));var f=vm(c,a.map((function(e){return{viewNode:e,payload:e}}))),h=vm(c,l.map((function(e){return{viewNode:e.node,payload:e}}))),p=function(e){var t=e.addedNodeMap,n=e.attrChangesMap,r=e.textChangesMap,o=e.positionChangesMap;return function(e){return{addedNodes:Array.from(t.get(e)||[]),textChanges:Array.from(r.get(e)||[]),attrChanges:Array.from(n.get(e)||[]),positionChanges:Array.from(o.get(e)||[])}}}({addedNodeMap:vm(c,i.map((function(e){return{viewNode:e,payload:e}}))),attrChangesMap:h,textChangesMap:f,positionChangesMap:vm(c,u.map((function(e){return{viewNode:e,payload:e}})))});Array.from(d).sort((function(e,t){var n=e.viewNode,r=t.viewNode,o=n.compare(r);return o.following||o.containedBy||o.contains?1:(kt(o.preceding,"framework/engine/src/renderer/viewport/render-controller/lib/common/general-render-helper/index.ts:115"),-1)})).forEach((function(e){fm(s,e,p(e),n,r)})),dm(0,p("*"),n)}},{key:"repairByViewNode",value:function(e){return vv(e)}},{key:"repairByViewRanges",value:function(t){var n=new Set;t.forEach((function(e){var t=e.start,r=e.end,o=hm(t.node,t.offset),i=hm(r.node,r.offset);if(o)do{if(n.add(o),o===i)return;o=o.nextSibling}while(o)})),n.forEach((function(t){e.repairByViewNode(t)}))}}]),e}();function vm(e,t){var n=new Map;return t.forEach((function(t){var r=t.viewNode,o=t.payload,i=e.getRenderUnitWithAncestor(r);i||(i="*"),n.has(i)||n.set(i,new Set),n.get(i).add(o)})),n}function mm(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.isDirty();if(t.unmarkDirty(),r)return cm.forceAttachTreeByViewNode(e,t.viewNode,n),!0;var o=!t._virtualNode;return t.isConnected||cm.attachTreeByViewNode(e,t.viewNode,n),o}function gm(e,t){for(var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.renderer,o=t;o;)mm(r,o,n),o=o.nextUnit}var bm="start",ym="end",wm="topRight",km="bottomLeft";function Cm(e,t){var n=_m(e,t.start),r=n;t.collapsed||(r=_m(e,t.end));var o=document.createRange();return o.setStart(n.node,n.offset),o.setEnd(r.node,r.offset),o}function _m(e,t){var n=t.node,r=t.offset,o=Pp(n);if(kt(o,"framework/engine/src/renderer/viewport/helpers/to-dom-range.ts:34"),o.isConnected||(console.warn("选区映射修复 1",o),Nm(e,o)),kt(o.isConnected,"framework/engine/src/renderer/viewport/helpers/to-dom-range.ts:41"),n.isTextNode())return{node:o.getContentDOMNode().firstChild,offset:r};if(n.isFillerNode())return{node:o.getMainDOMNode(),offset:r};if(n.isCardNode())return kt(0===t.offset,"framework/engine/src/renderer/viewport/helpers/to-dom-range.ts:58"),{node:o.getMainDOMNode(),offset:0};kt(n.isElement(),"framework/engine/src/renderer/viewport/helpers/to-dom-range.ts:66");var i=n,a=i.getChildByOffset(r),l=0;if(a||(a=i.getChildByOffset(r-1),l=1),!a)return kt(0===r&&n.hasCategory([ze.Root,ze.LikeRoot,ze.TextContainer]),"framework/engine/src/renderer/viewport/helpers/to-dom-range.ts:79"),{node:Pp(n).getMainDOMNode(),offset:0};kt(a,"framework/engine/src/renderer/viewport/helpers/to-dom-range.ts:94");var u=Pp(a);return kt(u,"framework/engine/src/renderer/viewport/helpers/to-dom-range.ts:100"),u.isConnected||(console.warn("选区映射修复 2",o),Nm(e,u)),kt(u.isConnected,"framework/engine/src/renderer/viewport/helpers/to-dom-range.ts:107"),{node:u.getMainDOMNode().parentNode,offset:u.offset+l}}function Nm(e,t){for(var n=t.viewNode,r=n.parentNode;r&&!r.isRootNode()&&!Pp(r).isConnected;){var o=r.parentNode;if(o.isRootNode())break;r=o}r?(r.isRootNode()?e.repairByViewNode(n):e.repairByViewNode(r),t.isConnected?console.log("修复成功",t):console.warn("修复失败,修复结果不符合预期",t,r)):console.warn("修复失败,未找到有效的节点",t)}var Om=110,xm=94,Em=10;function Dm(e){var t=e.getBoundingClientRect();return Object.assign(Object.assign({},t),{top:0,left:0,bottom:t.height,right:t.width})}function Rm(e){var t=e.getBoundingClientRect();if(t.height>0)return t;var n=e.startContainer,r=e.startOffset;return n.nodeType===Node.TEXT_NODE?function(e,t){if(e.data.length){var n=document.createRange();return 0===t?(n.setStart(e,0),n.setEnd(e,1)):(n.setStart(e,t-1),n.setEnd(e,t)),n.getBoundingClientRect()}kt(0===Dd(e),"framework/engine/src/renderer/viewport/helpers/scroll-to-view-selection-for-read-write.ts:182");var r=e.parentNode.getBoundingClientRect();return r.height?r:e.parentNode.parentNode.getBoundingClientRect()}(n,r):function(e,t){var n=(e.childNodes[t-1]||e.childNodes[t]||e).getBoundingClientRect();return{top:n.top,bottom:n.bottom,height:1}}(n,r)}var Pm=110;function Sm(e,t,n,r){var o,i;if(n===document.documentElement||(null===(i=null===(o=document.documentElement)||void 0===o?void 0:o.classList)||void 0===i?void 0:i.contains("layout-read-write")))return function(e,t,n,r){var o=r.firstRange;if(t)!function(e,t,n){var r=n===(bm||wm),o=r?{node:t.startContainer,offset:t.startOffset}:{node:t.endContainer,offset:t.endOffset};(t=t.cloneRange()).setStart(o.node,o.offset),t.collapse(!0);var i=Dm(e),a=Rm(t),l=a.top,u=a.bottom;if(!(l<=i.top&&u>=i.bottom))if(r)li.bottom)return void(e.scrollTop+=u-i.bottom);if(ui.bottom?e.scrollTop-=i.bottom-u:e.scrollTop-=c}}}(n,Cm(e,o),r.focus);else{if(r.isTableSelection)return;!function(e,t){var n=Dm(e),r=Rm(t);if(!(r.height>n.height)){var o=function(e,t){return t.tope.bottom-Om?t.bottom-e.bottom+Om:null}(n,r);null!==o&&e.scrollTop+e.offsetHeight+o=i.bottom))if(r)li.bottom)return void(e.scrollTop+=u-i.bottom);if(ui.bottom?e.scrollTop-=i.bottom-u:e.scrollTop-=c}}}(n,Cm(e,a),r.focus);else{if(r.isTableSelection)return;!function(e,t){var n=e.getBoundingClientRect(),r=Tm(t);if(!(r.height>n.height)){var o=function(e,t){var n;if(t.topo-i?t.bottom-o+i:null}(n,r);null!==o&&e.scrollTop+e.offsetHeight+o0)return t;var n=e.startContainer,r=e.startOffset;return n.nodeType===Node.TEXT_NODE?function(e,t){if(e.data.length){var n=document.createRange();return 0===t?(n.setStart(e,0),n.setEnd(e,1)):(n.setStart(e,t-1),n.setEnd(e,t)),n.getBoundingClientRect()}kt(0===Dd(e),"framework/engine/src/renderer/viewport/helpers/scroll-to-view-selection.ts:195");var r=e.parentNode.getBoundingClientRect();return r.height?r:e.parentNode.parentNode.getBoundingClientRect()}(n,r):function(e,t){var n=(e.childNodes[t]||e.childNodes[t-1]||e).getBoundingClientRect();return{top:n.top,bottom:n.bottom,height:1}}(n,r)}var Am=function(){function e(t,n,r,o){var i=this;Ye(this,e),Object.defineProperty(this,"_viewport",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_editDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_scrollNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_engineOption",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_firstRendered",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"requestSetScrollTo",{enumerable:!0,configurable:!0,writable:!0,value:function(e){i._viewport.renderer.scrollNode.scrollTop=e}}),this._viewport=t,this._editDOMNode=n,this._scrollNode=r,this._engineOption=o}return Ke(e,[{key:"destroy",value:function(){lv(this._viewport.virtualRootNode),this._viewport=null,this._editDOMNode=null,this._scrollNode=null}},{key:"applyContentChange",value:function(e,t,n){if(!this._firstRendered)return this._firstRender();pm.renderByChanges(this._viewport,e,n,!this._engineOption.allowCardLazyInit)}},{key:"applySelectionChange",value:function(){}},{key:"repairByViewNode",value:function(e){pm.repairByViewNode(e)}},{key:"repairByViewRange",value:function(e){pm.repairByViewRanges([e])}},{key:"repairByViewRanges",value:function(e){pm.repairByViewRanges(e)}},{key:"scrollToSelection",value:function(e,t){var n=this._viewport.renderer;Sm(n,e,n.scrollNode,t)}},{key:"scrollByNodeId",value:function(e){var t=document.getElementById(e);if(t){var n=t.getBoundingClientRect(),r=this._scrollNode.getBoundingClientRect();this._scrollNode.scrollTop=n.top-r.top}}},{key:"_firstRender",value:function(){kt(!this._firstRendered,"framework/engine/src/renderer/viewport/render-controller/lib/general-render-controller/index.ts:90"),this._firstRendered=!0;var e=this._viewport,t=e.renderUnitManager.getFirstRenderUnitByViewNode(e.viewRootNode);gm(this._viewport,t,!this._engineOption.allowCardLazyInit),this._viewport.renderer.emit("generalRenderCompleted")}},{key:"repaintByScroll",value:function(){}}]),e}();function jm(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.viewport,a=i.renderUnitManager,l=i.renderer,u=t.removedNodes,c=t.addedNodes,s=t.textChanges,d=t.attrChanges,f=t.positionChanges;cm.destroyByViewNodes(u),r=s,cm.updateTextByViewNodes(r.filter((function(e){return Pp(e)}))),function(e,t){cm.updateAttrByAttrChanges(e.filter((function(e){return Pp(e.node)})),t)}(d,n),function(e,t,n,r,o,i,a){var l=new Set,u=new Set;n.forEach((function(e){var n=t.getRenderUnitWithAncestor(e);if(!n)return!1;n.markDirty(),l.add(n)})),r.forEach((function(e){var n=t.getRenderUnitWithAncestor(e);kt(n,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/helpers/apply-changes.ts:103"),n.viewNode!==e&&n.isConnected?u.add(e):(n.markDirty(),l.add(n))})),l.forEach((function(t){mm(e,t,a)})),cm.resetPosition(e,u,o,(function(e){return!d.includes(e)}))}(l,a,c,f,n,0,o)}var Im=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_originUnit",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_head",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_tail",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_topHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bottomHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_units",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._originUnit=t,this._head=t.prevUnit,this._tail=t.nextUnit,this._units.push(t)}return Ke(e,[{key:"originUnit",get:function(){return this._originUnit}},{key:"getAllUnits",value:function(){return pn(this._units)}},{key:"prev",value:function(){if(!this._head||this._topHeight>=e.SCREEN_HEIGHT)return null;var t=this._head;return this._units.unshift(t),this._head=this._head.prevUnit,t}},{key:"next",value:function(){if(!this._tail||this._bottomHeight>=2*e.SCREEN_HEIGHT)return null;var t=this._tail;return this._units.push(t),this._tail=this._tail.nextUnit,t}},{key:"addTopHeight",value:function(e){this._topHeight+=e}},{key:"addBottomHeight",value:function(e){this._bottomHeight+=e}}]),e}();function Bm(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=e.renderUnitManager,i=t.firstRange,a=t.lastRange,l=t.collapsed,u=function(e,t){var n=t.node,r=t.offset,o=n;return n.isElement()&&(o=n.getChildByOffset(r)||n),kt(o,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/helpers/render-cursor.ts:77"),e.getFirstRenderUnitByViewNode(o)}(o,i.start);kt(u,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/helpers/render-cursor.ts:21"),l||(n=function(e,t){var n=t.node,r=t.offset,o=n;return n.isElement()&&(o=n.getChildByOffset(r-1)||n),kt(o,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/helpers/render-cursor.ts:92"),e.getLastRenderUnitByViewNode(o)}(o,a.end),kt(n,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/helpers/render-cursor.ts:25"),n===u&&(n=null));var c=function(){for(var e=new Set,t=arguments.length,n=new Array(t),r=0;r0,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/helpers/get-first-visible-view-node.ts:75"),1===n.length)return n[0];var r=Math.floor(n.length/2),o=n[r],i=o.getBoundingClientRect();if(0===i.height&&0===i.width)return Fm(e,t,[].concat(pn(n.slice(0,r)),pn(n.slice(r+1))));if(i.bottom<=e){var a=n.slice(r+1);return 0===a.length?o:Fm(e,t,a)}if(i.top>=t){var l=n.slice(0,r);return 0===l.length?o:Fm(e,t,l)}return o}Object.defineProperty(Im,"SCREEN_HEIGHT",{enumerable:!0,configurable:!0,writable:!0,value:Math.max(window.screen.availHeight||window.outerHeight||window.screen.height||1e3,1e3)});var Lm=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},Um=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"_processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originUnit",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_topUnit",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bottomUnit",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_topContinue",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_bottomContinue",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_forceAppear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_originTopPos",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_hasDone",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._processor=t,this._originUnit=n,this._topUnit=n,this._bottomUnit=n,this._renderer=t._viewport.renderer,this._originTopPos=n.getDisplayRect().top,this._forceAppear=r}return Ke(e,[{key:"isDone",get:function(){return this._hasDone}},{key:"stop",value:function(){this._stopped=!0,this._processor=null,this._originUnit=null,this._topUnit=null,this._bottomUnit=null,this._renderer=null,this._topContinue=!1,this._bottomContinue=!1}},{key:"start",value:function(e){this._processor.isAllTileReady()||Lm(this,void 0,void 0,Sc().mark((function t(){return Sc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("up"!==e){t.next=11;break}return t.next=3,this._renderUp();case 3:if(t.t0=t.sent,!t.t0){t.next=8;break}return t.next=7,this._renderDown();case 7:t.t0=t.sent;case 8:this._hasDone=t.t0,t.next=19;break;case 11:return t.next=13,this._renderDown();case 13:if(t.t1=t.sent,!t.t1){t.next=18;break}return t.next=17,this._renderUp();case 17:t.t1=t.sent;case 18:this._hasDone=t.t1;case 19:this._hasDone&&this._processor.setAllTileReady();case 20:case"end":return t.stop()}}),t,this)})))}},{key:"_renderUp",value:function(){return Lm(this,void 0,void 0,Sc().mark((function e(){var t=this;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){requestAnimationFrame((function(){return Lm(t,void 0,void 0,Sc().mark((function t(){var n;return Sc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._stopped){t.next=3;break}return e(!1),t.abrupt("return");case 3:if(n=!0,!this._prevPaint()){t.next=8;break}return t.next=7,this._renderUp();case 7:n=t.sent;case 8:e(n);case 9:case"end":return t.stop()}}),t,this)})))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}},{key:"_renderDown",value:function(){return Lm(this,void 0,void 0,Sc().mark((function e(){var t=this;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){requestAnimationFrame((function(){return Lm(t,void 0,void 0,Sc().mark((function t(){var n;return Sc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._stopped){t.next=3;break}return e(!1),t.abrupt("return");case 3:if(n=!0,!this._nextPaint()){t.next=8;break}return t.next=7,this._renderDown();case 7:n=t.sent;case 8:e(n);case 9:case"end":return t.stop()}}),t,this)})))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}},{key:"_prevPaint",value:function(){if(!this._topContinue)return!1;if(!this._topUnit)return this._topContinue=!1,!1;for(var e=[],t=!1,n=0;n<10;n++){var r=this._topUnit.prevUnit;if(!r){this._topContinue=!1;break}this._topUnit=r,e.push(r),mm(this._renderer,r,this._forceAppear)&&(t=!0)}if(!e.length)return this._topContinue=!1,!1;if(t){var o=this._originUnit.getDisplayRect().top;o!==this._originTopPos&&this._processor.requestSetScrollTo(this._renderer.scrollNode.scrollTop+o-this._originTopPos)}return this._topContinue}},{key:"_nextPaint",value:function(){if(!this._bottomContinue)return!1;if(!this._bottomUnit)return this._bottomContinue=!1,!1;for(var e=[],t=0;t<10;t++){var n=this._bottomUnit.nextUnit;if(!n){this._bottomContinue=!1;break}this._bottomUnit=n,e.push(n),mm(this._renderer,n,this._forceAppear)}return e.length?this._bottomContinue:(this._bottomContinue=!1,!1)}}]),e}();function Vm(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e._viewport.renderer,o=function(e){var t=e._viewport.domRootNode,n=t.getBoundingClientRect(),r=e._scrollNode.getBoundingClientRect(),o=Mm(n.x+100,r.y+50,r.bottom,t);if(!o)return null;var i=e._viewport.renderUnitManager.getFirstRenderUnitByViewNode(o);return kt(i,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/helpers/get-first-visible-render-unit.ts:25"),i}(e);mm(r,o,n);var i=new Um(e,o,n);return i.start(t),i}function Hm(e,t,n){return t=Qe(t),Xe(e,zm()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function zm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zm=function(){return!!e})()}var Wm=function(e){function t(e,n,r){var o;return Ye(this,t),o=Hm(this,t),Object.defineProperty(Je(o),"_viewport",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(o),"_scrollNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(o),"_cursorUnits",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(o),"_cleanState",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(o),"_cleanTask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(o),"_scrollRenderTask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(o),"_allTileReady",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(o),"_allowCardLazyInit",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(o),"_prevScrollTop",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(o),"_cancelListen",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(o),"_dispose",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(o),"_bindEvent",{enumerable:!0,configurable:!0,writable:!0,value:function(){o._viewport.renderer.on("tileRenderStart",o._bindTileRenderStart),o._viewport.renderer.on("tileRenderCompleted",o._bindTileRenderCompleted)}}),Object.defineProperty(Je(o),"_unbindEvent",{enumerable:!0,configurable:!0,writable:!0,value:function(){o._viewport.renderer.off("tileRenderStart",o._bindTileRenderStart),o._viewport.renderer.off("tileRenderCompleted",o._bindTileRenderCompleted)}}),Object.defineProperty(Je(o),"_bindTileRenderStart",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e;null===(e=o._cancelListen)||void 0===e||e.call(Je(o)),o._cancelListen=o._viewport.renderer.onScroll((function(){var e=o._prevScrollTop,t=o._viewport.renderer.scrollNode.scrollTop,n=t-e;o._prevScrollTop=t,0!==n&&(o._viewport.renderer.repaintByScroll(n),o._viewport.renderer.repaintRenderSelection(!0))}))}}),Object.defineProperty(Je(o),"_bindTileRenderCompleted",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e;null===(e=o._cancelListen)||void 0===e||e.call(Je(o)),o._cancelListen=null}}),Object.defineProperty(Je(o),"requestSetScrollTo",{enumerable:!0,configurable:!0,writable:!0,value:function(e){o._viewport.renderer.scrollNode.scrollTop=e,o._prevScrollTop=o._viewport.renderer.scrollNode.scrollTop}}),o._viewport=e,o._scrollNode=n,o._allowCardLazyInit=r.allowCardLazyInit,o._prevScrollTop=n.scrollTop,o._bindTileRenderStart(),o._bindTileRenderCompleted(),o}return et(t,e),Ke(t,[{key:"destroy",value:function(){var e,t,n;this._unbindEvent(),null===(e=this._dispose)||void 0===e||e.dispose(),this._viewport=null,this._scrollNode=null,null===(t=this._cleanTask)||void 0===t||t.stop(),null===(n=this._scrollRenderTask)||void 0===n||n.stop()}},{key:"viewport",get:function(){return this._viewport}},{key:"cursorUnits",get:function(){return pn(this._cursorUnits)}},{key:"isAllTileReady",value:function(){return this._allTileReady}},{key:"setAllTileReady",value:function(){this._allTileReady=!0,this.emit("tileRenderCompleted"),this._viewport.renderer.emit("tileRenderCompleted")}},{key:"_isForceAppear",value:function(){return!this._allowCardLazyInit}},{key:"renderByNodeId",value:function(e,t){this._stopClean(),this._stopScrollTask();var n=this._getRenderUnitByNodeId(e);n&&(this.renderByUnit(n,t),this._anchorToRenderUnit(n),this._markNeedClean())}},{key:"renderByUnit",value:function(e,t){this._stopClean(),this._stopScrollTask();var n,r,o=this._viewport.renderer,i=new Im(e),a=e.isConnected,l=this._isForceAppear(),u=0;for(a&&(u=e.getDisplayRect().top),mm(o,i.originUnit,l);n=i.prev();)mm(o,n,l),i.addTopHeight(n.getDisplayHeight());for(;r=i.next();)mm(o,r,l),i.addBottomHeight(r.getDisplayHeight());if(t&&this._renderCursor(t),a){var c=e.getDisplayRect().top-u;c&&this.requestSetScrollTo(this._scrollNode.scrollTop+c)}}},{key:"directRenderByUnits",value:function(e){var t=this._isForceAppear(),n=this._viewport.renderer;e.forEach((function(e){mm(n,e,t)}))}},{key:"applyChanges",value:function(e,t,n){var r=this;this._stopClean(),this._stopScrollTask()&&n&&(this._dispose=gs((function(){r.renderByScroll(-1)}))),jm(this,e,t,this._isForceAppear())}},{key:"renderSelection",value:function(e){this._stopClean(),this._renderCursor(e)}},{key:"renderByScroll",value:function(e){if(!this._allTileReady){kt(0!==e,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/index.ts:175"),this._stopClean(),this._stopScrollTask();var t=e<0?"up":"down";this._scrollRenderTask=Vm(this,t,this._isForceAppear()),this._markNeedClean()}}},{key:"_markNeedClean",value:function(){kt(1!==this._cleanState,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/index.ts:191"),this._cleanState=0}},{key:"_stopClean",value:function(){var e;1===this._cleanState&&(kt(this._cleanTask,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/index.ts:200"),null===(e=this._cleanTask)||void 0===e||e.stop(),this._cleanTask=null,this._cleanState=0)}},{key:"_stopScrollTask",value:function(){if(this._scrollRenderTask){var e=this._scrollRenderTask.isDone;return this._scrollRenderTask.stop(),this._scrollRenderTask=null,!e}return!1}},{key:"_renderCursor",value:function(e){this._cursorUnits=Bm(this._viewport,e,this._isForceAppear())}},{key:"_getRenderUnitByNodeId",value:function(e){var t=this._viewport,n=t.viewDocument.getNodeById(e);return n?t.renderUnitManager.getFirstRenderUnitByViewNode(n):null}},{key:"_anchorToRenderUnit",value:function(e){kt(e.isConnected,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/tile-processor/index.ts:236");var t=e.getDisplayRect().top,n=this._scrollNode.getBoundingClientRect();t!==n.top&&this.requestSetScrollTo(this._scrollNode.scrollTop+t-n.top)}}]),t}(ut);function qm(e,t){var n=e._renderUnitManager,r=new Set;return t.forEach((function(e){var t=function(e,t){var n=t.node,r=t.offset;if(n.isTextNode()||n.isCardNode())return e.getRenderUnitWithAncestor(n);var o=n.children[r]||n;return e.getFirstRenderUnitByViewNode(o)}(n,e.start);if(kt(t,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/helpers/get-render-units-by-view-ranges.ts:22"),r.add(t),!e.isCollapsed){var o=function(e,t){var n=t.node,r=t.offset;if(n.isTextNode())return e.getRenderUnitWithAncestor(n);var o=n.children[r-1]||n.children[r]||n;return e.getLastRenderUnitByViewNode(o)}(n,e.end);if(kt(o,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/helpers/get-render-units-by-view-ranges.ts:35"),t!==o){var i=t;do{i=i.nextUnit,kt(i,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/helpers/get-render-units-by-view-ranges.ts:45"),r.add(i)}while(i!==o)}}})),Array.from(r)}function $m(e,t){var n=e._renderUnitManager;if(t.isTableSelection)return[n.getRenderUnitWithAncestor(t.firstRange.start.node)];var r=function(e,t){var n=t.node,r=t.offset;if(n.isTextNode()||n.isCardNode())return e.getRenderUnitWithAncestor(n);var o=n.children[r]||n;return e.getFirstRenderUnitByViewNode(o)}(n,t.firstRange.start);if(kt(r,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/helpers/get-render-units-by-view-selection.ts:29"),t.isCollapsed)return[r];var o=function(e,t){var n=t.node,r=t.offset;if(n.isTextNode())return e.getRenderUnitWithAncestor(n);var o=n.children[r-1]||n.children[r]||n;return e.getLastRenderUnitByViewNode(o)}(n,t.lastRange.end);if(kt(o,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/helpers/get-render-units-by-view-selection.ts:40"),r===o)return[r];var i=[r],a=r;do{a=a.nextUnit,kt(a,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/helpers/get-render-units-by-view-selection.ts:52"),i.push(a)}while(a!==o);return i}var Km=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"_viewport",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_editDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_scrollNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tileProcessor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_firstRendered",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_inRendering",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_changeStack",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_allowDelayChangeInTileRenderer",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._viewport=t,this._editDOMNode=n,this._scrollNode=r,this._tileProcessor=new Wm(t,r,o),this._allowDelayChangeInTileRenderer=!!o.allowDelayChangeInTileRenderer}return Ke(e,[{key:"destroy",value:function(){lv(this._viewport.virtualRootNode),this._viewport=null,this._editDOMNode=null,this._scrollNode=null,this._tileProcessor.destroy()}},{key:"applyContentChange",value:function(e,t,n){if(!this._firstRendered)return this._inRendering=!0,void this._firstRender(t);this._doChanges(e,t,n)}},{key:"_doChanges",value:function(e,t,n){this._inRendering=!0,this._tileProcessor.applyChanges(e,n,this._allowDelayChangeInTileRenderer);var r=this._getFirstVisibleUnit();r||(r=this._getFirstRenderUnit()),kt(r,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/index.ts:92"),this._tileProcessor.renderByUnit(r,t)}},{key:"applySelectionChange",value:function(e){this._tileProcessor.renderSelection(e)}},{key:"repaintByScroll",value:function(e){this._tileProcessor.renderByScroll(e)}},{key:"scrollByNodeId",value:function(e){this._tileProcessor.renderByNodeId(e),this._tileProcessor.renderByScroll(-1)}},{key:"scrollToSelection",value:function(e,t){var n=this._viewport.renderer,r=$m(this._viewport,t);this._tileProcessor.directRenderByUnits(r),Sm(n,e,n.scrollNode,t)}},{key:"repairByViewNode",value:function(e){vv(e)}},{key:"repairByViewRange",value:function(e){var t=qm(this._viewport,[e]);this._tileProcessor.directRenderByUnits(t)}},{key:"repairByViewRanges",value:function(e){var t=qm(this._viewport,e);this._tileProcessor.directRenderByUnits(t)}},{key:"_firstRender",value:function(e){var t;kt(!this._firstRendered,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/index.ts:137"),this._firstRendered=!0,this._viewport.renderer.emit("tileRenderStart");var n=this._viewport.viewDocument.entryPoint;n&&(t=this._getRenderUnitByNodeId(n)),t?this._tileProcessor.renderByNodeId(t.viewNode.id,e):(t=this._getFirstRenderUnit(),kt(t,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/index.ts:154"),this._tileProcessor.renderByUnit(t,e)),this._tileProcessor.renderByScroll(-1)}},{key:"_getFirstVisibleUnit",value:function(){var e=this._viewport.domRootNode,t=e.getBoundingClientRect(),n=this._scrollNode.getBoundingClientRect(),r=Mm(t.x+100,n.y+50,n.bottom,e);if(!r)return null;var o=this._viewport.renderUnitManager.getFirstRenderUnitByViewNode(r);return kt(o,"framework/engine/src/renderer/viewport/render-controller/lib/tile-render-controller/index.ts:180"),o}},{key:"_getRenderUnitByNodeId",value:function(e){var t=this._viewport,n=t.viewDocument.getNodeById(e);return n?t.renderUnitManager.getFirstRenderUnitByViewNode(n):null}},{key:"_getFirstRenderUnit",value:function(){var e=this._viewport;return e.renderUnitManager.getFirstRenderUnitByViewNode(e.viewRootNode)}}]),e}(),Ym=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"_node",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_offset",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._node=t,this._offset=n}return Ke(e,[{key:"node",get:function(){return this._node}},{key:"offset",get:function(){return this._offset}},{key:"clone",value:function(){return new e(this._node,this._offset)}}],[{key:"equal",value:function(e,t){return e._node===t._node&&e._offset===t._offset}},{key:"create",value:function(t,n){return new e(t,n)}}]),e}(),Gm=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ye(this,e),Object.defineProperty(this,"_start",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_end",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._start=t,this._end=n||t.clone()}return Ke(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"collapsed",get:function(){return Ym.equal(this._start,this._end)}}],[{key:"create",value:function(t){return new e(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)}},{key:"createByNodeAndOffset",value:function(t,n){return e.create(Ym.create(t,n))}}]),e}(),Jm={getBoundingClientRect:function(e){return e.getBoundingClientRect()},getClientHeight:function(e){return(null==e?void 0:e.clientHeight)||0},getComputedStyle:function(e){if(e){var t=window.getComputedStyle(e);return{marginTop:parseInt(t.marginTop)||0,marginBottom:parseInt(t.marginBottom)||0,marginLeft:parseInt(t.marginLeft)||0,marginRight:parseInt(t.marginRight)||0,width:parseInt(t.width)||0,height:parseInt(t.height)||0}}return{marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,width:0,height:0}}};const Xm=Jm;var Qm=function(){function e(t){Ye(this,e),Object.defineProperty(this,"placeholderInfo",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_beforeElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_afterElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isInit",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._beforeElement=document.createElement(t),this._afterElement=document.createElement(t)}return Ke(e,[{key:"destroy",value:function(){this._beforeElement.remove(),this._beforeElement=null,this._afterElement.remove(),this._afterElement=null}},{key:"initPlaceholder",value:function(){this.isInit=!0,this._beforeElement._neRef={compare:function(){return{equal:!1,contains:!1,containedBy:!1,preceding:!0,following:!1}}},this._afterElement._neRef={compare:function(){return{equal:!1,contains:!1,containedBy:!1,preceding:!1,following:!0}}},this._beforeElement.style.height="0px",this._afterElement.style.height="0px",this._beforeElement.style.userSelect="none",this._afterElement.style.userSelect="none",this._beforeElement.contentEditable="false",this._afterElement.contentEditable="false",this._beforeElement.className="ne-virtual-render-placeholder",this._afterElement.className="ne-virtual-render-placeholder",this.rootElement.appendChild(this._afterElement),this.rootElement.insertBefore(this._beforeElement,this.rootElement.firstChild)}},{key:"getPlaceholderInfo",value:function(e,t){var n=this.getPlaceholderStyle(t,!0);if(!this.placeholderInfo[e]){var r={style:n,range:t};return this.updatePlaceholderStyle(r,n),this.placeholderInfo[e]=r,r}var o=this.placeholderInfo[e].style;return o.height===n.height&&o.marginBottom===n.marginBottom&&o.marginTop===n.marginTop&&o.visible===n.visible||this.updatePlaceholderStyle(this.placeholderInfo[e],n),this.placeholderInfo[e].range=t,this.placeholderInfo[e]}},{key:"updatePlaceholderStyle",value:function(e,t){e.style=t}}]),e}();function Zm(e,t,n){return t=Qe(t),Xe(e,eg()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function eg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eg=function(){return!!e})()}var tg=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div";return Ye(this,t),n=Zm(this,t,[r]),Object.defineProperty(Je(n),"node",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"mountNodeInfos",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),n}return et(t,e),Ke(t,[{key:"rootElement",get:function(){return this.node.getContentDom()}},{key:"mount",value:function(e,t){var n=this,r=-1,o=0,i=[Number.MAX_VALUE,0],a=new Map;this.node.children.reduce((function(a,l,u){if(e.has(l.nodeId)){t.has(l.nodeId)&&(i[0]=Math.min(u,i[0]),i[1]=Math.max(u,i[1])),-1!==r&&0!==u&&(n.getPlaceholderInfo(o,[r,u-1]),o++);var c=l.getDom();if(!c)throw new Error("not render ".concat(l.nodeId));c.style.display="",r=-1,a.push(l)}else if(-1===r){r=u;var s=l.getDom();s&&"none"!==s.style.display&&(s.style.display="none")}else{var d=l.getDom();d&&"none"!==d.style.display&&(d.style.display="none")}return a}),[]).forEach((function(n){a.set(n.nodeId,n),n.mount(e,t)})),-1!==r&&(this.getPlaceholderInfo(o,[r,this.node.children.length-1]),o++),this.mountNodeInfos.forEach((function(t,n){if(e.has(n)){var r=t.getDom();r&&r.style.display&&(r.style.display="")}else{var o=t.getDom();o&&"none"!==o.style.display&&(o.style.display="none")}}));for(var l=0,u=0,c=0;c=o||(d[1]<=i[0]?l+=f.height+f.marginBottom+f.marginTop:d[0]>=i[1]&&(u+=f.height+f.marginBottom+f.marginTop))}this.isInit||this.initPlaceholder(),this._beforeElement.style.height="".concat(l,"px"),this._afterElement.style.height="".concat(u,"px"),0===l?this._beforeElement.remove():this.rootElement.firstChild!==this._beforeElement&&(this.rootElement.firstChild?this.rootElement.insertBefore(this._beforeElement,this.rootElement.firstChild):this.rootElement.appendChild(this._beforeElement)),0===u?this._afterElement.remove():this.rootElement.lastChild!==this._afterElement&&this.rootElement.appendChild(this._afterElement),Array.from(this.rootElement.childNodes).forEach((function(e){e.nodeType===e.ELEMENT_NODE&&"none"===e.style.display&&n.rootElement.removeChild(e)})),this.mountNodeInfos=a}},{key:"getPlaceholderStyle",value:function(e,t){var n=this.node.children[e[0]],r=this.node.children[e[1]];return{height:r.topToRoot-n.topToRoot+r.height,visible:t,marginTop:n.marginTop,marginBottom:r.marginBottom}}}]),t}(Qm),ng=function(){function e(t,n){var r;if(Ye(this,e),Object.defineProperty(this,"viewNode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"unit",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"topToRoot",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:dv}),Object.defineProperty(this,"marginTop",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"marginBottom",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"paddingTop",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"paddingBottom",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_isDirty",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"needRecalculate",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isLocked",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"category",{enumerable:!0,configurable:!0,writable:!0,value:"normal"}),Object.defineProperty(this,"paintManager",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"belongToHeading",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"headingLevel",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.isContainer=t.hasCategory(sv),t.hasCategory(ze.LikeRoot)&&(this.paintManager=new tg(this)),t.hasCategory([ze.Table])?(this.category="table",this.paddingTop=15,this.paddingBottom=15,this.marginTop=4,this.marginBottom=1):t.hasCategory([ze.TableRow,"columns"])?this.category=hv:t.hasCategory([ze.TableCell,"column"])&&(this.category=pv),t.hasCategory([ze.TableCell])&&(this.paddingBottom=2,this.paddingTop=2),(null===(r=t.parent)||void 0===r?void 0:r.isRootNode())&&t.nodeName.startsWith("h"))switch(t.nodeName){case"h1":this.headingLevel=1;break;case"h2":this.headingLevel=2;break;case"h3":this.headingLevel=3;break;case"h4":this.headingLevel=4;break;case"h5":this.headingLevel=5;break;case"h6":this.headingLevel=6}}return Ke(e,[{key:"destroy",value:function(){var e;this.children.forEach((function(e){e.destroy()})),this.children=[],this.parent=null,null===(e=this.paintManager)||void 0===e||e.destroy(),this.paintManager=null}},{key:"nodeId",get:function(){return this.viewNode.id}},{key:"parentId",get:function(){var e,t;return(null===(e=this.parent)||void 0===e?void 0:e.nodeId)||(null===(t=this.viewNode.parent)||void 0===t?void 0:t.id)}},{key:"rootParent",get:function(){return null===this.parent?this:this.parent.rootParent}},{key:"belongToCollapse",get:function(){var e=this.rootParent;return e.viewNode.hasCategory("collapse")?e:null}},{key:"isSummary",get:function(){return"summary"===this.viewNode.nodeName}},{key:"isInCollapse",get:function(){var e,t,n,r;return"false"===(null===(n=null===(t=null===(e=this.belongToCollapse)||void 0===e?void 0:e.viewNode)||void 0===t?void 0:t.attrs)||void 0===n?void 0:n.open)&&!this.isSummary||(null===(r=this.rootParent.belongToHeading)||void 0===r?void 0:r.some((function(e){return e&&"true"===e.viewNode.attrs.collapsed})))}},{key:"isContainsByIds",value:function(e){for(var t=this.viewNode;t;){if(e.has(t.id))return!0;t=t.parent}return!1}},{key:"getNodeId",value:function(){return this.viewNode.id}},{key:"isRendered",value:function(){return!!this.viewNode.isConnected}},{key:"markDirty",value:function(){var e;this._isDirty=!0,null===(e=this.parent)||void 0===e||e.markDirty()}},{key:"markUNDirty",value:function(){this._isDirty=!1}},{key:"isDirty",value:function(){return this._isDirty}},{key:"getDom",value:function(){var e,t;return(null===(e=this.viewNode)||void 0===e?void 0:e.isConnected)&&(null===(t=Pp(this.viewNode))||void 0===t?void 0:t.getMainDOMNode())||null}},{key:"shouldLock",value:function(){var e;if("hole"!==this.viewNode.nodeName)return!1;if(this.viewNode.isElement()&&["audio","video","imageGallery"].includes(null===(e=this.viewNode.children[1])||void 0===e?void 0:e.nodeName))return!0;var t=this.getDom();return!!t&&!!t.querySelector("iframe")}},{key:"getContentDom",value:function(){var e;return this.viewNode.isConnected&&(null===(e=Pp(this.viewNode))||void 0===e?void 0:e.getContentDOMNode())||null}},{key:"measure",value:function(){var e=this.getDom();if(!e||this.isLocked||this.isInCollapse)return!1;var t=Xm.getComputedStyle(e),n=!1;t.marginTop===this.marginTop&&t.marginBottom===this.marginBottom||(this.marginTop=t.marginTop,this.marginBottom=t.marginBottom,n=!0);var r=e.getBoundingClientRect().height;return r!==this.height?(this.height=Math.max(r,this.category===pv?33.094:dv),!0):n}},{key:"compare",value:function(e){var t=this.viewNode.compare(e.viewNode);return t.preceding?-1:t.following?1:0}},{key:"lockHeight",value:function(){var e=this.getDom();e&&(e.style.height="".concat(this.height,"px"),e.style.marginTop="".concat(this.marginTop,"px"),e.style.marginBottom="".concat(this.marginBottom,"px"),this.isLocked=!0)}},{key:"unlockHeight",value:function(){this.isLocked=!1;var e=this.getDom();e&&(this.viewNode.attrs.height?e.style.height=this.viewNode.attrs.height+"px":e.style.height="",e.style.marginTop="",e.style.marginBottom="")}},{key:"sortChildren",value:function(){this.isContainer&&(this.children=this.children.sort((function(e,t){return e.compare(t)})),this.children.forEach((function(e){e.isContainer&&e.sortChildren()})))}},{key:"syncLayout",value:function(e){var t;if(this.isContainer){e&&this.category!==pv?this.topToRoot=e.topToRoot+e.height+Math.max(e.marginBottom,this.marginTop):this.topToRoot=this.parent?this.parent.topToRoot+this.parent.paddingTop+this.marginTop:this.marginTop;var n=null;this.children.forEach((function(e){e.syncLayout(n),n=e})),this.height!==dv&&this.height!==fv||this.syncLayoutWithHeight()}else if(e)this.topToRoot=e.topToRoot+e.height+Math.max(e.marginBottom,this.marginTop);else{if((null===(t=this.parent)||void 0===t?void 0:t.category)===pv){var r=this.parent.height,o=this.parent.children.reduce((function(e,t){return e+t.height}),0);switch(this.parent.viewNode.attrs.verticalAlign){case"middle":return void(this.topToRoot=this.parent.topToRoot+Math.max(this.parent.paddingTop,(r-o)/2)+this.marginTop);case"bottom":return void(this.topToRoot=this.parent.topToRoot+Math.max(this.parent.paddingTop,r-o)+this.marginTop)}}this.topToRoot=this.parent?this.parent.topToRoot+this.parent.paddingTop+this.marginTop:this.marginTop}}},{key:"syncLayoutWithHeight",value:function(){if(this.isContainer)if(this.category===hv){var e=dv;this.children.forEach((function(t){e=Math.max(e,t.height)})),this.height=Math.max(e+this.paddingBottom+this.paddingTop,this.viewNode.attrs.height||0),this.viewNode.attrs.height&&(this.height=Math.max(this.viewNode.attrs.height,this.height))}else this.height=Math.max(this.children.reduce((function(e,t){return e+t.height}),0),this.category===pv?fv:dv)+this.paddingBottom+this.paddingTop}},{key:"loopNode",value:function(e){this.children.forEach((function(t,n){(e(t,n,!1)||t.category===hv)&&t.loopNode(e)}))}},{key:"findNode",value:function(e){if(this.category===hv){var t=!1;return this.children.forEach((function(n,r){e(n,r,!1)&&(t=!0),n.findNode(e)&&(t=!0)})),t}for(var n=0;n0&&this.paintManager.mount(e,t):this.isContainer&&this.children.forEach((function(n){n.mount(e,t)}))}}]),e}(),rg=function(){function e(t){Ye(this,e),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"nodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"nodeMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"lockHeightNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"blockNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set})}return Ke(e,[{key:"destroy",value:function(){this.nodes.forEach((function(e){e.destroy()})),this.nodes=[],this.nodeMap.clear(),this.lockHeightNodes.clear()}},{key:"applyChanges",value:function(e){var t=this,n=e.removedNodes,r=e.textChanges,o=e.attrChanges,i=e.addedNodes,a=e.positionChanges;n.forEach((function(e){t.removeNode(e.id)})),a.forEach((function(e){t.positionChange(e)})),i.forEach((function(e){t.addNode(e)})),r.forEach((function(e){t.markDirty(e.id)}));var l=!1;o.forEach((function(e){(e.attrs.collapsed||e.attrs.open)&&(l=!0),t.markDirty(e.node.id)})),(a.length||n.length||i.length)&&(this.sortNodes(),this.syncLayout()),l&&this.syncLayout()}},{key:"getNode",value:function(e){return this.nodeMap.get(e)}},{key:"removeNode",value:function(e){this.blockNodes.delete(e);var t=this.nodeMap.get(e);if(t){if(t.parentId){var n=this.getNode(t.parentId);n&&(t.parent=null,t.destroy(),n.children.splice(n.children.indexOf(t),1))}this.nodeMap.delete(e);var r=this.nodes.indexOf(t);r>-1&&this.nodes.splice(r,1)}}},{key:"doAddNode",value:function(e,t){var n=this.getNode(e.id);if(n)n.viewNode=e;else{var r=new ng(e,t);this.nodeMap.set(e.id,r),this.nodes.push(r)}}},{key:"addNode",value:function(e){if("#blockFiller"!==e.nodeName){var t=this.viewport.renderUnitManager.getRenderUnitWithAncestor(e);if(t){var n=e.closest(cv)||t.viewNode;n&&this.doAddNode(n,t)}}else this.doAddNode(e)}},{key:"positionChange",value:function(e){var t,n,r=this.getNode(e.id);if(r){var o=null===(t=r.parent)||void 0===t?void 0:t.children.indexOf(r),i="number"!=typeof o?-1:o;i>-1&&(null===(n=r.parent)||void 0===n||n.children.splice(i,1)),r.parent=null,-1===this.nodes.indexOf(r)&&this.nodes.push(r)}}},{key:"markDirty",value:function(e){var t=this.getNode(e);t&&t.markDirty()}},{key:"markUNDirty",value:function(e){var t=this.getNode(e);t&&t.markUNDirty()}},{key:"sortNodes",value:function(){for(var e=0;e0&&(r=r.slice(0,e.headingLevel-1)),e.belongToHeading=r,e.isContainer&&e.sortChildren(),e.headingLevel>0&&((r=pn(r))[e.headingLevel-1]=e)}))}},{key:"shouldLock",value:function(e){var t=this.getNode(e);return!!t&&t.shouldLock()}},{key:"setBlock",value:function(e){this.shouldLock(e)&&this.blockNodes.add(e)}},{key:"lockHeight",value:function(e){var t=this.getNode(e);t&&(this.lockHeightNodes.add(e),t.lockHeight())}},{key:"unlockHeight",value:function(e){this.lockHeightNodes.delete(e);var t=this.getNode(e);t&&t.unlockHeight()}},{key:"unlockAndMeasure",value:function(){var e=this,t=[];this.lockHeightNodes.forEach((function(n){e.unlockHeight(n),t.push(n),t.push.apply(t,pn(e.ancestorIds(n)))})),new Set(t).forEach((function(t){e.measure(t)}))}},{key:"measure",value:function(e){var t=this.getNode(e);t&&t.measure()}},{key:"ancestorIds",value:function(e){var t=this.getNode(e);if(!t)return[];for(var n=[],r=t.parent;r;)n.push(r.nodeId),r=r.parent;return n}},{key:"syncLayout",value:function(){for(var e=null,t=0;t0){var r=0;t.forEach((function(t){var o=n.getNode(t);o&&e(o,r++,!0)&&o.loopNode(e)}))}else for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:"div";return Ye(this,t),n=ug(this,t,[r]),Object.defineProperty(Je(n),"reconciler",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"mountNodeInfos",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),n}return et(t,e),Ke(t,[{key:"layoutTree",get:function(){return this.reconciler.layoutTree}},{key:"viewport",get:function(){return this.reconciler.viewport}},{key:"rootElement",get:function(){return this.reconciler.rootElement}},{key:"renderLayoutNode",value:function(e){var t,n;!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];cm.forceAttachTreeByViewNodeNotRenderChildren(e,t,n)}(this.viewport.renderer,e.viewNode,e.isContainer&&"hole"!==e.viewNode.nodeName),e.isInCollapse?null===(t=e.getDom())||void 0===t||t.classList.add("ne-force-fold"):null===(n=e.getDom())||void 0===n||n.classList.remove("ne-force-fold")}},{key:"appendLayoutNode",value:function(e){var t=e.getDom();if(t&&!t.isConnected)if(t.style.display="",null===e.parent){var n=this.rootElement.childNodes;n.length>0?Fv(n,t,e.viewNode,0,n.length):this.rootElement.appendChild(t)}else if(e.parent.getContentDom()){var r=e.parent.getContentDom(),o=r.childNodes;o.length>0?Fv(o,t,e.viewNode,0,o.length):r.appendChild(t)}else this.renderLayoutNode(e)}},{key:"mount",value:function(e,t,n){var r=this,o=-1,i=0,a=new Map;this.layoutTree.nodes.reduce((function(t,n,a){if(e.has(n.nodeId)){-1!==o&&0!==a&&(r.getPlaceholderInfo(i,[o,a-1]),i++);var l=n.getDom();if(!l)throw new Error("not render ".concat(n.nodeId));l.style.display="",o=-1,t.push(n)}else if(-1===o){o=a;var u=n.getDom();u&&"none"!==u.style.display&&(u.style.display="none")}else{var c=n.getDom();c&&"none"!==c.style.display&&(c.style.display="none")}return t}),[]).forEach((function(t){a.set(t.nodeId,t),t.mount(e,n)})),-1!==o&&(this.getPlaceholderInfo(i,[o,this.layoutTree.nodes.length-1]),i++),this.mountNodeInfos.forEach((function(t,n){if(e.has(n)){var r=t.getDom();r&&r.style.display&&(r.style.display="")}else{var o=t.getDom();o&&"none"!==o.style.display&&(o.style.display="none")}}));for(var l=0,u=0,c=0;c=i||(d[1]<=t[0]?l+=f.height+f.marginBottom+f.marginTop:d[0]>=t[1]&&(u+=f.height+f.marginBottom+f.marginTop))}this._beforeElement.style.height="".concat(l,"px"),this._afterElement.style.height="".concat(u,"px"),0===l?this._beforeElement.remove():this.rootElement.firstChild!==this._beforeElement&&(this.rootElement.firstChild?this.rootElement.insertBefore(this._beforeElement,this.rootElement.firstChild):this.rootElement.appendChild(this._beforeElement)),0===u?this._afterElement.remove():this.rootElement.lastChild!==this._beforeElement&&this.rootElement.appendChild(this._afterElement),Array.from(this.rootElement.childNodes).forEach((function(e){e.nodeType===e.ELEMENT_NODE&&"none"===e.style.display&&e.remove()})),this.mountNodeInfos=a}},{key:"getPlaceholderStyle",value:function(e,t){for(var n=e[0],r=e[1],o=this.layoutTree.nodes[e[0]],i=this.layoutTree.nodes[e[1]];o.isInCollapse&&ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=o.target.getAttribute("id");i&&n.changeEntries.set(i,o)}}catch(e){r.e(e)}finally{r.f()}}}),Object.defineProperty(this,"_loop",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.changeEntries.size&&n._handleResizeChange(),requestAnimationFrame(n._loop)}}),Object.defineProperty(this,"_resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null})}return Ke(e,[{key:"destroy",value:function(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null),this.changeEntries.clear(),this.prevResizeMap.clear()}},{key:"observerNodes",value:function(e){if(this._resizeObserver){var t=this._resizeObserver;e.forEach((function(e){var n=e.getDom();n&&t.observe(n)})),this.prevResizeMap.forEach((function(n,r){if(!e.has(r)){var o=n.getDom();o&&t.unobserve(o)}})),this.prevResizeMap=e}}},{key:"applyChanges",value:function(){var e=this,t=!1;return this.changeEntries.forEach((function(n,r){var o=e.reconciler.layoutTree.getNode(r);o&&(t=o.measure()||t)})),this.changeEntries.clear(),t}},{key:"init",value:function(e){this._resizeObserver=new ResizeObserver(this.handleResize),this._handleResizeChange=e,requestAnimationFrame(this._loop)}}]),e}(),hg=function(){function e(t){var n,r=this;Ye(this,e),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"viewportManager",{enumerable:!0,configurable:!0,writable:!0,value:new lg(this)}),Object.defineProperty(this,"paintManager",{enumerable:!0,configurable:!0,writable:!0,value:new sg(this)}),Object.defineProperty(this,"resizeManager",{enumerable:!0,configurable:!0,writable:!0,value:new fg(this)}),Object.defineProperty(this,"layoutTree",{enumerable:!0,configurable:!0,writable:!0,value:new rg(this.viewport)}),Object.defineProperty(this,"activeNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"bufferNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"viewportNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"selectionNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"firstNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"childrenShouldActive",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"isInMaxView",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"bufferHeight",{enumerable:!0,configurable:!0,writable:!0,value:500}),Object.defineProperty(this,"limitSize",{enumerable:!0,configurable:!0,writable:!0,value:10}),Object.defineProperty(this,"isScrollingUp",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"handleScrollStart",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.renderer.emit("scrollStart")}}),Object.defineProperty(this,"handleScrollEnd",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.handleLastProcess(),r.renderer.emit("scrollEnd")}}),Object.defineProperty(this,"handleLastProcess",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";r.isInMaxView||(r.layoutTree.unlockAndMeasure(),r.resizeManager.applyChanges(),r.layoutTree.syncLayout()),r.rawPaint(e)}}),Object.defineProperty(this,"handleNodeHeightChange",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.isScrolling||(r.resizeManager.applyChanges(),r.layoutTree.syncLayout(),r.debounceRawPaint())}}),Object.defineProperty(this,"debounceRawPaint",{enumerable:!0,configurable:!0,writable:!0,value:ig()(this.rawPaint)}),Object.defineProperty(this,"debounceRAFPaint",{enumerable:!0,configurable:!0,writable:!0,value:(n=!1,function(){n||(n=!0,gs((function(){r.rawPaint(),n=!1})))})}),jc(this,t.renderer,"elementEnterMaxView",(function(e,t){t&&(r.isInMaxView=!0,r.childrenShouldActive.add(t),r.update())})),jc(this,t.renderer,"elementLeaveMaxView",(function(e,t){t&&(r.isInMaxView=!1,r.childrenShouldActive.delete(t),r.debounceRAFPaint())}))}return Ke(e,[{key:"destroy",value:function(){this.layoutTree.destroy(),this.viewportManager.destroy(),this.paintManager.destroy(),this.resizeManager.destroy()}},{key:"rootElement",get:function(){return this.viewport._domRootNode}},{key:"scroller",get:function(){return this.viewport.renderer.scrollNode}},{key:"isScrolling",get:function(){return this.viewportManager.isScrolling()}},{key:"currentViewRect",get:function(){return this.viewportManager.viewportData}},{key:"renderer",get:function(){return this.viewport.renderer}},{key:"init",value:function(e){this.viewportManager.init(this.handleScrollStart,this.handleScrollEnd),this.resizeManager.init(this.handleNodeHeightChange),this.paintManager.initPlaceholder(),this.layoutTree.getNode(e)?this.scrollToNode(e):this.scrollToNode(this.layoutTree.nodes[0].nodeId)}},{key:"repairByViewNode",value:function(e){var t=this.layoutTree.getNode(e.id);t&&this.paintManager.appendLayoutNode(t)}},{key:"setActiveNodes",value:function(e){this.activeNodes=e.activeNodes,this.bufferNodes=e.bufferNodes,this.viewportNodes=e.viewportNodes,this.firstNode=e.firstNode,this.lastNode=e.lastNode}},{key:"isActiveNodesChange",value:function(e){var t=this;if(0===this.layoutTree.nodes.length)return!1;if(this.activeNodes.size!==e.activeNodes.size)return!0;var n=!1;return e.activeNodes.forEach((function(e,r){n||t.activeNodes.has(r)||(n=!0)})),n}},{key:"isViewportNodesChange",value:function(e){var t=this;if(0===this.layoutTree.nodes.length)return!1;if(this.viewportNodes.size!==e.viewportNodes.size)return!0;if(this.firstNode!==e.firstNode)return!0;if(this.lastNode!==e.lastNode)return!0;var n=!1;return e.viewportNodes.forEach((function(e,r){n||t.viewportNodes.has(r)||(n=!0)})),n}},{key:"emitChangeEvent",value:function(e,t){try{this.isActiveNodesChange(e)&&this.renderer.emit("activeNodesChange",new Set(this.activeNodes.keys()),t),this.isViewportNodesChange(e)&&this.renderer.emit("viewportNodesChange",new Set(this.viewportNodes.keys()),e.firstNode.nodeId,e.lastNode.nodeId,t)}catch(e){console.error(e)}this.setActiveNodes(e)}},{key:"rawPaint",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll",n=this.calculateViewportActivation();n.activeNodes.forEach((function(t){t.isDirty()?(e.paintManager.renderLayoutNode(t),t.needRecalculate=!0,t.markUNDirty()):e.paintManager.appendLayoutNode(t),e.layoutTree.setBlock(t.nodeId)})),n.activeNodes.forEach((function(t){e.layoutTree.lockHeight(t.nodeId)})),this.paintManager.mount(n.activeNodes,n.activeRange,n.viewportNodes),this.resizeManager.observerNodes(n.activeNodes);var r=this.getAnchorNode(),o=r?this.currentViewRect.top-r.topToRoot:0;n.activeNodes.forEach((function(t){e.layoutTree.measure(t.nodeId)})),this.layoutTree.unlockAndMeasure(),this.resizeManager.applyChanges(),this.isInMaxView||(this.layoutTree.syncLayout(),r&&Math.abs(this.currentViewRect.top-r.topToRoot-o)>=dv&&this.viewportManager.setScrollTop(r.topToRoot+o),this.emitChangeEvent(n,t))}},{key:"getAnchorNode",value:function(){var e=this.currentViewRect.top,t=this.layoutTree.nodes[0];if(e<=0)return t||null;var n=Number.MAX_VALUE;return this.activeNodes.forEach((function(r){var o=Math.abs(r.topToRoot-e);return o=e})),t||null}},{key:"setSelectionNodes",value:function(e){var t=this,n=!1;return e.forEach((function(e){t.activeNodes.has(e)||(n=!0)})),this.selectionNodes=e,n}},{key:"update",value:function(){this.handleLastProcess("change")}},{key:"updateViewport",value:function(e,t){this.isScrollingUp=t.top0&&void 0!==arguments[0]?arguments[0]:this.currentViewRect,n={top:t.top,bottom:t.top+t.height,bufferTop:t.top-this.bufferHeight,bufferBottom:t.top+t.height+this.bufferHeight},r=new Set,o=new Set,i=new Set,a=new Map,l=[Number.MAX_VALUE,0],u=-1,c=-1,s=null,d=Number.MAX_VALUE,f=new Set;if(this.layoutTree.loopNode((function(t,h,p){if(t.isInCollapse)return!1;if(e.childrenShouldActive.has(t.nodeId)||t.isContainsByIds(f))return a.set(t.nodeId,t),f.add(t.nodeId),!0;(t.isContainer&&t.parent&&"tr"!==t.viewNode.nodeName&&a.has(t.parent.nodeId)||e.layoutTree.blockNodes.has(t.nodeId))&&a.set(t.nodeId,t);var v=t.topToRoot+t.height;if(n.bufferTop>v)return!1;if(n.bufferBottom=n.top&&v<=n.bottom||t.topToRoot>=n.top&&t.topToRoot<=n.bottom||t.topToRoot<=n.top&&v>=n.bottom){r.add(t.nodeId),a.set(t.nodeId,t),t.needRecalculate&&i.add(t.nodeId);var m=Math.abs(t.topToRoot-n.top);m=n.bufferTop&&v<=n.bufferBottom||t.topToRoot>=n.bufferTop&&t.topToRoot<=n.bufferBottom)&&(o.add(t.nodeId),a.set(t.nodeId,t),t.needRecalculate&&i.add(t.nodeId),p&&(-1===u&&(u=h),c=Math.max(c,h)));return!0}),this.childrenShouldActive),a.size=0||p>=0&&p=0){var m=this.layoutTree.nodes[h];m&&(u=h,a.set(m.nodeId,m),o.add(m.nodeId),h--)}if(pthis.currentViewRect.top&&n.topToRoot3&&void 0!==arguments[3]&&arguments[3];if(t.isRootNode()||t.closest([ze.LikeRoot])&&t.isElement()){var o=n>=t.childCount?t.childCount-1:r?n:Math.max(n-1,0);return t.children[o].isFillerNode()?t.id:t.children[o].id}var i=e.renderUnitManager.getRenderUnitWithAncestor(t),a=t.closest(cv);return(a||i)&&((null==a?void 0:a.id)||(null==i?void 0:i.viewNode.id))||null}function vg(e,t){var n=new Set;return t.ranges.forEach((function(t){var r=pg(e,t.start.node,t.start.offset,!0),o=pg(e,t.end.node,t.end.offset,!1);r&&n.add(r),o&&n.add(o)})),n}function mg(e,t,n){for(var r,o=t;o&&!(r=xp(o));)o=o.parentNode;if(!r)return null;if(r.isCardNode())return{node:r,offset:0};var i=function(e,t){var n=e.previousSibling,r=e.nextSibling;if(e.isFillerNode()){if(kg(r))return r;if(kg(n))return n}if(e.isTextNode()){if(0===t&&kg(n))return n;if(t===e.data.length&&kg(r))return r}return null}(r,n);return i?{node:i,offset:0}:r.isFillerNode()?{node:r.parentNode,offset:r.offset}:(e.repairByViewNode(r),function(e,t,n){if(e.isTextNode()){var r=Pp(e).getContentDOMNode();return r===t?0===n?{node:e,offset:0}:{node:e,offset:e.dataLength}:(kt(r.firstChild===t,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-view-range.ts:150"),{node:e,offset:Math.min(n,e.dataLength)})}return function(e,t,n){return kt(e.isElement(),"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-view-range.ts:166"),e.isRootNode()?function(e,t,n){var r=t.childNodes,o=n;for(n>=r.length&&(o=r.length-1);o>=0;o--){var i=xp(r[o]);if(i)return{node:e,offset:i.offset}}return null}(e,t,n):e.hasCategory([ze.Root,ze.LikeRoot])?function(e,t,n){if(0===e.childCount)return{node:e,offset:0};var r=Pp(e).getContentDOMNode(),o=document.createRange();o.setStart(t,n),o.collapse(!0);var i=document.createRange();if(i.setStart(r,0),i.collapse(!0),gg(o,i)||bg(o,i))return{node:e,offset:0};var a=document.createRange();return a.setStart(r,r.childNodes.length),a.collapse(!0),yg(o,a)?{node:e,offset:e.childCount}:wg(e,t,n)}(e,t,n):function(e,t,n){var r=Pp(e).getContentDOMNode(),o=document.createRange();o.setStart(t,n),o.collapse(!0);var i=document.createRange();if(i.setStart(r,0),i.collapse(!0),gg(o,i))return{node:e,offset:0};if(bg(o,i))return{node:e.parentNode,offset:e.offset};var a=document.createRange();return a.setStart(r,r.childNodes.length),a.collapse(!0),yg(o,a)?{node:e.parentNode,offset:e.offset+1}:wg(e,t,n)}(e,t,n)}(e,t,n)}(r,t,n))}function gg(e,t){return 0===e.compareBoundaryPoints(Range.END_TO_END,t)}function bg(e,t){return-1===e.compareBoundaryPoints(Range.END_TO_END,t)}function yg(e,t){return 1===e.compareBoundaryPoints(Range.END_TO_END,t)}function wg(e,t,n){var r=e.children,o=document.createRange();o.setStart(t,n),o.collapse(!0);for(var i=0,a=r.length;i2&&void 0!==arguments[2]&&arguments[2],r=t.node,o=t.offset,i=Pp(r);if(kt(i,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:39"),i.isConnected||(console.warn("选区映射修复 1",i),Ng(e,i)),kt(i.isConnected,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:46"),r.isRootNode()){var a=o>=r.childCount?r.childCount-1:n?o:Math.max(0,o-1),l=Pp(r.children[a]);return kt(l,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:58"),n?{node:l.getMainDOMNode(),offset:0}:(Cg.selectNodeContents(l.getMainDOMNode()),Cg.collapse(!1),{node:Cg.startContainer,offset:Cg.startOffset})}if(r.isTextNode())return{node:i.getContentDOMNode().firstChild,offset:o};if(r.isFillerNode())return{node:i.getMainDOMNode(),offset:o};if(r.isCardNode())return kt(0===t.offset,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:89"),{node:i.getMainDOMNode(),offset:0};kt(r.isElement(),"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:97");var u=r,c=u.getChildByOffset(o),s=0;if(c||(c=u.getChildByOffset(o-1),s=1),!c)return kt(0===o&&r.hasCategory([ze.Root,ze.LikeRoot,ze.TextContainer]),"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:110"),{node:Pp(r).getMainDOMNode(),offset:0};kt(c,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:125");var d=Pp(c);return kt(d,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:129"),d.isConnected||(console.warn("选区映射修复 2",i),Ng(e,d)),kt(d.isConnected,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/helper/to-dom-range.ts:136"),{node:d.getMainDOMNode().parentNode,offset:d.offset+s}}function Ng(e,t){for(var n=t.viewNode,r=n.parentNode;r&&!r.isRootNode()&&!Pp(r).isConnected;){var o=r.parentNode;if(o.isRootNode())break;r=o}r?(e.repairByViewNode(n),t.isConnected?console.log("修复成功",t):console.warn("修复失败,修复结果不符合预期",t,r)):console.warn("修复失败,未找到有效的节点",t)}var Og=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"_viewport",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isFirstRender",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"reconciler",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_allowCardLazyInit",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._viewport=t,this._allowCardLazyInit=o.allowCardLazyInit,this.reconciler=new hg(t),window.reconciler=this.reconciler}return Ke(e,[{key:"destroy",value:function(){lv(this._viewport.virtualRootNode),this.reconciler.destroy(),this._viewport=null,this._editDOMNode=null,this._scrollNode=null,this.reconciler=null}},{key:"applyContentChange",value:function(e,t,n){if(this._isFirstRender)this._isFirstRender=!1,this.reconciler.applyChanges(e),this.reconciler.init(t.focusPosition.node.id),this.reconciler.setSelectionNodes(vg(this._viewport,t)),this.reconciler.update();else{var r=e.removedNodes,o=e.textChanges,i=e.attrChanges,a=e.addedNodes,l=e.positionChanges;cm.destroyByViewNodes(r),cm.updateTextByViewNodes(o.filter((function(e){return Pp(e)}))),cm.updateAttrByAttrChanges(i.filter((function(e){return Pp(e.node)})),n),this.applyNodeChanges(this._viewport.renderer,this._viewport.renderUnitManager,a,l,n,(function(e){return i.some((function(t){return t.node===e}))}),this._isForceAppear()),this.reconciler.applyChanges(e),this.reconciler.setSelectionNodes(vg(this._viewport,t)),this.reconciler.update()}}},{key:"applySelectionChange",value:function(e){Bm(this._viewport,e),this.reconciler.setSelectionNodes(vg(this._viewport,e))&&this.reconciler.update()}},{key:"repaintByScroll",value:function(e){}},{key:"scrollByNodeId",value:function(e){var t,n=this._viewport.renderer,r=null===(t=n._nativeDoc)||void 0===t?void 0:t.getViewNodeById(e);if(r){var o=pg(this._viewport,r,0,!0),i=!0;if(o&&(this.reconciler.isNodeIdInActive(o)||(i=this.reconciler.scrollToNode(o))),i){var a=Gm.createByNodeAndOffset(r,0);Sm(n,!1,n.scrollNode,n._nativeDoc._viewDoc.selection.cloneByRanges(a))}}}},{key:"scrollToSelection",value:function(e,t){var n=this._viewport.renderer,r=pg(this._viewport,t.focusPosition.node,t.focusPosition.offset,!0),o=!0;r&&(this.reconciler.isNodeIdInActive(r)||(o=this.reconciler.scrollToNode(r))),o&&Sm(n,e,n.scrollNode,t)}},{key:"repairByViewNode",value:function(e){mv(e)}},{key:"repairByViewRange",value:function(e){this.repairByViewRanges([e])}},{key:"repairByViewRanges",value:function(e){var t=new Set;e.forEach((function(e){var n=e.start,r=e.end,o=hm(n.node,n.offset),i=hm(r.node,r.offset);if(o)do{if(o&&Pp(o)&&t.add(o),o===i)return;o=o.nextSibling}while(o)})),t.forEach((function(e){mv(e)}))}},{key:"applyNodeChanges",value:function(e,t,n,r,o,i,a){var l=new Set,u=new Set;n.forEach((function(e){var n=t.getRenderUnitWithAncestor(e);if(!n)return!1;n.markDirty(),l.add(n)})),r.forEach((function(e){var n=t.getRenderUnitWithAncestor(e);kt(n,"framework/engine/src/renderer/viewport/render-controller/lib/virtual-render-controller/index.ts:239"),n.viewNode!==e&&n.isConnected?u.add(e):(n.markDirty(),l.add(n))})),l.forEach((function(t){mm(e,t,a)})),cm.resetPosition(e,u,o,i)}},{key:"_isForceAppear",value:function(){return!this._allowCardLazyInit}},{key:"toViewRange",value:function(e,t){return function(e,t){var n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=t.collapsed,l=mg(e,n,r);if(!l)return null;if(a)return{start:l,end:Object.assign({},l)};var u=mg(e,o,i);return u?{start:l,end:u}:null}(e,t)}},{key:"toDOMRange",value:function(e,t){return function(e,t){var n=_g(e,t.start,!0),r=n;t.collapsed||(r=_g(e,t.end));var o=document.createRange();return o.setStart(n.node,n.offset),o.setEnd(r.node,r.offset),o}(e,t)}}]),e}();function xg(e,t){var n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=t.collapsed,l=Eg(e,n,r);if(!l)return null;if(a)return{start:l,end:Object.assign({},l)};var u=Eg(e,o,i);return u?{start:l,end:u}:null}function Eg(e,t,n){for(var r,o=t;o&&!(r=xp(o));)o=o.parentNode;if(!r)return null;if(r.isCardNode())return{node:r,offset:0};var i=function(e,t){var n=e.previousSibling,r=e.nextSibling;if(e.isFillerNode()){if(Tg(r))return r;if(Tg(n))return n}if(e.isTextNode()){if(0===t&&Tg(n))return n;if(t===e.data.length&&Tg(r))return r}return null}(r,n);return i?{node:i,offset:0}:r.isFillerNode()?{node:r.parentNode,offset:r.offset}:(e.repairByViewNode(r),function(e,t,n){if(e.isTextNode()){var r=Pp(e).getContentDOMNode();return r===t?0===n?{node:e,offset:0}:{node:e,offset:e.dataLength}:(kt(r.firstChild===t,"framework/engine/src/renderer/viewport/helpers/to-view-range.ts:149"),{node:e,offset:Math.min(n,e.dataLength)})}return function(e,t,n){return kt(e.isElement(),"framework/engine/src/renderer/viewport/helpers/to-view-range.ts:165"),e.hasCategory([ze.Root,ze.LikeRoot])?function(e,t,n){if(0===e.childCount)return{node:e,offset:0};var r=Pp(e).getContentDOMNode(),o=document.createRange();o.setStart(t,n),o.collapse(!0);var i=document.createRange();if(i.setStart(r,0),i.collapse(!0),Dg(o,i)||Rg(o,i))return{node:e,offset:0};var a=document.createRange();return a.setStart(r,r.childNodes.length),a.collapse(!0),Pg(o,a)?{node:e,offset:e.childCount}:Sg(e,t,n)}(e,t,n):function(e,t,n){var r=Pp(e).getContentDOMNode(),o=document.createRange();o.setStart(t,n),o.collapse(!0);var i=document.createRange();if(i.setStart(r,0),i.collapse(!0),Dg(o,i))return{node:e,offset:0};if(Rg(o,i))return{node:e.parentNode,offset:e.offset};var a=document.createRange();return a.setStart(r,r.childNodes.length),a.collapse(!0),Pg(o,a)?{node:e.parentNode,offset:e.offset+1}:Sg(e,t,n)}(e,t,n)}(e,t,n)}(r,t,n))}function Dg(e,t){return 0===e.compareBoundaryPoints(Range.END_TO_END,t)}function Rg(e,t){return-1===e.compareBoundaryPoints(Range.END_TO_END,t)}function Pg(e,t){return 1===e.compareBoundaryPoints(Range.END_TO_END,t)}function Sg(e,t,n){var r=e.children,o=document.createRange();o.setStart(t,n),o.collapse(!0);for(var i=0,a=r.length;i900}));o&&this.refreshController()}this._controller.applyContentChange(e,n,t!==He.OT),t!==He.Auto&&t!==He.Silent&&this.checkActive(n,r)}},{key:"applySelectionChange",value:function(e,t){this._controller.applySelectionChange(e),this.checkActive(e,t)}},{key:"repairByViewNode",value:function(e){return this._controller.repairByViewNode(e)}},{key:"repairByViewRange",value:function(e){return this._controller.repairByViewRange(e)}},{key:"repairByViewRanges",value:function(e){return this._controller.repairByViewRanges(e)}},{key:"scrollByNodeId",value:function(e){return this._controller.scrollByNodeId(e)}},{key:"scrollToSelection",value:function(e,t){this._controller.scrollToSelection(e,t)}},{key:"repaintByScroll",value:function(e){this._controller.repaintByScroll(e)}},{key:"checkActive",value:function(e,t){var n=e.firstRange.start.node,r=t?t.firstRange.start.node:null,o=n.isCardNode()?n:null,i=r&&r.isCardNode()?r:null;if(o!==i){if(i&&i.isConnected){var a=Pp(i);kt(a,"framework/engine/src/renderer/viewport/render-controller/index.ts:168"),a.$blur()}if(o){var l=Pp(o);kt(o.isConnected&&l,"framework/engine/src/renderer/viewport/render-controller/index.ts:177"),l.$focus()}}}},{key:"toViewRange",value:function(e,t){return"toViewRange"in this._controller?this._controller.toViewRange(e,t):xg(e,t)}},{key:"toDOMRange",value:function(e,t){return"toDOMRange"in this._controller?this._controller.toDOMRange(e,t):Cm(e,t)}}]),e}();function jg(e){return!(!e.hasCategory(ze.TableHole)&&!e.hasCategory([ze.Block,ze.Hole])&&(!e.hasCategory([ze.Brick])||e.parentNode.hasCategory([ze.Hole]))&&(!e.isBlockFillerNode()||!e.parentNode.hasCategory([ze.Root,ze.LikeRoot])))}function Ig(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(jg(o))return o;var i=Mg(o);if(i)return i}}catch(e){r.e(e)}finally{r.f()}return null}function Fg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(jg(o))return o;var i=Ug(o);if(i)return i}}catch(e){r.e(e)}finally{r.f()}return null}function Vg(e){return kt(e.isValid,"framework/engine/src/renderer/viewport/render-unit-manager/helpers/get-next-render-unit-node.ts:8"),Hg(e.viewNode)}function Hg(e){for(var t=e.nextSibling;t;){var n=Bg(t);if(n)return n;t=t.nextSibling}return!e.parentNode||e.parentNode.hasCategory(ze.Root)?null:Hg(e.parentNode)}function zg(e){return kt(e.isValid,"framework/engine/src/renderer/viewport/render-unit-manager/helpers/get-prev-render-unit-node.ts:8"),Wg(e.viewNode)}function Wg(e){for(var t=e.previousSibling;t;){var n=Lg(t);if(n)return n;t=t.previousSibling}return!e.parentNode||e.parentNode.hasCategory(ze.Root)?null:Wg(e.parentNode)}function qg(e){var t=e.closest([ze.TableHole,ze.ContainerHole,ze.AlertHole]);if(t)return t;for(var n=e;n;){if(jg(n))return n;n=n.parentNode}return null}var $g=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"_viewNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_renderUnitManager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._renderUnitManager=t,_p(n,"_isRenderRootNode",!0),_p(n,"_renderUnit",this),this._viewNode=n}return Ke(e,[{key:"viewNode",get:function(){return this._viewNode}},{key:"isValid",get:function(){return this._viewNode.isConnected}},{key:"isConnected",get:function(){var e=Pp(this._viewNode);return!(!e||!e.isConnected)}},{key:"prevUnit",get:function(){return this._renderUnitManager.getPrevRenderUnit(this)}},{key:"nextUnit",get:function(){return this._renderUnitManager.getNextRenderUnit(this)}},{key:"isDirty",value:function(){return this._dirty}},{key:"markDirty",value:function(){this._dirty=!0}},{key:"unmarkDirty",value:function(){this._dirty=!1}},{key:"getDisplayHeight",value:function(){var e=Pp(this._viewNode);return kt(e,"framework/engine/src/renderer/viewport/render-unit-manager/lib/render-unit/index.ts:66"),e.getMainDOMNode().getBoundingClientRect().height}},{key:"getDisplayDOM",value:function(){var e=Pp(this._viewNode);return kt(e,"framework/engine/src/renderer/viewport/render-unit-manager/lib/render-unit/index.ts:76"),e.getMainDOMNode()}},{key:"getDisplayRect",value:function(){var e=Pp(this._viewNode);return kt(e,"framework/engine/src/renderer/viewport/render-unit-manager/lib/render-unit/index.ts:87"),e.getMainDOMNode().getBoundingClientRect()}},{key:"attached",value:function(){this._renderUnitManager.renderUnitAttached(this)}},{key:"detached",value:function(){this._renderUnitManager.renderUnitDetached(this)}}]),e}(),Kg="_cachedRenderUnit",Yg=function(){function e(){Ye(this,e),Object.defineProperty(this,"_attached",{enumerable:!0,configurable:!0,writable:!0,value:new Set})}return Ke(e,[{key:"destroy",value:function(){}},{key:"getRenderUnitById",value:function(e){return Array.from(this._attached).find((function(t){return t.viewNode.id===e}))||null}},{key:"getRenderUnitByDOM",value:function(e){var t=xp(e);return t?this.getRenderUnit(t):null}},{key:"getAllAttachedUnits",value:function(){return Array.from(this._attached)}},{key:"renderUnitAttached",value:function(e){this._attached.add(e)}},{key:"renderUnitDetached",value:function(e){this._attached.delete(e)}},{key:"getFirstRenderUnitByViewNode",value:function(e){var t=Bg(e);return t?Gg(this,t):null}},{key:"getLastRenderUnitByViewNode",value:function(e){var t=Lg(e);return t?Gg(this,t):null}},{key:"getRenderUnit",value:function(e){return Op(e,Kg)||null}},{key:"getRenderUnitWithAncestor",value:function(e){var t=qg(e);return t?Gg(this,t):null}},{key:"getPrevRenderUnit",value:function(e){var t=zg(e);return t?Gg(this,t):null}},{key:"getNextRenderUnit",value:function(e){var t=Vg(e);return t?Gg(this,t):null}}]),e}();function Gg(e,t){return Op(t,Kg)||_p(t,Kg,new $g(e,t)),Op(t,Kg)||null}function Jg(e,t,n){return t=Qe(t),Xe(e,Xg()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Xg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xg=function(){return!!e})()}var Qg=function(e){function t(e,n,r){var o;return Ye(this,t),o=Jg(this,t,[e,n]),Object.defineProperty(Je(o),"_rendered",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),o._domNode=r,Np(o._domNode,n),o._rendered=!0,o}return et(t,e),Ke(t,[{key:"isRootNode",value:function(){return!0}},{key:"isConnected",get:function(){return!0}},{key:"isElement",value:function(){return!0}}]),t}(Hv),Zg=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"_virtualRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_viewRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_viewDoc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_domRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_renderController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_renderUnitManager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_drawers",{enumerable:!0,configurable:!0,writable:!0,value:[]});var o=n.rootNode;r.innerHTML="",Np(r,o),this._virtualRootNode=new Qg(t,o,r),Tp(o,this._virtualRootNode),this._renderer=t,this._viewDoc=n,this._viewRootNode=o,this._domRootNode=r,this._renderUnitManager=new Yg,this._renderController=new Ag(this,r,t.scrollNode,t.option)}return Ke(e,[{key:"destroy",value:function(){this._renderUnitManager.destroy(),this._renderController.destroy(),this._drawers.forEach((function(e){e.destroy()})),this._domRootNode.innerHTML="",this._virtualRootNode=null,this._viewDoc=null,this._renderController=null}},{key:"renderer",get:function(){return this._renderer}},{key:"renderUnitManager",get:function(){return this._renderUnitManager}},{key:"viewRootNode",get:function(){return this._viewRootNode}},{key:"domRootNode",get:function(){return this._domRootNode}},{key:"viewDocument",get:function(){return this._viewDoc}},{key:"virtualRootNode",get:function(){return this._virtualRootNode}},{key:"applyContentChange",value:function(e,t,n,r){this._renderController.applyContentChange(e,t,n,r)}},{key:"applySelectionChange",value:function(e,t){this._renderController.applySelectionChange(e,t)}},{key:"refreshSelection",value:function(){}},{key:"createDrawer",value:function(e){var t=new av(this._domRootNode,e);return this._drawers.push(t),t}},{key:"repairByViewNode",value:function(e){return this._renderController.repairByViewNode(e)}},{key:"repairByViewRange",value:function(e){return this._renderController.repairByViewRange(e)}},{key:"repairByViewRanges",value:function(e){return this._renderController.repairByViewRanges(e)}},{key:"repaintByScroll",value:function(e){this._renderController.repaintByScroll(e)}},{key:"scrollByNodeId",value:function(e){return this._renderController.scrollByNodeId(e)}},{key:"scrollToSelection",value:function(e,t){this._renderController.scrollToSelection(e,t)}},{key:"toViewRange",value:function(e){return this._renderController.toViewRange(this._renderer,e)}},{key:"toDOMRange",value:function(e){return this._renderController.toDOMRange(this._renderer,e)}}]),e}(),eb=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_viewDoc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_viewport",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._renderer=t,this._viewDoc=n,this._viewport=new Zg(t,n,r),this._init()}return Ke(e,[{key:"_init",value:function(){var e=this;jc(this,this._viewDoc,"contentchange",(function(t){e._viewport.applyContentChange(t.changes,t.mode,t.selection,t.prevSelection),e._renderer.emit("contentchange_private",t.changes),e._renderer.emit("contentchange",{ranges:t.selection.ranges.map((function(t){return e._viewport.toDOMRange(t)})),mode:t.mode,focus:t.selection.focus,anchor:t.selection.anchor}),e._renderer.engine.emit("contentchange",t.mode)})),jc(this,this._viewDoc,"selectionchange",(function(t){e._viewport.applySelectionChange(t.selection,t.prevSelection),e._renderer.emit("selectionchange",{focus:t.selection.focus,anchor:t.selection.anchor,ranges:t.selection.ranges.map((function(t){return e._viewport.toDOMRange(t)}))}),e._renderer.engine.emit("selectionchange")}))}},{key:"destroy",value:function(){this._viewport.destroy()}},{key:"getViewNodeById",value:function(e){return this._viewDoc.getNodeById(e)}},{key:"createDrawer",value:function(e){return this._viewport.createDrawer(e)}},{key:"repairByViewNode",value:function(e){return this._viewport.repairByViewNode(e)}},{key:"repairByViewRange",value:function(e){return this._viewport.repairByViewRange(e)}},{key:"repairByViewRanges",value:function(e){return this._viewport.repairByViewRanges(e)}},{key:"repaintByScroll",value:function(e){this._viewport.repaintByScroll(e)}},{key:"scrollToCurrentSelection",value:function(e){this._viewport.scrollToSelection(e,this._viewDoc.selection)}},{key:"scrollByNodeId",value:function(e){return this._viewport.scrollByNodeId(e)}},{key:"scrollToSelection",value:function(e,t){return this._viewport.scrollToSelection(t,e)}},{key:"toViewRange",value:function(e){return this._viewport.toViewRange(e)}},{key:"toDOMRange",value:function(e){return this._viewport.toDOMRange(e)}}]),e}();function tb(e,t,n){return t=Qe(t),Xe(e,nb()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nb=function(){return!!e})()}var rb=function(e){function t(e,n,r,o,i){var a;return Ye(this,t),a=tb(this,t),Object.defineProperty(Je(a),"option",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(a),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(a),"engine",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(a),"iLayer",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(a),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(Je(a),"service",{enumerable:!0,configurable:!0,writable:!0,value:null}),a}return et(t,e),Ke(t,[{key:"setService",value:function(e){this.service=e}},{key:"afterInit",value:function(){}},{key:"destroy",value:function(){var e;this.removeAllListeners(),null===(e=this.service)||void 0===e||e.destroy(),this.service=null}},{key:"sync",value:function(){return!0}}]),t}(ut);function ob(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ib(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ib(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ib(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;r1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;o1}},{key:"focusPosition",get:function(){var e=this._ranges;return this._focus===Sr.start?e[0].start:this._focus===Sr.end?e[e.length-1].end:db(e,this._focus).start}},{key:"anchorPosition",get:function(){var e=this._ranges;return this._anchor===Sr.start?e[0].start:this._anchor===Sr.end?e[e.length-1].end:db(e,this._anchor).start}},{key:"isValid",value:function(){return this._ranges.length>0}},{key:"updateBy",value:function(e){var t=this,n=e.focus,r=e.anchor;this._focus=n,this._anchor=r,this._ranges=e.ranges.map((function(e){return t.transformToViewRange(e)})),kt(this._focus&&this._anchor,"framework/engine/src/view/selection/index.ts:110")}},{key:"transformToViewRange",value:function(e){var t=this._viewTree,n=e.start,r=e.end,o=e.collapsed,i=sb(t,n.node,n.offset);if(o)return new Gm(i);var a=sb(t,r.node,r.offset);return new Gm(i,a)}},{key:"clone",value:function(){var t=new e(this._viewTree);return t._focus=this._focus,t._anchor=this._anchor,t._ranges=this._ranges.slice(),t}},{key:"cloneByRanges",value:function(t){var n;n=Array.isArray(t)?t:[t];var r=new e(this._viewTree);return r._ranges=pn(n),r._anchor=Sr.start,r.collapsed?r._focus=Sr.start:r._focus=Sr.end,r}}]),e}();function sb(e,t,n){if(t.isTextNode())return function(e,t,n){kt(t.isConnected,"framework/engine/src/view/selection/index.ts:206");var r=e.getViewNode(t);return kt(r,"framework/engine/src/view/selection/index.ts:210"),r.isConnected?new Ym(r,n):(kt(""===t.data,"framework/engine/src/view/selection/index.ts:214"),sb(e,t.parentNode,t.offset))}(e,t,n);if(t.hasCategory([ze.TableHole,ze.Hole]))return function(e,t,n){var r=e.getViewNode(t);return kt(r.isConnected,"framework/engine/src/view/selection/index.ts:188"),0===n?(kt(r.firstChild.isInlineFillerNode(),"framework/engine/src/view/selection/index.ts:191"),new Ym(r,0)):(kt(1===n&&r.lastChild.isInlineFillerNode(),"framework/engine/src/view/selection/index.ts:195"),new Ym(r,r.lastChild.offset))}(e,t,n);if(t.hasCategory(ze.Card))return function(e,t,n){kt(0===n,"framework/engine/src/view/selection/index.ts:174");var r=e.getViewNode(t);return new Ym(r,0)}(e,t,n);kt(t.isElement(),"framework/engine/src/view/selection/index.ts:243");var r=t.getChildByOffset(n),o=e.getViewNode(t);if(!o.isConnected)return kt(o.hasCategory(ze.Inline)&&o.isEmpty(),"framework/engine/src/view/selection/index.ts:250"),sb(e,t.parentNode,t.offset);if(!r)return o.lastChild&&o.lastChild.isBlockFillerNode()?new Ym(o,o.childCount-1):new Ym(o,o.childCount);var i=e.getViewNode(r),a=!1;if((null==i?void 0:i.isConnected)||(i=null),!i)for(var l=n-1;l>=0;l--){var u=t.getChildByOffset(l);kt(u,"framework/engine/src/view/selection/index.ts:289");var c=e.getViewNode(u);if(null==c?void 0:c.isConnected){r=u,i=c,a=!0;break}}if(!i)for(var s=n+1,d=t.childCount;s=0;l--)if(e[l].start.node.attrs.col===a)return e[l+1]}return e[n-1]}var fb="add-attr",hb="remove-attr",pb="update-attr",vb="add-node",mb="remove-node",gb="move-node",bb="update-text",yb="update",wb="add",kb="remove",Cb=function(){function e(){Ye(this,e),Object.defineProperty(this,"_changed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_childrenChanges",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_positionChanges",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_textChanges",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_addedNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_removedNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_attrChanges",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"_connectedCache",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}return Ke(e,[{key:"addChange",value:function(e,t){this._changed=!0;var n=t.node;switch(kt(n,"framework/engine/src/view/change-observer.ts:88"),e){case fb:this._parseAddAttr(t);break;case pb:this._parseUpdateAttr(t);break;case hb:this._parseRemoveAttr(t);break;case bb:this._parseTextChange(t);break;case vb:this._addNode(t);break;case mb:this._removeNode(t);break;case gb:this._moveNode(t);break;default:kt(!1,"framework/engine/src/view/change-observer.ts:120")}}},{key:"hasChange",value:function(){return this._changed}},{key:"_parseAddAttr",value:function(e){var t=e.node,n=e.attrName;if(this._isConnected(t)){var r=this._attrChanges;kt(n,"framework/engine/src/view/change-observer.ts:138");var o=r.get(t);o?o[n]={type:wb}:r.set(t,Ja({},n,{type:wb}))}}},{key:"_parseRemoveAttr",value:function(e){var t=e.node,n=e.attrName,r=e.attrValue;if(this._isConnected(t)){var o=this._attrChanges;kt(n,"framework/engine/src/view/change-observer.ts:165");var i=o.get(t);i?i[n]={type:kb,value:r}:o.set(t,Ja({},n,{type:kb,value:r}))}}},{key:"_parseTextChange",value:function(e){var t=e.node;this._isConnected(t)&&this._textChanges.add(t)}},{key:"_parseUpdateAttr",value:function(e){var t=e.node,n=e.attrName;if(this._isConnected(t)){var r=this._attrChanges;kt(n,"framework/engine/src/view/change-observer.ts:205");var o=r.get(t);if(o){var i=o[n];if((null==i?void 0:i.type)===wb)return;o[n]={type:yb}}else r.set(t,Ja({},n,{type:yb}))}}},{key:"_addNode",value:function(e){var t=this,n=e.parent,r=e.node,o=e.offset;kt(o>-1,"framework/engine/src/view/change-observer.ts:230");var i=this._childrenChanges,a=this._positionChanges,l=this._getNodeCache(r);if(this._isConnected(n)&&i.add(n),l.connected)l.parentNode===n&&l.offset===o||a.add(r);else{kt(!r.parentNode,"framework/engine/src/view/change-observer.ts:247"),kt(n&&r,"framework/engine/src/view/change-observer.ts:248");var u=this._addedNodes;u.add(r),Nb(r,(function(e){t._isConnected(e)||u.add(e)}))}}},{key:"_removeNode",value:function(e){var t=this,n=e.node,r=this._childrenChanges,o=this._removedNodes,i=n.parentNode;kt(i,"framework/engine/src/view/change-observer.ts:267"),i&&this._isConnected(i)&&r.add(i),Nb(n,(function(e){t._isConnected(e)&&o.add(e)}))}},{key:"_moveNode",value:function(e){var t=this._childrenChanges,n=this._positionChanges,r=e.parent,o=e.oldParent,i=e.node;kt(r&&o&&i,"framework/engine/src/view/change-observer.ts:287"),this._isConnected(r)&&t.add(r),this._isConnected(o)&&t.add(o),this._isConnected(i)&&n.add(i)}},{key:"_isConnected",value:function(e){return this._getNodeCache(e).connected}},{key:"_getNodeCache",value:function(e){var t=this._connectedCache;return t.has(e)||t.set(e,{connected:e.isConnected,parentNode:e.parentNode,offset:e.offset}),t.get(e)}},{key:"getChanges",value:function(){var e=new Map,t=[],n=Array.from(this._addedNodes).filter((function(t){return _b(e,t)}));return this._attrChanges.forEach((function(r,o){kt(!n.includes(o),"framework/engine/src/view/change-observer.ts:334"),_b(e,o)&&t.push({node:o,attrs:r})})),{childrenChanges:Array.from(this._childrenChanges).filter((function(t){return kt(!n.includes(t),"framework/engine/src/view/change-observer.ts:346"),_b(e,t)})),positionChanges:Array.from(this._positionChanges).filter((function(t){return kt(!n.includes(t),"framework/engine/src/view/change-observer.ts:350"),_b(e,t)})),addedNodes:n,removedNodes:Array.from(this._removedNodes).filter((function(t){return kt(!n.includes(t),"framework/engine/src/view/change-observer.ts:355"),!_b(e,t)})),textChanges:Array.from(this._textChanges).filter((function(t){return kt(!n.includes(t),"framework/engine/src/view/change-observer.ts:359"),_b(e,t)})),attrChanges:t}}},{key:"clear",value:function(){this._changed=!1,this._childrenChanges.clear(),this._positionChanges.clear(),this._textChanges.clear(),this._addedNodes.clear(),this._removedNodes.clear(),this._attrChanges.clear(),this._connectedCache.clear()}}]),e}();function _b(e,t){return e.has(t)||e.set(t,t.isConnected),e.get(t)}function Nb(e,t){t(e),e.isElement()&&e.children.forEach((function(e){Nb(e,t)}))}function Ob(e,t){xb(t),Eb(e,t,t)}function xb(e){kt(e.isElement(),"framework/engine/src/view/view-tree/filler-manager/helper/fill-content.ts:15"),e.children.forEach((function(e){e.isTextFillerNode()||e.isInlineFillerNode()?e.remove():e.isElement()&&xb(e)}))}function Eb(e,t,n){n.isElement()&&n.children.forEach((function(n){n.hasCategory(ze.InlineBox)?(kt(n.isConnected,"framework/engine/src/view/view-tree/filler-manager/helper/fill-content.ts:37"),0===n.offset&&Db(e,n),Rb(e,n),function(e,t){var n;t.childCount&&((null===(n=t.firstChild)||void 0===n?void 0:n.isTextFillerNode())&&t.firstChild.isInlineFillerNode()||t.prependChild(e.createTextFillerNode()))}(e,n),function(e,t){t.childCount||t.prependChild(e.createTextFillerNode())}(e,n)):n.hasCategory(ze.InlineCard)?(kt(n.isConnected,"framework/engine/src/view/view-tree/filler-manager/helper/fill-content.ts:48"),0===n.offset&&Db(e,n),Rb(e,n)):n.isElement()&&Eb(e,t,n)}))}function Db(e,t){var n;t.previousSibling&&t.previousSibling.isTextFillerNode()||null===(n=t.parentNode)||void 0===n||n.insertBefore(e.createTextFillerNode(),t)}function Rb(e,t){var n;t.nextSibling&&t.nextSibling.isTextFillerNode()||null===(n=t.parentNode)||void 0===n||n.insertAfter(e.createTextFillerNode(),t)}var Pb=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_mapper",{enumerable:!0,configurable:!0,writable:!0,value:new WeakMap}),Object.defineProperty(this,"_viewDoc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._viewDoc=t}return Ke(e,[{key:"destroy",value:function(){this._mapper=null,this._viewDoc=null}},{key:"update",value:function(e){if(this._viewDoc){var t,n,r,o,i=this._getFillers(this._viewDoc,e);e.hasCategory([ze.Hole,ze.TableHole])?(t=this._viewDoc,r=(n=e).firstChild,o=n.lastChild,r&&!r.isInlineFillerNode()&&n.prependChild(t.createInlineFillerNode()),o&&!o.isInlineFillerNode()&&n.appendChild(t.createInlineFillerNode())):(Ob(this._viewDoc,e),this._fillLine(e,i))}}},{key:"_fillLine",value:function(e,t){this._viewDoc&&(t.block||(t.block=this._viewDoc.createBlockFillerNode()),e.appendChild(t.block))}},{key:"_getFillers",value:function(e,t){var n,r,o;return(null===(n=this._mapper)||void 0===n?void 0:n.has(t))||null===(r=this._mapper)||void 0===r||r.set(t,{block:e.createBlockFillerNode()}),null===(o=this._mapper)||void 0===o?void 0:o.get(t)}}]),e}(),Sb=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"applyInsert",value:function(e,t){var n=t.parentNode,r=t.childNode,o=t.offset,i=Ab(e,n),a=Ab(e,r);return Tb(i,a,o),a}},{key:"applyUpdateText",value:function(e,t){var n=t.node,r=t.text;Ab(e,n).setData(r)}},{key:"applyRemove",value:function(e,t){var n=t.parentNode,r=t.childNode,o=Ab(e,n),i=Ab(e,r);return kt(!i.isFillerNode(),"framework/engine/src/view/view-tree/tree-helper.ts:38"),kt(o===i.parentNode,"framework/engine/src/view/view-tree/tree-helper.ts:39"),o.removeChild(i),i}},{key:"applyMove",value:function(e,t){var n=t.offset,r=t.parentNode,o=t.childNode;Tb(Ab(e,r),Ab(e,o),n)}},{key:"applyAddAttr",value:function(e,t){var n=t.node,r=t.attrName,o=t.attrValue;Ab(e,n).setAttribute(r,o)}},{key:"applyUpdateAttr",value:function(e,t){var n=t.node,r=t.attrName,o=t.attrValue;Ab(e,n).setAttribute(r,o)}},{key:"applyRemoveAttr",value:function(e,t){var n=t.node,r=t.attrName;Ab(e,n).removeAttribute(r)}}]),e}();function Tb(e,t,n){for(var r=t.parentNode,o=e.children,i=null,a=-1,l=0,u=o.length;l1&&void 0!==arguments[1]&&arguments[1],n=this._category;Array.isArray(e)||(e=[e]);for(var r=0,o=e.length;rc)return t.following=!0,t}return kt(o!==i,"invalid compare node","framework/engine/src/view/node/view-node.ts:339"),n.length0&&void 0!==arguments[0]&&arguments[0],n=new t(this._document,this._nodeName,this._category,this._attrs);return e&&this._children.forEach((function(t){n.appendChild(t.cloneNode(e))})),n}},{key:"isElement",value:function(){return!0}},{key:"getChildByOffset",value:function(e){return this._children[e]||null}},{key:"isEmpty",value:function(){return 0===this._children.length}},{key:"print",value:function(){return{nodeName:this._nodeName,attrs:this.attrs,children:this._children.map((function(e){return e.print()}))}}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Cr(Qe(t.prototype),"toJSON",this).call(this);return e&&(n.children=this._children.map((function(t){return t.toJSON(e)}))),n}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodeName,n=this.attrs,r=[];Object.keys(n).forEach((function(e){var t=n[e];"object"===We(t)?t=JSON.stringify(t):t+="",r.push("".concat(e,'="').concat(t,'"'))}));var o="";return e&&(o=this._children.map((function(t){return t.toString(e)})).join("")),"<".concat(t).concat(r.length?" "+r.join(" "):"",">").concat(o,"")}},{key:"appendChild",value:function(e){var t=e;if(t._parent===this&&t._offset+1===this.childCount)return e;var n=t._parent,r=this._children.length;return n?this._document.addChange(gb,{node:e,parent:this,oldParent:n}):this._document.addChange(vb,{node:e,parent:this,offset:r}),n&&Hb(n,t),t._offset=r,t._parent=this,this._children.push(t),e}},{key:"prependChild",value:function(e){return 0===this.childCount?this.appendChild(e):this.insertBefore(e,this._children[0])}},{key:"removeChild",value:function(e){var t=e.parentNode;return kt(t===this,"framework/engine/src/view/node/view-element.ts:159"),t&&this._document.addChange(mb,{node:e,parent:this}),Hb(this,e),e}},{key:"insertBefore",value:function(e,t){var n=e,r=t;if(kt(t.parent===this,"framework/engine/src/view/node/view-element.ts:177"),e===t)return e;var o=n.parent,i=this._children,a=i.indexOf(r);kt(-1!==a,"framework/engine/src/view/node/view-element.ts:187"),o?this._document.addChange(gb,{node:e,parent:this,oldParent:o}):this._document.addChange(vb,{node:e,parent:this,offset:a}),o&&Hb(o,n);for(var l=i.length-1;l>=a;l--)i[l]._offset++,i[l+1]=i[l];return n._offset=a,n._parent=this,i[a]=n,n}},{key:"insertAfter",value:function(e,t){kt(t.parent===this,"framework/engine/src/view/node/view-element.ts:220"),kt(e!==t,"framework/engine/src/view/node/view-element.ts:221");var n=t.nextSibling;return n?this.insertBefore(e,n):this.appendChild(e)}},{key:"insertByOffset",value:function(e,t){return t.parent===this&&t.offset===e?null:(kt(e<=this._children.length,"framework/engine/src/view/node/view-element.ts:237"),e===this._children.length?this.appendChild(t):this.insertBefore(t,this._children[e]))}}]),t}(Fb);function Hb(e,t){var n=e.children.indexOf(t);kt(-1!==n,"framework/engine/src/view/node/view-element.ts:250");var r=e._children;r.splice(n,1);for(var o=n,i=e._children.length;o")}},{key:"cloneNode",value:function(){return new t(this.document,this.nodeName,this._category,this._attrs)}}]),t}(Fb);function Xb(e,t,n){return t=Qe(t),Xe(e,Qb()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Qb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qb=function(){return!!e})()}var Zb=function(e){function t(e){return Ye(this,t),Xb(this,t,[e,"#blockFiller",{}])}return et(t,e),Ke(t,[{key:"cloneNode",value:function(){return new t(this._document)}},{key:"isFillerNode",value:function(){return!0}},{key:"isBlockFillerNode",value:function(){return!0}},{key:"print",value:function(){return{name:this._nodeName}}},{key:"toString",value:function(){return"<".concat(this._nodeName,"/>")}},{key:"toJSON",value:function(){return{id:this._id,name:this._nodeName}}}]),t}(Fb);function ey(e,t,n){return t=Qe(t),Xe(e,ty()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ty(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ty=function(){return!!e})()}var ny=function(e){function t(){return Ye(this,t),ey(this,t,arguments)}return et(t,e),Ke(t,[{key:"cardType",get:function(){return qb.Inline}},{key:"cardValue",get:function(){return Object.assign({},this._attrs.value)}},{key:"isCardNode",value:function(){return!0}},{key:"isInlineCardNode",value:function(){return!0}},{key:"print",value:function(){return{nodeName:this._nodeName,attr:this.attrs}}},{key:"toString",value:function(){var e=this.nodeName,t=this.attrs,n=[];return Object.keys(t).forEach((function(e){var r=t[e];"object"===We(r)?r=JSON.stringify(r):r+="",n.push("".concat(e,'="').concat(r,'"'))})),"<".concat(e).concat(n.length?" "+n.join(" "):"",">")}},{key:"cloneNode",value:function(e){throw new t(this.document,this.nodeName,this._category,this.attrs)}}]),t}(Fb);function ry(e,t,n){return t=Qe(t),Xe(e,oy()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oy=function(){return!!e})()}var iy=function(e){function t(e){return Ye(this,t),ry(this,t,[e,"#inlineFiller",{}])}return et(t,e),Ke(t,[{key:"cloneNode",value:function(){return new t(this._document)}},{key:"isFillerNode",value:function(){return!0}},{key:"isInlineFillerNode",value:function(){return!0}},{key:"print",value:function(){return{name:this._nodeName}}},{key:"toString",value:function(){return"<".concat(this._nodeName,"/>")}},{key:"toJSON",value:function(){return{id:this._id,name:this._nodeName}}}]),t}(Fb);function ay(e,t,n){return t=Qe(t),Xe(e,ly()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ly(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ly=function(){return!!e})()}var uy=function(e){function t(e){return Ye(this,t),ay(this,t,[e,"#textFiller",{}])}return et(t,e),Ke(t,[{key:"cloneNode",value:function(){return new t(this._document)}},{key:"isFillerNode",value:function(){return!0}},{key:"isTextFillerNode",value:function(){return!0}},{key:"print",value:function(){return{name:this._nodeName}}},{key:"toString",value:function(){return"<".concat(this._nodeName,"/>")}},{key:"toJSON",value:function(){return{id:this._id,name:this._nodeName}}}]),t}(Fb);function cy(e,t,n){return t=Qe(t),Xe(e,sy()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sy=function(){return!!e})()}var dy=function(e){function t(e,n,r,o){var i;return Ye(this,t),i=cy(this,t,[e,"#text",r,o]),Object.defineProperty(Je(i),"kind",{enumerable:!0,configurable:!0,writable:!0,value:"TextNode"}),Object.defineProperty(Je(i),"_data",{enumerable:!0,configurable:!0,writable:!0,value:""}),i._data=n||"",i}return et(t,e),Ke(t,[{key:"data",get:function(){return this._data}},{key:"dataLength",get:function(){return On.size(this._data)}},{key:"setData",value:function(e){this._document.addChange(bb,{parent:this.parent,node:this}),this._data=e}},{key:"isEmpty",value:function(){return!this._data}},{key:"cloneNode",value:function(){return new t(this._document,this._data)}},{key:"isTextNode",value:function(){return!0}},{key:"print",value:function(){return{name:"#text",attrs:this.attrs,data:this._data}}},{key:"toString",value:function(){var e=this.attrs,t=[];return Object.keys(e).forEach((function(n){var r=e[n];r?"object"===We(r)?r=JSON.stringify(r):r+="":r="",t.push("".concat(n,'="').concat(r,'"'))})),"<#text".concat(t.length?" "+t.join(" "):"",">").concat(this._data,"")}},{key:"toJSON",value:function(){return{id:this._id,name:this._nodeName,data:this._data}}}]),t}(Fb);function fy(e,t,n){return t=Qe(t),Xe(e,hy()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hy=function(){return!!e})()}var py=function(e){function t(e,n){var r;return Ye(this,t),r=fy(this,t),Object.defineProperty(Je(r),"_model",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_modelDoc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_viewTree",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_selection",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_changeObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_idNodeMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),r._model=e,r._modelDoc=n,r._changeObserver=new Cb,r._viewTree=new Kb(Je(r),e,n),r._selection=new cb(r._viewTree),r._init(),r}return et(t,e),Ke(t,[{key:"_init",value:function(){var e=this;jc(this,this._modelDoc,"contentchange",(function(t){var n,r=t.operations,o=t.selection,i=t.mode,a=e._selection.isValid()?e._selection.clone():null;try{e._viewTree.applyOperations(r),n=e._changeObserver.getChanges()}finally{e._changeObserver.clear()}e._selection.updateBy(o),e.emit("contentchange",{changes:n,selection:e._selection,prevSelection:a,mode:i})})),jc(this,this._modelDoc,"selectionchange",(function(t){e._viewTree.fillRootNode();var n=e._selection.isValid()?e._selection.clone():null;e._selection.updateBy(t.selection);var r=e._changeObserver.getChanges(),o=e._changeObserver.hasChange();e._changeObserver.clear(),o?e.emit("contentchange",{changes:r,selection:e._selection,prevSelection:n,mode:He.Auto}):e.emit("selectionchange",{selection:e._selection,prevSelection:n})}))}},{key:"destroy",value:function(){this._selection.destroy(),this._viewTree.destroy()}},{key:"model",get:function(){return this._model}},{key:"changeObserver",get:function(){return this._changeObserver}},{key:"rootNode",get:function(){return this._viewTree.rootNode}},{key:"selection",get:function(){return this._selection}},{key:"entryPoint",get:function(){return this._modelDoc.entryPoint}},{key:"registerNode",value:function(e,t){this._idNodeMap[e]=t}},{key:"unregisterNode",value:function(e,t){this._idNodeMap[e]===t&&delete this._idNodeMap[e]}},{key:"getNodesByCategory",value:function(e){for(var t,n=[],r=0,o=Object.values(this._idNodeMap);r1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),i=1;i1?r-1:0),i=1;i1?n-1:0),o=1;o-1,"framework/engine/src/public/_card-node-lifecycle.ts:78"),this.plugin._cardNodes.splice(e,1),this._cardData&&this._cardData.destroy()}},{key:"$didUpdate",value:function(e){}},{key:"$unCollapsed",value:function(){var e,t,n,r;this.__hasInitUI||(this.__hasInitUI=!0,null===(e=this._$cardUI)||void 0===e||e.beforeInit(),null===(t=this._$cardUI)||void 0===t||(r=t).init.apply(r,pn(this._$cardUIInitArgs)),null===(n=this._$cardUI)||void 0===n||n.afterInit())}},{key:"$appear",value:function(e,t){var n,r=this;null===(n=this.uiEventCallbackPool.appear)||void 0===n||n.forEach((function(n){return n.call(r._$cardUI,e,t)}))}},{key:"$disappear",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.disappear)||void 0===e||e.forEach((function(e){e.call(t._$cardUI)}))}},{key:"_$beforeFocus",value:function(){var e,t,n;null===(n=null===(t=null===(e=this._cardRootNode)||void 0===e?void 0:e.parentNode)||void 0===t?void 0:t.classList)||void 0===n||n.add("ne-focused")}},{key:"$focus",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.focus)||void 0===e||e.forEach((function(e){e.call(t._$cardUI)}))}},{key:"$blur",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.blur)||void 0===e||e.forEach((function(e){e.call(t._$cardUI)}))}},{key:"_$afterFocus",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.afterFocus)||void 0===e||e.forEach((function(e){e.call(t._$cardUI)}))}},{key:"_$click",value:function(e){var t,n=this;null===(t=this.uiEventCallbackPool.click)||void 0===t||t.forEach((function(t){t.call(n._$cardUI,e)}))}},{key:"_$mouseenter",value:function(e){var t,n=this;null===(t=this.uiEventCallbackPool.mouseenter)||void 0===t||t.forEach((function(t){t.call(n._$cardUI,e)}))}},{key:"_$mousedown",value:function(e){var t,n=this;null===(t=this.uiEventCallbackPool.mousedown)||void 0===t||t.forEach((function(t){t.call(n._$cardUI,e)}))}},{key:"_$tap",value:function(e){var t,n=this;null===(t=this.uiEventCallbackPool.tap)||void 0===t||t.forEach((function(t){t.call(n._$cardUI,e)}))}},{key:"_$hover",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.hover)||void 0===e||e.forEach((function(e){e.call(t._$cardUI)}))}},{key:"_$longPress",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.longPress)||void 0===e||e.forEach((function(e){e.call(t._$cardUI)}))}},{key:"_$leave",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.leave)||void 0===e||e.forEach((function(e){e.call(t._$cardUI)}))}},{key:"_$beforeBlur",value:function(){var e,t,n,r,o=this;null===(n=null===(t=null===(e=this._cardRootNode)||void 0===e?void 0:e.parentNode)||void 0===t?void 0:t.classList)||void 0===n||n.remove("ne-focused"),null===(r=this.uiEventCallbackPool.beforeBlur)||void 0===r||r.forEach((function(e){e.call(o._$cardUI)}))}}]),e}();function Vy(e,t,n){return t=Qe(t),Xe(e,Hy()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Hy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hy=function(){return!!e})()}var zy=function(e){function t(e,n,r,o,i){var a,l;Ye(this,t),a=Vy(this,t),Object.defineProperty(Je(a),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_viewNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"pluginOption",{enumerable:!0,configurable:!0,writable:!0,value:null}),a.renderer=e,a._viewNode=n,a._cardRootNode=r,a.plugin=o,a.pluginOption=o.option,a.pluginContext=i,o._cardNodes.push(Je(a));var u=a.constructor,c=u.$CardData,s=u.$NonBoundary;return c&&(a._cardData=new c(a._viewNode.attrs.value,a.pluginOption),a._cardData.sync=function(e,t){var r,o,i;if(t){var l=t.getNodeById(n.attrs.id);return!!(l&&l.isConnected&&l.hasCategory(ze.Card))&&(l&&t.setAttribute(l,"value",null===(r=a._cardData)||void 0===r?void 0:r.getCardValue()),!0)}var u=a.renderer.execCommand("setCardValue",e,n.attrs.id,null===(o=a._cardData)||void 0===o?void 0:o.getCardValue());return null===(i=a._cardData)||void 0===i||i.afterChange(),u}),s||null===(l=r.parentNode)||void 0===l||l.setAttribute(Cc,"card"),a}return et(t,e),Ke(t,[{key:"cardData",get:function(){return this._cardData}},{key:"viewNode",get:function(){return this._viewNode}},{key:"dom",get:function(){var e;return(null===(e=Pp(this._viewNode))||void 0===e?void 0:e.getMainDOMNode())||null}},{key:"nodeName",get:function(){return this._viewNode.nodeName}},{key:"isVisible",get:function(){var e;return null===(e=Pp(this._viewNode))||void 0===e?void 0:e.isAppear}},{key:"id",get:function(){return this._viewNode.attrs.id}},{key:"value",get:function(){return Object.assign({},this._viewNode.attrs.value)}},{key:"cardRootNode",get:function(){return this._cardRootNode}},{key:"isInCollapsed",get:function(){var e=Rp(this._viewNode);return!!e&&zt.isInCollapsed(e)}},{key:"$didUpdate",value:function(e){this._cardData&&this._cardData.resetCardValue(this.value,e)}},{key:"sync",value:function(){return!0}}]),t}(Uy);Object.defineProperty(zy,"$NonBoundary",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(zy,"$LAZY_INIT",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(zy,"$VISIBILITY",{enumerable:!0,configurable:!0,writable:!0,value:!1});var Wy=function(e){function t(){return Ye(this,t),Vy(this,t,arguments)}return et(t,e),Ke(t)}(zy),qy=function(e){function t(){return Ye(this,t),Vy(this,t,arguments)}return et(t,e),Ke(t)}(zy),$y=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"createElement",value:function(e){return hd(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},{key:"createBoundaryNode",value:function(){var e=document.createElement("ne-boundary");return kp(e,"_neCustom",!0),e.innerHTML="
",e}},{key:"getChildren",value:function(e){var t,n,r=Cp(e,"__neDangerDomTree");return null===(n=null===(t=xp(e))||void 0===t?void 0:t.children)||void 0===n?void 0:n.map((function(e){return r._nodeMapper.getNativeNode(e)}))}},{key:"syncDOMAttrChange",value:function(t,n){var r=n.updated,o=n.removed;e.setAttributeByChange(t,r),e.removeAttributeByChange(t,o)}},{key:"syncDOMAttr",value:function(e,t,n,r){Cv.syncDomNodeAttr(e,t,n,r)}},{key:"setAttributeByChange",value:function(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(t){var n=t.type,r=t.name,o=t.value;n===vp?e.style[r]=o:n===gp?o(e):(kt(n===mp,"framework/engine/src/renderer/helpers/box-node-helper.ts:77"),e.setAttribute(r,o))}))}},{key:"removeAttributeByChange",value:function(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(t){var n=t.type,r=t.name;n===vp?e.style[r]="":n===gp?t.remove(e):(kt(n===mp,"framework/engine/src/renderer/helpers/box-node-helper.ts:96"),e.removeAttribute(r))}))}}]),e}();function Ky(e){for(;e;){if(e._neRef)return e._neRef;e=e.parentNode}return null}function Yy(e){return(null==e?void 0:e._viewNode)||null}function Gy(e){var t;return e?e._virtualNode?e._virtualNode:(null===(t=null==e?void 0:e._viewNode)||void 0===t?void 0:t._virtualNode)||null:null}function Jy(e,t,n){return t=Qe(t),Xe(e,Xy()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Xy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xy=function(){return!!e})()}var Qy=function(e){function t(e,n,r){var o;return Ye(this,t),o=Jy(this,t),Object.defineProperty(Je(o),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:r}),o}return et(t,e),Ke(t)}(Nu);function Zy(e,t,n){return t=Qe(t),Xe(e,ew()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ew=function(){return!!e})()}var tw=function(e){function t(e,n,r){var o;return Ye(this,t),o=Zy(this,t),Object.defineProperty(Je(o),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:r}),o}return et(t,e),Ke(t)}(tt);function nw(e){if(e.isTextNode())return 0===e.dataLength;if(e.isCardNode())return!1;if(e.isFillerNode())return!0;kt(e.isElement(),"framework/engine/src/view/view-tree/helper/is-like-empty.ts:17");var t=e;return!!t.isEmpty()||t.children.every((function(e){return nw(e)}))}const rw=Ny;function ow(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ow=function(){return!!e})()}function iw(e){var t;return t=function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,ow()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,[arguments.length<=0?void 0:arguments[0]]),Object.defineProperty(Je(e),"kernelOption",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e.kernelOption=arguments.length<=1?void 0:arguments[1],e}return et(t,e),Ke(t)}(e),Object.defineProperty(t,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:e.OptionName}),t}var aw=function(){function e(){Ye(this,e),Object.defineProperty(this,"_viewer",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Ke(e,[{key:"openLink",value:function(e,t){window.open(xh.sanitizeUrl(e),t?"_blank":"_self")}},{key:"openMentionLink",value:function(e,t){window.open(xh.sanitizeUrl(e),t?"_blank":"_self")}},{key:"previewImgs",value:function(e,t){}},{key:"longPressCard",value:function(e){}},{key:"_init",value:function(e){var t=this;this._viewer=e,this._viewer.on("visitLink",(function(e,n){t.openLink(e,n)})).on("openMentionLink",(function(e,n){t.openMentionLink(e,n)})).on("previewImgs",(function(e,n){t.previewImgs(e,n)})).on("longPressCard",(function(e){t.longPressCard(e)}))}}]),e}();function lw(e){return(null==e?void 0:e._viewerNode)||null}function uw(e){for(var t=e;t&&!t._neRef;)t=t.parentNode;return t?t._neRef.modelNode:null}var cw="ne-table-wrap",sw="ne-table-inner-wrap",dw="ne-table-box";function fw(e){var t;if(vw(e)||mw(e)){if(!(null===(t=lw(e.start.node))||void 0===t?void 0:t.isConnected))return null;var n=lw(e.start.node).getMainDOMNode().getBoundingClientRect();return n.isText=e.start.node.isTextNode(),[n]}if(e.collapsed)return function(e){var t,n=e.node,r=e.offset;if(!(null===(t=lw(n))||void 0===t?void 0:t.isConnected))return null;var o,i=function(e,t){for(var n=0,r=e.length;n0?n.node.children[n.offset-1]:null,h=!(null===(u=(l=n.node).isTextNode)||void 0===u?void 0:u.call(l));if(d===f&&h)e.push({node:d});else if(d&&(bw(d)?e.push({node:d}):(null===(c=d.isTextNode)||void 0===c?void 0:c.call(d))&&e.push({isText:!0,node:d,startOffset:s?0:t.offset,endOffset:d===f?n.offset:d.dataLength}),d!==f&&f)){if(!bw(d)&&d.isElement()&&d.firstChild)return pw(e,d.firstChild,n);if(d.nextSibling)return pw(e,d.nextSibling,n);for(;d.parentNode;){if(d.parentNode.nextSibling)return pw(e,d.parentNode.nextSibling,n);d=d.parentNode}}}function vw(e){return e.start.node===e.end.node&&"td"===e.start.node.nodeName}function mw(e){var t,n;return(null===(n=(t=e.start.node).isCardNode)||void 0===n?void 0:n.call(t))&&0===e.start.offset}function gw(e){return e&&e.classList&&e.classList.contains("ne-b-filler")}function bw(e){return e.isCardNode()||"table"===e.nodeName||"tr"===e.nodeName||"td"===e.nodeName}function yw(e,t,n){return t=Qe(t),Xe(e,ww()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ww(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ww=function(){return!!e})()}var kw=function(e){function t(){return Ye(this,t),yw(this,t,arguments)}return et(t,e),Ke(t,[{key:"parseRectsCoordinate",value:function(e){var t=this;return e.map((function(e){return{parentRectNode:e.parentRectNode||null,isText:e.isText||!1,isInline:e.isInline||e.isText||!1,nodeName:e.nodeName||"",x:e.x-t.boxRect.x,y:e.y-t.boxRect.y,width:e.width,height:e.height||20}}))}},{key:"getRectByViewRange",value:function(e){return fw(e)}}]),t}(Fp),Cw=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"_document",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_modelNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nodeName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_category",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_attrs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_offset",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._category=n.category||{},this._attrs=n.attrs||{},this._nodeName=n.nodeName}return Ke(e,[{key:"document",get:function(){return this._document}},{key:"rootNode",get:function(){return this._document.rootNode}},{key:"registry",get:function(){return this._document.registry}},{key:"attrs",get:function(){return Object.assign({},this._attrs)}},{key:"modelNode",get:function(){return this._modelNode}},{key:"domNode",get:function(){return this._domNode}},{key:"isConnected",get:function(){for(var e=this;e;){if(e.isRootNode())return!0;e=e._parent}return!1}},{key:"parent",get:function(){return this._parent}},{key:"parentNode",get:function(){return this._parent}},{key:"nodeName",get:function(){return this._nodeName}},{key:"nodeValue",get:function(){return null}},{key:"offset",get:function(){return this._offset}},{key:"previousSibling",get:function(){return this._parent?this._parent.getChildByOffset(this._offset-1):null}},{key:"nextSibling",get:function(){return this._parent?this._parent.getChildByOffset(this._offset+1):null}},{key:"init",value:function(){this._initialized=!0}},{key:"destroy",value:function(){}},{key:"$afterInit",value:function(){}},{key:"_afterInit",value:function(){var e,t,n,r;this._document&&(null===(t=null===(e=this._parent)||void 0===e?void 0:e.isRootNode)||void 0===t?void 0:t.call(e))&&(null===(r=(n=this._document).emit)||void 0===r||r.call(n,"viewerNodeInited",{modelNode:this.modelNode,mainDOMNode:this.getMainDOMNode()}))}},{key:"getMainDOMNode",value:function(){return this._domNode}},{key:"getContentDOMNode",value:function(){return this._domNode}},{key:"isInitialized",value:function(){return this._initialized}},{key:"getTagAttrs",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.attrs,r=[];t&&(null===(e=this._modelNode)||void 0===e?void 0:e.id)&&(r.push('id="'.concat(this._modelNode.id,'"')),r.push('data-lake-id="'.concat(this._modelNode.id,'"'))),Object.keys(n).forEach((function(e){var t=e,o=n[e];o?"object"===We(o)?o=JSON.stringify(o):o+="":o="",r.push("".concat(t,'="').concat(o,'"'))}));var o=r.join(" ");return o.length?" "+o:o}},{key:"getPath",value:function(){for(var e=this,t=[e._offset];(e=e._parent)&&!e.isRootNode();)t.push(e._offset);return t.reverse()}},{key:"isEmpty",value:function(){return!0}},{key:"hasCategory",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._category;Array.isArray(e)||(e=[e]);for(var r=0,o=e.length;r0&&void 0!==arguments[0]&&arguments[0],n=Cr(Qe(t.prototype),"toJSON",this).call(this);return e&&(n.children=this._children.map((function(e){return e.toJSON()}))),n}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodeName,n=this.getTagAttrs(),r="";return e&&(r=this._children.map((function(t){return t.toString(e)})).join("")),"<".concat(t).concat(n,">").concat(r,"")}},{key:"toHTML",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodeName,n="ne-".concat(t),r=this.getTagAttrs(!0),o="";return e&&(o=this._children.map((function(t){return t.toHTML(e)})).join("")),"<".concat(n).concat(r,">").concat(o,"")}},{key:"appendChild",value:function(e){if(e.parent===this&&e.offset+1===this.childCount)return e;_w(e);var t=e._parent;return t&&Ew(t,e),e._offset=this._children.length,e._parent=this,this._children.push(e),e}},{key:"prependChild",value:function(e){return 0===this.childCount?this.appendChild(e):this.insertBefore(e,this._children[0])}},{key:"removeChild",value:function(e){return _w(e),Ew(this,e),e}},{key:"insertBefore",value:function(e,t){if(kt(t.parent===this,"framework/viewer/src/viewer-document/node/viewer-element.ts:155"),_w(e),e===t)return e;var n=e._parent;n&&Ew(n,e);for(var r=this._children,o=r.indexOf(t),i=r.length-1;i>=o;i--)r[i]._offset++,r[i+1]=r[i];return e._offset=o,e._parent=this,r[o]=e,e}},{key:"insertAfter",value:function(e,t){_w(e),kt(t.parent===this,"framework/viewer/src/viewer-document/node/viewer-element.ts:187"),kt(e!==t,"framework/viewer/src/viewer-document/node/viewer-element.ts:188");var n=t.nextSibling;return n?this.insertBefore(e,n):this.appendChild(e)}},{key:"insertByOffset",value:function(e,t){return t.parent===this&&t.offset===e?t:(kt(e<=this._children.length,"framework/viewer/src/viewer-document/node/viewer-element.ts:204"),e===this._children.length?this.appendChild(t):this.insertBefore(t,this._children[e]))}}]),t}(Cw);function Ew(e,t){_w(t);var n=e._children.indexOf(t);kt(-1!==n,"framework/viewer/src/viewer-document/node/viewer-element.ts:222");var r=e._children;r.splice(n,1);for(var o=n,i=e._children.length;o0&&void 0!==arguments[0]&&arguments[0];return this._children.map((function(t){return t.toHTML(e)})).join("")}}]),t}(xw);function Sw(e,t,n){return t=Qe(t),Xe(e,Tw()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Tw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tw=function(){return!!e})()}var Aw=function(e){function t(e,n,r){var o;return Ye(this,t),o=Sw(this,t),Object.defineProperty(Je(o),"viewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:r}),o}return et(t,e),Ke(t)}(Nu);function jw(e,t,n){return t=Qe(t),Xe(e,Iw()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Iw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Iw=function(){return!!e})()}var Bw=function(e){function t(e,n,r){var o;return Ye(this,t),o=jw(this,t),Object.defineProperty(Je(o),"viewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:r}),o}return et(t,e),Ke(t)}(tt);function Mw(e,t,n){return t=Qe(t),Xe(e,Fw()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Fw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fw=function(){return!!e})()}var Lw=function(e){function t(e,n,r){var o;return Ye(this,t),o=Mw(this,t),Object.defineProperty(Je(o),"viewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"option",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(o),"service",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(o),"_cardNodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),o}return et(t,e),Ke(t,[{key:"cardNodes",get:function(){return this._cardNodes}},{key:"init",value:function(e,t){}},{key:"setService",value:function(e){this.service=e}},{key:"loaded",value:function(){return Promise.all(this._cardNodes.map((function(e){return e.loaded()})))}},{key:"destroy",value:function(){var e;this._cardNodes.forEach((function(e){e.destroy()})),this._cardNodes=null,this.removeAllListeners(),null===(e=this.service)||void 0===e||e.destroy(),this.service=null}}]),t}(ut);function Uw(e,t,n){return t=Qe(t),Xe(e,Vw()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vw=function(){return!!e})()}var Hw=function(){function e(t,n,r,o,i){var a=this;Ye(this,e),Object.defineProperty(this,"viewer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cardRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"plugin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"modelNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewerNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cardData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pluginOption",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_$cardUI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_$cardUIInitArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__hasInitUI",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isConnected",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"uiEventCallbackPool",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this.viewer=t,this.cardRootNode=n,this.plugin=r,this.pluginOption=r.option,this.modelNode=o,this.viewerNode=i,this._domNode=n,n._neRef=i,r._cardNodes.push(this);var l=this.constructor.$CardData;l&&(this.cardData=new l((o.attrs||{}).value,this.pluginOption),this.cardData.sync=function(e){var t=a.viewer.execCommand("setCardValue",e,o.id,a.cardData.getCardValue());return a.cardData.afterChange(),t})}return Ke(e,[{key:"registerUIEventCallback",value:function(e,t){var n,r=null===(n=this.uiEventCallbackPool)||void 0===n?void 0:n[e];r?r.push(t):this.uiEventCallbackPool[e]=[t]}},{key:"nodeName",get:function(){return this.modelNode.nodeName}},{key:"id",get:function(){return this.modelNode.id}},{key:"isInCollapsed",get:function(){return!!this.modelNode&&zt.isInCollapsed(this.modelNode)}},{key:"init",value:function(){}},{key:"loaded",value:function(){var e=this;return new Promise((function(t){e._$cardUI||t(!0),e._$cardUI.isLoaded()?t(!0):e._$cardUI.on("loaded",(function(){t(!0)}))}))}},{key:"$unCollapsed",value:function(){var e;this.__hasInitUI||(this.__hasInitUI=!0,(e=this._$cardUI).init.apply(e,pn(this._$cardUIInitArgs)))}},{key:"$afterInit",value:function(){this.constructor.$NonBoundary||this.cardRootNode.setAttribute(Cc,"card"),this._$cardUI&&this._$cardUI.afterInit()}},{key:"_$beforeFocus",value:function(){this.cardRootNode.classList.add("ne-focused")}},{key:"$focus",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.focus)||void 0===e||e.forEach((function(e){return e.call(t._$cardUI)}))}},{key:"_$afterFocus",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.afterFocus)||void 0===e||e.forEach((function(e){return e.call(t._$cardUI)}))}},{key:"_$beforeBlur",value:function(){var e,t=this;this.cardRootNode.classList.remove("ne-focused"),null===(e=this.uiEventCallbackPool.beforeBlur)||void 0===e||e.forEach((function(e){return e.call(t._$cardUI)}))}},{key:"$blur",value:function(){var e,t=this;null===(e=this.uiEventCallbackPool.blur)||void 0===e||e.forEach((function(e){return e.call(t._$cardUI)}))}},{key:"destroy",value:function(){var e;this.isConnected=!1,null===(e=this._$cardUI)||void 0===e||e.destroy(),this._$cardUI=null}}]),e}(),zw=function(e){function t(){return Ye(this,t),Uw(this,t,arguments)}return et(t,e),Ke(t)}(Hw),Ww=function(e){function t(){return Ye(this,t),Uw(this,t,arguments)}return et(t,e),Ke(t)}(Hw);function qw(e,t,n){return t=Qe(t),Xe(e,$w()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($w=function(){return!!e})()}var Kw,Yw=function(e){function t(e,n){var r;Ye(this,t),r=qw(this,t),Object.defineProperty(Je(r),"_viewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_mountDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(r),"_domRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_viewerBodyNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_innerOverlayContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_overlayContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_viewerBodyWidth",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_headerNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_isMaxView",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(r),"_maxViewNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_exitMaxBeforeCallback",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_exitMaxAfterCallback",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_scrollNodeOverflow",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_lastPos",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(r),"_clear",{enumerable:!0,configurable:!0,writable:!0,value:null}),r._domRootNode=document.createElement("div"),r._domRootNode.className="ne-viewer",r._domRootNode.setAttribute("data-viewer-mode",r._viewer.option.viewerMode),r._domRootNode.setAttribute("id",mr(5)),r._headerNode=yc('
")),r._viewerBodyNode=yc('
'),r._overlayContainer=yc('
'),r._innerOverlayContainer=yc('
'),r._domRootNode.appendChild(r._headerNode),r._domRootNode.appendChild(r._viewerBodyNode),r._domRootNode.appendChild(r._innerOverlayContainer),r._domRootNode._viewer=e,r._mountDOMNode.innerHTML="",r._mountDOMNode.appendChild(r._domRootNode);var o=hd("div",{style:{height:"0",overflow:"hidden"}});return o.innerHTML="​",r._mountDOMNode.appendChild(o),document.body.appendChild(r._overlayContainer),r.bindEvent(),r}return et(t,e),Ke(t,[{key:"domRootNode",get:function(){return this._domRootNode}},{key:"viewerBodyNode",get:function(){return this._viewerBodyNode}},{key:"overlayContainer",get:function(){return this._overlayContainer}},{key:"innerOverlayContainer",get:function(){return this._innerOverlayContainer}},{key:"headerNode",get:function(){return this._headerNode}},{key:"isMaxView",get:function(){return this._isMaxView}},{key:"getViewerDisplayWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(null===this._viewerBodyWidth||e)&&(this._viewerBodyWidth=this._viewerBodyNode.offsetWidth),this._viewerBodyWidth}},{key:"destroy",value:function(){var e;this._headerNode=null,this._innerOverlayContainer=null,this._viewerBodyNode=null,this._domRootNode=null,this._scrollNodeOverflow=null,this._maxViewNode=null,this._isMaxView=!1,this._exitMaxBeforeCallback=null,this._exitMaxAfterCallback=null,this._mountDOMNode.innerHTML="",null===(e=this._overlayContainer)||void 0===e||e.remove(),this.removeAllListeners()}},{key:"bindEvent",value:function(){var e=this;kc(this,this._headerNode,"click",(function(t){t.target.closest(".ne-ui-exit-max-view-btn")&&e._viewer.exitMaxView()}))}},{key:"togglePreventScroll",value:function(e){var t=this._viewer.option.getScrollNode(),n=t;n===document.scrollingElement&&(n=document.body),n&&(null===this._scrollNodeOverflow&&(this._scrollNodeOverflow=Ud(n)?n.style.overflow:null),Ud(t)&&Ud(n)&&(e?(this._lastPos=t.scrollTop,n.style.overflow="hidden"):(n.style.overflow=this._scrollNodeOverflow||"",t.scrollTop=this._lastPos)))}},{key:"enterMaxView",value:function(e,t,n,r){var o=this;this.togglePreventScroll(!0),this._isMaxView=!0,this._maxViewNode=e,this._exitMaxBeforeCallback=n||null,this._exitMaxAfterCallback=r||null,this._domRootNode.classList.add("ne-ui-max-view"),this._maxViewNode.classList.add("ne-ui-max-view-node","ne-max");var i=function e(n){var r;27===n.keyCode&&(o._isMaxView&&(null===(r=null==t?void 0:t.preventEscExitMaxView)||void 0===r?void 0:r.call(t))||(setTimeout((function(){o._viewer.exitMaxView()}),0),document.removeEventListener("keydown",e)))};return document.addEventListener("keydown",i),this._clear=function(){document.removeEventListener("keydown",i)},!0}},{key:"exitMaxView",value:function(){var e,t,n,r;return null===(e=this._clear)||void 0===e||e.call(this),!!this._isMaxView&&(null===(t=this._exitMaxBeforeCallback)||void 0===t||t.call(this),this._exitMaxBeforeCallback=null,this._isMaxView=!1,this._domRootNode.classList.remove("ne-ui-max-view"),null===(n=this._maxViewNode)||void 0===n||n.classList.remove("ne-ui-max-view-node","ne-max"),this.togglePreventScroll(!1),null===(r=this._exitMaxAfterCallback)||void 0===r||r.call(this),this._exitMaxAfterCallback=null,!0)}}]),t}(ut),Gw=o(5364),Jw=o.n(Gw);!function(e){e.Normal="normal",e.Simple="simple",e.Present="present"}(Kw||(Kw={}));var Xw=".ne-viewer",Qw=".ne-viewer-body";function Zw(e,t,n){return t=Qe(t),Xe(e,ek()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ek(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ek=function(){return!!e})()}var tk=function(e){function t(e){var n;return Ye(this,t),n=Zw(this,t),Object.defineProperty(Je(n),"target",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"openLink",value:function(e,t){var n,r;null===(r=(n=this.target).openLink)||void 0===r||r.call(n,e,t)}},{key:"openMentionLink",value:function(e,t){var n,r;null===(r=(n=this.target).openMentionLink)||void 0===r||r.call(n,e,t)}},{key:"previewImgs",value:function(e,t){var n,r;null===(r=(n=this.target).previewImgs)||void 0===r||r.call(n,e,t)}},{key:"longPressCard",value:function(e){var t,n;null===(n=(t=this.target).longPressCard)||void 0===n||n.call(t,e)}}]),t}(aw),nk={currentURL:"undefined"!=typeof location?location.href:"about:blank",themeManager:null,scrollNode:document.scrollingElement||document.body,disabledPlugins:[],disableToolbar:!1,viewerMode:Kw.Normal,tileRendering:!1,header:null,boundaryTopOffset:0,isLogged:!1,loadedTimeout:1e4},rk=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"_viewer",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},nk,{envAdapter:new aw},n),!this._option.envAdapter||this._option.envAdapter instanceof aw||(this._option.envAdapter=new tk(this._option.envAdapter)),this._option.envAdapter||(this._option.envAdapter=new aw)}return Ke(e,[{key:"themeManager",get:function(){return this._option.themeManager}},{key:"envAdapter",get:function(){return this._option.envAdapter}},{key:"disabledPlugins",get:function(){return this._option.disabledPlugins||[]}},{key:"disableToolbar",get:function(){return this._option.disableToolbar}},{key:"isTranslateMode",get:function(){return!!new URL(document.location.href).searchParams.get("translate")}},{key:"currentURL",get:function(){return this._viewer.kernel.option.currentURL}},{key:"generateCardLink",get:function(){return this._option.generateCardLink}},{key:"viewerMode",get:function(){return this._option.viewerMode}},{key:"header",get:function(){return this._option.header}},{key:"boundaryTopOffset",get:function(){return this._option.boundaryTopOffset}},{key:"isLogged",get:function(){return this._option.isLogged}},{key:"loadedTimeout",get:function(){return this._option.loadedTimeout}},{key:"get",value:function(e){return this._option[e]||null}},{key:"isTileRendering",value:function(){return!0===this._option.tileRendering}},{key:"getScrollNode",value:function(){return kt(this._option.scrollNode,"framework/viewer/src/viewer-option.ts:161"),"function"==typeof this._option.scrollNode?this._option.scrollNode():this._option.scrollNode}},{key:"getHeader",value:function(){return"function"==typeof this._option.header?this._option.header():this._option.header}}]),e}(),ok=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"viewer",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"modelNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"document",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Ke(e,[{key:"init",value:function(){}},{key:"$afterInit",value:function(){}},{key:"destroy",value:function(){}},{key:"getMainDOMNode",value:function(){kt(!1,"framework/viewer/src/public/v-box-node.ts:33")}},{key:"getContentDOMNode",value:function(){return this.getMainDOMNode()}},{key:"updateAttribute",value:function(e,t){}}]),e}();function ik(e,t){return t.isTextNode()?e.createTextNode(t):t.isElement()?e.registry.isBoxNode(t.nodeName)?e.createBoxNode(t):e.createElement(t):t.isCardNode()?t.hasCategory(ze.InlineCard)?e.createInlineCardNode(t):e.createBlockCardNode(t):void kt(!1,"framework/viewer/src/viewer-document/helpers/create-viewer-node.ts:31")}function ak(e,t,n){return t=Qe(t),Xe(e,lk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lk=function(){return!!e})()}var uk=function(e){function t(){var e;return Ye(this,t),e=ak(this,t,arguments),Object.defineProperty(Je(e),"_instance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_focused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"cardValue",get:function(){return Object.assign({},this._attrs.value)}},{key:"cardNodeInstance",get:function(){return this._instance}},{key:"isCardNode",value:function(){return!0}},{key:"isFocused",value:function(){return this._focused}},{key:"init",value:function(){kt(!this._instance,"framework/viewer/src/viewer-document/node/viewer-card-node.ts:39"),this._newInstance(),Cv.syncDOMNodeAttrs(this.registry,this.getMainDOMNode(),this.modelNode.attrs),Cr(Qe(t.prototype),"init",this).call(this)}},{key:"$afterInit",value:function(){Cr(Qe(t.prototype),"$afterInit",this).call(this),this._instance&&(this._instance.cardRootNode._neRef=this,this._instance.cardRootNode.id=this.modelNode.id,this._instance.$afterInit())}},{key:"$focus",value:function(){this._instance._$beforeFocus(),this._focused=!0,this._instance.$focus(),this._instance._$afterFocus()}},{key:"$blur",value:function(){this._instance._$beforeBlur(),this._focused=!1,this._instance.$blur()}},{key:"_newInstance",value:function(){var e=this.nodeName,t=this.modelNode,n=this.registry.getCardClass(e);kt(n,"CardClass for ".concat(e," not registered"),"framework/viewer/src/viewer-document/node/viewer-card-node.ts:75");var r=n.definition,o=n.pluginInstance;kt(r&&o,"framework/viewer/src/viewer-document/node/viewer-card-node.ts:77");var i=this._createCardRootNode(e);i.setAttribute("id",t.id),this._instance="factory"in r?r.factory(this.document.viewer,i,o,t,this):new r(this.document.viewer,i,o,t,this),this._instance.init()}},{key:"getMainDOMNode",value:function(){return kt(this._instance,"framework/viewer/src/viewer-document/node/viewer-card-node.ts:106"),this._instance.cardRootNode}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),this._instance&&this._instance.destroy()}},{key:"print",value:function(){return{nodeName:this._nodeName,attr:this.attrs}}},{key:"toString",value:function(){var e=this.nodeName,t=this.getTagAttrs();return"<".concat(e).concat(t,">")}},{key:"toHTML",value:function(){var e=this.nodeName,t=this.getTagAttrs();return"")}}]),t}(Cw);function ck(e,t,n){return t=Qe(t),Xe(e,sk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sk=function(){return!!e})()}var dk=function(e){function t(){return Ye(this,t),ck(this,t,arguments)}return et(t,e),Ke(t,[{key:"isBlockCardNode",value:function(){return!0}},{key:"_createCardRootNode",value:function(e){return hd("ne-card",{"data-card-name":e,"data-card-type":"block"})}}]),t}(uk);function fk(e,t,n){return t=Qe(t),Xe(e,hk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hk=function(){return!!e})()}var pk=function(e){function t(e){return Ye(this,t),fk(this,t,[e,{nodeName:"#blockFiller"}])}return et(t,e),Ke(t,[{key:"isFillerNode",value:function(){return!0}},{key:"isBlockFillerNode",value:function(){return!0}},{key:"init",value:function(){this._domNode=document.createElement("span"),this._domNode.classList.add("ne-viewer-b-filler"),this._domNode.setAttribute("ne-filler","block"),this._domNode._neRef=this;var e=document.createElement("br");this._domNode.appendChild(e)}}]),t}(Cw);function vk(e,t,n){return t=Qe(t),Xe(e,mk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mk=function(){return!!e})()}var gk=function(e){function t(){var e;return Ye(this,t),e=vk(this,t,arguments),Object.defineProperty(Je(e),"_instance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"isBoxNode",value:function(){return!0}},{key:"init",value:function(){kt(!this._instance,"framework/viewer/src/viewer-document/node/viewer-box-node.ts:24"),this._newInstance(),Cr(Qe(t.prototype),"init",this).call(this)}},{key:"_getBoxDefinition",value:function(){return this.registry.getBoxDefinition(this.nodeName)}},{key:"_newInstance",value:function(){var e=this.modelNode,t=this._getBoxDefinition();t?(this._instance="clazz"in t?new t.clazz(this.document.viewer,e,t.pluginContext):t.factory(this.document.viewer,e,t.pluginContext),this._instance.document=this.document,this._instance.init(),this._domNode=this._instance.getMainDOMNode()):console.warn("BoxNode Class not found",this.nodeName)}},{key:"getMainDOMNode",value:function(){return this._instance.getMainDOMNode()}},{key:"getContentDOMNode",value:function(){return this._instance.getContentDOMNode()}},{key:"$afterInit",value:function(){if(Cr(Qe(t.prototype),"$afterInit",this).call(this),this._instance){var e=this._instance.getMainDOMNode();e._neRef=this,Cv.syncDOMNodeAttrs(this.registry,e,this.modelNode.attrs),this._instance.$afterInit()}}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),this._instance&&this._instance.destroy()}},{key:"toHTML",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this._getBoxDefinition();return(null===(e=null==r?void 0:r.clazz)||void 0===e?void 0:e.toHTML)?r.clazz.toHTML(this,n):Cr(Qe(t.prototype),"toHTML",this).call(this,n)}},{key:"updateAttribute",value:function(e){var t;null===(t=this._instance)||void 0===t||t.updateAttribute(Cv.translateChange(this.document.registry,this.modelNode.attrs,e),e)}}]),t}(xw);function bk(e,t,n){return t=Qe(t),Xe(e,yk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yk=function(){return!!e})()}var wk=function(e){function t(){return Ye(this,t),bk(this,t,arguments)}return et(t,e),Ke(t,[{key:"isInlineCardNode",value:function(){return!0}},{key:"_createCardRootNode",value:function(e){return hd("ne-card",{"data-card-name":e,"data-card-type":"inline"})}}]),t}(uk);function kk(e,t,n){return t=Qe(t),Xe(e,Ck()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ck(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ck=function(){return!!e})()}var _k=function(e){function t(e,n){var r;return Ye(this,t),r=kk(this,t,[e,n]),Object.defineProperty(Je(r),"_data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._data=r.modelNode.data,r}return et(t,e),Ke(t,[{key:"data",get:function(){return this._data}},{key:"dataLength",get:function(){return On.size(this._data)}},{key:"isEmpty",value:function(){return!this._data}},{key:"init",value:function(){var e=this;if(!this.isInitialized()){this._domNode=document.createElement("ne-text"),this._domNode.textContent=this._data||"",this._domNode.id=this.modelNode.id,this._domNode._neRef=this,Cv.syncDOMNodeAttrs(this.registry,this._domNode,this.modelNode.attrs);var n=this.modelNode.attrs,r=n.color,o=n.bgColor;if(r||o){var i={destroy:function(){}};jc(i,this._document.viewer.theme,"themeChange",(function(){r&&Cv.syncDomNodeAttr(e.registry,e._domNode,"color",r),o&&Cv.syncDomNodeAttr(e.registry,e._domNode,"bgColor",o)})),this._document.once("beforedestroy",(function(){i.destroy()}))}Cr(Qe(t.prototype),"init",this).call(this)}}},{key:"isTextNode",value:function(){return!0}},{key:"toString",value:function(){var e=this.getTagAttrs();return"<#text".concat(e,">").concat(this._data,"")}},{key:"toHTML",value:function(){var e=this.getTagAttrs();return"").concat(this._data,"")}},{key:"toJSON",value:function(){return{id:this._modelNode.id,name:this._nodeName,data:this._data}}}]),t}(Cw);function Nk(e,t){var n=e.getViewerNode(t);return n||(n=e.viewerDoc.getNodeByModelNode(t)),n}var Ok=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"applyAddAttr",value:function(e,t){var n=t.node,r=t.attrName,o=t.attrValue;Nk(e,n).setAttribute(r,o)}},{key:"applyUpdateAttr",value:function(e,t){var n=t.node,r=t.attrName,o=t.attrValue;Nk(e,n).setAttribute(r,o)}},{key:"applyRemoveAttr",value:function(e,t){var n=t.node,r=t.attrName;Nk(e,n).removeAttribute(r)}}]),e}(),xk=function(){function e(){Ye(this,e),Object.defineProperty(this,"_v2m",{enumerable:!0,configurable:!0,writable:!0,value:new WeakMap}),Object.defineProperty(this,"_m2v",{enumerable:!0,configurable:!0,writable:!0,value:new WeakMap})}return Ke(e,[{key:"add",value:function(e,t){this._v2m.set(e,t),this._m2v.set(t,e),e._modelNode=t,t._viewerNode=e}},{key:"getViewerNode",value:function(e){return this._m2v.get(e)}},{key:"getModelNode",value:function(e){return this._v2m.get(e)}}]),e}();function Ek(e,t){t.hasCategory(ze.Block)&&t.isElement()&&t.appendChild(e.createBlockFillerNode())}function Dk(e,t){var n=e.rootNode;t.children.forEach((function(t){Rk(e,n,t)}))}function Rk(e,t,n){var r=e.getNodeByModelNode(n);t.appendChild(r),n.isElement()&&n.children.forEach((function(t){Rk(e,r,t)})),Ek(e,r)}var Pk=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"_domRootNode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_modelDoc",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_viewerDoc",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_modelMapper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._modelMapper=new xk,this._rootNode=new Pw(this._viewerDoc,this._modelDoc.rootNode),this._rootNode._domNode=this._domRootNode,this._rootNode._domNode._neRef=this._rootNode,this._modelDoc.rootNode._viewerNode=this._rootNode}return Ke(e,[{key:"rootNode",get:function(){return this._rootNode}},{key:"viewerDoc",get:function(){return this._viewerDoc}},{key:"applyOperations",value:function(e){var t=this;e.forEach((function(e){t._applyOperation(e)}))}},{key:"_applyOperation",value:function(e){switch(e.type){case"add_attr":return Ok.applyAddAttr(this,e);case"update_attr":return Ok.applyUpdateAttr(this,e);case"remove_attr":return Ok.applyRemoveAttr(this,e);default:return}}},{key:"generate",value:function(){Dk(this._viewerDoc,this._modelDoc.rootNode)}},{key:"connectViewerModelNode",value:function(e,t){this._modelMapper.add(e,t)}},{key:"getViewerNode",value:function(e){return this._modelMapper.getViewerNode(e)}},{key:"getModelNode",value:function(e){return this._modelMapper.getModelNode(e)}},{key:"destroy",value:function(){try{!function e(t){t.isElement()&&t.children.length&&t.children.reverse().forEach(e),t.destroy()}(this._rootNode)}catch(e){console.error("viewer 销毁异常",e)}}}]),e}(),Sk=function(){function e(){Ye(this,e),Object.defineProperty(this,"_changed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_attrChanges",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}return Ke(e,[{key:"hasChange",value:function(){return this._changed}},{key:"addChange",value:function(e,t){switch(e){case"add-attr":this._parseAddAttr(t);break;case"update-attr":this._parseUpdateAttr(t);break;case"remove-attr":this._parseRemoveAttr(t)}}},{key:"_parseAddAttr",value:function(e){var t=e.node,n=e.attrName,r=this._attrChanges;kt(n,"framework/viewer/src/viewer-document/change-observer/viewer-change-observer.ts:77"),r.has(t)?r.get(t)[n]={type:"add"}:r.set(t,Ja({},n,{type:"add"}))}},{key:"_parseUpdateAttr",value:function(e){var t,n=e.node,r=e.attrName,o=this._attrChanges;if(kt(r,"framework/viewer/src/viewer-document/change-observer/viewer-change-observer.ts:96"),o.has(n)){if("add"===(null===(t=o.get(n)[r])||void 0===t?void 0:t.type))return;o.get(n)[r]={type:"update"}}else o.set(n,Ja({},r,{type:"update"}))}},{key:"_parseRemoveAttr",value:function(e){var t=e.node,n=e.attrName,r=e.attrValue,o=this._attrChanges;kt(n,"framework/viewer/src/viewer-document/change-observer/viewer-change-observer.ts:121"),o.has(t)?o.get(t)[n]={type:"remove",value:r}:o.set(t,Ja({},n,{type:"remove",value:r}))}},{key:"getChanges",value:function(){var e=[];return this._attrChanges.forEach((function(t,n){e.push({node:n,attrs:t})})),{attrChanges:e}}},{key:"clear",value:function(){this._changed=!1,this._attrChanges.clear()}}]),e}();function Tk(e,t,n){return t=Qe(t),Xe(e,Ak()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ak(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ak=function(){return!!e})()}var jk=function(e){function t(e,n,r,o){var i;return Ye(this,t),i=Tk(this,t),Object.defineProperty(Je(i),"viewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(i),"_registry",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(i),"_modelDoc",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(i),"_domRootNode",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(i),"_viewerTree",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_viewerChangeObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_drawers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),i._viewerTree=new Pk(o,r,Je(i)),i._viewerChangeObserver=new Sk,i._modelDoc.on("contentchange",(function(e){var t,n=e.operations;try{i._viewerTree.applyOperations(n),t=i._viewerChangeObserver.getChanges()}finally{i._viewerChangeObserver.clear()}i.emit("contentchange",{changes:t})})),i._initEvent(),i}return et(t,e),Ke(t,[{key:"registry",get:function(){return this._registry}},{key:"modelDoc",get:function(){return this._modelDoc}},{key:"domRootNode",get:function(){return this._domRootNode}},{key:"rootNode",get:function(){return this._viewerTree.rootNode}},{key:"viewerTree",get:function(){return this._viewerTree}},{key:"viewerChangeObserver",get:function(){return this._viewerChangeObserver}},{key:"destroy",value:function(){this.emit("beforedestroy"),this.viewer=null,this._registry=null,this._modelDoc=null,this._domRootNode.innerHTML="",this._domRootNode=null,this._drawers.forEach((function(e){e.destroy()})),this._drawers=[],this._viewerTree.destroy(),this.removeAllListeners()}},{key:"addChange",value:function(){var e;(e=this._viewerChangeObserver).addChange.apply(e,arguments)}},{key:"getNodeByModelNode",value:function(e){var t=this._viewerTree.getViewerNode(e);return t||(t=ik(this,e),this._viewerTree.connectViewerModelNode(t,e)),t}},{key:"createTextNode",value:function(e){return new _k(this,e)}},{key:"createElement",value:function(e){return new xw(this,e)}},{key:"createBoxNode",value:function(e){return new gk(this,e)}},{key:"createInlineCardNode",value:function(e){return new wk(this,e)}},{key:"createBlockCardNode",value:function(e){return new dk(this,e)}},{key:"createBlockFillerNode",value:function(){return new pk(this)}},{key:"createDrawer",value:function(){var e=new kw(this._domRootNode,{hPadding:0});return this._drawers.push(e),e}},{key:"_initEvent",value:function(){var e=this;this._modelDoc.once("ready",(function(){e._initDoc(),e.emit("ready")}))}},{key:"_initDoc",value:function(){this._viewerTree.generate()}}]),t}(ut);function Ik(e,t,n){return t=Qe(t),Xe(e,Bk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Bk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bk=function(){return!!e})()}var Mk=function(e){function t(e){var n;return Ye(this,t),n=Ik(this,t),Object.defineProperty(Je(n),"_viewerDoc",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._viewerDoc=null,this.removeAllListeners()}},{key:"applyContentChange",value:function(e){(null==e?void 0:e.attrChanges)&&e.attrChanges.forEach((function(e){var t,n=e.node,r=e.attrs;null===(t=n.updateAttribute)||void 0===t||t.call(n,r)}))}}]),t}(ut);function Fk(e){Lk(e),e.isElement()&&e.children.forEach((function(e){Fk(e)}))}function Lk(e){var t=e.parentNode;if(t&&!t.isInitialized()&&Lk(t),!e.isInitialized()&&(e.init(),t)){var n=e.getMainDOMNode();t.getContentDOMNode().appendChild(n),e.$afterInit(),e._afterInit()}}function Uk(e,t,n){return t=Qe(t),Xe(e,Vk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Vk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vk=function(){return!!e})()}var Hk=function(e){function t(){var e;return Ye(this,t),e=Uk(this,t,arguments),Object.defineProperty(Je(e),"_readyTimer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this;this._viewerDoc.rootNode.children.forEach((function(t,n){0===n&&e.emit("firstRender"),Fk(t)})),this._readyTimer=setTimeout((function(){return e.emit("ready")}))}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),this._readyTimer&&clearTimeout(this._readyTimer)}}]),t}(Mk);function zk(e,t,n){return t=Qe(t),Xe(e,Wk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Wk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wk=function(){return!!e})()}var qk=function(e){function t(e){var n;return Ye(this,t),n=zk(this,t,[e]),Object.defineProperty(Je(n),"_total",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_tileCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_tileSize",{enumerable:!0,configurable:!0,writable:!0,value:30}),Object.defineProperty(Je(n),"_currentTileIndex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(n),"_rafId",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(n),"timeIds",{enumerable:!0,configurable:!0,writable:!0,value:[]}),n._total=e.rootNode.childCount,kt(n._total>=0,"framework/viewer/src/viewer-renderer/render-controller/viewer-tile-render-controller/index.ts:19"),n._tileCount=Math.ceil(n._total/n._tileSize),n}return et(t,e),Ke(t,[{key:"getTileRenderNodes",value:function(){var e=this._currentTileIndex*this._tileSize,t=e+this._tileSize;t>this._total&&(t=this._total),kt(t>=e,"framework/viewer/src/viewer-renderer/render-controller/viewer-tile-render-controller/index.ts:31");var n=this._viewerDoc.rootNode.children.slice(e,t);return this._currentTileIndex+=1,n}},{key:"render",value:function(){this.tileRender()}},{key:"tileRender",value:function(){var e=this;this.getTileRenderNodes().forEach((function(e){Fk(e)})),this.timeIds.push(setTimeout((function(){return e.emit("firstRender")}))),this.isComplete()?this.timeIds.push(setTimeout((function(){return e.emit("ready")}))):this._rafId=requestAnimationFrame((function(){return e.tileRender()}))}},{key:"isComplete",value:function(){return this._currentTileIndex>=this._tileCount}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),-1!==this._rafId&&cancelAnimationFrame(this._rafId),this.timeIds.forEach((function(e){return clearTimeout(e)})),this.timeIds.length=0}}]),t}(Mk);function $k(e,t,n){return t=Qe(t),Xe(e,Kk()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Kk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kk=function(){return!!e})()}var Yk=function(e){function t(e,n){var r;return Ye(this,t),r=$k(this,t),Object.defineProperty(Je(r),"_viewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_viewerDoc",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(r),"_renderController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._viewer.option.isTileRendering()?r._renderController=new qk(r._viewerDoc):r._renderController=new Hk(r._viewerDoc),r._viewerDoc.on("contentchange",(function(e){var t=e.changes;r._viewer.viewer.emit("contentchange"),r._renderController.applyContentChange(t),r._viewer.viewer.emit("afterContentChange")})),r._renderController.on("ready",(function(){r.emit("ready")})),r._renderController.on("firstRender",(function(){r.emit("firstRender")})),r}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._renderController.destroy(),this._renderController=null,this._viewer=null,this._viewerDoc=null}},{key:"render",value:function(){this._renderController.render()}}]),t}(ut);function Gk(e,t){for(var n=t,r=0;n&&!n._neRef;)n=n.parentNode;if(!n)return null;for(var o=n._neRef.modelNode,i=o;null!=(i=i.previousSibling);)r++;return[{start:{node:o.parentNode,offset:r},end:{node:o.parentNode,offset:r+1},collapsed:!1,commonAncestorContainer:o.parentNode}]}function Jk(e,t){return[{start:{node:t,offset:0},end:{node:t,offset:1},collapsed:!1,commonAncestorContainer:t}]}function Xk(e,t){var n=function(e,t){var n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=t.commonAncestorContainer,l=t.collapsed;return n===e.domRootNode&&0===r&&o===e.domRootNode&&i===e.domRootNode.children.length&&(n=e.viewerBodyNode,r=0,o=e.viewerBodyNode,i=e.viewerBodyNode.children.length,a=e.viewerBodyNode,l=!1),{startContainer:n,startOffset:r,endContainer:o,endOffset:i,commonAncestorContainer:a,collapsed:l}}(e,t),r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset,l=n.commonAncestorContainer,u=n.collapsed;if(null===Nc(l,Qw,e.viewerBodyNode))return null;var c=Qk(l,0),s=Qk(r,o);if(!s)return null;if(u||c.node.isCardNode())return{start:s,end:Object.assign({},s),collapsed:!0,commonAncestorContainer:c.node};var d,f,h=Qk(i,a);return h?(d={start:s,end:h,collapsed:!1,commonAncestorContainer:c.node},f=function(e){var t=e.node;if(t.hasCategory(ze.BlockCard)){var n=t.closest(ze.Hole);return{node:n.parentNode,offset:n.offset}}return kt(t.hasCategory(ze.InlineCard),"framework/viewer/src/utils/transform-dom-range-to-view-range.ts:79"),{node:t.parentNode,offset:t.offset}},d.start.node.isCardNode()&&(d.start=f(d.start)),d.end.node.isCardNode()&&(d.end=f(d.end),d.end.offset+=1),d.start.node===d.end.node&&d.start.offset===d.end.offset&&(d.collapsed=!0),d):null}function Qk(e,t){var n,r=e.nodeType,o=Nc(e,"ne-card");if(o)return n=o._neRef,kt(n,"framework/viewer/src/utils/transform-dom-range-to-view-range.ts:163"),{node:n.modelNode,offset:0};if(r===Node.ELEMENT_NODE){for(;e&&!e._neRef;)t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode;n=e._neRef,kt(n,"framework/viewer/src/utils/transform-dom-range-to-view-range.ts:180"),n.isFillerNode()?(t=n.offset,n=n.parent):t=0===n.childCount?0:eC(e,t).offset}if(r===Node.TEXT_NODE)for(var i=e;i.parentNode;){if(i._neRef){n=i._neRef;break}t=Zk(i,t),i=i.parentNode}return kt(n,"framework/viewer/src/utils/transform-dom-range-to-view-range.ts:205"),function(e){var t=e.node,n=e.offset;if(0===n||!t.isElement())return{node:t.modelNode,offset:n};for(var r=t.children,o=n;o>=1;o--)r[o-1].isFillerNode()&&n--;return kt(n<=t.modelNode.children.length,"framework/viewer/src/utils/transform-dom-range-to-view-range.ts:310"),{node:t.modelNode,offset:n}}({node:n,offset:t})}function Zk(e,t){for(var n,r=e.previousSibling;r;)t+=(r.nodeType===Node.TEXT_NODE?r.length:null===(n=r.innerText)||void 0===n?void 0:n.length)||0,r=r.previousSibling;return t}function eC(e,t){for(var n=e.childNodes,r=t,o=n.length;r=0;l--){var u=n[l];if(u._neRef)return{continue:!1,offset:u._neRef.offset+1};if(u.nodeType===Node.ELEMENT_NODE){var c=eC(u,u.childNodes.length);if(!c.continue)return c}}return{continue:!0,offset:0}}function tC(e,t,n){return t=Qe(t),Xe(e,nC()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function nC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nC=function(){return!!e})()}var rC=function(e){function t(e,n){var r;Ye(this,t),r=tC(this,t),Object.defineProperty(Je(r),"_cardId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_cardNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_modelNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_viewer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_pluginOption",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_cardData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_cardRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_containerNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_isAsyncUI",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(r),"_loaded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(r),"_isFocused",{enumerable:!0,configurable:!0,writable:!0,value:!1});var o=n.id,i=n.cardRootNode,a=n.cardData,l=n.plugin,u=n.pluginOption;return r._viewer=e,r._cardNode=n,r._modelNode=n.modelNode,r._plugin=l,r._pluginOption=u,r._cardRootNode=i,r._cardData=a,r._cardId=o,r._containerNode=document.createElement("div"),r._containerNode.className="ne-card-container",r._cardRootNode.appendChild(r._containerNode),r._cardNode.registerUIEventCallback("afterFocus",r._afterFocus),r._cardNode.registerUIEventCallback("beforeBlur",r._beforeBlur),r._cardNode.registerUIEventCallback("blur",r.blur),r._cardNode.registerUIEventCallback("focus",r.focus),r}return et(t,e),Ke(t,[{key:"id",get:function(){return this._cardId}},{key:"cardNode",get:function(){return this._cardNode}},{key:"modelNode",get:function(){return this._modelNode}},{key:"viewer",get:function(){return this._viewer}},{key:"plugin",get:function(){return this._plugin}},{key:"pluginOption",get:function(){return this._pluginOption}},{key:"cardData",get:function(){return this._cardData}},{key:"cardRootNode",get:function(){return this._cardRootNode}},{key:"containerNode",get:function(){return this._containerNode}},{key:"isAsyncUI",value:function(){return this._isAsyncUI}},{key:"isLoaded",value:function(){return this._loaded}},{key:"init",value:function(){}},{key:"loaded",value:function(){this._loaded=!0,this.emit("loaded")}},{key:"afterInit",value:function(){this.isAsyncUI()||this.loaded()}},{key:"destroy",value:function(){this._cardData&&this._cardData.destroy(),this.removeAllListeners()}},{key:"focus",value:function(){}},{key:"blur",value:function(){}},{key:"onAfterFocus",value:function(){}},{key:"onBeforeBlur",value:function(){}},{key:"_afterFocus",value:function(){this._isFocused=!0,this.onAfterFocus()}},{key:"_beforeBlur",value:function(){this._isFocused=!1,this.onBeforeBlur()}}],[{key:"extend",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(t){var n=t.type,r=t.name,o=t.value;n===vp?e.style[r]=o:(kt(n===mp,"framework/viewer/src/utils/v-box-node-helper.ts:30"),e.setAttribute(r,o))}))}},{key:"removeAttributeByChange",value:function(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(t){var n=t.type,r=t.name;n===vp?e.style[r]="":(kt(n===mp,"framework/viewer/src/utils/v-box-node-helper.ts:47"),e.removeAttribute(r))}))}}]),e}();function aC(){return aC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dC(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:1),t};e_.cancel=function(e){var t=QC.get(e);return ZC(e),JC(t)};const t_=e_;var n_=[EC,DC,RC,PC],r_=[EC,SC];function o_(e){return e===RC||e===PC}const i_=function(e){var t=e;"object"===We(e)&&(t=e.transitionSupport);var n=tc.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,l=e.forceRender,u=e.children,c=e.motionName,s=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,tc.useContext(yC).motion),h=(0,tc.useRef)(),p=(0,tc.useRef)(),v=function(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,a=r.motionAppear,l=void 0===a||a,u=r.motionLeave,c=void 0===u||u,s=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,h=r.onEnterPrepare,p=r.onLeavePrepare,v=r.onAppearStart,m=r.onEnterStart,g=r.onLeaveStart,b=r.onAppearActive,y=r.onEnterActive,w=r.onLeaveActive,k=r.onAppearEnd,C=r.onEnterEnd,_=r.onLeaveEnd,N=r.onVisibleChanged,O=cn(kC(),2),x=O[0],E=O[1],D=cn(kC(CC),2),R=D[0],P=D[1],S=cn(kC(null),2),T=S[0],A=S[1],j=(0,tc.useRef)(!1),I=(0,tc.useRef)(null);function B(){return n()}var M=(0,tc.useRef)(!1);function F(){P(CC,!0),A(null,!0)}function L(e){var t=B();if(!e||e.deadline||e.target===t){var n,r=M.current;R===_C&&r?n=null==k?void 0:k(t,e):R===NC&&r?n=null==C?void 0:C(t,e):R===OC&&r&&(n=null==_?void 0:_(t,e)),R!==CC&&r&&!1!==n&&F()}}var U=cn(function(e){var t=(0,tc.useRef)(),n=(0,tc.useRef)(e);n.current=e;var r=tc.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener($C,r),e.removeEventListener(qC,r))}return tc.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener($C,r),e.addEventListener(qC,r),t.current=e)},o]}(L),1)[0],V=function(e){var t,n,r;switch(e){case _C:return Ja(t={},EC,f),Ja(t,DC,v),Ja(t,RC,b),t;case NC:return Ja(n={},EC,h),Ja(n,DC,m),Ja(n,RC,y),n;case OC:return Ja(r={},EC,p),Ja(r,DC,g),Ja(r,RC,w),r;default:return{}}},H=tc.useMemo((function(){return V(R)}),[R]),z=cn(function(e,t,n){var r=cn(kC(xC),2),o=r[0],i=r[1],a=function(){var e=tc.useRef(null);function t(){t_.cancel(e.current)}return tc.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=t_((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=cn(a,2),u=l[0],c=l[1],s=t?r_:n_;return YC((function(){if(o!==xC&&o!==PC){var e=s.indexOf(o),t=s[e+1],r=n(o);!1===r?i(t,!0):t&&u((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),tc.useEffect((function(){return function(){c()}}),[]),[function(){i(EC,!0)},o]}(R,!e,(function(e){if(e===EC){var t=H[EC];return!!t&&t(B())}var n;return q in H&&A((null===(n=H[q])||void 0===n?void 0:n.call(H,B(),null))||null),q===RC&&(U(B()),s>0&&(clearTimeout(I.current),I.current=setTimeout((function(){L({deadline:!0})}),s))),q===SC&&F(),true})),2),W=z[0],q=z[1],$=o_(q);M.current=$,YC((function(){E(t);var n,r=j.current;j.current=!0,!r&&t&&l&&(n=_C),r&&t&&i&&(n=NC),(r&&!t&&c||!r&&d&&!t&&c)&&(n=OC);var o=V(n);n&&(e||o[EC])?(P(n),W()):P(CC)}),[t]),(0,tc.useEffect)((function(){(R===_C&&!l||R===NC&&!i||R===OC&&!c)&&P(CC)}),[l,i,c]),(0,tc.useEffect)((function(){return function(){j.current=!1,clearTimeout(I.current)}}),[]);var K=tc.useRef(!1);(0,tc.useEffect)((function(){x&&(K.current=!0),void 0!==x&&R===CC&&((K.current||x)&&(null==N||N(x)),K.current=!0)}),[x,R]);var Y=T;return H[EC]&&q===DC&&(Y=dC({transition:"none"},Y)),[R,q,Y,null!=x?x:t]}(f,o,(function(){try{return h.current instanceof HTMLElement?h.current:hC(p.current)}catch(e){return null}}),e),m=cn(v,4),g=m[0],b=m[1],y=m[2],w=m[3],k=tc.useRef(w);w&&(k.current=!0);var C,_=tc.useCallback((function(e){h.current=e,mC(n,e)}),[n]),N=dC(dC({},d),{},{visible:o});if(u)if(g===CC)C=w?u(dC({},N),_):!a&&k.current&&s?u(dC(dC({},N),{},{className:s}),_):l||!a&&!s?u(dC(dC({},N),{},{style:{display:"none"}}),_):null;else{var O,x;b===EC?x="prepare":o_(b)?x="active":b===DC&&(x="start");var E=KC(c,"".concat(g,"-").concat(x));C=u(dC(dC({},N),{},{className:uC()(KC(c,g),(O={},Ja(O,E,E&&x),Ja(O,c,"string"==typeof c),O)),style:y}),_)}else C=null;return tc.isValidElement(C)&&bC(C)&&(C.ref||(C=tc.cloneElement(C,{ref:_}))),tc.createElement(wC,{ref:p},C)}));return n.displayName="CSSMotion",n}(WC);var a_="add",l_="keep",u_="remove",c_="removed";function s_(e){var t;return dC(dC({},t=e&&"object"===We(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function d_(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s_)}var f_=["component","children","onVisibleChanged","onAllRemoved"],h_=["status"],p_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const v_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i_,n=function(e){et(r,e);var n=fC(r);function r(){var e;Ye(this,r);for(var t=arguments.length,o=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=d_(e),a=d_(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return u.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==u_})),n.forEach((function(t){t.key===e&&(t.status=l_)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==c_||e.status!==u_}))}}}]),r}(tc.Component);return Ja(n,"defaultProps",{component:"div"}),n}(WC),m_=i_;var g_=function(e){et(n,e);var t=fC(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=i&&(o.key=l[0].notice.key,o.updateMark=k_(),o.userPassKey=r,l.shift()),l.push({notice:o,holderCallback:n})),{notices:l}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return Ke(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,o=n.className,i=n.closeIcon,a=n.style,l=[];return t.forEach((function(n,o){var a=n.notice,u=n.holderCallback,c=o===t.length-1?a.updateMark:void 0,s=a.key,d=a.userPassKey,f=dC(dC(dC({prefixCls:r,closeIcon:i},a),a.props),{},{key:s,noticeKey:d||s,updateMark:c,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});l.push(s),e.noticePropsMap[s]={props:f,holderCallback:u}})),tc.createElement("div",{className:uC()(r,o),style:a},tc.createElement(v_,{keys:l,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,o=t.className,i=t.style,a=t.visible,l=e.noticePropsMap[n],u=l.props,c=l.holderCallback;return c?tc.createElement("div",{key:n,className:uC()(o,"".concat(r,"-hook-holder")),style:dC({},i),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),c(t,u)):e.hookRefs.delete(n))}}):tc.createElement(g_,aC({},u,{className:uC()(o,null==u?void 0:u.className),style:dC(dC({},i),null==u?void 0:u.style),visible:a}))})))}}]),n}(tc.Component);C_.newInstance=void 0,C_.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},C_.newInstance=function(e,t){var n=e||{},r=n.getContainer,o=cC(n,["getContainer"]),i=document.createElement("div");r?r().appendChild(i):document.body.appendChild(i);var a=!1;nu().render(tc.createElement(C_,aC({},o,{ref:function(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){nu().unmountComponentAtNode(i),i.parentNode&&i.parentNode.removeChild(i)},useNotification:function(){return b_(e)}}))}})),i)};const __=C_,N_={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},O_=(0,tc.createContext)({});function x_(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function E_(e){return e<=1?"".concat(100*Number(e),"%"):e}function D_(e){return 1===e.length?"0"+e:String(e)}function R_(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function P_(e){return S_(e)/255}function S_(e){return parseInt(e,16)}var T_={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function A_(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(T_[e])e=T_[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=M_.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=M_.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=M_.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=M_.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=M_.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=M_.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=M_.hex8.exec(e))?{r:S_(n[1]),g:S_(n[2]),b:S_(n[3]),a:P_(n[4]),format:t?"name":"hex8"}:(n=M_.hex6.exec(e))?{r:S_(n[1]),g:S_(n[2]),b:S_(n[3]),format:t?"name":"hex"}:(n=M_.hex4.exec(e))?{r:S_(n[1]+n[1]),g:S_(n[2]+n[2]),b:S_(n[3]+n[3]),a:P_(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=M_.hex3.exec(e))&&{r:S_(n[1]+n[1]),g:S_(n[2]+n[2]),b:S_(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(F_(e.r)&&F_(e.g)&&F_(e.b)?(t=function(e,t,n){return{r:255*x_(e,255),g:255*x_(t,255),b:255*x_(n,255)}}(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):F_(e.h)&&F_(e.s)&&F_(e.v)?(r=E_(e.s),o=E_(e.v),t=function(e,t,n){e=6*x_(e,360),t=x_(t,100),n=x_(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),u=r%6;return{r:255*[n,a,i,i,l,n][u],g:255*[l,n,n,a,i,i][u],b:255*[i,i,l,n,n,a][u]}}(e.h,r,o),a=!0,l="hsv"):F_(e.h)&&F_(e.s)&&F_(e.l)&&(r=E_(e.s),i=E_(e.l),t=function(e,t,n){var r,o,i;if(e=x_(e,360),t=x_(t,100),n=x_(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=R_(l,a,e+1/3),o=R_(l,a,e),i=R_(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var j_="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),I_="[\\s|\\(]+(".concat(j_,")[,|\\s]+(").concat(j_,")[,|\\s]+(").concat(j_,")\\s*\\)?"),B_="[\\s|\\(]+(".concat(j_,")[,|\\s]+(").concat(j_,")[,|\\s]+(").concat(j_,")[,|\\s]+(").concat(j_,")\\s*\\)?"),M_={CSS_UNIT:new RegExp(j_),rgb:new RegExp("rgb"+I_),rgba:new RegExp("rgba"+B_),hsl:new RegExp("hsl"+I_),hsla:new RegExp("hsla"+B_),hsv:new RegExp("hsv"+I_),hsva:new RegExp("hsva"+B_),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function F_(e){return Boolean(M_.CSS_UNIT.exec(String(e)))}var L_=2,U_=.16,V_=.05,H_=.05,z_=.15,W_=5,q_=4,$_=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function K_(e){var t=function(e,t,n){e=x_(e,255),t=x_(t,255),n=x_(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,u=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-L_*t:Math.round(e.h)+L_*t:n?Math.round(e.h)+L_*t:Math.round(e.h)-L_*t)<0?r+=360:r>=360&&(r-=360),r}function J_(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-U_*t:t===q_?e.s+U_:e.s+V_*t)>1&&(r=1),n&&t===W_&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function X_(e,t,n){var r;return(r=n?e.v+H_*t:e.v-z_*t)>1&&(r=1),Number(r.toFixed(2))}function Q_(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=A_(e),o=W_;o>0;o-=1){var i=K_(r),a=Y_(A_({h:G_(i,o,!0),s:J_(i,o,!0),v:X_(i,o,!0)}));n.push(a)}n.push(Y_(r));for(var l=1;l<=q_;l+=1){var u=K_(r),c=Y_(A_({h:G_(u,l),s:J_(u,l),v:X_(u,l)}));n.push(c)}return"dark"===t.theme?$_.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Y_((r=A_(t.backgroundColor||"#141414"),i=100*l/100,{r:((o=A_(n[a])).r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var Z_={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},eN={},tN={};Object.keys(Z_).forEach((function(e){eN[e]=Q_(Z_[e]),eN[e].primary=eN[e][5],tN[e]=Q_(Z_[e],{theme:"dark",backgroundColor:"#141414"}),tN[e].primary=tN[e][5]})),eN.red,eN.volcano,eN.gold,eN.orange,eN.yellow,eN.lime,eN.green,eN.cyan,eN.blue,eN.geekblue,eN.purple,eN.magenta,eN.grey;var nN={},rN=[];function oN(e,t){}function iN(e,t){}function aN(e,t,n){t||nN[n]||(e(!1,n),nN[n]=!0)}function lN(e,t){aN(oN,e,t)}function uN(e,t){aN(iN,e,t)}lN.preMessage=function(e){rN.push(e)},lN.resetWarned=function(){nN={}},lN.noteOnce=uN;const cN=lN;function sN(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var dN="data-rc-order",fN="data-rc-priority",hN="rc-util-key",pN=new Map;function vN(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):hN}function mN(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function gN(e){return Array.from((pN.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function bN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!TC())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,u=document.createElement("style");u.setAttribute(dN,a),l&&i&&u.setAttribute(fN,"".concat(i)),null!=n&&n.nonce&&(u.nonce=null==n?void 0:n.nonce),u.innerHTML=e;var c=mN(t),s=c.firstChild;if(r){if(l){var d=(t.styles||gN(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(dN)))return!1;var t=Number(e.getAttribute(fN)||0);return i>=t}));if(d.length)return c.insertBefore(u,d[d.length-1].nextSibling),u}c.insertBefore(u,s)}else c.appendChild(u);return u}function yN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mN(t);return(t.styles||gN(n)).find((function(n){return n.getAttribute(vN(t))===e}))}function wN(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=mN(n),o=gN(r),i=dC(dC({},n),{},{styles:o});!function(e,t){var n=pN.get(e);if(!n||!sN(document,n)){var r=bN("",t),o=r.parentNode;pN.set(e,o),e.removeChild(r)}}(r,i);var a,l,u,c=yN(t,i);if(c)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce)&&(c.nonce=null===(u=i.csp)||void 0===u?void 0:u.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var s=bN(e,i);return s.setAttribute(vN(i),t),s}var kN=o(4058),CN=o.n(kN);function _N(e,t){cN(e,"[@ant-design/icons] ".concat(t))}function NN(e){return"object"===We(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===We(e.icon)||"function"==typeof e.icon)}function ON(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[CN()(n)]=r),t}),{})}function xN(e,t,n){return n?nc().createElement(e.tag,dC(dC({key:t},ON(e.attrs)),n),(e.children||[]).map((function(n,r){return xN(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):nc().createElement(e.tag,dC({key:t},ON(e.attrs)),(e.children||[]).map((function(n,r){return xN(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function EN(e){return Q_(e)[0]}function DN(e){return e?Array.isArray(e)?e:[e]:[]}var RN={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},PN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t=(0,tc.useContext)(O_).csp;(0,tc.useEffect)((function(){wN(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])},SN=["icon","className","onClick","style","primaryColor","secondaryColor"],TN={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},AN=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,a=e.secondaryColor,l=cC(e,SN),u=TN;if(i&&(u={primaryColor:i,secondaryColor:a||EN(i)}),PN(),_N(NN(t),"icon should be icon definiton, but got ".concat(t)),!NN(t))return null;var c=t;return c&&"function"==typeof c.icon&&(c=dC(dC({},c),{},{icon:c.icon(u.primaryColor,u.secondaryColor)})),xN(c.icon,"svg-".concat(c.name),dC({className:n,onClick:r,style:o,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};AN.displayName="IconReact",AN.getTwoToneColors=function(){return dC({},TN)},AN.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;TN.primaryColor=t,TN.secondaryColor=n||EN(t),TN.calculated=!!n};const jN=AN;function IN(e){var t=cn(DN(e),2),n=t[0],r=t[1];return jN.setTwoToneColors({primaryColor:n,secondaryColor:r})}var BN=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];IN("#1890ff");var MN=tc.forwardRef((function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,u=e.onClick,c=e.twoToneColor,s=cC(e,BN),d=tc.useContext(O_),f=d.prefixCls,h=void 0===f?"anticon":f,p=d.rootClassName,v=uC()(p,h,(Ja(n={},"".concat(h,"-").concat(o.name),!!o.name),Ja(n,"".concat(h,"-spin"),!!i||"loading"===o.name),n),r),m=l;void 0===m&&u&&(m=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=cn(DN(c),2),y=b[0],w=b[1];return tc.createElement("span",dC(dC({role:"img","aria-label":o.name},s),{},{ref:t,tabIndex:m,onClick:u,className:v}),tc.createElement(jN,{icon:o,primaryColor:y,secondaryColor:w,style:g}))}));MN.displayName="AntdIcon",MN.getTwoToneColor=function(){var e=jN.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},MN.setTwoToneColor=IN;const FN=MN;var LN=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:N_}))};LN.displayName="LoadingOutlined";const UN=tc.forwardRef(LN),VN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var HN=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:VN}))};HN.displayName="ExclamationCircleFilled";const zN=tc.forwardRef(HN),WN={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var qN=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:WN}))};qN.displayName="CloseCircleFilled";const $N=tc.forwardRef(qN),KN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var YN=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:KN}))};YN.displayName="CheckCircleFilled";const GN=tc.forwardRef(YN),JN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var XN=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:JN}))};XN.displayName="InfoCircleFilled";const QN=tc.forwardRef(XN),ZN={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},eO={lang:aC({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:aC({},ZN)};var tO="${label} is not a valid ${type}";const nO={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:eO,TimePicker:ZN,Calendar:eO,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:tO,method:tO,array:tO,object:tO,number:tO,date:tO,boolean:tO,integer:tO,float:tO,regexp:tO,email:tO,url:tO,hex:tO},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},rO=nO,oO=(0,tc.createContext)(void 0);var iO=function(e){et(n,e);var t=fC(n);function n(){return Ye(this,n),t.apply(this,arguments)}return Ke(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||rO[t||"global"],r=this.context,o=t&&r?r[t]:{};return aC(aC({},"function"==typeof n?n():n),o||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?rO.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(tc.Component);iO.defaultProps={componentName:"global"},iO.contextType=oO;const aO=function(){var e=(0,tc.useContext(fO).getPrefixCls)("empty-img-default");return tc.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},tc.createElement("g",{fill:"none",fillRule:"evenodd"},tc.createElement("g",{transform:"translate(24 31.67)"},tc.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),tc.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),tc.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),tc.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),tc.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),tc.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),tc.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},tc.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),tc.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},lO=function(){var e=(0,tc.useContext(fO).getPrefixCls)("empty-img-simple");return tc.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},tc.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},tc.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),tc.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},tc.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),tc.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))};var uO=tc.createElement(aO,null),cO=tc.createElement(lO,null),sO=function(e){var t=e.className,n=e.prefixCls,r=e.image,o=void 0===r?uO:r,i=e.description,a=e.children,l=e.imageStyle,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o1&&void 0!==arguments[1]?arguments[1]:{},n=[];return nc().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(pO(e)):(0,pC.isFragment)(e)&&e.props?n=n.concat(pO(e.props.children,t)):n.push(e))})),n}var vO="RC_FORM_INTERNAL_HOOKS",mO=function(){cN(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const gO=tc.createContext({getFieldValue:mO,getFieldsValue:mO,getFieldError:mO,getFieldsError:mO,isFieldsTouched:mO,isFieldTouched:mO,isFieldValidating:mO,isFieldsValidating:mO,resetFields:mO,setFields:mO,setFieldsValue:mO,validateFields:mO,submit:mO,getInternalHooks:function(){return mO(),{dispatch:mO,initEntityValue:mO,registerField:mO,useSubscribe:mO,setInitialValues:mO,setCallbacks:mO,getFields:mO,setValidateMessages:mO,setPreserve:mO}}});function bO(e){return null==e?[]:Array.isArray(e)?e:[e]}function yO(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function wO(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yO(i,r,o,a,l,"next",e)}function l(e){yO(i,r,o,a,l,"throw",e)}a(void 0)}))}}function kO(){return kO=Object.assign||function(e){for(var t=1;t=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})):o}function RO(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function PO(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},BO={integer:function(e){return BO.number(e)&&parseInt(e,10)===e},float:function(e){return BO.number(e)&&!BO.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!BO.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(IO.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(IO.url)},hex:function(e){return"string"==typeof e&&!!e.match(IO.hex)}},MO="enum",FO={required:jO,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(DO(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)jO(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?BO[i](t)||r.push(DO(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(DO(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,u=t,c=null,s="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(s?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(u=t.length),d&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?u!==e.len&&r.push(DO(o.messages[c].len,e.fullField,e.len)):a&&!l&&ue.max?r.push(DO(o.messages[c].max,e.fullField,e.max)):a&&l&&(ue.max)&&r.push(DO(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[MO]=Array.isArray(e[MO])?e[MO]:[],-1===e[MO].indexOf(t)&&r.push(DO(o.messages[MO],e.fullField,e[MO].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(DO(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(DO(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}};function LO(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t,i)&&!e.required)return n();FO.required(e,t,r,a,o,i),RO(t,i)||FO.type(e,t,r,a,o)}n(a)}var UO={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t,"string")&&!e.required)return n();FO.required(e,t,r,i,o,"string"),RO(t,"string")||(FO.type(e,t,r,i,o),FO.range(e,t,r,i,o),FO.pattern(e,t,r,i,o),!0===e.whitespace&&FO.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t)&&!e.required)return n();FO.required(e,t,r,i,o),void 0!==t&&FO.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),RO(t)&&!e.required)return n();FO.required(e,t,r,i,o),void 0!==t&&(FO.type(e,t,r,i,o),FO.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t)&&!e.required)return n();FO.required(e,t,r,i,o),void 0!==t&&FO.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t)&&!e.required)return n();FO.required(e,t,r,i,o),RO(t)||FO.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t)&&!e.required)return n();FO.required(e,t,r,i,o),void 0!==t&&(FO.type(e,t,r,i,o),FO.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t)&&!e.required)return n();FO.required(e,t,r,i,o),void 0!==t&&(FO.type(e,t,r,i,o),FO.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();FO.required(e,t,r,i,o,"array"),null!=t&&(FO.type(e,t,r,i,o),FO.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t)&&!e.required)return n();FO.required(e,t,r,i,o),void 0!==t&&FO.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t)&&!e.required)return n();FO.required(e,t,r,i,o),void 0!==t&&FO.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t,"string")&&!e.required)return n();FO.required(e,t,r,i,o),RO(t,"string")||FO.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t,"date")&&!e.required)return n();var a;FO.required(e,t,r,i,o),RO(t,"date")||(a=t instanceof Date?t:new Date(t),FO.type(e,a,r,i,o),a&&FO.range(e,a.getTime(),r,i,o))}n(i)},url:LO,hex:LO,email:LO,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;FO.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(RO(t)&&!e.required)return n();FO.required(e,t,r,i,o)}n(i)}};function VO(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var HO=VO();function zO(e){this.rules=null,this._messages=HO,this.define(e)}zO.prototype={messages:function(e){return e&&(this._messages=AO(VO(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var o,i,a=e,l=t,u=n;if("function"==typeof l&&(u=l,l={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(),Promise.resolve();if(l.messages){var c=this.messages();c===HO&&(c=VO()),AO(c,l.messages),l.messages=c}else l.messages=this.messages();var s={};(l.keys||Object.keys(this.rules)).forEach((function(t){o=r.rules[t],i=a[t],o.forEach((function(n){var o=n;"function"==typeof o.transform&&(a===e&&(a=kO({},a)),i=a[t]=o.transform(i)),(o="function"==typeof o?{validator:o}:kO({},o)).validator=r.getValidationMethod(o),o.field=t,o.fullField=o.fullField||t,o.type=r.getType(o),o.validator&&(s[t]=s[t]||[],s[t].push({rule:o,value:i,source:a,field:t}))}))}));var d={};return function(e,t,n,r){if(t.first){var o=new Promise((function(t,o){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e);PO(i,n,(function(e){return r(e),e.length?o(new SO(e,EO(e))):t()}))}));return o.catch((function(e){return e})),o}var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),l=a.length,u=0,c=[],s=new Promise((function(t,o){var s=function(e){if(c.push.apply(c,e),++u===l)return r(c),c.length?o(new SO(c,EO(c))):t()};a.length||(r(c),t()),a.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?PO(r,n,s):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,s)}))}));return s.catch((function(e){return e})),s}(s,l,(function(e,t){var n,r=e.rule,o=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function i(e,t){return kO({},t,{fullField:r.fullField+"."+e})}function a(n){void 0===n&&(n=[]);var a=n;if(Array.isArray(a)||(a=[a]),!l.suppressWarning&&a.length&&zO.warning("async-validator:",a),a.length&&void 0!==r.message&&(a=[].concat(r.message)),a=a.map(TO(r)),l.first&&a.length)return d[r.field]=1,t(a);if(o){if(r.required&&!e.value)return void 0!==r.message?a=[].concat(r.message).map(TO(r)):l.error&&(a=[l.error(r,DO(l.messages.required,r.field))]),t(a);var u={};if(r.defaultField)for(var c in e.value)e.value.hasOwnProperty(c)&&(u[c]=r.defaultField);for(var s in u=kO({},u,e.rule.fields))if(u.hasOwnProperty(s)){var f=Array.isArray(u[s])?u[s]:[u[s]];u[s]=f.map(i.bind(null,s))}var h=new zO(u);h.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),h.validate(e.value,e.rule.options||l,(function(e){var n=[];a&&a.length&&n.push.apply(n,a),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(a)}o=o&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,l):r.validator&&(!0===(n=r.validator(r,e.value,a,e.source,l))?a():!1===n?a(r.message||r.field+" fails"):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n=[],r={};function o(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!qO(e,t.slice(0,-1))?e:KO(e,t,n,r)}function GO(e){return bO(e)}function JO(e,t){return qO(e,t)}function XO(e,t,n){return YO(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}function QO(e,t){var n={};return t.forEach((function(t){var r=JO(e,t);n=XO(n,t,r)})),n}function ZO(e,t){return e&&e.some((function(e){return rx(e,t)}))}function ex(e){return"object"===We(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function tx(e,t){var n=Array.isArray(e)?pn(e):dC({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],i=ex(r)&&ex(o);n[e]=i?tx(r,o||{}):o})),n):n}function nx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(pn(e.slice(0,n)),[o],pn(e.slice(n,t)),pn(e.slice(t+1,r))):i<0?[].concat(pn(e.slice(0,t)),pn(e.slice(t+1,n+1)),[o],pn(e.slice(n+1,r))):e}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;var ax="'${name}' is not a valid ${type}",lx={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ax,method:ax,array:ax,object:ax,number:ax,date:ax,boolean:ax,integer:ax,float:ax,regexp:ax,email:ax,url:ax,hex:ax},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ux=WO;function cx(e,t,n,r){var o=dC(dC({},n),{},{name:t,enum:(n.enum||[]).join(", ")});return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(i){var a=t[i];"string"==typeof a?n[i]=function(e,t){return function(){return function(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}(e,dC(dC({},o),t))}}(a,r):a&&"object"===We(a)?(n[i]={},e(a,n[i])):n[i]=a})),n}(nx({},lx,e))}function sx(e,t,n,r,o){return dx.apply(this,arguments)}function dx(){return dx=wO(Sc().mark((function e(t,n,r,o,i){var a,l,u,c,s,d;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=dC({},r),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),u=new ux(Ja({},t,[a])),c=cx(o.validateMessages,t,a,i),u.messages(c),s=[],e.prev=7,e.next=10,Promise.resolve(u.validate(Ja({},t,n),dC({},o)));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),e.t0.errors?s=e.t0.errors.map((function(e,t){var n=e.message;return tc.isValidElement(n)?tc.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),s=[c.default()]);case 15:if(s.length||!l){e.next=20;break}return e.next=18,Promise.all(n.map((function(e,n){return sx("".concat(t,".").concat(n),e,l,o,i)})));case 18:return d=e.sent,e.abrupt("return",d.reduce((function(e,t){return[].concat(pn(e),pn(t))}),[]));case 20:return e.abrupt("return",s);case 21:case"end":return e.stop()}}),e,null,[[7,12]])}))),dx.apply(this,arguments)}function fx(e,t,n,r,o,i){var a,l=e.join("."),u=n.map((function(e){var t=e.validator;return t?dC(dC({},e),{},{validator:function(e,n,r){var o=!1,i=t(e,n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];r.validatePromise===o&&(r.validatePromise=null,r.errors=e,r.reRender())})),d}));return r.validatePromise=o,r.dirty=!0,r.errors=[],r.reRender(),o},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return r.dirty},r.getErrors=function(){return r.errors},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,name:r.getNamePath()}},r.getOnlyChild=function(e){if("function"==typeof e){var t=r.getMeta();return dC(dC({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=pO(e);return 1===n.length&&tc.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return JO(e||t(!0),n)},r.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,u=t.getValueProps,c=t.fieldContext,s=void 0!==o?o:c.validateTrigger,d=r.getNamePath(),f=c.getInternalHooks,h=c.getFieldsValue,p=f(vO).dispatch,v=r.getValue(),m=u||function(e){return Ja({},l,e)},g=e[n],b=dC(dC({},e),m(v));return b[n]=function(){var e;r.touched=!0,r.dirty=!0;for(var t=arguments.length,n=new Array(t),o=0;o=0&&t<=n.length?(l.keys=[].concat(pn(l.keys.slice(0,t)),[l.id],pn(l.keys.slice(t))),i([].concat(pn(n.slice(0,t)),[e],pn(n.slice(t))))):(l.keys=[].concat(pn(l.keys),[l.id]),i([].concat(pn(n),[e]))),l.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(l.keys=l.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(l.keys=ix(l.keys,e,t),i(ix(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=l.keys[t];return void 0===n&&(l.keys[t]=l.id,n=l.keys[t],l.id+=1),{name:t,key:n,isListField:!0}})),d,t)})))};var yx="__@field_split__";function wx(e){return e.map((function(e){return"".concat(We(e),":").concat(e)})).join(yx)}var kx=function(){function e(){Ye(this,e),this.kvs=new Map}return Ke(e,[{key:"set",value:function(e,t){this.kvs.set(wx(e),t)}},{key:"get",value:function(e){return this.kvs.get(wx(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(wx(e))}},{key:"map",value:function(e){return pn(this.kvs.entries()).map((function(t){var n=cn(t,2),r=n[0],o=n[1],i=r.split(yx);return e({key:i.map((function(e){var t=cn(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const Cx=kx;var _x=function e(t){var n=this;Ye(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===vO?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve}):(cN(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.setInitialValues=function(e,t){n.initialValues=e||{},t&&(n.store=nx({},e,n.store))},this.getInitialValue=function(e){return JO(n.initialValues,e)},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){},this.getFieldEntities=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Cx;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=GO(e);return t.get(n)||{INVALIDATE_NAME_PATH:GO(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach((function(n){var r,i="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&o.push(i)}else o.push(i)})),QO(n.store,o.map(GO))},this.getFieldValue=function(e){n.warningUnhooked();var t=GO(e);return JO(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors()}:{name:GO(e[n]),errors:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=GO(e);return n.getFieldsError([t])[0].errors},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=new Cx,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,pn(pn(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))cN(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)cN(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);t.skipExist&&void 0!==a||(n.store=XO(n.store,o,pn(i)[0].value))}}}}))},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.store=nx({},n.initialValues),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(GO);r.forEach((function(e){var t=n.getInitialValue(e);n.store=XO(n.store,e,t)})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,o=(e.errors,cC(e,["name","errors"])),i=GO(r);"value"in o&&(n.store=XO(n.store,i,o.value)),n.notifyObservers(t,[i],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=dC(dC({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===JO(n.store,r)&&(n.store=XO(n.store,r,t))}},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!1===(void 0!==r?r:n.preserve)&&(!t||o.length>1)){var i=e.getNamePath(),a=t?void 0:JO(n.initialValues,i);i.length&&n.getFieldValue(i)!==a&&n.fieldEntities.every((function(e){return!rx(e.getNamePath(),i)}))&&(n.store=XO(n.store,i,a,!0))}}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=dC(dC({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.updateValue=function(e,t){var r=GO(e),o=n.store;n.store=XO(n.store,r,t),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"});var i=n.getDependencyChildrenFields(r);i.length&&n.validateFields(i),n.notifyObservers(o,i,{type:"dependenciesUpdate",relatedFields:[r].concat(pn(i))});var a=n.callbacks.onValuesChange;a&&a(QO(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(pn(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=nx(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new Cx;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=GO(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Cx;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}r(o.filter((function(t){var n=t.name;return ZO(e,n)})),o)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,o=r?e.map(GO):[],i=[];n.getFieldEntities(!0).forEach((function(a){if(r||o.push(a.getNamePath()),(null==t?void 0:t.recursive)&&r){var l=a.getNamePath();l.every((function(t,n){return e[n]===t||void 0===e[n]}))&&o.push(l)}if(a.props.rules&&a.props.rules.length){var u=a.getNamePath();if(!r||ZO(o,u)){var c=a.validateRules(dC({validateMessages:dC(dC({},lx),n.validateMessages)},t));i.push(c.then((function(){return{name:u,errors:[]}})).catch((function(e){return Promise.reject({name:u,errors:e})})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(i);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var l=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return l.catch((function(e){return e})),l},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t};const Nx=function(e){var t=tc.useRef(),n=cn(tc.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new _x((function(){n({})}));t.current=r.getForm()}return[t.current]};var Ox=tc.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),xx=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=tc.useContext(Ox),a=tc.useRef({});return tc.createElement(Ox.Provider,{value:dC(dC({},i),{},{validateMessages:dC(dC({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=dC(dC({},a.current),{},Ja({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=dC({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)};const Ex=Ox,Dx=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,l=e.children,u=e.component,c=void 0===u?"form":u,s=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,h=e.onValuesChange,p=e.onFieldsChange,v=e.onFinish,m=e.onFinishFailed,g=cC(e,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),b=tc.useContext(Ex),y=cn(Nx(i),1)[0],w=y.getInternalHooks(vO),k=w.useSubscribe,C=w.setInitialValues,_=w.setCallbacks,N=w.setValidateMessages,O=w.setPreserve;tc.useImperativeHandle(t,(function(){return y})),tc.useEffect((function(){return b.registerForm(n,y),function(){b.unregisterForm(n)}}),[b,y,n]),N(dC(dC({},b.validateMessages),s)),_({onValuesChange:h,onFieldsChange:function(e){if(b.triggerFormChange(n,e),p){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:iE,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:aE;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function dE(e,t){var n=e.placement,r=void 0===n?uE:n,o=e.top,i=e.bottom,a=e.getContainer,l=void 0===a?tE:a,u=e.closeIcon,c=void 0===u?nE:u,s=e.prefixCls,d=(0,yE().getPrefixCls)("notification",s||lE),f="".concat(d,"-").concat(r),h=rE[f];if(h)Promise.resolve(h).then((function(e){t({prefixCls:"".concat(d,"-notice"),instance:e})}));else{var p=tc.createElement("span",{className:"".concat(d,"-close-x")},c||tc.createElement(Hx,{className:"".concat(d,"-close-icon")})),v=uC()("".concat(d,"-").concat(r),Ja({},"".concat(d,"-rtl"),!0===cE));rE[f]=new Promise((function(e){__.newInstance({prefixCls:d,className:v,style:sE(r,o,i),getContainer:l,closeIcon:p},(function(n){e(n),t({prefixCls:"".concat(d,"-notice"),instance:n})}))}))}}var fE={success:qx,info:eE,error:Yx,warning:Xx};function hE(e,t){var n=e.duration,r=e.icon,o=e.type,i=e.description,a=e.message,l=e.btn,u=e.onClose,c=e.onClick,s=e.key,d=e.style,f=e.className,h=void 0===n?oE:n,p=null;r?p=tc.createElement("span",{className:"".concat(t,"-icon")},e.icon):o&&(p=tc.createElement(fE[o]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(o)}));var v=!i&&p?tc.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:tc.createElement("div",{className:p?"".concat(t,"-with-icon"):"",role:"alert"},p,tc.createElement("div",{className:"".concat(t,"-message")},v,a),tc.createElement("div",{className:"".concat(t,"-description")},i),l?tc.createElement("span",{className:"".concat(t,"-btn")},l):null),duration:h,closable:!0,onClose:u,onClick:c,key:s,style:d||{},className:uC()(f,Ja({},"".concat(t,"-").concat(o),!!o))}}var pE={open:function(e){dE(e,(function(t){var n=t.prefixCls;t.instance.notice(hE(e,n))}))},close:function(e){Object.keys(rE).forEach((function(t){return Promise.resolve(rE[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,l=e.prefixCls;void 0!==l&&(lE=l),void 0!==t&&(oE=t),void 0!==n?uE=n:e.rtl&&(uE="topLeft"),void 0!==r&&(aE=r),void 0!==o&&(iE=o),void 0!==i&&(tE=i),void 0!==a&&(nE=a),void 0!==e.rtl&&(cE=e.rtl)},destroy:function(){Object.keys(rE).forEach((function(e){Promise.resolve(rE[e]).then((function(e){e.destroy()})),delete rE[e]}))}};["success","info","warning","error"].forEach((function(e){pE[e]=function(t){return pE.open(aC(aC({},t),{type:e}))}})),pE.warn=pE.warning,pE.useNotification=function(e,t){return function(){var n,r=null,o=cn(b_({add:function(e,t){null==r||r.component.add(e,t)}}),2),i=o[0],a=o[1],l=tc.useRef({});return l.current.open=function(o){var a=o.prefixCls,l=n("notification",a);e(aC(aC({},o),{prefixCls:l}),(function(e){var n=e.prefixCls,a=e.instance;r=a,i(t(o,n))}))},["success","info","warning","error"].forEach((function(e){l.current[e]=function(t){return l.current.open(aC(aC({},t),{type:e}))}})),[l.current,tc.createElement(hO,{key:"holder"},(function(e){return n=e.getPrefixCls,a}))]}}(dE,hE);const vE=pE;var mE,gE=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"];function bE(){return mE||"ant"}var yE=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(bE(),"-").concat(e):bE())},getRootPrefixCls:function(e,t){return e||mE||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):bE())}}},wE=function(e){var t=e.children,n=e.csp,r=e.autoInsertSpaceInButton,o=e.form,i=e.locale,a=e.componentSize,l=e.direction,u=e.space,c=e.virtual,s=e.dropdownMatchSelectWidth,d=e.legacyLocale,f=e.parentContext,h=e.iconPrefixCls,p=tc.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var o=r||f.getPrefixCls("");return t?"".concat(o,"-").concat(t):o}),[f.getPrefixCls,e.prefixCls]),v=aC(aC({},f),{csp:n,autoInsertSpaceInButton:r,locale:i||d,direction:l,space:u,virtual:c,dropdownMatchSelectWidth:s,getPrefixCls:p});gE.forEach((function(t){var n=e[t];n&&(v[t]=n)}));var m=vC((function(){return v}),v,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),g=tc.useMemo((function(){return{prefixCls:h,csp:n}}),[h]),b=t,y={};return i&&i.Form&&i.Form.defaultValidateMessages&&(y=i.Form.defaultValidateMessages),o&&o.validateMessages&&(y=aC(aC({},y),o.validateMessages)),Object.keys(y).length>0&&(b=tc.createElement(xx,{validateMessages:y},t)),i&&(b=tc.createElement(Bx,{locale:i,_ANT_MARK__:Ix},b)),h&&(b=tc.createElement(O_.Provider,{value:g},b)),a&&(b=tc.createElement(Fx,{size:a},b)),tc.createElement(fO.Provider,{value:m},b)},kE=function(e){return tc.useEffect((function(){e.direction&&(FE.config({rtl:"rtl"===e.direction}),vE.config({rtl:"rtl"===e.direction}))}),[e.direction]),tc.createElement(iO,null,(function(t,n,r){return tc.createElement(hO,null,(function(t){return tc.createElement(wE,aC({parentContext:t,legacyLocale:r},e))}))}))};kE.ConfigContext=fO,kE.SizeContext=Lx,kE.config=function(e){void 0!==e.prefixCls&&(mE=e.prefixCls)};const CE=kE;var _E,NE,OE,xE,EE=3,DE=1,RE="",PE="move-up",SE=!1,TE=!1;function AE(e,t){var n=e.prefixCls,r=yE(),o=r.getPrefixCls,i=r.getRootPrefixCls,a=o("message",n||RE),l=i(e.rootPrefixCls,a);if(_E)t({prefixCls:a,rootPrefixCls:l,instance:_E});else{var u={prefixCls:a,transitionName:SE?PE:"".concat(l,"-").concat(PE),style:{top:NE},getContainer:OE,maxCount:xE};__.newInstance(u,(function(e){_E?t({prefixCls:a,rootPrefixCls:l,instance:_E}):(_E=e,t({prefixCls:a,rootPrefixCls:l,instance:e}))}))}}var jE={info:QN,success:GN,error:$N,warning:zN,loading:UN};function IE(e,t){var n,r=void 0!==e.duration?e.duration:EE,o=jE[e.type],i=uC()("".concat(t,"-custom-content"),(Ja(n={},"".concat(t,"-").concat(e.type),e.type),Ja(n,"".concat(t,"-rtl"),!0===TE),n));return{key:e.key,duration:r,style:e.style||{},className:e.className,content:tc.createElement("div",{className:i},e.icon||o&&tc.createElement(o,null),tc.createElement("span",null,e.content)),onClose:e.onClose,onClick:e.onClick}}var BE={open:function(e){var t=e.key||DE++,n=new Promise((function(n){var r=function(){return"function"==typeof e.onClose&&e.onClose(),n(!0)};AE(e,(function(n){var o=n.prefixCls;n.instance.notice(IE(aC(aC({},e),{key:t,onClose:r}),o))}))})),r=function(){_E&&_E.removeNotice(t)};return r.then=function(e,t){return n.then(e,t)},r.promise=n,r},config:function(e){void 0!==e.top&&(NE=e.top,_E=null),void 0!==e.duration&&(EE=e.duration),void 0!==e.prefixCls&&(RE=e.prefixCls),void 0!==e.getContainer&&(OE=e.getContainer),void 0!==e.transitionName&&(PE=e.transitionName,_E=null,SE=!0),void 0!==e.maxCount&&(xE=e.maxCount,_E=null),void 0!==e.rtl&&(TE=e.rtl)},destroy:function(e){if(_E)if(e)(0,_E.removeNotice)(e);else{(0,_E.destroy)(),_E=null}}};function ME(e,t){e[t]=function(n,r,o){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(aC(aC({},n),{type:t})):("function"==typeof r&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}}["success","info","warning","error","loading"].forEach((function(e){return ME(BE,e)})),BE.warn=BE.warning,BE.useMessage=function(e,t){return function(){var n,r=null,o=cn(b_({add:function(e,t){null==r||r.component.add(e,t)}}),2),i=o[0],a=o[1],l=tc.useRef({});return l.current.open=function(o){var a=o.prefixCls,l=n("message",a),u=n(),c=o.key||DE++,s=new Promise((function(n){var a=function(){return"function"==typeof o.onClose&&o.onClose(),n(!0)};e(aC(aC({},o),{prefixCls:l,rootPrefixCls:u}),(function(e){var n=e.prefixCls,l=e.instance;r=l,i(t(aC(aC({},o),{key:c,onClose:a}),n))}))})),d=function(){r&&r.removeNotice(c)};return d.then=function(e,t){return s.then(e,t)},d.promise=s,d},["success","info","warning","error","loading"].forEach((function(e){return ME(l.current,e)})),[l.current,tc.createElement(hO,{key:"holder"},(function(e){return n=e.getPrefixCls,a}))]}}(AE,IE);const FE=BE,LE=FE;var UE={copy:function(e,t){var n=document.createRange();n.selectNode(t.cardRootNode.parentNode),e.execCommand("copy",n)?LE.success(gc("复制成功")):LE.error(gc("复制失败"))},copyLink:function(e,t){var n=e.option,r=n.currentURL,o=n.generateCardLink;if(r){var i=null==o?void 0:o(r,t.id);i?(ps()(i,{format:"text/plain"}),LE.success(gc("复制成功"))):LE.error(gc("复制失败"))}},maximize:function(e,t,n){t.enterMaxView(n.option)},widthMode:function(e,t){var n,r;null===(n=null==t?void 0:t.cardData)||void 0===n||n.toggleWidthMode(),null===(r=null==t?void 0:t.cardData)||void 0===r||r.sync(!1)},comment:function(e,t){t.createComment()}},VE="top",HE="topLeft",zE="topRight",WE="bottom",qE="bottomLeft",$E="bottomRight",KE="left",YE="leftTop",GE="leftBottom",JE="right",XE="rightTop",QE="rightBottom";function ZE(e,t,n){return t=Qe(t),Xe(e,eD()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function eD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eD=function(){return!!e})()}var tD=function(e){function t(){return Ye(this,t),ZE(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this.props,n=e.type,r=e.iconfont;return n?t.shouldRenderCustom(n)?t.renderCustom(this.props):n.startsWith("iconfont-")?this._renderIconFont(n.substring(9)):t.getSvgIcon(n)?this._renderSVGSymbol():t.renderFallback(this.props):this._renderIconFont(r)}},{key:"_renderSVGSymbol",value:function(){var e=this.props,n=e.size,r=e.type,o=Kf(this.props.className,"ne-icon","ne-icon-".concat(r)),i={};n&&(i.fontSize=n+"px");var a="none",l=t.getSvgIcon(r);return l&&(a=l.default&&l.default.id||l.generateSymbol()),nc().createElement("div",{className:o,style:i,"data-name":r},nc().createElement("svg",{className:"ne-icon-symbol","aria-hidden":!0},nc().createElement("use",{xlinkHref:"#".concat(a)})))}},{key:"_renderIconFont",value:function(e){var t=this.props.size,n=Kf(this.props.className,"ne-icon","ne-iconfont"),r={};return t&&(r.fontSize=t+"px"),nc().createElement("div",{className:n,"data-name":e,style:r},nc().createElement("span",{className:"lake-icon lake-icon-".concat(e),style:r}))}}],[{key:"getSvgIcon",value:function(e){return null}},{key:"shouldRenderCustom",value:function(e){return!1}},{key:"renderCustom",value:function(e){return null}},{key:"renderFallback",value:function(e){var t=e.size,n=e.type,r=Kf(e.className,"ne-icon","ne-icon-".concat(n)),o={};return t&&(o.fontSize=t+"px"),nc().createElement("div",{className:r,style:o,"data-name":n},nc().createElement("svg",{className:"ne-icon-symbol","aria-hidden":!0},nc().createElement("use",{xlinkHref:"#none"})))}}]),t}(tc.Component);function nD(e){if(!e.icon)return null;var t=e.icon;return nc().isValidElement(t)?t:("function"==typeof t&&(t=t(e.cardData)),nc().createElement(tD,{type:t,size:e.iconSize}))}function rD(e){if(!e.text)return null;var t=e.text;return"function"==typeof t?t(e.cardData):t}function oD(e,t,n,r){var o=nu().unstable_batchedUpdates?function(e){nu().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var iD=(0,tc.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=(0,tc.useRef)(),a=(0,tc.useRef)();(0,tc.useImperativeHandle)(t,(function(){return{}}));var l=(0,tc.useRef)(!1);return!l.current&&TC()&&(a.current=r(),i.current=a.current.parentNode,l.current=!0),(0,tc.useEffect)((function(){null==n||n(e)})),(0,tc.useEffect)((function(){return null===a.current.parentNode&&null!==i.current&&i.current.appendChild(a.current),function(){var e;null===(e=a.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(a.current)}}),[]),a.current?nu().createPortal(o,a.current):null}));const aD=iD;function lD(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}const uD=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};function cD(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function sD(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,o=e.mask,i=e.maskMotion,a=e.maskAnimation,l=e.maskTransitionName;if(!o)return null;var u={};return(i||l||a)&&(u=dC({motionAppear:!0},cD({motion:i,prefixCls:t,transitionName:l,animation:a}))),tc.createElement(m_,aC({},u,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return tc.createElement("div",{style:{zIndex:r},className:uC()("".concat(t,"-mask"),n)})}))}function dD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fD(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function oR(e){var t,n,r;if(ZD.isWindow(e)||9===e.nodeType){var o=ZD.getWindow(e);t={left:ZD.getWindowScrollLeft(o),top:ZD.getWindowScrollTop(o)},n=ZD.viewportWidth(o),r=ZD.viewportHeight(o)}else t=ZD.offset(e),n=ZD.outerWidth(e),r=ZD.outerHeight(e);return t.width=n,t.height=r,t}function iR(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,l=e.top;return"c"===n?l+=i/2:"b"===n&&(l+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:l}}function aR(e,t,n,r,o){var i=iR(t,n[1]),a=iR(e,n[0]),l=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function lR(e,t,n){return e.leftn.right}function uR(e,t,n){return e.topn.bottom}function cR(e,t,n){var r=[];return ZD.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function sR(e,t){return e[t]=-e[t],e}function dR(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function fR(e,t){e[0]=dR(e[0],t.width),e[1]=dR(e[1],t.height)}function hR(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],l=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var c={},s=0,d=rR(u,!(!(l=l||{})||!l.alwaysByViewport)),f=oR(u);fR(i,f),fR(a,t);var h=aR(f,t,o,i,a),p=ZD.merge(f,h);if(d&&(l.adjustX||l.adjustY)&&r){if(l.adjustX&&lR(h,f,d)){var v=cR(o,/[lr]/gi,{l:"r",r:"l"}),m=sR(i,0),g=sR(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),ZD.mix(o,i)}(h,f,d,c))}return p.width!==f.width&&ZD.css(u,"width",ZD.width(u)+p.width-f.width),p.height!==f.height&&ZD.css(u,"height",ZD.height(u)+p.height-f.height),ZD.offset(u,{left:p.left,top:p.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function pR(e,t,n){var r=n.target||t,o=oR(r),i=!function(e,t){var n=rR(e,t),r=oR(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return hR(e,o,n,i)}pR.__getOffsetParent=tR,pR.__getVisibleRectForElement=rR;const vR=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};var mR=TC()?tc.useLayoutEffect:tc.useEffect,gR=function(e,t){var n=tc.useRef(!0);mR((function(){return e(n.current)}),t),mR((function(){return n.current=!1,function(){n.current=!0}}),[])},bR=function(e,t){gR((function(t){if(!t)return e()}),t)};const yR=gR;var wR=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){kR&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),OR?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){kR&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=NR.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ER=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),FR="undefined"!=typeof WeakMap?new WeakMap:new wR,LR=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xR.getInstance(),r=new MR(t,n,this);FR.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){LR.prototype[e]=function(){var t;return(t=FR.get(this))[e].apply(t,arguments)}}));const UR=void 0!==CR.ResizeObserver?CR.ResizeObserver:LR;function VR(e,t){var n=null,r=null,o=new UR((function(e){var o=cn(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,l=i.height,u=Math.floor(a),c=Math.floor(l);n===u&&r===c||Promise.resolve().then((function(){t({width:u,height:c})})),n=u,r=c}}));return e&&o.observe(e),function(){o.disconnect()}}function HR(e){return"function"!=typeof e?null:e()}function zR(e){return"object"===We(e)&&e?e:null}var WR=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,l=e.monitorWindowResize,u=e.monitorBufferTime,c=void 0===u?0:u,s=nc().useRef({}),d=nc().useRef(),f=nc().Children.only(n),h=nc().useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var p=function(e,t){var n=nc().useRef(!1),r=nc().useRef(null);function o(){window.clearTimeout(r.current)}return[function e(i){if(o(),n.current&&!0!==i)r.current=window.setTimeout((function(){n.current=!1,e()}),t);else{if(!1===function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=d.current;if(!t&&n&&i){var a,l=HR(n),u=zR(n);s.current.element=l,s.current.point=u,s.current.align=r;var c=document.activeElement;return l&&vR(l)?a=pR(i,l,r):u&&(a=function(e,t,n){var r,o,i=ZD.getDocument(e),a=i.defaultView||i.parentWindow,l=ZD.getWindowScrollLeft(a),u=ZD.getWindowScrollTop(a),c=ZD.viewportWidth(a),s=ZD.viewportHeight(a),d={left:r="pageX"in t?t.pageX:l+t.clientX,top:o="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},f=r>=0&&r<=l+c&&o>=0&&o<=u+s,h=[n.points[0],"cc"];return hR(e,d,fD(fD({},n),{},{points:h}),f)}(i,u,r)),function(e,t){e!==document.activeElement&&sN(t,e)&&"function"==typeof e.focus&&e.focus()}(c,i),o&&a&&o(i,a),!0}return!1}())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}(0,c),v=cn(p,2),m=v[0],g=v[1],b=cn(nc().useState(),2),y=b[0],w=b[1],k=cn(nc().useState(),2),C=k[0],_=k[1];return yR((function(){w(HR(o)),_(zR(o))})),nc().useEffect((function(){var e,t;s.current.element===y&&((e=s.current.point)===(t=C)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(cN(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var u=0;u=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:S(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}var YR=["measure","alignPre","align",null,"motion"],GR=tc.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,l=e.zIndex,u=e.stretch,c=e.destroyPopupOnHide,s=e.forceRender,d=e.align,f=e.point,h=e.getRootDomNode,p=e.getClassNameFromAlign,v=e.onAlign,m=e.onMouseEnter,g=e.onMouseLeave,b=e.onMouseDown,y=e.onTouchStart,w=e.onClick,k=(0,tc.useRef)(),C=(0,tc.useRef)(),_=cn((0,tc.useState)(),2),N=_[0],O=_[1],x=function(e){var t=cn(tc.useState({width:0,height:0}),2),n=t[0],r=t[1];return[tc.useMemo((function(){var t={};if(e){var r=n.width,o=n.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),i=o.width,a=o.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),r({width:t,height:n})}]}(u),E=cn(x,2),D=E[0],R=E[1],P=function(e,t){var n=cn(kC(null),2),r=n[0],o=n[1],i=(0,tc.useRef)();function a(e){o(e,!0)}function l(){t_.cancel(i.current)}return(0,tc.useEffect)((function(){a("measure")}),[e]),(0,tc.useEffect)((function(){"measure"===r&&(u&&R(h())),r&&(i.current=t_(wO(KR().mark((function e(){var t,n;return KR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=YR.indexOf(r),(n=YR[t+1])&&-1!==t&&a(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,tc.useEffect)((function(){return function(){l()}}),[]),[r,function(e){l(),i.current=t_((function(){a((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n),S=cn(P,2),T=S[0],A=S[1],j=cn((0,tc.useState)(0),2),I=j[0],B=j[1],M=(0,tc.useRef)();function F(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function L(e,t){var n=p(t);N!==n&&O(n),B((function(e){return e+1})),"align"===T&&(null==v||v(e,t))}yR((function(){"alignPre"===T&&B(0)}),[T]),yR((function(){"align"===T&&(I<3?F():A((function(){var e;null===(e=M.current)||void 0===e||e.call(M)})))}),[I]);var U=dC({},cD(e));function V(){return new Promise((function(e){M.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=U[e];U[e]=function(e,n){return A(),null==t?void 0:t(e,n)}})),tc.useEffect((function(){U.motionName||"motion"!==T||A()}),[U.motionName,T]),tc.useImperativeHandle(t,(function(){return{forceAlign:F,getElement:function(){return C.current}}}));var H=dC(dC({},D),{},{zIndex:l,opacity:"motion"!==T&&"stable"!==T&&n?0:void 0,pointerEvents:n||"stable"===T?void 0:"none"},i),z=!0;null==d||!d.points||"align"!==T&&"stable"!==T||(z=!1);var W=a;return tc.Children.count(a)>1&&(W=tc.createElement("div",{className:"".concat(r,"-content")},a)),tc.createElement(m_,aC({visible:n,ref:C,leavedClassName:"".concat(r,"-hidden")},U,{onAppearPrepare:V,onEnterPrepare:V,removeOnLeave:c,forceRender:s}),(function(e,t){var n=e.className,i=e.style,a=uC()(r,o,N,n);return tc.createElement($R,{target:f||h,key:"popup",ref:k,monitorWindowResize:!0,disabled:z,align:d,onAlign:L},tc.createElement("div",{ref:t,className:a,onMouseEnter:m,onMouseLeave:g,onMouseDownCapture:b,onTouchStartCapture:y,onClick:w,style:dC(dC({},i),H)},W))}))}));GR.displayName="PopupInner";const JR=GR;var XR=tc.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile,l=(a=void 0===a?{}:a).popupClassName,u=a.popupStyle,c=a.popupMotion,s=void 0===c?{}:c,d=a.popupRender,f=e.onClick,h=tc.useRef();tc.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var p=dC({zIndex:o},u),v=i;return tc.Children.count(i)>1&&(v=tc.createElement("div",{className:"".concat(n,"-content")},i)),d&&(v=d(v)),tc.createElement(m_,aC({visible:r,ref:h,removeOnLeave:!0},s),(function(e,t){var r=e.className,o=e.style,i=uC()(n,l,r);return tc.createElement("div",{ref:t,className:i,onClick:f,style:dC(dC({},o),p)},v)}))}));XR.displayName="MobilePopupInner";const QR=XR;var ZR=["visible","mobile"],eP=tc.forwardRef((function(e,t){var n=e.visible,r=e.mobile,o=cC(e,ZR),i=cn((0,tc.useState)(n),2),a=i[0],l=i[1],u=cn((0,tc.useState)(!1),2),c=u[0],s=u[1],d=dC(dC({},o),{},{visible:a});(0,tc.useEffect)((function(){l(n),n&&r&&s(uD())}),[n,r]);var f=c?tc.createElement(QR,aC({},d,{mobile:r,ref:t})):tc.createElement(JR,aC({},d,{ref:t}));return tc.createElement("div",null,tc.createElement(sD,d),f)}));eP.displayName="Popup";const tP=eP,nP=tc.createContext(null);function rP(){}var oP=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const iP=(aP=aD,lP=function(e){et(n,e);var t=fC(n);function n(e){var r,o;return Ye(this,n),Ja(Je(r=t.call(this,e)),"popupRef",tc.createRef()),Ja(Je(r),"triggerRef",tc.createRef()),Ja(Je(r),"portalContainer",void 0),Ja(Je(r),"attachId",void 0),Ja(Je(r),"clickOutsideHandler",void 0),Ja(Je(r),"touchOutsideHandler",void 0),Ja(Je(r),"contextMenuOutsideHandler1",void 0),Ja(Je(r),"contextMenuOutsideHandler2",void 0),Ja(Je(r),"mouseDownTimeout",void 0),Ja(Je(r),"focusTime",void 0),Ja(Je(r),"preClickTime",void 0),Ja(Je(r),"preTouchTime",void 0),Ja(Je(r),"delayTimer",void 0),Ja(Je(r),"hasPopupMouseDown",void 0),Ja(Je(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),Ja(Je(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),Ja(Je(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),Ja(Je(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),Ja(Je(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&sN(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),Ja(Je(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),Ja(Je(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),Ja(Je(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),Ja(Je(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),Ja(Je(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),Ja(Je(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),Ja(Je(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),Ja(Je(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),Ja(Je(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();sN(n,t)&&!r.isContextMenuOnly()||sN(o,t)||r.hasPopupMouseDown||r.close()}})),Ja(Je(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=hC(r.triggerRef.current);if(t)return t}catch(e){}return nu().findDOMNode(Je(r))})),Ja(Je(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,l=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:1;return _P[t]=t_((function r(){(n-=1)<=0?(e(),delete _P[t]):_P[t]=t_(r)})),t}NP.cancel=function(e){void 0!==e&&(t_.cancel(_P[e]),delete _P[e])},NP.ids=_P;var OP,xP=tc.isValidElement;function EP(e,t){return function(e,t,n){return xP(e)?tc.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function DP(e){return!e||null===e.offsetParent||e.hidden}var RP=function(e){et(n,e);var t=fC(n);function n(){var e;return Ye(this,n),(e=t.apply(this,arguments)).containerRef=tc.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,o;if(!(!t||DP(t)||t.className.indexOf("-leave")>=0)){var i=e.props.insertExtraNode;e.extraNode=document.createElement("div");var a=Je(e).extraNode,l=e.context.getPrefixCls;a.className="".concat(l(""),"-click-animating-node");var u=e.getAttributeName();if(t.setAttribute(u,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&function(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){a.style.borderColor=n;var c=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,s=c instanceof Document?c.body:null!==(o=c.firstChild)&&void 0!==o?o:c;OP=wN("\n [".concat(l(""),"-click-animating-without-extra-node='true']::after, .").concat(l(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:s})}i&&t.appendChild(a),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!DP(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),NP.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=NP((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!tc.isValidElement(r))return r;var o=e.containerRef;return bC(r)&&(o=gC(r.ref,e.containerRef)),EP(r,{ref:o})},e}return Ke(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),OP&&(OP.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return tc.createElement(hO,null,this.renderWave)}}]),n}(tc.Component);RP.contextType=fO;var PP=function(){for(var e=arguments.length,t=new Array(e),n=0;n2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(h,"` at https://ant.design/components/icon")),Sx(!(v&&BP(l)),"Button","`link` or `text` button can't be a `ghost` button.");var B=R("btn",a),M=!1!==P,F="";switch(s||k){case"large":F="lg";break;case"small":F="sm"}var L=_?"loading":h,U=uC()(B,(Ja(n={},"".concat(B,"-").concat(l),l),Ja(n,"".concat(B,"-").concat(c),c),Ja(n,"".concat(B,"-").concat(F),F),Ja(n,"".concat(B,"-icon-only"),!f&&0!==f&&!!L),Ja(n,"".concat(B,"-background-ghost"),v&&!BP(l)),Ja(n,"".concat(B,"-loading"),_),Ja(n,"".concat(B,"-two-chinese-chars"),x&&M),Ja(n,"".concat(B,"-block"),g),Ja(n,"".concat(B,"-dangerous"),!!u),Ja(n,"".concat(B,"-rtl"),"rtl"===S),n),d),V=h&&!_?h:tc.createElement(AP,{existIcon:!!h,prefixCls:B,loading:!!_}),H=f||0===f?function(e,t){var n=!1,r=[];return tc.Children.forEach(e,(function(e){var t=We(e),o="string"===t||"number"===t;if(n&&o){var i=r.length-1,a=r[i];r[i]="".concat(a).concat(e)}else r.push(e);n=o})),tc.Children.map(r,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&IP(e.props.children)?EP(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?(IP(e)&&(e=e.split("").join(n)),tc.createElement("span",null,e)):e}}(e,t)}))}(f,j()&&M):null,z=wP(w,["navigate"]);if(void 0!==z.href)return tc.createElement("a",aC({},z,{className:U,onClick:I,ref:T}),V,H);var W=tc.createElement("button",aC({},w,{type:y,className:U,onClick:I,ref:T}),V,H);return BP(l)?W:tc.createElement(RP,null,W)},LP=tc.forwardRef(FP);LP.displayName="Button",LP.Group=function(e){return tc.createElement(hO,null,(function(t){var n,r=t.getPrefixCls,o=t.direction,i=e.prefixCls,a=e.size,l=e.className,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")}(),trigger:b,overlay:function(){return function(t){var n,r=e.overlay;n="function"==typeof r?r():r;var o=(n=tc.Children.only("string"==typeof n?tc.createElement("span",null,n):n)).props;Sx(!o.mode||"vertical"===o.mode,"Dropdown",'mode="'.concat(o.mode,"\" is not supported for Dropdown's Menu."));var i=o.selectable,a=void 0!==i&&i,l=o.expandIcon,u=void 0!==l&&tc.isValidElement(l)?l:tc.createElement("span",{className:"".concat(t,"-menu-submenu-arrow")},tc.createElement(mP,{className:"".concat(t,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?n:EP(n,{mode:"vertical",selectable:a,expandIcon:u})}(p)},placement:(n=e.placement,void 0!==n?n:"rtl"===a?"bottomRight":"bottomLeft")}),m)};WP.Button=zP,WP.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};const qP=WP,$P=qP,KP=$P;var YP={adjustX:1,adjustY:1},GP=[0,0],JP={left:{points:["cr","cl"],overflow:YP,offset:[-4,0],targetOffset:GP},right:{points:["cl","cr"],overflow:YP,offset:[4,0],targetOffset:GP},top:{points:["bc","tc"],overflow:YP,offset:[0,-4],targetOffset:GP},bottom:{points:["tc","bc"],overflow:YP,offset:[0,4],targetOffset:GP},topLeft:{points:["bl","tl"],overflow:YP,offset:[0,-4],targetOffset:GP},leftTop:{points:["tr","tl"],overflow:YP,offset:[-4,0],targetOffset:GP},topRight:{points:["br","tr"],overflow:YP,offset:[0,-4],targetOffset:GP},rightTop:{points:["tl","tr"],overflow:YP,offset:[4,0],targetOffset:GP},bottomRight:{points:["tr","br"],overflow:YP,offset:[0,4],targetOffset:GP},rightBottom:{points:["bl","br"],overflow:YP,offset:[4,0],targetOffset:GP},bottomLeft:{points:["tl","bl"],overflow:YP,offset:[0,4],targetOffset:GP},leftBottom:{points:["br","bl"],overflow:YP,offset:[-4,0],targetOffset:GP}};const XP=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return tc.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var QP=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,l=e.mouseLeaveDelay,u=void 0===l?.1:l,c=e.overlayStyle,s=e.prefixCls,d=void 0===s?"rc-tooltip":s,f=e.children,h=e.onVisibleChange,p=e.afterVisibleChange,v=e.transitionName,m=e.animation,g=e.motion,b=e.placement,y=void 0===b?"right":b,w=e.align,k=void 0===w?{}:w,C=e.destroyTooltipOnHide,_=void 0!==C&&C,N=e.defaultVisible,O=e.getTooltipContainer,x=e.overlayInnerStyle,E=cC(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),D=(0,tc.useRef)(null);(0,tc.useImperativeHandle)(t,(function(){return D.current}));var R=dC({},E);"visible"in e&&(R.popupVisible=e.visible);var P=!1,S=!1;if("boolean"==typeof _)P=_;else if(_&&"object"===We(_)){var T=_.keepParent;P=!0===T,S=!1===T}return tc.createElement(iP,aC({popupClassName:n,prefixCls:d,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[tc.createElement("div",{className:"".concat(d,"-arrow"),key:"arrow"},n),tc.createElement(XP,{key:"content",prefixCls:d,id:o,overlay:r,overlayInnerStyle:x})]},action:o,builtinPlacements:JP,popupPlacement:y,ref:D,popupAlign:k,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:v,popupAnimation:m,popupMotion:g,defaultPopupVisible:N,destroyPopupOnHide:P,autoDestroy:S,mouseLeaveDelay:u,popupStyle:c,mouseEnterDelay:a},R),f)};const ZP=(0,tc.forwardRef)(QP);function eS(e){var t=tc.useRef();t.current=e;var n=tc.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:P,arrowContent:tc.createElement("span",{className:"".concat(w,"-arrow-content"),style:_}),motion:{motionName:hS(k,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),C?EP(x,{className:D}):x)}));mS.displayName="Tooltip",mS.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};const gS=mS;var bS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ov,oe=(0,tc.useMemo)((function(){var e=a;return te?e=null===E&&N?a:a.slice(0,Math.min(a.length,R/d)):"number"==typeof v&&(e=a.slice(0,v)),e}),[a,d,E,v,te]),ie=(0,tc.useMemo)((function(){return te?a.slice(Y+1):a.slice(oe.length)}),[a,oe,te,Y]),ae=(0,tc.useCallback)((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),le=(0,tc.useCallback)(l||function(e){return e},[l]);function ue(e,t,n){($!==e||void 0!==t&&t!==z)&&(K(e),n||(X(eR){ue(r-1,e-o-U+M);break}}b&&se(0)+U>R&&W(null)}}),[R,S,M,U,ae,oe]);var de=J&&!!ie.length,fe={};null!==z&&te&&(fe={position:"absolute",left:z,top:0});var he,pe={prefixCls:Q,responsive:te,component:k,invalidate:ne},ve=u?function(e,t){var n=ae(e,t);return tc.createElement(LS.Provider,{key:n,value:dC(dC({},pe),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=Y})},u(e,t))}:function(e,t){var n=ae(e,t);return tc.createElement(MS,aC({},pe,{order:t,key:n,item:e,renderItem:le,itemKey:n,registerSize:ce,display:t<=Y}))},me={order:de?Y:Number.MAX_SAFE_INTEGER,className:"".concat(Q,"-rest"),registerSize:function(e,t){F(t),I(M)},display:de};if(g)g&&(he=tc.createElement(LS.Provider,{value:dC(dC({},pe),me)},g(ie)));else{var ge=m||GS;he=tc.createElement(MS,aC({},pe,me),"function"==typeof ge?ge(ie):ge)}var be=tc.createElement(w,aC({className:uC()(!ne&&o,p),style:h,ref:t},_),oe.map(ve),re?he:null,b&&tc.createElement(MS,aC({},pe,{responsive:ee,responsiveDisabled:!te,order:Y,className:"".concat(Q,"-suffix"),registerSize:function(e,t){V(t)},display:!0,style:fe}),b));return ee&&(be=tc.createElement(TS,{onResize:function(e,t){D(t.clientWidth)},disabled:!te},be)),be}var XS=tc.forwardRef(JS);XS.displayName="Overflow",XS.Item=qS,XS.RESPONSIVE=KS,XS.INVALIDATE=YS;const QS=XS;var ZS={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ZS.F1&&t<=ZS.F12)return!1;switch(t){case ZS.ALT:case ZS.CAPS_LOCK:case ZS.CONTEXT_MENU:case ZS.CTRL:case ZS.DOWN:case ZS.END:case ZS.ESC:case ZS.HOME:case ZS.INSERT:case ZS.LEFT:case ZS.MAC_FF_META:case ZS.META:case ZS.NUMLOCK:case ZS.NUM_CENTER:case ZS.PAGE_DOWN:case ZS.PAGE_UP:case ZS.PAUSE:case ZS.PRINT_SCREEN:case ZS.RIGHT:case ZS.SHIFT:case ZS.UP:case ZS.WIN_KEY:case ZS.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ZS.ZERO&&e<=ZS.NINE)return!0;if(e>=ZS.NUM_ZERO&&e<=ZS.NUM_MULTIPLY)return!0;if(e>=ZS.A&&e<=ZS.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ZS.SPACE:case ZS.QUESTION_MARK:case ZS.NUM_PLUS:case ZS.NUM_MINUS:case ZS.NUM_PERIOD:case ZS.NUM_DIVISION:case ZS.SEMICOLON:case ZS.DASH:case ZS.EQUALS:case ZS.COMMA:case ZS.PERIOD:case ZS.SLASH:case ZS.APOSTROPHE:case ZS.SINGLE_QUOTE:case ZS.OPEN_SQUARE_BRACKET:case ZS.BACKSLASH:case ZS.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const eT=ZS;var tT=["children","locked"],nT=tc.createContext(null);function rT(e){var t=e.children,n=e.locked,r=cC(e,tT),o=tc.useContext(nT),i=vC((function(){return e=r,t=dC({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&_S()(e[1],t[1]))}));return tc.createElement(nT.Provider,{value:i},t)}function oT(e,t,n,r){var o=tc.useContext(nT),i=o.activeKey,a=o.onActive,l=o.onInactive,u={active:i===e};return t||(u.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},u.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),u}var iT=["item"];function aT(e){var t=e.item,n=cC(e,iT);return Object.defineProperty(n,"item",{get:function(){return cN(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function lT(e){var t=e.icon,n=e.props,r=e.children;return("function"==typeof t?tc.createElement(t,dC({},n)):t)||r||null}function uT(e){var t=tc.useContext(nT),n=t.mode,r=t.rtl,o=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}var cT=[],sT=tc.createContext(null);function dT(){return tc.useContext(sT)}var fT=tc.createContext(cT);function hT(e){var t=tc.useContext(fT);return tc.useMemo((function(){return void 0!==e?[].concat(pn(t),[e]):t}),[t,e])}var pT=tc.createContext(null),vT=tc.createContext(null);function mT(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function gT(e){return mT(tc.useContext(vT),e)}var bT=["title","attribute","elementRef"],yT=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],wT=["active"],kT=function(e){et(n,e);var t=fC(n);function n(){return Ye(this,n),t.apply(this,arguments)}return Ke(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=wP(cC(e,bT),["eventKey"]);return cN(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),tc.createElement(QS.Item,aC({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(tc.Component),CT=function(e){var t,n=e.style,r=e.className,o=e.eventKey,i=(e.warnKey,e.disabled),a=e.itemIcon,l=e.children,u=e.role,c=e.onMouseEnter,s=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,h=e.onFocus,p=cC(e,yT),v=gT(o),m=tc.useContext(nT),g=m.prefixCls,b=m.onItemClick,y=m.disabled,w=m.overflowDisabled,k=m.itemIcon,C=m.selectedKeys,_=m.onActive,N="".concat(g,"-item"),O=tc.useRef(),x=tc.useRef(),E=y||i,D=hT(o),R=function(e){return{key:o,keyPath:pn(D).reverse(),item:O.current,domEvent:e}},P=a||k,S=oT(o,E,c,s),T=S.active,A=cC(S,wT),j=C.includes(o),I=uT(D.length),B={};return"option"===e.role&&(B["aria-selected"]=j),tc.createElement(kT,aC({ref:O,elementRef:x,role:null===u?"none":u||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&v?null:v},p,A,B,{component:"li","aria-disabled":i,style:dC(dC({},I),n),className:uC()(N,(t={},Ja(t,"".concat(N,"-active"),T),Ja(t,"".concat(N,"-selected"),j),Ja(t,"".concat(N,"-disabled"),E),t),r),onClick:function(e){if(!E){var t=R(e);null==d||d(aT(t)),b(t)}},onKeyDown:function(e){if(null==f||f(e),e.which===eT.ENTER){var t=R(e);null==d||d(aT(t)),b(t)}},onFocus:function(e){_(o),null==h||h(e)}}),l,tc.createElement(lT,{props:dC(dC({},e),{},{isSelected:j}),icon:P}))};const _T=function(e){var t=e.eventKey,n=dT(),r=hT(t);return tc.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:tc.createElement(CT,e)};function NT(e,t){return pO(e).map((function(e,n){if(tc.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(pn(t),[n]).join("-")));var l={key:a,eventKey:a};return tc.cloneElement(e,l)}return e}))}function OT(e){var t=tc.useRef(e);t.current=e;var n=tc.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(g.motionAppear=!1);var b=g.onVisibleChanged;return g.onVisibleChanged=function(e){return f.current||e||v(!0),null==b?void 0:b(e)},p?null:tc.createElement(rT,{mode:i,locked:!f.current},tc.createElement(m_,aC({visible:m},g,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return tc.createElement(RT,{id:t,className:n,style:r},o)})))}var MT=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],FT=["active"],LT=function(e){var t,n=e.style,r=e.className,o=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),l=e.internalPopupClose,u=e.children,c=e.itemIcon,s=e.expandIcon,d=e.popupClassName,f=e.popupOffset,h=e.onClick,p=e.onMouseEnter,v=e.onMouseLeave,m=e.onTitleClick,g=e.onTitleMouseEnter,b=e.onTitleMouseLeave,y=cC(e,MT),w=gT(i),k=tc.useContext(nT),C=k.prefixCls,_=k.mode,N=k.openKeys,O=k.disabled,x=k.overflowDisabled,E=k.activeKey,D=k.selectedKeys,R=k.itemIcon,P=k.expandIcon,S=k.onItemClick,T=k.onOpenChange,A=k.onActive,j=tc.useContext(pT).isSubPathKey,I=hT(),B="".concat(C,"-submenu"),M=O||a,F=tc.useRef(),L=tc.useRef(),U=c||R,V=s||P,H=N.includes(i),z=!x&&H,W=j(D,i),q=oT(i,M,g,b),$=q.active,K=cC(q,FT),Y=cn(tc.useState(!1),2),G=Y[0],J=Y[1],X=function(e){M||J(e)},Q=tc.useMemo((function(){return $||"inline"!==_&&(G||j([E],i))}),[_,$,E,G,i,j]),Z=uT(I.length),ee=OT((function(e){null==h||h(aT(e)),S(e)})),te=w&&"".concat(w,"-popup"),ne=tc.createElement("div",aC({role:"menuitem",style:Z,className:"".concat(B,"-title"),tabIndex:M?null:-1,ref:F,title:"string"==typeof o?o:null,"data-menu-id":x&&w?null:w,"aria-expanded":z,"aria-haspopup":!0,"aria-controls":te,"aria-disabled":M,onClick:function(e){M||(null==m||m({key:i,domEvent:e}),"inline"===_&&T(i,!H))},onFocus:function(){A(i)}},K),o,tc.createElement(lT,{icon:"horizontal"!==_?V:null,props:dC(dC({},e),{},{isOpen:z,isSubMenu:!0})},tc.createElement("i",{className:"".concat(B,"-arrow")}))),re=tc.useRef(_);if("inline"!==_&&(re.current=I.length>1?"vertical":_),!x){var oe=re.current;ne=tc.createElement(IT,{mode:oe,prefixCls:B,visible:!l&&z&&"inline"!==_,popupClassName:d,popupOffset:f,popup:tc.createElement(rT,{mode:"horizontal"===oe?"vertical":oe},tc.createElement(RT,{id:te,ref:L},u)),disabled:M,onVisibleChange:function(e){"inline"!==_&&T(i,e)}},ne)}return tc.createElement(rT,{onItemClick:ee,mode:"horizontal"===_?"vertical":_,itemIcon:U,expandIcon:V},tc.createElement(QS.Item,aC({role:"none"},y,{component:"li",style:n,className:uC()(B,"".concat(B,"-").concat(_),r,(t={},Ja(t,"".concat(B,"-open"),z),Ja(t,"".concat(B,"-active"),Q),Ja(t,"".concat(B,"-selected"),W),Ja(t,"".concat(B,"-disabled"),M),t)),onMouseEnter:function(e){X(!0),null==p||p({key:i,domEvent:e})},onMouseLeave:function(e){X(!1),null==v||v({key:i,domEvent:e})}}),ne,!x&&tc.createElement(BT,{id:te,open:z,keyPath:I},u)))};function UT(e){var t,n=e.eventKey,r=e.children,o=hT(n),i=NT(r,o),a=dT();return tc.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:tc.createElement(LT,e,i),tc.createElement(fT.Provider,{value:o},t)}function VT(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(vR(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var HT=eT.LEFT,zT=eT.RIGHT,WT=eT.UP,qT=eT.DOWN,$T=eT.ENTER,KT=eT.ESC,YT=[WT,qT,HT,zT];function GT(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pn(e.querySelectorAll("*")).filter((function(e){return VT(e,t)}));return VT(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var JT=Math.random().toFixed(5).toString().slice(2),XT=0,QT="__RC_UTIL_PATH_SPLIT__",ZT=function(e){return e.join(QT)},eA="rc-menu-more";var tA=["prefixCls","style","className","tabIndex","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName"],nA=[];var rA=["className","title","eventKey","children"],oA=["children"],iA=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),o=cC(e,rA),i=tc.useContext(nT).prefixCls,a="".concat(i,"-item-group");return tc.createElement("li",aC({},o,{onClick:function(e){return e.stopPropagation()},className:uC()(a,t)}),tc.createElement("div",{className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),tc.createElement("ul",{className:"".concat(a,"-list")},r))};function aA(e){var t=e.children,n=cC(e,oA),r=NT(t,hT(n.eventKey));return dT()?r:tc.createElement(iA,wP(n,["warnKey"]),r)}function lA(e){var t=e.className,n=e.style,r=tc.useContext(nT).prefixCls;return dT()?null:tc.createElement("li",{className:uC()("".concat(r,"-item-divider"),t),style:n})}var uA=function(e){var t,n,r=e.prefixCls,o=void 0===r?"rc-menu":r,i=e.style,a=e.className,l=e.tabIndex,u=void 0===l?0:l,c=e.children,s=e.direction,d=e.id,f=e.mode,h=void 0===f?"vertical":f,p=e.inlineCollapsed,v=e.disabled,m=e.disabledOverflow,g=e.subMenuOpenDelay,b=void 0===g?.1:g,y=e.subMenuCloseDelay,w=void 0===y?.1:y,k=e.forceSubMenuRender,C=e.defaultOpenKeys,_=e.openKeys,N=e.activeKey,O=e.defaultActiveFirst,x=e.selectable,E=void 0===x||x,D=e.multiple,R=void 0!==D&&D,P=e.defaultSelectedKeys,S=e.selectedKeys,T=e.onSelect,A=e.onDeselect,j=e.inlineIndent,I=void 0===j?24:j,B=e.motion,M=e.defaultMotions,F=e.triggerSubMenuAction,L=void 0===F?"hover":F,U=e.builtinPlacements,V=e.itemIcon,H=e.expandIcon,z=e.overflowedIndicator,W=void 0===z?"...":z,q=e.overflowedIndicatorPopupClassName,$=e.getPopupContainer,K=e.onClick,Y=e.onOpenChange,G=e.onKeyDown,J=(e.openAnimation,e.openTransitionName,cC(e,tA)),X=NT(c,nA),Q=cn(tc.useState(!1),2),Z=Q[0],ee=Q[1],te=tc.useRef(),ne=function(e){var t=cn(nS(e,{value:e}),2),n=t[0],r=t[1];return tc.useEffect((function(){XT+=1;var e="".concat(JT,"-").concat(XT);r("rc-menu-uuid-".concat(e))}),[]),n}(d),re="rtl"===s,oe=cn(tc.useMemo((function(){return"inline"!==h&&"vertical"!==h||!p?[h,!1]:["vertical",p]}),[h,p]),2),ie=oe[0],ae=oe[1],le=cn(tc.useState(0),2),ue=le[0],ce=le[1],se=ue>=X.length-1||"horizontal"!==ie||m,de=cn(nS(C,{value:_,postState:function(e){return e||nA}}),2),fe=de[0],he=de[1],pe=function(e){he(e),null==Y||Y(e)},ve=cn(tc.useState(fe),2),me=ve[0],ge=ve[1],be="inline"===ie,ye=tc.useRef(!1);tc.useEffect((function(){be&&ge(fe)}),[fe]),tc.useEffect((function(){ye.current?be?he(me):pe(nA):ye.current=!0}),[be]);var we=function(){var e=cn(tc.useState({}),2)[1],t=(0,tc.useRef)(new Map),n=(0,tc.useRef)(new Map),r=cn(tc.useState([]),2),o=r[0],i=r[1],a=(0,tc.useRef)(0),l=(0,tc.useRef)(!1),u=(0,tc.useCallback)((function(r,o){var i=ZT(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var u,c=a.current;u=function(){c===a.current&&(l.current||e({}))},Promise.resolve().then(u)}),[]),c=(0,tc.useCallback)((function(e,r){var o=ZT(r);n.current.delete(o),t.current.delete(e)}),[]),s=(0,tc.useCallback)((function(e){i(e)}),[]),d=(0,tc.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(QT);return n&&o.includes(r[0])&&r.unshift(eA),r}),[o]),f=(0,tc.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),h=(0,tc.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(QT),o=new Set;return pn(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return tc.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:u,unregisterPath:c,refreshOverflowKeys:s,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=pn(t.current.keys());return o.length&&e.push(eA),e},getSubPathKeys:h}}(),ke=we.registerPath,Ce=we.unregisterPath,_e=we.refreshOverflowKeys,Ne=we.isSubPathKey,Oe=we.getKeyPath,xe=we.getKeys,Ee=we.getSubPathKeys,De=tc.useMemo((function(){return{registerPath:ke,unregisterPath:Ce}}),[ke,Ce]),Re=tc.useMemo((function(){return{isSubPathKey:Ne}}),[Ne]);tc.useEffect((function(){_e(se?nA:X.slice(ue+1).map((function(e){return e.key})))}),[ue,se]);var Pe=cn(nS(N||O&&(null===(t=X[0])||void 0===t?void 0:t.key),{value:N}),2),Se=Pe[0],Te=Pe[1],Ae=OT((function(e){Te(e)})),je=OT((function(){Te(void 0)})),Ie=cn(nS(P||[],{value:S,postState:function(e){return Array.isArray(e)?e:null==e?nA:[e]}}),2),Be=Ie[0],Me=Ie[1],Fe=OT((function(e){null==K||K(aT(e)),function(e){if(E){var t,n=e.key,r=Be.includes(n);t=R?r?Be.filter((function(e){return e!==n})):[].concat(pn(Be),[n]):[n],Me(t);var o=dC(dC({},e),{},{selectedKeys:t});r?null==A||A(o):null==T||T(o)}!R&&fe.length&&"inline"!==ie&&pe(nA)}(e)})),Le=OT((function(e,t){var n=fe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==ie){var r=Ee(e);n=n.filter((function(e){return!r.has(e)}))}_S()(fe,n)||pe(n)})),Ue=OT($),Ve=function(e,t,n,r,o,i,a,l,u,c){var s=tc.useRef(),d=tc.useRef();d.current=t;var f=function(){t_.cancel(s.current)};return tc.useEffect((function(){return function(){f()}}),[]),function(h){var p=h.which;if([].concat(YT,[$T,KT]).includes(p)){var v,m,g,b=function(){return v=new Set,m=new Map,g=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(mT(r,e),"']"));t&&(v.add(t),g.set(t,e),m.set(e,t))})),v};b();var y=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(m.get(t),v),w=g.get(y),k=function(e,t,n,r){var o,i,a,l,u="prev",c="next",s="children",d="parent";if("inline"===e&&r===$T)return{inlineTrigger:!0};var f=(Ja(o={},WT,u),Ja(o,qT,c),o),h=(Ja(i={},HT,n?c:u),Ja(i,zT,n?u:c),Ja(i,qT,s),Ja(i,$T,s),i),p=(Ja(a={},WT,u),Ja(a,qT,c),Ja(a,$T,s),Ja(a,KT,d),Ja(a,HT,n?s:d),Ja(a,zT,n?d:s),a);switch(null===(l={inline:f,horizontal:h,vertical:p,inlineSub:f,horizontalSub:p,verticalSub:p}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case u:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,p);if(!k)return;YT.includes(p)&&h.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);var r=g.get(e);l(r),f(),s.current=t_((function(){d.current===r&&t.focus()}))}};if(k.sibling||!y){var _=GT(y&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):o.current,v,y,k.offset);C(_)}else if(k.inlineTrigger)u(w);else if(k.offset>0)u(w,!0),f(),s.current=t_((function(){b();var e=y.getAttribute("aria-controls"),t=GT(document.getElementById(e),v);C(t)}),5);else if(k.offset<0){var N=a(w,!0),O=N[N.length-2],x=m.get(O);u(O,!1),C(x)}}null==c||c(h)}}(ie,Se,re,ne,te,xe,Oe,Te,(function(e,t){var n=null!=t?t:!fe.includes(e);Le(e,n)}),G);tc.useEffect((function(){ee(!0)}),[]);var He="horizontal"!==ie||m?X:X.map((function(e,t){return tc.createElement(rT,{key:e.key,overflowDisabled:t>ue},e)})),ze=tc.createElement(QS,aC({id:d,ref:te,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:_T,className:uC()(o,"".concat(o,"-root"),"".concat(o,"-").concat(ie),a,(n={},Ja(n,"".concat(o,"-inline-collapsed"),ae),Ja(n,"".concat(o,"-rtl"),re),n)),dir:s,style:i,role:"menu",tabIndex:u,data:He,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?X.slice(-t):null;return tc.createElement(UT,{eventKey:eA,title:W,disabled:se,internalPopupClose:0===t,popupClassName:q},n)},maxCount:"horizontal"!==ie||m?QS.INVALIDATE:QS.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){ce(e)},onKeyDown:Ve},J));return tc.createElement(vT.Provider,{value:ne},tc.createElement(rT,{prefixCls:o,mode:ie,openKeys:fe,rtl:re,disabled:v,motion:Z?B:null,defaultMotions:Z?M:null,activeKey:Se,onActive:Ae,onInactive:je,selectedKeys:Be,inlineIndent:I,subMenuOpenDelay:b,subMenuCloseDelay:w,forceSubMenuRender:k,builtinPlacements:U,triggerSubMenuAction:L,getPopupContainer:Ue,itemIcon:V,expandIcon:H,onItemClick:Fe,onOpenChange:Le},tc.createElement(pT.Provider,{value:Re},ze),tc.createElement("div",{style:{display:"none"},"aria-hidden":!0},tc.createElement(sT.Provider,{value:De},X))))};uA.Item=_T,uA.SubMenu=UT,uA.ItemGroup=aA,uA.Divider=lA;const cA=uA,sA=(0,tc.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),dA={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var fA=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:dA}))};fA.displayName="BarsOutlined";const hA=tc.forwardRef(fA),pA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var vA=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:pA}))};vA.displayName="LeftOutlined";const mA=tc.forwardRef(vA);var gA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0),Ja(t,"".concat(a,"-rtl"),"rtl"===n),t),l);return tc.createElement(bA.Provider,{value:{siderHook:{addSider:function(e){i((function(t){return[].concat(pn(t),[e])}))},removeSider:function(e){i((function(t){return t.filter((function(t){return t!==e}))}))}}}},tc.createElement(s,aC({className:f},d),u))})),yA({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(wA),yA({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(wA),yA({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(wA);var kA={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},CA=tc.createContext({}),_A=function(){var e=0;return function(){return e+=1,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(e)}}(),NA=tc.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.trigger,i=e.children,a=e.defaultCollapsed,l=void 0!==a&&a,u=e.theme,c=void 0===u?"dark":u,s=e.style,d=void 0===s?{}:s,f=e.collapsible,h=void 0!==f&&f,p=e.reverseArrow,v=void 0!==p&&p,m=e.width,g=void 0===m?200:m,b=e.collapsedWidth,y=void 0===b?80:b,w=e.zeroWidthTriggerStyle,k=e.breakpoint,C=e.onCollapse,_=e.onBreakpoint,N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o3&&void 0!==arguments[3]?arguments[3]:{},i=r.props,a=i.className,l=i.addonBefore,u=i.addonAfter,c=i.size,s=i.disabled,d=wP(r.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return tc.createElement("input",aC({autoComplete:o.autoComplete},d,{onChange:r.handleChange,onFocus:r.onFocus,onBlur:r.onBlur,onKeyDown:r.handleKeyDown,className:uC()(FA(e,n,c||t,s,r.direction),Ja({},a,a&&!l&&!u)),ref:r.saveInput}))},r.clearPasswordValueAttribute=function(){r.removePasswordTimeout=setTimeout((function(){r.input&&"password"===r.input.getAttribute("type")&&r.input.hasAttribute("value")&&r.input.removeAttribute("value")}))},r.handleChange=function(e){r.setValue(e.target.value,r.clearPasswordValueAttribute),MA(r.input,e,r.props.onChange)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;n&&13===e.keyCode&&n(e),null==o||o(e)},r.renderComponent=function(e){var t=e.getPrefixCls,n=e.direction,o=e.input,i=r.state,a=i.value,l=i.focused,u=r.props,c=u.prefixCls,s=u.bordered,d=void 0===s||s,f=t("input",c);return r.direction=n,tc.createElement(Lx.Consumer,null,(function(e){return tc.createElement(IA,aC({size:e},r.props,{prefixCls:f,inputType:"input",value:BA(a),element:r.renderInput(f,e,d,o),handleReset:r.handleReset,ref:r.saveClearableInput,direction:n,focused:l,triggerFocus:r.focus,bordered:d}))}))};var o=void 0===e.value?e.defaultValue:e.value;return r.state={value:o,focused:!1,prevValue:e.value},r}return Ke(n,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return TA(e)!==TA(this.props)&&Sx(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(e,t,n){this.input.setSelectionRange(e,t,n)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value?this.setState({value:e},t):null==t||t()}},{key:"render",value:function(){return tc.createElement(hO,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),r}}]),n}(tc.Component);UA.defaultProps={type:"text"};const VA=UA,HA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var zA=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:HA}))};zA.displayName="SearchOutlined";const WA=tc.forwardRef(zA);var qA=tc.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.inputPrefixCls,a=e.className,l=e.size,u=e.suffix,c=e.enterButton,s=void 0!==c&&c,d=e.addonAfter,f=e.loading,h=e.disabled,p=e.onSearch,v=e.onChange,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;KA||((KA=document.createElement("textarea")).setAttribute("tab-index","-1"),KA.setAttribute("aria-hidden","true"),document.body.appendChild(KA)),e.getAttribute("wrap")?KA.setAttribute("wrap",e.getAttribute("wrap")):KA.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&JA[n])return JA[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:GA.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(JA[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,u=o.sizingStyle;KA.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n")),KA.value=e.value||e.placeholder||"";var c,s=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,f=KA.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){KA.value=" ";var h=KA.scrollHeight-i;null!==n&&(s=h*n,"border-box"===l&&(s=s+i+a),f=Math.max(s,f)),null!==r&&(d=h*r,"border-box"===l&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}return{height:f,minHeight:s,maxHeight:d,overflowY:c,resize:"none"}}(r.textArea,!1,t,n);r.setState({textareaStyles:o,resizeStatus:YA.RESIZING},(function(){cancelAnimationFrame(r.resizeFrameId),r.resizeFrameId=requestAnimationFrame((function(){r.setState({resizeStatus:YA.RESIZED},(function(){r.resizeFrameId=requestAnimationFrame((function(){r.setState({resizeStatus:YA.NONE}),r.fixFirefoxAutoScroll()}))}))}))}))}},r.renderTextArea=function(){var e=r.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,o=e.autoSize,i=e.onResize,a=e.className,l=e.disabled,u=r.state,c=u.textareaStyles,s=u.resizeStatus,d=wP(r.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),f=uC()(n,a,Ja({},"".concat(n,"-disabled"),l));"value"in d&&(d.value=d.value||"");var h=dC(dC(dC({},r.props.style),c),s===YA.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return tc.createElement(TS,{onResize:r.handleResize,disabled:!(o||i)},tc.createElement("textarea",aC({},d,{className:f,style:h,ref:r.saveTextArea})))},r.state={textareaStyles:{},resizeStatus:YA.NONE},r}return Ke(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&_S()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(tc.Component);const QA=XA;var ZA=function(e){et(n,e);var t=fC(n);function n(e){var r;Ye(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var o=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return Ke(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return tc.createElement(QA,aC({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(tc.Component);const ej=ZA;function tj(e,t){return pn(e||"").slice(0,t).join("")}var nj=tc.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.bordered,i=void 0===o||o,a=e.showCount,l=void 0!==a&&a,u=e.maxLength,c=e.className,s=e.style,d=e.size,f=e.onCompositionStart,h=e.onCompositionEnd,p=e.onChange,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0,P=g("input",r);tc.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=w.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;LA(null===(n=null===(t=w.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=w.current)||void 0===e?void 0:e.blur()}}}));var S=tc.createElement(ej,aC({},wP(v,["allowClear"]),{className:uC()((n={},Ja(n,"".concat(P,"-borderless"),!i),Ja(n,c,c&&!l),Ja(n,"".concat(P,"-sm"),"small"===y||"small"===d),Ja(n,"".concat(P,"-lg"),"large"===y||"large"===d),n)),style:l?void 0:s,prefixCls:P,onCompositionStart:function(e){N(!0),null==f||f(e)},onChange:function(e){var t=e.target.value;!_&&R&&(t=tj(t,u)),D(t),MA(e.currentTarget,e,p,t)},onCompositionEnd:function(e){N(!1);var t=e.currentTarget.value;R&&(t=tj(t,u)),t!==x&&(D(t),MA(e.currentTarget,e,p,t)),null==h||h(e)},ref:w})),T=BA(x);_||!R||null!==v.value&&void 0!==v.value||(T=tj(T,u));var A=tc.createElement(IA,aC({},v,{prefixCls:P,direction:b,inputType:"text",value:T,element:S,handleReset:function(e){var t,n;D("",(function(){var e;null===(e=w.current)||void 0===e||e.focus()})),MA(null===(n=null===(t=w.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e,p)},ref:k,bordered:i}));if(l){var j,I=pn(T).length;return j="object"===We(l)?l.formatter({count:I,maxLength:u}):"".concat(I).concat(R?" / ".concat(u):""),tc.createElement("div",{className:uC()("".concat(P,"-textarea"),Ja({},"".concat(P,"-textarea-rtl"),"rtl"===b),"".concat(P,"-textarea-show-count"),c),style:s,"data-count":j},A)}return A}));const rj=nj,oj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var ij=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:oj}))};ij.displayName="EyeOutlined";const aj=tc.forwardRef(ij),lj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var uj=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:lj}))};uj.displayName="EyeInvisibleOutlined";const cj=tc.forwardRef(uj);var sj={click:"onClick",hover:"onMouseOver"},dj=tc.forwardRef((function(e,t){var n=cn((0,tc.useState)(!1),2),r=n[0],o=n[1],i=function(){e.disabled||o(!r)},a=function(n){var o=n.getPrefixCls,a=e.className,l=e.prefixCls,u=e.inputPrefixCls,c=e.size,s=e.visibilityToggle,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ot||r.top>n||r.left<0||r.top<0)return{top:r.top,left:r.left,right:r.right,bottom:r.bottom,width:r.width,height:r.height};var o=Math.min(t-r.left,r.width),i=Math.min(n-r.top,r.height);return{top:r.top,left:r.left,bottom:r.top+i,right:r.left+o,width:o,height:i}}function vj(e,t,n,r,o,i,a,l){var u=pj(r);(null==e?void 0:e.topOffset)&&(u.top+=e.topOffset,u.height-=e.topOffset,u.height<0&&(u.height=0,u.top=u.bottom));var c=o.getBoundingClientRect();(null==e?void 0:e.transformY)&&(c.y+=e.transformY);var s=i.getBoundingClientRect(),d=function(e,t,n,r,o,i,a){var l,u=!!e;l="string"==typeof e?[e]:e;var c=function(e,t,n,r,o){var i=t.top-o,a=t.bottom+o,l=t.left-r,u=t.right+r,c=i>=e.top,s=a<=e.bottom,d=l>=e.left,f=u<=e.right,h=t.top>=e.top&&t.top<=e.bottom,p=t.bottom<=e.bottom&&t.bottom>=e.top,v=t.left>=e.left&&t.left+r<=e.right,m=t.right<=e.right&&t.right-r>=e.left,g=[];return c&&(g.push(VE),v&&g.push(HE),m&&g.push(zE)),s&&(g.push(WE),v&&g.push(qE),m&&g.push($E)),d&&(g.push(KE),h&&g.push(YE),p&&g.push(GE)),f&&(g.push(JE),h&&g.push(XE),p&&g.push(QE)),g}(n,{top:r.top-t,left:r.left-t,right:r.right+t,bottom:r.bottom+t,width:r.width+2*t,height:r.height+2*t},0,i,a);if(u&&c.length)for(var s=0,d=l.length;so,u=i>=a,c={2:[],1:[]};return e.forEach((function(e){switch(e){case VE:l&&c[2].push(e);break;case HE:case YE:l&&u?c[2].push(e):(l||u)&&c[1].push(e);break;case zE:case XE:l&&!u?c[2].push(e):!l&&u||c[1].push(e);break;case WE:l||c[2].push(e);break;case qE:case GE:!l&&u?c[2].push(e):l&&!u||c[1].push(e);break;case $E:case QE:l||u?l&&u||c[1].push(e):c[2].push(e);break;case KE:u&&c[2].push(e);break;case JE:u||c[2].push(e);break;default:kt(!1,"framework/uilib/src/boundary-popover/calc-position-by-node.ts:412")}return!1})),c[2].length?c[2][0]:c[1].length?c[1][0]:e[0]}(c.concat([qE]),n,r)}(t,n,u,c,0,a,l);return{placement:d,pos:mj(d,c,s,u,a,l,n)}}function mj(e,t,n,r,o,i,a){var l=(t.width-o)/2,u=(t.height-i)/2;switch(e){case VE:return{left:gj(t.left+l-n.left,o,r.width),bottom:n.bottom-(t.top-a)};case WE:return{left:gj(t.left+l-n.left,o,r.width),top:t.bottom+a-n.top};case KE:return{right:n.right-(t.left-a),top:t.top+u-n.top};case JE:return{left:t.right+a-n.left,top:t.top+u-n.top};case HE:return{left:t.left-n.left,bottom:n.bottom-(t.top-a)};case YE:return{right:n.right-(t.left-a),top:t.top-n.top};case zE:return{left:t.right-o-n.left,bottom:n.bottom-(t.top-a)};case XE:return{left:t.right+a-n.left,top:t.top-n.top};case qE:return{left:t.left-n.left,top:t.bottom+a-n.top};case GE:return{right:n.right-(t.left-a),bottom:n.bottom-t.bottom};case $E:return{left:t.right-o-n.left,top:t.bottom+a-n.top};case QE:return{left:t.right+a-n.left,top:t.bottom-i-n.top};default:return kt(!1,"framework/uilib/src/boundary-popover/calc-position-by-node.ts:179"),{top:0,left:0}}}function gj(e,t,n){return e<0?0:e+t>n?Math.max(0,n-t):e}function bj(e,t,n,r,o,i,a){var l,u=o.getBoundingClientRect(),c=pj(r),s=function(e,t,n,r,o){var i;if(i=e?"string"==typeof e?[e]:e:[HE],t.x>n.right||t.xn.bottom||t.ye.top,s=ae.left,f=u0&&void 0!==arguments[0]?arguments[0]:{};nu().render(nc().createElement(a.type,Object.assign({},Object.assign(Object.assign({},a.props),e),{ref:a.ref,targetNode:i,onClose:m.cancel})),v)},m.rerender(),v.firstChild&&(v.firstChild.addEventListener("mouseleave",b),v.firstChild.addEventListener("mouseenter",g),v.firstChild.addEventListener("focusin",(function(){m.focused=!0})),v.firstChild.addEventListener("focusout",(function(){m.focused=!1,c&&("function"!=typeof c||c())&&m.lazyCancel()}))),i.addEventListener("mouseenter",g),i.addEventListener("mouseleave",b),m}}]),e}();Object.defineProperty(xj,"_overlaysTypeMap",{enumerable:!0,configurable:!0,writable:!0,value:{}});var Ej=function(){function e(t,n,r,o,i){var a=this;Ye(this,e),Object.defineProperty(this,"_targetNode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_overlayContainer",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_boundaryNode",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_items",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"_isDestroyed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_delayUpdate",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_overlay",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_autoClose",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_shouldCancel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_showMiniToolbarWhen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cardToolbarViewRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(this,"_delayUpdateTimeId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_handleSelectVisibleChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){e&&(a._delayUpdate=!0,clearTimeout(a._delayUpdateTimeId),a._delayUpdateTimeId=window.setTimeout((function(){a._delayUpdate=!1}),350))}});var l=i.autoClose,u=i.showMiniToolbarWhen,c=i.shouldCancel,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ol.left+l.width/2?{x:l.right+1,y:l.top,height:l.height,node:i.parentNode,originNode:i,offset:Yd(i,1)}:{x:l.left-2-1,y:l.top,height:l.height,node:i.parentNode,originNode:i,offset:Yd(i,0)}}return 0===n.left&&0===n.top?null:{x:n.left-2-1,y:n.top,height:n.height||Gd(r),node:r,originNode:r,offset:o}}}]),e}();function qj(e,t,n){return t=Qe(t),Xe(e,$j()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($j=function(){return!!e})()}var Kj=function(e){function t(){var e;return Ye(this,t),e=qj(this,t,arguments),Object.defineProperty(Je(e),"_triggerRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_boundaryRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_destroyed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{isMenuVisible:!1,tooltipVisible:!1,popoverPlacement:"leftTop"}}),Object.defineProperty(Je(e),"_handleTooltipMouseEnter",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.setState({tooltipVisible:!0})}}),Object.defineProperty(Je(e),"_handleTooltipMouseLeave",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.setState({tooltipVisible:!1})}}),Object.defineProperty(Je(e),"_handleTooltipMouseDown",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.setState({tooltipVisible:!1})}}),Object.defineProperty(Je(e),"_handleVisibleChange",{enumerable:!0,configurable:!0,writable:!0,value:function(t){if(e.props.onMenuVisibleChange&&e.props.onMenuVisibleChange(t),t||e._destroyed||e.setState({isMenuVisible:!1}),t){var n=e._triggerRef.current.getBoundingClientRect();e.setState({popoverPlacement:n.left>=240?"leftTop":"rightTop"})}}}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this._triggerRef.current,n=!1;vd(this,t,"mousedown",(function(){n=!1,e.state.isMenuVisible||document.addEventListener("mouseup",(function r(o){document.removeEventListener("mouseup",r,!1),!n&&t.contains(o.target)&&e.showMenu()}),!1)}),!1),this.props.config.draggable&&new Wj(this.props.dragBoundaryNode,this.props.overlayNode,this.props.targetNode,t,this.props.scrollContainer,(function(t){n=!1,e.props.onDrop(t)}),this.props.onDragStart)}},{key:"componentWillUnmount",value:function(){this._destroyed=!0}},{key:"showMenu",value:function(){var e=this;setTimeout((function(){e._destroyed||e.setState({isMenuVisible:!0})}),32)}},{key:"calcArrowPos",value:function(){var e,t=null===(e=this._triggerRef.current)||void 0===e?void 0:e.getBoundingClientRect();return(null==t?void 0:t.x)&&t.xe.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:[];if(n.has(t))return!0;var i,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eI(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(n);try{for(a.s();!(i=a.n()).done;){var l=i.value,u=r.get(l);if(u&&!u.isRemoved&&t!==l&&t.contains(l))return!1;o.includes("containerToolbar")&&e.destroyContainerToolbar(l),o.includes("cardToolbar")&&e.destroyCardToolbar(l)}}catch(e){a.e(e)}finally{a.f()}return n.clear(),n.add(t),!0}},{key:"filter",value:function(e,t){return Xj(e,t)}},{key:"updateContainerToolbar",value:function(e,t,n,r,o){if(Ks.mobile)return null;var i=tI.get(e);return o&&this._setCurrentDOM(e,oI,tI,["containerToolbar"])?(i?i.update(o):(i=new Jj(t,n,e,o,r),tI.set(e,i)),i):void 0}},{key:"updateContainerToolbarPos",value:function(e){var t=tI.get(e);t&&t.updatePos()}},{key:"destroyContainerToolbar",value:function(e){var t;oI.has(e)&&oI.clear(),tI.has(e)&&(null===(t=tI.get(e))||void 0===t||t.destroy(),tI.delete(e))}},{key:"updateCardToolbar",value:function(e,t,n,r,o){var i=nI.get(e);if(null==r?void 0:r.length){if(this._setCurrentDOM(e,iI,nI,["cardToolbar"]))return i?i.update(r):(i=new Ej(e,t,n,r,o),nI.set(e,i)),i}else this.destroyCardToolbar(e)}},{key:"updateCardToolbarPos",value:function(e){var t=nI.get(e);t&&t.updatePos()}},{key:"destroyCardToolbar",value:function(e){var t;e&&(iI.has(e)&&iI.clear(),nI.has(e)&&(null===(t=nI.get(e))||void 0===t||t.destroy(),nI.delete(e)))}},{key:"updateContainerRightToolbar",value:function(e,t,n,r){var o=rI.get(e);if(r)return o?o.update(r):(o=new Aj(t,n,e,r),rI.set(e,o)),o}},{key:"updateContainerRightToolbarPos",value:function(e){var t=rI.get(e);t&&t.updatePos()}},{key:"destroyContainerRightToolbar",value:function(e){var t;rI.has(e)&&(null===(t=rI.get(e))||void 0===t||t.destroy(),rI.delete(e))}},{key:"generateToolbarItems",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map((function(e){if("|"===e)return"|";kt(e.name&&e.onClick,"framework/uilib/src/mini-toolbar/index.ts:266");var n=Zj[e.name];return t&&(null==n?void 0:n.appIcon)&&(n.icon=n.appIcon,delete n.appIcon),Object.assign(Object.assign({},n),e)}))}}]),e}(),lI=6,uI=function(e){return e},cI=uI({pluginName:"miniToolbar",service:{IMiniToolbarService:"IMiniToolbarService"}});function sI(e,t,n){return t=Qe(t),Xe(e,dI()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function dI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dI=function(){return!!e})()}var fI=function(e){function t(){var e;return Ye(this,t),e=sI(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(tt);Object.defineProperty(fI,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(cI.service.IMiniToolbarService)});var hI=function(){function e(t,n,r,o,i,a,l){var u=this;Ye(this,e),Object.defineProperty(this,"viewer",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_instance",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_cardData",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"_getCardToolbarConfig",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"_getContainerToolbarConfig",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"_getContainerRightToolbarConfig",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(this,"_isHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_cardToolbar",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_containerToolbar",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_containerRightToolbar",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_isShowToolbar",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_showToolbar",{enumerable:!0,configurable:!0,writable:!0,value:function(){u.viewer.isMaxView()||(u._rootNode.classList.add("ne-card-hovered"),u._isHover=!0,u.getCardToolbarConfig()&&u._initCardToolbar(),u.getContainerToolbarConfig()&&u._initContainerToolbar(),u.getContainerRightToolbarConfig()&&u._initContainerRightToolbar())}}),Object.defineProperty(this,"_hideToolbar",{enumerable:!0,configurable:!0,writable:!0,value:function(){u._rootNode.classList.remove("ne-card-hovered"),u._isHover=!1}}),Object.defineProperty(this,"_destroyToolbar",{enumerable:!0,configurable:!0,writable:!0,value:function(){aI.destroyContainerToolbar(u.getContainerToolbarRootNode()),aI.destroyCardToolbar(u.getCardToolbarRootNode()),aI.destroyContainerRightToolbar(u.getCardToolbarRootNode())}}),Object.defineProperty(this,"_initCardToolbar",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=u.viewer,t=e.scrollNode,n=e.innerOverlayContainer;u._cardToolbar=aI.updateCardToolbar(u.getCardToolbarRootNode(),n,t,u._transformToolbarItem(u.getCardToolbarConfig(),"mini",u.viewer),{topOffset:u.viewer.option.boundaryTopOffset})}}),Object.defineProperty(this,"_initContainerToolbar",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=u.getContainerToolbarConfig(),t=u._needTransform()?14:0,n=Object.assign(Object.assign({},e),{items:u._transformToolbarItem(e.items,"container",u.viewer),transformY:e.transformY||t,minHeight:u.getContainerToolbarRootNode().getBoundingClientRect().height});if(!function(e){var t;return!(null===(t=e.items)||void 0===t?void 0:t.length)&&!e.draggable&&!(e.className||e.positionHandle||e.onDrop)}(n)){var r=u.viewer,o=r.viewerBodyNode,i=r.innerOverlayContainer,a=r.scrollNode;u._containerToolbar=aI.updateContainerToolbar(u.getContainerToolbarRootNode(),o,i,a,n)}}}),Object.defineProperty(this,"_initContainerRightToolbar",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=u.viewer,t=e.viewerBodyNode,n=e.innerOverlayContainer,r=u.getContainerRightToolbarConfig(),o=Ks.mobile?1:lI+1,i=u.getContainerRightToolbarRootNode(),a=Nc(i,"ne-collapse"),l=Object.assign(Object.assign({},r),{items:u._transformToolbarItem(r.items,"containerRight",u.viewer),transformY:u._needTransform()?14:0,minHeight:i.getBoundingClientRect().height,paddingLeft:a?o+a.getBoundingClientRect().right-i.getBoundingClientRect().right:o});r&&(u._containerRightToolbar=aI.updateContainerRightToolbar(i,t,n,l))}})}return Ke(e,[{key:"init",value:function(){this._initToolbar()}},{key:"refresh",value:function(){this._refreshToolbar()}},{key:"destroy",value:function(){this.viewer=null,this._instance=null,this._rootNode=null,this._cardData=null,this._getCardToolbarConfig=null,this._getContainerToolbarConfig=null,this._getContainerRightToolbarConfig=null}},{key:"getCardToolbarConfig",value:function(){return"function"==typeof this._getCardToolbarConfig?this._getCardToolbarConfig.call(this._instance):null}},{key:"getContainerToolbarConfig",value:function(){return"function"==typeof this._getContainerToolbarConfig?this._getContainerToolbarConfig.call(this._instance):null}},{key:"getContainerRightToolbarConfig",value:function(){return"function"==typeof this._getContainerRightToolbarConfig?this._getContainerRightToolbarConfig.call(this._instance):null}},{key:"showToolbar",value:function(){this._isShowToolbar=!0}},{key:"hideToolbar",value:function(){this._isShowToolbar=!1,this._hideToolbar()}},{key:"destroyToolbar",value:function(){this._destroyToolbar()}},{key:"getCardToolbarRootNode",value:function(){return this._rootNode}},{key:"getContainerToolbarRootNode",value:function(){return this._rootNode}},{key:"getContainerRightToolbarRootNode",value:function(){return this._rootNode}},{key:"_transformToolbarItem",value:function(e){var t,n,r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mini",i=arguments.length>2?arguments[2]:void 0;if(!e)return e;e=e.map((function(e){var t,n;return"|"===e?e:("string"!=typeof e?(n=e.name,e=Object.assign({onClick:UE[n]},e)):e={name:n=e,onClick:UE[n]},kt("object"===We(e),"framework/viewer/src/v-toolbar/index.ts:193"),"copyLink"===n&&"function"!=typeof i.option.generateCardLink?null:"comment"!==n||(null===(t=i.option.get("comments"))||void 0===t?void 0:t.enableCardComment)&&!i.option.isTranslateMode?Object.assign(Object.assign({},e),{name:n,cardData:r._cardData,onClick:function(){var t,i;kt("object"===We(e),"framework/viewer/src/v-toolbar/index.ts:217"),e.onClick&&e.onClick(r.viewer,r._instance,e);var a=(null===(i=null===(t=r._instance)||void 0===t?void 0:t.cardNode)||void 0===i?void 0:i.nodeName)||"table";r.viewer.emitEvent("userAction",{type:"cardToolbar",name:n,source:"".concat(a,"|").concat(o)})}}):null)})).filter(Boolean);var a=this.viewer.getService(fI.ID);return a&&(e=aI.filter(e,a.getDisabledMiniToolbarItems())),a&&(e=aI.filter(e,a.getFilterMiniToolbarItems(this._instance.modelNode,e))),(null===(n=null===(t=this._rootNode)||void 0===t?void 0:t.closest)||void 0===n?void 0:n.call(t,"ne-container-hole, ne-alert-hole"))&&(e=aI.filter(e,["widthMode"])),aI.generateToolbarItems(e)}},{key:"_initToolbar",value:function(){kc(this,this._rootNode,"mouseenter",this._showToolbar),kc(this,this._rootNode,"mouseleave",this._hideToolbar)}},{key:"_refreshToolbar",value:function(){this._isHover&&this._showToolbar()}},{key:"_needTransform",value:function(){return this.viewer.kernel.hasExtendMethod("isParagraphSpacingRelax")&&!this.viewer.kernel.isParagraphSpacingRelax()&&"NE-TABLE-WRAP"===this._rootNode.nodeName}}]),e}();function pI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null;return u._registry.registerBoxNode(e,t,n)}}),Object.defineProperty(Je(u),"execCommand",{enumerable:!0,configurable:!0,writable:!0,value:function(e){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),a=1;a1?r-1:0),a=1;a1?r-1:0),i=1;i1?r-1:0),i=1;i1?i-1:0),l=1;l=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=this._recordInCollapsedNodes.indexOf(r);o>=0&&this._recordInCollapsedNodes.splice(o,1)}}catch(e){n.e(e)}finally{n.f()}}},{key:"onRootNode",value:function(){var e;return(e=this._rootNodeObserver).on.apply(e,arguments)}},{key:"onceRootNode",value:function(){var e;return(e=this._rootNodeObserver).once.apply(e,arguments)}},{key:"onForceRootNode",value:function(){var e;return(e=this._rootNodeForceObserver).on.apply(e,arguments)}},{key:"onDocument",value:function(){var e;return(e=this._documentObserver).on.apply(e,arguments)}},{key:"onceDocument",value:function(){var e;return(e=this._documentObserver).once.apply(e,arguments)}},{key:"isMaxView",value:function(){return this._vLayerManager.isMaxView}},{key:"createComment",value:function(e){var t=Gk(0,e);if(t&&t.length>0){var n=this.getExtendMethod("wording_comment");kt("function"==typeof n,"framework/viewer/src/viewer.ts:648"),n(t,!0)}}},{key:"transformDOMRangeToViewRange",value:function(e){return Xk(this,e)}},{key:"getViewerDisplayWidth",value:function(e){return this._vLayerManager.getViewerDisplayWidth(e)}},{key:"login",value:function(){this.emitEvent("login")}}]),t}(Eu);function bI(e){return e}function yI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yI=function(){return!!e})()}function wI(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,yI()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"getCardMaskConfig",value:function(){return!1}},{key:"onBeforeRefreshMask",value:function(){return!0}},{key:"refreshMask",value:function(){return this._refreshMask()}},{key:"_refreshMask",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.onBeforeRefreshMask()){var e=this.getCardMaskConfig();Jh.update(this,e)}}},{key:"_destroyMask",value:function(){Jh.destroyMask(this)}},{key:"afterInit",value:function(){this._refreshMask(!0),Cr(Qe(t.prototype),"afterInit",this).call(this)}},{key:"destroy",value:function(){this._destroyMask(),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}function kI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kI=function(){return!!e})()}function CI(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,kI()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"beforeMaximizeChanged",value:function(e){}},{key:"afterMaximizeChanged",value:function(e){}},{key:"onCommonLeaveMaxViewAsync",value:function(){}},{key:"onCommonEnterMaxView",value:function(){}},{key:"enterMaxView",value:function(e){var t=this;this.beforeMaximizeChanged(!0),this.onCommonEnterMaxView(),this.viewer.enterMaxView(this.cardRootNode,e,this.cardNode,(function(){t.beforeMaximizeChanged(!1)}),(function(){Promise.resolve().then((function(){t.onCommonLeaveMaxViewAsync()})),t.afterMaximizeChanged(!1)})),this.afterMaximizeChanged(!0)}}]),t}(e)}function _I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_I=function(){return!!e})()}function NI(e){return function(e){function t(){var e;Ye(this,t);for(var n=arguments.length,r=new Array(n),o=0;o4&&void 0!==arguments[4]?arguments[4]:function(){return!0};Ye(this,e),Object.defineProperty(this,"_editing",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_handler",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_blockNodes",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"canInsertPosition",{enumerable:!0,configurable:!0,writable:!0,value:i})}return Ke(e,[{key:"destroy",value:function(){delete this._editing,delete this._pattern,delete this._handler,delete this._blockNodes}},{key:"match",value:function(e,t){if(!this.canInsertPosition(t))return null;if(1!==e.length)return null;var n=e[e.length-1];if(!n)return null;kt(1===n.fragments.length,"plugins/markdown/src/public/head-markdown-matcher.ts:74");var r=null,o=[];if("string"==typeof this._pattern){if(n.text!==this._pattern)return null;r=this._pattern}else{var i="function"==typeof this._pattern?this._pattern(n.text):this._pattern.exec(n.text);if(!i)return null;for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:lB[0],n=e.newJob();if(this.getState(n)===gt.UNAVAILABLE)return e.cancelJob(n),!1;var r=n.getSelection();r.collapsed||(r=Di.deleteContent(n,r)),kt.fatal(r.collapsed,"plugins/alert/src/kernel/commands/alert-command.ts:39");var o=r.firstRange.start,i=o.node.closest(ze.Block);i&&zt.isLikeEmptyElement(i)&&(o=n.newPosition(i.parentNode,i.offset),n.removeChild(i.parentNode,i));var a=n.createHole("alertHole"),l=n.createElement("alert",{type:t}),u=n.createElement(n.defaultElementName);return n.appendChild(l,u),n.appendChild(a,l),rr.insertNodes(n,o,[a]),n.setSelection([n.newRange(n.newPosition(u,0))]),e.commitJob(n),!0}}]),t}(gt);function vB(e,t,n){return t=Qe(t),Xe(e,mB()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mB=function(){return!!e})()}var gB=function(e){function t(){return Ye(this,t),vB(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=e.newJob(),r=n.getNodeById(t);if("alert"!==(null==r?void 0:r.nodeName))return!1;var o=Di.deleteContent(n,n.selectNode(r));return kt.fatal(o.collapsed,"plugins/alert/src/kernel/commands/alert-delete-command.ts:19"),n.setSelection(o),e.commitJob(n),!0}}]),t}(gt);function bB(e,t,n){return t=Qe(t),Xe(e,yB()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yB=function(){return!!e})()}var wB=function(e){function t(){return Ye(this,t),bB(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getNodeById(t);o&&o.isConnected&&"alert"===(null==o?void 0:o.nodeName)?(rr.insertNodes(r,n,[o.parentNode]),r.setSelection(r.selectNode(o)),e.commitJob(r)):e.cancelJob(r)}}]),t}(gt);function kB(e,t,n){return t=Qe(t),Xe(e,CB()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function CB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CB=function(){return!!e})()}var _B=function(e){function t(){return Ye(this,t),kB(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){kt.fatal(t,"plugins/alert/src/kernel/commands/alert-type-command.ts:8");var n=e.getNodeById(t);return kt.fatal(n,"plugins/alert/src/kernel/commands/alert-type-command.ts:12"),n.attrs.type}},{key:"execute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lB[0],r="string"==typeof t?[t]:t,o=e.newJob(),i=r.map((function(e){return o.getNodeById(e)})).filter((function(e){return"alert"===(null==e?void 0:e.nodeName)}));return!!i.length&&(i.forEach((function(e){o.setAttribute(e,"type",n)})),e.commitJob(o),!0)}}]),t}(gt),NB={LOCAL_STORAGE_KEY:"lake-alert",load:function(){var e=null,t=Tf.getItem(this.LOCAL_STORAGE_KEY);if(t)try{e=JSON.parse(t)}catch(e){console.error("invalid data:",t)}return e},save:function(e){var t={type:e.type};Tf.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(t))},clear:function(){var e;null===(e=Tf.removeItem)||void 0===e||e.call(Tf,this.LOCAL_STORAGE_KEY)}};const OB=NB;var xB=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t){var n,r=null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.class;if(null==r?void 0:r.includes("lake-alert")){var o=/lake-alert-([\w]*)/i.exec(r),i=lB[0];o&&o.length>=2&&(i=o[1]);var a=Wo.createElement("alert",{type:i});return e.setNode(a),!1}return!0}}]),e}();Object.defineProperty(xB,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["blockquote"]});var EB=function(){function e(){Ye(this,e)}return Ke(e,[{key:"leaveNode",value:function(e){}}]),e}(),DB={margin:"4px 0",padding:"10px",borderRadius:"4px"};const RB={info:Object.assign({border:"1px solid #C0D9FC",backgroundColor:"#D9E8FC"},DB),warning:Object.assign({border:"1px solid #F6E5AC",backgroundColor:"#F9EFCD"},DB),danger:Object.assign({border:"1px solid #F8CED3",backgroundColor:"#FBE4E7"},DB),success:Object.assign({border:"1px solid #DCF4B4",backgroundColor:"#E8F7CF"},DB),tips:Object.assign({border:"1px solid #E8E9E8",backgroundColor:"#F4F5F5"},DB),color1:Object.assign({border:"1px solid #B5E8F2",backgroundColor:"#CEF1F7"},DB),color2:Object.assign({border:"1px solid #C7F0DF",backgroundColor:"#DAF6EA"},DB),color3:Object.assign({border:"1px solid #F8D6B9",backgroundColor:"#FDE6D3"},DB),color4:Object.assign({border:"1px solid #F7C4E2",backgroundColor:"#FBDFEF"},DB),color5:Object.assign({border:"1px solid #D9C9F8",backgroundColor:"#E6DCF9"},DB)};function PB(e,t,n){return t=Qe(t),Xe(e,SB()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function SB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SB=function(){return!!e})()}var TB=function(e){function t(){return Ye(this,t),PB(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r,o=(null===(n=t.attrs)||void 0===n?void 0:n.type)||"info";e.isInlineMode()&&(r=Object.assign({},RB[o]));var i=e.createElement("div",{className:"ne-alert",attrs:{"data-type":o},style:r});e.setNode(i)}}]),t}(EB);Object.defineProperty(TB,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["alert"]});var AB=function(){function e(){Ye(this,e)}return Ke(e,[{key:"leaveNode",value:function(e,t){}}]),e}();function jB(e,t,n){return t=Qe(t),Xe(e,IB()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function IB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IB=function(){return!!e})()}var BB=function(e){function t(){return Ye(this,t),jB(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r=(null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.type)||lB[0];e.setNode(Nd.createElement("blockquote")),e.addClassName("lake-alert","lake-alert-".concat(r))}}]),t}(AB);function MB(e,t,n){return t=Qe(t),Xe(e,FB()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function FB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FB=function(){return!!e})()}Object.defineProperty(BB,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["alert"]});var LB=function(e){function t(){return Ye(this,t),MB(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerElement(sB),e.registerAttr(cB),e.registerCommand({alert:new pB,alertDelete:new gB,alertType:new _B,alertMove:new wB});var t=e.getService(GI.ID);if(t){var n=new RegExp("^[::]{3}(".concat(lB.join("|"),"|s*)$"),"i");t.registerMarkdownMatcher(WI.enter,new qI(this.editing,n,(function(e,t,n,r){var o=cn(r.matchedGroup,1)[0],i=void 0===o?lB[0]:o,a=OB.load()||{};i&&OB.save({type:i.toLowerCase()});var l=e.createHole("alertHole"),u=e.createElement("alert",{type:(i||a.type||lB[0]).toLowerCase()});e.appendChild(l,u),e.replaceChild(t.parentNode,l,t),e.appendChild(u,t),e.setSelection(e.newSelection(e.newRange(e.newPosition(t,0))))}),void 0,(function(e){return!e.node.closest("alert")})))}this.option.onAfterKernelPluginInit&&this.option.onAfterKernelPluginInit(this.kernel)}},{key:"afterInit",value:function(){var e,t,n;null===(e=this.kernel.getService(zI.ID))||void 0===e||e.registerLakeNodeReader(xB.NodeNames,new xB),null===(t=this.kernel.getService(zI.ID))||void 0===t||t.registerLakeNodeWriter(BB.NodeNames,new BB),null===(n=this.kernel.getService(UI.ID))||void 0===n||n.registerNodeHTMLWriter(TB.NodeNames,new TB)}}]),t}(ft);function UB(e,t,n){return t=Qe(t),Xe(e,VB()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function VB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VB=function(){return!!e})()}Object.defineProperty(LB,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"alert"}),Object.defineProperty(LB,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:dB});var HB=function(e){function t(){var e;return Ye(this,t),e=UB(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function zB(e,t,n){return t=Qe(t),Xe(e,WB()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function WB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WB=function(){return!!e})()}Object.defineProperty(HB,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IFileReaderKernelService")});var qB=function(e){function t(){var e;return Ye(this,t),e=zB(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);Object.defineProperty(qB,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IINodeReaderKernelService")});var $B,KB,YB,GB=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0};Ye(this,e),Object.defineProperty(this,"_editing",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_handler",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"canInsertPosition",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"_matchPattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_excludePattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n instanceof RegExp?this._matchPattern=n:(this._matchPattern=n.match,this._excludePattern=n.exclude)}return Ke(e,[{key:"destroy",value:function(){delete this._editing,delete this._matchPattern,delete this._excludePattern,delete this._handler}},{key:"match",value:function(e,t){if(!this.canInsertPosition(t))return null;var n,r=e[e.length-1];if(!r)return null;if(kt(1===r.fragments.length,"plugins/markdown/src/public/pattern-markdown-matcher.ts:79"),!(n=this._matchPattern instanceof RegExp?this._matchPattern.exec(r.text):this._matchPattern(r.text)))return null;if(this._excludePattern&&this._excludePattern.test(r.text))return null;var o=zt.closest(r.fragments[0].start.node,ze.Block);return kt(o,"plugins/markdown/src/public/pattern-markdown-matcher.ts:102"),{section:e,blockNode:o,matched:n}}},{key:"exec",value:function(e){var t=this._editing.newJob(He.User),n=e.section,r=e.blockNode,o=e.matched,i=n[n.length-1].fragments[0].start.node;try{t.setTextNodeData(i,On.deleteString(i.data,o.index,o.index+o[0].length)),this._handler(t,r,i,e),this._editing.commitJob(t)}catch(e){this._editing.cancelJob(t)}}}]),e}(),JB="init",XB="paste",QB="drop",ZB="ui",eM="materialLibrary",tM="pending",nM="uploading",rM="done",oM="error";function iM(e,t,n){return t=Qe(t),Xe(e,aM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aM=function(){return!!e})()}!function(e){e.PENDING="pending",e.UPLOADING="uploading",e.DONE="done",e.ERROR="error"}($B||($B={})),function(e){e.binary="binary",e.url="url",e.file="file",e.base64="base64"}(KB||(KB={})),function(e){e.init="init",e.paste="paste",e.drop="drop",e.ui="ui",e.materialLibrary="materialLibrary"}(YB||(YB={}));var lM=function(e){function t(e,n){return Ye(this,t),iM(this,t,[e,n])}return et(t,e),Ke(t,[{key:"getStatus",value:function(){return this._cardValue.status}},{key:"getSrc",value:function(){return this._cardValue.src}},{key:"getSize",value:function(){return this._cardValue.size}},{key:"getPreviewSrc",value:function(){return this.toDisplaySrc(this._cardValue.src)}},{key:"getDisplaySrc",value:function(){return this.toDisplaySrc(this._cardValue.src)}},{key:"toDisplaySrc",value:function(e){var t;return e?xh.isBase64ImageURL(e)?e:(null===(t=this._pluginOption)||void 0===t?void 0:t.onBeforeRenderImage(e,this._pluginOption.isCaptureImageURL(e)))||e:e}},{key:"getName",value:function(){return this._cardValue.name}},{key:"getTaskId",value:function(){return this._cardValue.taskId}},{key:"getClientId",value:function(){return this._cardValue.clientId}},{key:"getOcrLocations",value:function(){return this._cardValue.ocr}},{key:"hasUserWidth",value:function(){return!!this._cardValue.width}},{key:"getUserWidth",value:function(){return this._cardValue.width}},{key:"getOriginalWidth",value:function(){return this._cardValue.original.width}},{key:"getOriginalHeight",value:function(){return this._cardValue.original.height}},{key:"getCropWidth",value:function(){return Math.round(this._cardValue.original.width*(this._cardValue.crop[2]-this._cardValue.crop[0]))}},{key:"getCropHeight",value:function(){return Math.round(this._cardValue.original.height*(this._cardValue.crop[3]-this._cardValue.crop[1]))}},{key:"getRotationCropWidth",value:function(){return this._cardValue.rotation%180==0?this.getCropWidth():this.getCropHeight()}},{key:"getRotationCropHeight",value:function(){return this._cardValue.rotation%180==0?this.getCropHeight():this.getCropWidth()}},{key:"getOriginDisplayWidth",value:function(){return this._cardValue.rotation%180==0?Math.round(this.getDisplayWidth()*this.getOriginalWidth()/this.getCropWidth()):Math.round(this.getDisplayHeight()*this.getOriginalWidth()/this.getCropWidth())}},{key:"getDisplayWidth",value:function(){return this._cardValue.width?this._cardValue.width:this.getRotationCropWidth()}},{key:"getDisplayHeight",value:function(){var e=this.getDisplayWidth(),t=this.getRotationCropWidth(),n=this.getRotationCropHeight();return e===t?n:Math.round(e/t*n)}},{key:"isCompleted",value:function(){var e=this._cardValue.status;return e===rM||e===oM}},{key:"isValid",value:function(){return!!this._cardValue.src}},{key:"isFromPaste",value:function(){return Ru()(this._cardValue,"original.from",null)===XB}},{key:"isBinaryType",value:function(){return"binary"===Ru()(this._cardValue,"original.type",null)}},{key:"getRatio",value:function(){return Ru()(this._cardValue,"original.ratio",1)}},{key:"setImageOriginSize",value:function(e,t){this._cardValue.original=Object.assign(Object.assign({},this._cardValue.original),{width:e,height:t})}},{key:"setDisplayWidth",value:function(e){this._cardValue.width=e}},{key:"resetDisplayWidth",value:function(){delete this._cardValue.width}},{key:"resetRotationCrop",value:function(){if(this._cardValue.width){var e=this._cardValue.width/this.getRotationCropWidth();this._cardValue.width=Math.ceil(e*this.getOriginalWidth())}this._cardValue.rotation=0,this._cardValue.crop=[0,0,1,1]}},{key:"setImageInfo",value:function(e){var t=e.url,n=e.filename,r=e.ocrLocations,o=e.size;kt.fatal(t,"plugins/image/src/kernel/image-card-data.ts:460");var i=this._cardValue;i.src=t,i.size=o,i.status=$B.DONE,n&&(i.name=n),r&&(i.ocr=this.roundOCRPosition(r),i.search=this._getSearchText(r))}},{key:"roundOCRPosition",value:function(e){return e.map((function(e){return e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=Math.round(e.width),e.height=Math.round(e.height),e}))}},{key:"setUploadError",value:function(e){this._cardValue.status=$B.ERROR,this._cardValue.errorMessage=e||"unknown error"}},{key:"setLink",value:function(e){e?e!==this._cardValue.link&&(this._cardValue.link=e):delete this._cardValue.link}},{key:"getLink",value:function(){return this._cardValue.link}},{key:"setLinkExternal",value:function(e){this._cardValue.linkExternal=e}},{key:"isOpenLinkInSelf",value:function(){return!1===this._cardValue.linkExternal}},{key:"setStyle",value:function(e){e&&"none"!==e?e!==this._cardValue.style&&(this._cardValue.style=e):delete this._cardValue.style}},{key:"getStyle",value:function(){return this._cardValue.style}},{key:"setAverageHue",value:function(e){e&&(this._cardValue.averageHue=e,this.sync(!1))}},{key:"getAverageHue",value:function(){return this._cardValue.averageHue}},{key:"_getSearchText",value:function(e){return e.map((function(e){return e.text})).join(" ")}},{key:"showTitle",value:function(){return this._cardValue.showTitle}},{key:"getTitle",value:function(){return this._cardValue.title}},{key:"getRotation",value:function(){return this._cardValue.rotation}},{key:"getCrop",value:function(){return this._cardValue.crop}},{key:"setShowTitle",value:function(e){this._cardValue.showTitle=e}},{key:"setTitle",value:function(e){this._cardValue.title=e}},{key:"setRotation",value:function(e){this._cardValue.rotation=e%360}},{key:"setCrop",value:function(e){this._cardValue.crop=e}},{key:"isAfterEdit",value:function(){return 0!==this._cardValue.rotation||uM(this._cardValue.crop[0]-0,this.getOriginalWidth())||uM(this._cardValue.crop[1]-0,this.getOriginalHeight())||uM(this._cardValue.crop[2]-1,this.getOriginalWidth())||uM(this._cardValue.crop[3]-1,this.getOriginalHeight())}}],[{key:"getAllImages",value:function(){return null}},{key:"createValueByURL",value:function(e){var n,r=e.type,o=e.src,i=e.originalURL,a=e.ratio,l=e.link,u=e.linkExternal,c=e.name,s=e.size,d=e.width,f=e.ocr,h=null===(n=this.getAllImages())||void 0===n?void 0:n.reverse()[0];return Ll.setCardSpacingToValue(h?h.__spacing:Tl,Jw()({},t.DefaultCardValue,{original:{type:r,from:"url",ratio:a,url:i},src:o,status:rM,link:l,linkExternal:u,name:c,size:s,ocr:f,width:d,style:h?h.style:t.DefaultCardValue.style}))}},{key:"createWillUploadValue",value:function(e){var n,r=e.type,o=e.from,i=e.name,a=e.ratio,l=e.taskId,u=e.clientId,c=e.originalURL,s=e.link,d=e.width,f=e.linkExternal,h=null===(n=this.getAllImages())||void 0===n?void 0:n.reverse()[0];return Ll.setCardSpacingToValue(h?h.__spacing:Tl,Jw()({},t.DefaultCardValue,{original:{type:r,from:o,ratio:a,url:c},name:i,taskId:l,clientId:u,status:tM,link:s,width:d,linkExternal:f,style:h?h.style:t.DefaultCardValue.style}))}},{key:"fromRepository",value:function(e){var n=e.copiedFileInfo;return Jw()({},t.DefaultCardValue,{source:"transfer",src:n.url,status:rM})}},{key:"fromLake",value:function(e){var n;return Jw()({},t.DefaultCardValue,{src:"object"===We(e.src)?null===(n=e.src)||void 0===n?void 0:n.url:e.src,name:e.name,size:e.size,taskId:e.taskId,clientId:e.clientId,errorMessage:e.errorMessage,link:e.link,linkExternal:"_blank"===e.linkTarget,style:e.style,original:{type:e.originalType,from:e.from,ratio:e.ratio||1,width:e.originWidth,height:e.originHeight},width:e.width,status:e.status,ocr:e.ocrLocations,search:e.search,showTitle:e.showTitle,title:e.title,rotation:e.rotation,crop:e.crop||[0,0,1,1],averageHue:e.averageHue})}},{key:"toLake",value:function(e){return{src:e.src,taskId:e.taskId,clientId:e.clientId,originalType:Ru()(e,"original.type"),width:e.width,height:cM(e),link:e.link,linkTarget:e.linkExternal?"_blank":"",name:e.name,size:e.size,from:Ru()(e,"original.from"),originWidth:Ru()(e,"original.width"),originHeight:Ru()(e,"original.height"),ratio:Ru()(e,"original.ratio"),status:e.status,style:e.style,errorMessage:e.errorMessage,search:e.search,ocrLocations:e.ocr,showTitle:e.showTitle,title:e.title,rotation:e.rotation,crop:e.crop||[0,0,1,1],averageHue:e.averageHue}}}]),t}(Ll);function uM(e,t){return Math.abs(e*t)>=1}function cM(e){var t,n,r=null===(t=e.original)||void 0===t?void 0:t.width,o=null===(n=e.original)||void 0===n?void 0:n.height,i=e.width;if(r&&o&&i)return i===r?o:Math.round(i/r*o)}Object.defineProperty(lM,"DefaultCardValue",{enumerable:!0,configurable:!0,writable:!0,value:{src:"",original:{type:KB.binary,from:void 0,ratio:1,width:void 0,height:void 0},name:void 0,size:void 0,width:void 0,status:$B.PENDING,errorMessage:void 0,style:"none",taskId:void 0,clientId:void 0,link:void 0,linkExternal:!0,ocr:void 0,search:void 0,crop:[0,0,1,1],showTitle:!1,title:"",rotation:0}});var sM={accept:null,capturePatterns:[/[\s\S]*?/],excludeCapturePatterns:[],ratio:1,isCaptureImageURL:function(){return!0},onBeforeRenderImage:function(e){return e},useOriginSrc:function(){return!1}},dM=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},sM,t)}return Ke(e,[{key:"accept",get:function(){return this._option.accept}},{key:"ratio",get:function(){return this._option.ratio}},{key:"onBeforeRenderImage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._option.onBeforeRenderImage(e,t)}},{key:"useOriginSrc",value:function(e){return!!this._option.useOriginSrc(e)}},{key:"isCaptureImageURL",value:function(e){var t=this._option;return(0,t.isCaptureImageURL)(e,t.capturePatterns,t.excludeCapturePatterns)}}]),e}();Object.defineProperty(dM,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"image"});var fM=uI({pluginName:"image",cardName:"image",command:{image:"image",imageTask:"imageTask",moveImage:"moveImage",insertImage:"insertImage",imageTitleBreakLine:"imageTitleBreakLine",updateImageData:"updateImageData"},toolbar:{image:"image",noteImage:"note-image",noteImageBlack:"note-image-black"},cardSelect:"image"});function hM(e,t,n){return t=Qe(t),Xe(e,pM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function pM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pM=function(){return!!e})()}var vM=function(e){function t(){return Ye(this,t),hM(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=e.newJob();if(this.getState(n)===gt.UNAVAILABLE)return e.cancelJob(n),!1;var r=Ri.insertCardNode(n,n.getSelection(),"image",t),o=r.selection,i=r.cardNode;return t.taskId&&this.plugin.registerTask(t.taskId,i.id),n.setSelection(o),e.commitJob(n),i.id}}]),t}(zl);function mM(e,t,n){return t=Qe(t),Xe(e,gM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function gM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gM=function(){return!!e})()}Object.defineProperty(vM,"ID",{enumerable:!0,configurable:!0,writable:!0,value:fM.command.image});var bM=function(e){function t(){return Ye(this,t),mM(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){return this.plugin.getNodeIdByTaskId(t)}}]),t}(wt);function yM(e,t,n){return t=Qe(t),Xe(e,wM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wM=function(){return!!e})()}Object.defineProperty(bM,"ID",{enumerable:!0,configurable:!0,writable:!0,value:fM.command.imageTask});var kM=function(e){function t(){return Ye(this,t),yM(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=e.newJob(),r=n.getNodeById(t);if(!r||!r.isConnected||!r.isCardNode())return e.cancelJob(n),!1;var o=r.parentNode.childCount,i=n.newSelection(n.newRange(n.newPosition(r.parentNode,r.offset+1)));if(kt.fatal(i.collapsed,"plugins/image/src/kernel/commands/image-title-breakline-command.ts:24"),o>1)return n.setSelection(i),e.commitJob(n),!0;var a=rr.breakLine(n,i.firstRange.start);return n.setSelection([n.newRange(a)]),e.commitJob(n),!0}}]),t}(wt);function CM(e,t,n){return t=Qe(t),Xe(e,_M()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_M=function(){return!!e})()}Object.defineProperty(kM,"ID",{enumerable:!0,configurable:!0,writable:!0,value:fM.command.imageTitleBreakLine});var NM=function(e){function t(){return Ye(this,t),CM(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){return e.getSelection().rangeCount>1?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"_execute",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.newJob();if(this.getState(o)===gt.UNAVAILABLE)return e.cancelJob(o),!1;var i=Ri.insertCardNode(o,o.getSelection(),t,n),a=i.selection,l=i.cardNode;return r?o.setSelection([o.newRange(o.newPosition(l,0))]):o.setSelection(a),e.commitJob(o),l.id}}]),t}(wt),OM=uI({pluginName:"card",command:{setCardValue:"setCardValue",insertCard:"insertCard",focusCard:"focusCard",deleteCard:"deleteCard",cardValue:"cardValue",moveCard:"moveCard",cardIsExist:"cardIsExist",cardBatchApply:"cardBatchApply"}});function xM(e,t,n){return t=Qe(t),Xe(e,EM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function EM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EM=function(){return!!e})()}var DM=function(e){function t(){return Ye(this,t),xM(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getNodeById(t);if(o&&o.isConnected&&o.hasCategory(ze.Card))if(n.node.closest(ze.OnlyText))e.cancelJob(r);else{if(o.hasCategory(ze.BlockCard)){var i=o.parentNode;kt.fatal(null==i?void 0:i.isHole(),"plugins/card/src/kernel/commands/move-card-command.ts:33"),rr.insertNodes(r,n,[i])}else rr.insertNodes(r,n,[o]);r.setSelection([r.newRange(r.newPosition(o.parentNode,o.offset+1))]),e.commitJob(r)}else e.cancelJob(r)}}]),t}(wt);function RM(e,t,n){return t=Qe(t),Xe(e,PM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function PM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PM=function(){return!!e})()}Object.defineProperty(DM,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.moveCard});var SM=function(e){function t(){return Ye(this,t),RM(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=lM.createValueByURL(t);return this._execute(e,"image",r,n)}}]),t}(NM);function TM(e,t,n){return t=Qe(t),Xe(e,AM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function AM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AM=function(){return!!e})()}Object.defineProperty(SM,"ID",{enumerable:!0,configurable:!0,writable:!0,value:fM.command.insertImage});var jM=function(e){function t(){return Ye(this,t),TM(this,t,arguments)}return et(t,e),Ke(t)}(DM);function IM(e,t,n){return t=Qe(t),Xe(e,BM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BM=function(){return!!e})()}Object.defineProperty(jM,"ID",{enumerable:!0,configurable:!0,writable:!0,value:fM.command.moveImage});var MM=function(e){function t(){return Ye(this,t),IM(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getNodeById(t);return o&&o.isConnected?(r.setAttribute(o,"value",Object.assign(Object.assign({},o.attrs.value),n)),e.commitJob(r),!0):(e.cancelJob(r),!1)}}]),t}(zl);Object.defineProperty(MM,"ID",{enumerable:!0,configurable:!0,writable:!0,value:fM.command.updateImageData});var FM=Ke((function e(){Ye(this,e)}));function LM(e,t,n){return t=Qe(t),Xe(e,UM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function UM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UM=function(){return!!e})()}var VM=function(e){function t(e,n){var r;return Ye(this,t),r=LM(this,t),Object.defineProperty(Je(r),"_imagePlugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return et(t,e),Ke(t,[{key:"readFile",value:function(e,t){var n;if((null==t?void 0:t.from)!==ZB||"image"===(null==t?void 0:t.category)){var r=e._$neUploadTaskId;if(r){var o=mr(9),i=Wo.createCard("image",lM.createWillUploadValue({type:"binary",from:t?t.from:void 0,ratio:this._imagePlugin.option.ratio,name:null===(n=e.file)||void 0===n?void 0:n.name,taskId:r,clientId:this._kernel.id}),o);return this._imagePlugin.registerTask(r,o),i}}}}]),t}(FM),HM=function(){function e(){Ye(this,e)}return Ke(e,[{key:"leaveNode",value:function(e){}}]),e}();function zM(e,t,n){return t=Qe(t),Xe(e,WM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function WM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WM=function(){return!!e})()}var qM=function(e){function t(e,n){var r;return Ye(this,t),r=zM(this,t),Object.defineProperty(Je(r),"_imagePlugin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._imagePlugin=e,r._kernel=n,r}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){var n=t.attrs,r=n.src,o=n._$neUploadTaskId,i=n._$neImageSrc,a=n.width,l=a?parseInt(a+"",10):NaN,u=null;if(i?u=i:(r&&!this._imagePlugin.option.isCaptureImageURL(r)||this._imagePlugin.option.useOriginSrc(r))&&(u=r),u||o){var c,s=e.getState("link");if(u)c=Wo.createCard("image",lM.createValueByURL({from:"paste",originalURL:r,ratio:this._imagePlugin.option.ratio,src:u,link:s,linkExternal:!!s||void 0,width:isNaN(l)?void 0:l}));else{var d=mr(9);c=Wo.createCard("image",lM.createWillUploadValue({type:"url",from:"paste",ratio:this._imagePlugin.option.ratio,originalURL:r,taskId:o,clientId:this._kernel.id,link:s,linkExternal:!!s||void 0,width:isNaN(l)?void 0:l}),d),this._imagePlugin.registerTask(o,d)}e.setNode(c)}}}]),t}(HM);function $M(e,t,n){return t=Qe(t),Xe(e,KM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function KM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KM=function(){return!!e})()}Object.defineProperty(qM,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["img"]});var YM=function(e){function t(){return Ye(this,t),$M(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){var n,r=t.className||(null===(n=t.attrs)||void 0===n?void 0:n.class)||"";return!(!r.includes("ne-ui-image-ocr-mask")&&!r.includes("ne-ui-image-ocr-text")||(e.stop(),0))}}]),t}(HM);Object.defineProperty(YM,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["div"]});var GM=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t){return!0}},{key:"destroy",value:function(){}}]),e}();function JM(e,t,n){return t=Qe(t),Xe(e,XM()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function XM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XM=function(){return!!e})()}var QM=function(e){function t(e){var n;return Ye(this,t),n=JM(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t){var n,r=null===(n=t.attrs)||void 0===n?void 0:n.value;return!r||(r.src&&!r.status&&(r.status=$B.DONE),e.setNode(Wo.createCard("image",r,t.id)),!0)}}]),t}(GM),ZM=function(){function e(){Ye(this,e)}return Ke(e,[{key:"destroy",value:function(){}}]),e}();function eF(e,t,n){return t=Qe(t),Xe(e,tF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tF=function(){return!!e})()}var nF=function(e){function t(e){var n;return Ye(this,t),n=eF(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){n.src&&!n.status&&(n.status=rM);var o=Wo.createCard("image",lM.fromLake(n),r);e.setNode(o)}}]),t}(ZM);function rF(e,t,n){return t=Qe(t),Xe(e,oF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oF=function(){return!!e})()}var iF=function(e){function t(){return Ye(this,t),rF(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r=(null===(n=t.attrs)||void 0===n?void 0:n.value)||{};if(r.src){var o=null;if(r.link){var i={href:r.link};!1!==r.linkExternal&&(i.target="_blank"),o=e.createElement("a",{className:"ne-image-link",attrs:i})}var a=e.createElement("img",{className:"ne-image",attrs:{src:r.src,width:r.width||r.original&&r.original.width}});o?(e.appendChild(o,a),e.setNode(o)):e.setNode(a)}}}]),t}(EB);Object.defineProperty(iF,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["image"]});var aF=Ke((function e(){Ye(this,e)}));function lF(e,t,n){return t=Qe(t),Xe(e,uF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function uF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uF=function(){return!!e})()}var cF=function(e){function t(){return Ye(this,t),lF(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n,r){var o=e.createInlineCard("image",lM.toLake(n),r);e.setNode(o)}}]),t}(aF);function sF(e,t,n){return t=Qe(t),Xe(e,dF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function dF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dF=function(){return!!e})()}var fF=function(e){function t(){var e;return Ye(this,t),e=sF(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function hF(e,t,n){return t=Qe(t),Xe(e,pF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function pF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pF=function(){return!!e})()}Object.defineProperty(fF,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IFileKernelService")});var vF=function(e){function t(){var e;return Ye(this,t),e=hF(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);Object.defineProperty(vF,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IMarkdownService")});var mF=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t){return e.setNode(e.createElement("image",{value:{src:t.href,title:t.title}})),!0}}]),e}(),gF=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t){var n,r=(null===(n=t.attrs)||void 0===n?void 0:n.value)||{};return e.append("![".concat(r.title||"","](").concat(r.src,")")),!0}}]),e}();function bF(e,t,n){return t=Qe(t),Xe(e,yF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yF=function(){return!!e})()}var wF=function(e){function t(){var e;return Ye(this,t),e=bF(this,t,arguments),Object.defineProperty(Je(e),"_taskMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(Je(e),"_uploadImageByURLHandler",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var n,r,o,i,a,l,u,c,s,d=this,f=e.requireService(fF.ID);e.registerInlineCard(t.cardName),null===(n=e.getService(UI.ID))||void 0===n||n.registerHTMLNodeReader(qM.NodeNames,new qM(this,e)),null===(r=e.getService(UI.ID))||void 0===r||r.registerHTMLNodeReader(YM.NodeNames,new YM),null===(o=e.getService(UI.ID))||void 0===o||o.registerNodeHTMLWriter(iF.NodeNames,new iF),null===(i=e.getService(zI.ID))||void 0===i||i.registerLakeCardReader(fM.cardName,new nF(e)),null===(a=e.getService(qB.ID))||void 0===a||a.registerINodeCardReader(fM.cardName,new QM(e)),null===(l=e.getService(zI.ID))||void 0===l||l.registerLakeCardWriter(fM.cardName,new cF),null===(u=e.getService(HB.ID))||void 0===u||u.registerFileReader(f.getFileAcceptUtil().getImageFileAccept(this.option.accept),new VM(this,e)),null===(c=e.getService(vF.ID))||void 0===c||c.registerMarkdownReader("image",new mF),null===(s=e.getService(vF.ID))||void 0===s||s.registerMarkdownWriter("image",new gF),e.extendMethods({setUploadImageByURLHandler:function(e){d._uploadImageByURLHandler=e}}),this._initMarkdownKey()}},{key:"destroy",value:function(){delete this._taskMap,delete this._uploadImageByURLHandler,Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"_initMarkdownKey",value:function(){var e,t=this;null===(e=this.kernel.getService(GI.ID))||void 0===e||e.registerMarkdownMatcher(WI.whiteSpace,new GB(this.editing,{match:function(e){if(!t._uploadImageByURLHandler)return null;var n,r=/\!\[([^\]]*?)\]\(([^\]]+?)\)$/.exec(e);return r?(n=r[2],xh.isBase64ImageURL(n)||xh.isFullHttpURL(n)?r:null):null}},(function(e,n,r,o){var i,a=o.matched,l=e.newPosition(r,a.index),u=a[2],c=t._uploadImageByURLHandler(u);kt.fatal(c.taskId||c.url,"plugins/image/src/kernel/index.ts:172"),i=c.taskId?lM.createWillUploadValue({type:"url",from:"markdown",ratio:t.option.ratio,originalURL:u,taskId:c.taskId,clientId:t.kernel.id}):lM.createValueByURL({from:"markdown",ratio:t.option.ratio,originalURL:u,src:c.url});var s=Ri.insertCardNode(e,e.newSelection(e.newRange(l)),"image",i).cardNode;e.setSelection(e.newSelection(e.newRange(e.newPosition(s.parentNode,s.offset+1))))})))}},{key:"registerTask",value:function(e,t){this._taskMap[e]=t}},{key:"getNodeIdByTaskId",value:function(e){return this._taskMap[e]}}]),t}(ft);Object.defineProperty(wF,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"image"}),Object.defineProperty(wF,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:dM}),Object.defineProperty(wF,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[vM,bM,kM,MM,SM,jM]}),Object.defineProperty(wF,"cardName",{enumerable:!0,configurable:!0,writable:!0,value:fM.cardName});var kF="left",CF="center",_F="right",NF="justify",OF="distributed",xF=[kF,CF,_F,NF,OF],EF="text-align",DF="text-align",RF="center",PF="ne-alignment";const SF={targets:[ze.Block],values:xF.slice()};var TF=uI({pluginName:"alignment",attr:{alignment:"alignment"},toolbar:{alignment:"alignment"},command:{alignment:"alignment"}});function AF(e,t,n){return t=Qe(t),Xe(e,jF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function jF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jF=function(){return!!e})()}var IF=function(e){function t(){var e;return Ye(this,t),e=AF(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:TF.attr.alignment}),e}return et(t,e),Ke(t)}(Sl);function BF(e,t,n){return t=Qe(t),Xe(e,MF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function MF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MF=function(){return!!e})()}Object.defineProperty(IF,"ID",{enumerable:!0,configurable:!0,writable:!0,value:TF.command.alignment});var FF=function(e){function t(){return Ye(this,t),BF(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){t.name===RF&&e.addAttr(TF.attr.alignment,CF)}}]),t}(HM);Object.defineProperty(FF,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[RF]});var LF=Ke((function e(){Ye(this,e)}));function UF(e,t,n){return t=Qe(t),Xe(e,VF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function VF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VF=function(){return!!e})()}var HF=function(e){function t(){return Ye(this,t),UF(this,t,arguments)}return et(t,e),Ke(t,[{key:"readStyle",value:function(e,t,n){switch(n){case kF:case _F:case CF:case NF:case OF:e.addAttr(TF.attr.alignment,n)}}}]),t}(LF);Object.defineProperty(HF,"StyleNames",{enumerable:!0,configurable:!0,writable:!0,value:[EF]});var zF=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t,n){e.setAttr(TF.attr.alignment,n)}}]),e}();Object.defineProperty(zF,"styleNames",{enumerable:!0,configurable:!0,writable:!0,value:DF});var WF=Ke((function e(){Ye(this,e)}));function qF(e,t,n){return t=Qe(t),Xe(e,$F()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($F=function(){return!!e})()}var KF=function(e){function t(){return Ye(this,t),qF(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){e.addStyle(EF,n)}}]),t}(WF);Object.defineProperty(KF,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:TF.attr.alignment});var YF=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n){e.setStyle(DF,n)}}]),e}();function GF(e,t,n){return t=Qe(t),Xe(e,JF()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function JF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(JF=function(){return!!e})()}Object.defineProperty(YF,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:TF.attr.alignment});var XF=function(e){function t(){return Ye(this,t),GF(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttr(TF.attr.alignment,SF)}},{key:"afterInit",value:function(){var e=this.kernel,t=e.getService(UI.ID);t&&(t.registerHTMLNodeReader(FF.NodeNames,new FF),t.registerHTMLStyleReader(HF.StyleNames,new HF));var n=e.getService(UI.ID);n&&n.registerAttrHTMLWriter(KF.AttrNames,new KF);var r=e.getService(zI.ID);r&&r.registerLakeStyleReader(zF.styleNames,new zF);var o=e.getService(zI.ID);o&&o.registerLakeAttrWriter(YF.AttrNames,new YF)}}]),t}(ft);Object.defineProperty(XF,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:TF.pluginName}),Object.defineProperty(XF,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[IF]});var QF=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Ye(this,e),Object.defineProperty(this,"_editing",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_patternStr",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_handler",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_skipSpace",{enumerable:!0,configurable:!0,writable:!0,value:o})}return Ke(e,[{key:"destroy",value:function(){delete this._editing}},{key:"match",value:function(e){var t=this._doMatch(e);if(!t)return null;for(var n=t.start,r=t.end.node;r;){if(ZF(r))return null;if(r===n.node)break;var o=r.previousSibling;if(!(null==o?void 0:o.isTextNode()))return null;r=o}return t}},{key:"_getLastIndexSkipSpace",value:function(e,t,n){for(;n>=0;){var r=e.lastIndexOf(t,n);if(r<0)return r;if(" "!==e[r+t.length])return r;n=r-1}return-1}},{key:"_doMatch",value:function(e){var t=this._patternStr,n=t.length,r=e[e.length-1];if(!r)return null;if(!r.text.endsWith(t))return null;if(this._skipSpace&&r.text.endsWith(" "+t))return null;var o=e.map((function(e){return e?e.text:" "})).join(""),i=this._skipSpace?this._getLastIndexSkipSpace(o,t,o.length-n-1):o.lastIndexOf(t,o.length-n-1);if(-1===i||i+n+n>=o.length)return null;for(var a=0,l=0;ai)return{start:{node:u.fragments[0].start.node,offset:u.fragments[0].start.offset+i-l},end:{node:r.fragments[0].end.node,offset:r.fragments[0].end.offset}};l+=c.length}else l+=c.length}return null}},{key:"exec",value:function(e){var t=this._editing.newJob(He.User),n=e.start,r=e.end,o=this._patternStr.length;if(n.node===r.node){var i=n.node,a=i.data.substring(0,n.offset),l=i.data.substring(r.offset),u=i.data.substring(n.offset+o,r.offset-o);t.setTextNodeData(i,a+u+l),this._handler(t,t.newRange(t.newPosition(i,a.length),t.newPosition(i,a.length+u.length)))}else{var c=n.node.data.substring(0,n.offset)+n.node.data.substring(n.offset+o),s=r.node.data.substring(0,r.offset-o)+r.node.data.substring(r.offset);t.setTextNodeData(n.node,c),t.setTextNodeData(r.node,s),this._handler(t,t.newRange(t.newPosition(n.node,n.offset),t.newPosition(r.node,r.offset-o)))}this._editing.commitJob(t)}}]),e}();function ZF(e){return!!zt.closest(e,ze.InlineBox)}const eL={bold:{targets:[ze.Text],values:[!0]},italic:{targets:[ze.Text],values:[!0]},underline:{targets:[ze.Text],values:[!0]},strikethrough:{targets:[ze.Text],values:[!0]},emoji:{targets:[ze.Text],values:[!0],allowClone:!1}};var tL=uI({pluginName:"basicTextStyle",attr:{bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough"},toolbar:{bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough"},command:{bold:"bold",italic:"italic",underline:"underline",strikethrough:"strikethrough"},service:{IBasicTextStyleKernelService:"IBasicTextStyleKernelService"}});function nL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.plugin.service.boldDisableHandlers);try{for(o.s();!(r=o.n()).done;)if((0,r.value)(n))return ht}catch(e){o.e(e)}finally{o.f()}return Cr(Qe(t.prototype),"getState",this).call(this,e)}},{key:"getValue",value:function(e){return Cr(Qe(t.prototype),"getValue",this).call(this,e,ze.Heading)}},{key:"execute",value:function(e){return Cr(Qe(t.prototype),"execute",this).call(this,e,ze.Heading)}}]),t}(Jl);function aL(e,t,n){return t=Qe(t),Xe(e,lL()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lL=function(){return!!e})()}Object.defineProperty(iL,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tL.command.bold});var uL=function(e){function t(){var e;return Ye(this,t),e=aL(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:tL.attr.italic}),e}return et(t,e),Ke(t)}(Jl);function cL(e,t,n){return t=Qe(t),Xe(e,sL()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sL=function(){return!!e})()}Object.defineProperty(uL,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tL.command.italic});var dL=function(e){function t(){var e;return Ye(this,t),e=cL(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:tL.attr.strikethrough}),e}return et(t,e),Ke(t)}(Jl);function fL(e,t,n){return t=Qe(t),Xe(e,hL()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hL=function(){return!!e})()}Object.defineProperty(dL,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tL.command.strikethrough});var pL=function(e){function t(){var e;return Ye(this,t),e=fL(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:tL.attr.underline}),e}return et(t,e),Ke(t)}(Jl);function vL(e,t,n){return t=Qe(t),Xe(e,mL()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mL=function(){return!!e})()}Object.defineProperty(pL,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tL.command.underline});var gL=function(e){function t(){return Ye(this,t),vL(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){switch(t.name){case"strong":case"b":e.addAttr(tL.attr.bold,!0);break;case"i":case"em":e.addAttr(tL.attr.italic,!0);break;case"u":case"ins":e.addAttr(tL.attr.underline,!0);break;case"del":case"s":e.addAttr(tL.attr.strikethrough,!0)}}}]),t}(HM);function bL(e,t,n){return t=Qe(t),Xe(e,yL()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yL=function(){return!!e})()}Object.defineProperty(gL,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["strong","b","i","em","u","ins","s","del"]});var wL=function(e){function t(){return Ye(this,t),bL(this,t,arguments)}return et(t,e),Ke(t,[{key:"readStyle",value:function(e,t,n){switch(t){case"font-weight":(n>=500||"bold"===n||"bolder"===n)&&e.addAttr(tL.attr.bold,!0);break;case"font-style":"italic"!==n&&"oblique"!==n||e.addAttr(tL.attr.italic,!0);break;case"text-decoration-line":case"text-decoration":var r="string"==typeof n?n.split(/\s+/g):[];r.includes("underline")&&e.addAttr(tL.attr.underline,!0),r.includes("line-through")&&e.addAttr(tL.attr.strikethrough,!0)}}}]),t}(LF);Object.defineProperty(wL,"StyleNames",{enumerable:!0,configurable:!0,writable:!0,value:["font-weight","font-style","text-decoration","text-decoration-line"]});var kL=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t){var n;switch(t.name){case"strong":case"b":n=tL.attr.bold;break;case"em":case"i":n=tL.attr.italic;break;case"u":case"ins":n=tL.attr.underline;break;case"del":n=tL.attr.strikethrough;break;default:return kt.fatal(!1,"plugins/basic-text-style/src/kernel/readers/lake-basic-text-style-node-reader.ts:32"),!1}return e.setAttr(n,!0),!1}}]),e}();function CL(e,t,n){return t=Qe(t),Xe(e,_L()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_L=function(){return!!e})()}var NL=function(e){function t(){return Ye(this,t),CL(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){if(n){switch(t){case tL.attr.bold:return void e.wrapNode(e.createElement("strong"));case tL.attr.italic:return void e.wrapNode(e.createElement("em"))}var r=e.inode.attrs,o=r.underline,i=r.strikethrough;o&&i?e.addStyle("text-decoration","underline line-through"):o?e.addStyle("text-decoration","underline"):i&&e.addStyle("text-decoration","line-through")}}}]),t}(WF);Object.defineProperty(NL,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[tL.attr.bold,tL.attr.italic,tL.attr.underline,tL.attr.strikethrough]});var OL=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t){var n;switch(t){case tL.attr.bold:n="strong";break;case tL.attr.italic:n="em";break;case tL.attr.underline:n="u";break;case tL.attr.strikethrough:n="del";break;default:return void kt.fatal(!1,"plugins/basic-text-style/src/kernel/writers/lake-basic-text-style-attr-writer.ts:36")}"u"!==n&&"del"!==n||!e.hasStyle("color")||(e.wrapNode(Nd.createElement("span",{style:{color:e.getStyle("color")}})),e.removeStyle("color")),e.wrapNode(Nd.createElement(n))}}]),e}();Object.defineProperty(OL,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[tL.attr.bold,tL.attr.italic,tL.attr.underline,tL.attr.strikethrough]});var xL=0,EL=1,DL=2;const RL={MATH:{PLUGIN_NAME:"math",NODE_NAME:"math",UI_NAME:"math",OPTION_NAME:"math"},MENTION:{PLUGIN_NAME:"mention",NODE_NAME:"mention",UI_NAME:"mention",OPTION_NAME:"mention"},CODEBLOCK:{PLUGIN_NAME:"codeblock",NODE_NAME:"codeblock",UI_NAME:"codeblock",OPTION_NAME:"codeblock"},TEXT_DIAGRAM:{PLUGIN_NAME:"textDiagram",NODE_NAME:"textDiagram",UI_NAME:"text-diagram",OPTION_NAME:"textDiagram"},EMOJI:{PLUGIN_NAME:"emoji",NODE_NAME:"emoji",UI_NAME:"emoji",OPTION_NAME:"emoji",COMMAND:"emoji"},UNICODE_EMOJI:{PLUGIN_NAME:"unicodeEmoji",NODE_NAME:"unicodeEmoji",UI_NAME:"unicodeEmoji",OPTION_NAME:"unicodeEmoji",COMMAND:"unicodeEmoji"},CALENDAR:{NODE_NAME:"calendar",UI_NAME:"calendar",OPTION_NAME:"calendar",LAKE_NAME:"calendar"},VOTE:{NODE_NAME:"vote",UI_NAME:"vote",OPTION_NAME:"vote",LAKE_NAME:"vote"},FILE:{NODE_NAME:"file",UI_NAME:"file",OPTION_NAME:"file",LAKE_NAME:"file"},LOCKED_TEXT:{NODE_NAME:"lockedtext",UI_NAME:"lockedtext",OPTION_NAME:"lockedtext",LAKE_NAME:"lockedtext"},LOCAL_DOC:{NODE_NAME:"localdoc",UI_NAME:"localdoc",OPTION_NAME:"localdoc",LAKE_NAME:"localdoc"},AUDIO:{NODE_NAME:"audio",UI_NAME:"audio",OPTION_NAME:"audio"},VIDEO:{NODE_NAME:"video",UI_NAME:"video",OPTION_NAME:"video"},TRANSFER:{NODE_NAME:"transfer",UI_NAME:"transfer",OPTION_NAME:"transfer",LAKE_NAME:"transfer"},IFRAME_QUERY_FLAG:"_isCardInner",THREE:{NODE_NAME:"three",UI_NAME:"three",PLUGIN_NAME:"three",LAKE_NAME:"three"}};var PL,SL="about:blank",TL="lark",AL="yuque",jL="card",IL="before",BL="after",ML="inline",FL="clean";!function(e){e.INLINE="inline",e.CLEAN="clean"}(PL||(PL={}));var LL,UL=1e3,VL=100,HL=10,zL="app",WL="default",qL="simple",$L="note",KL="small",YL={DEFAULT:"default",SIMPLE:"simple",NOTE:"note",SMALL:"small"};function GL(e,t,n){return t=Qe(t),Xe(e,JL()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function JL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(JL=function(){return!!e})()}!function(e){e.audio="audio",e.localDoc="localDoc",e.file="file",e.image="image",e.video="video",e.all="*"}(LL||(LL={}));var XL,QL=function(e){function t(){var e;return Ye(this,t),e=GL(this,t,arguments),Object.defineProperty(Je(e),"_$inited",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"sidebarRootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"closed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"close",value:function(){}},{key:"init",value:function(){}},{key:"destroy",value:function(){this.closed=!0,this.removeAllListeners()}},{key:"isPermanent",value:function(){return!1}}]),t}(ut);!function(e){e.default="",e.dark="dark"}(XL||(XL={}));var ZL=["cardSelect","|","undo","redo","formatPainter","clearFormat","|","style","fontsize","bold","italic","strikethrough","underline","mixedTextStyle","|","color","bgColor","|","alignment","unorderedList","orderedList","indent","lineHeight","|","taskList","link","quote","hr","|","search","translate","toc","materialLibrary"],eU=["cardSelect","undo","redo","style","bold","taskList","orderedList","unorderedList","link","quote","alignment","indent"],tU=["cardSelect","|","undo","redo","formatPainter","clearFormat","|","style","fontsize","bold","italic","strikethrough","underline","mixedTextStyle","|","color","bgColor","tableCellBgColor","tableBorderVisible","|","alignment","tableVerticalAlign","tableMergeCell","|","unorderedList","orderedList","indent","lineHeight","|","taskList","link","quote","hr","|","search","translate","toc","materialLibrary"];function nU(e,t,n){return t=Qe(t),Xe(e,rU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rU=function(){return!!e})()}var oU=function(e){function t(){var e;return Ye(this,t),e=nU(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),Object.defineProperty(Je(e),"boldDisableHandlers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),e}return et(t,e),Ke(t)}(at);function iU(e,t,n){return t=Qe(t),Xe(e,aU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aU=function(){return!!e})()}Object.defineProperty(oU,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(tL.service.IBasicTextStyleKernelService)});var lU=function(e){function t(){return Ye(this,t),iU(this,t,arguments)}return et(t,e),Ke(t,[{key:"registerBoldDisableHandler",value:function(e){this.boldDisableHandlers.push(e)}},{key:"destroy",value:function(){this.boldDisableHandlers=[]}}]),t}(oU);function uU(e,t,n){return t=Qe(t),Xe(e,cU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function cU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cU=function(){return!!e})()}var sU={"**":"bold",__:"bold","~~":"strikethrough",_:"italic","*":"italic","++":"underline"},dU=function(e){function t(){return Ye(this,t),uU(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttr(eL),this._initMarkdownShortcutKey()}},{key:"afterInit",value:function(){var e=this.kernel,t=e.getService(UI.ID);t&&(t.registerHTMLNodeReader(gL.NodeNames,new gL),t.registerHTMLStyleReader(wL.StyleNames,new wL));var n=e.getService(UI.ID);n&&n.registerAttrHTMLWriter(NL.AttrNames,new NL);var r=e.getService(zI.ID);r&&r.registerLakeNodeReader(["strong","b","em","i","del","u","ins"],new kL);var o=e.getService(zI.ID);o&&o.registerLakeAttrWriter(OL.AttrNames,new OL)}},{key:"_initMarkdownShortcutKey",value:function(){var e=this,t=this.kernel.getService(GI.ID);t&&Object.keys(sU).forEach((function(n){t.registerMarkdownMatcher(WI.whiteSpace,new QF(e.editing,n,(function(t,r){e._handlerMarkdown(t,sU[n],r)}),!0))}))}},{key:"_handlerMarkdown",value:function(e,t,n){var r=e.createInheritTextNode("",n.end);n=zo.setAttribute(e,n,t,!0),e.insertNodeByPosition(n.end,r),e.setSelection([e.newRange(e.newPosition(r,0))])}}]),t}(ft);Object.defineProperty(dU,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:tL.pluginName}),Object.defineProperty(dU,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[iL,uL,pL,dL]}),Object.defineProperty(dU,"Service",{enumerable:!0,configurable:!0,writable:!0,value:lU});const fU={targets:[ze.Text],values:function(){return!0}};var hU=uI({pluginName:"bgColor",attr:{bgColor:"bgColor"},toolbar:{bgColor:"bgColor"},command:{bgColor:"bgColor",clearBgColor:"clearBgColor"}});function pU(e,t,n){return t=Qe(t),Xe(e,vU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vU=function(){return!!e})()}var mU=function(e){function t(){var e;return Ye(this,t),e=pU(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:hU.attr.bgColor}),e}return et(t,e),Ke(t)}(Zl);function gU(e,t,n){return t=Qe(t),Xe(e,bU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bU=function(){return!!e})()}Object.defineProperty(mU,"ID",{enumerable:!0,configurable:!0,writable:!0,value:hU.command.bgColor});var yU=function(e){function t(){var e;return Ye(this,t),e=gU(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:hU.attr.bgColor}),e}return et(t,e),Ke(t,[{key:"execute",value:function(e){return Cr(Qe(t.prototype),"execute",this).call(this,e,null)}}]),t}(Zl);Object.defineProperty(yU,"ID",{enumerable:!0,configurable:!0,writable:!0,value:hU.command.clearBgColor});var wU={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},kU="background-color";function CU(e,t,n){return t=Qe(t),Xe(e,_U()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_U=function(){return!!e})()}var NU={table:!0,tbody:!0,thead:!0,tfoot:!0,tr:!0,th:!0,td:!0},OU=function(e){function t(){return Ye(this,t),CU(this,t,arguments)}return et(t,e),Ke(t,[{key:"readStyle",value:function(e,t,n,r){var o=r.name;n&&"rgb(255, 255, 255)"!==n&&"#fff"!==n&&(wU[null==n?void 0:n.toLowerCase()]&&(n=wU[n.toLowerCase()]),(n.startsWith("rgb(")||n.startsWith("#")&&(7===n.length||4===n.length))&&(NU[o]?e.addAttr("cellBgColor",n):e.addAttr(hU.attr.bgColor,n)))}}]),t}(LF);Object.defineProperty(OU,"StyleNames",{enumerable:!0,configurable:!0,writable:!0,value:["background-color","background"]});var xU=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t,n){e.setAttr(hU.attr.bgColor,n)}}]),e}();function EU(e,t,n){return t=Qe(t),Xe(e,DU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function DU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DU=function(){return!!e})()}Object.defineProperty(xU,"StyleNames",{enumerable:!0,configurable:!0,writable:!0,value:kU});var RU=function(e){function t(){return Ye(this,t),EU(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){n&&e.addStyle("background-color",n)}}]),t}(WF);Object.defineProperty(RU,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[hU.attr.bgColor]});var PU=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n){e.setStyle(kU,n)}}]),e}();function SU(e,t,n){return t=Qe(t),Xe(e,TU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function TU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(TU=function(){return!!e})()}Object.defineProperty(PU,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[hU.attr.bgColor]});var AU=function(e){function t(){return Ye(this,t),SU(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttr(hU.attr.bgColor,fU)}},{key:"afterInit",value:function(){var e=this.kernel,t=e.getService(UI.ID),n=e.getService(UI.ID),r=e.getService(zI.ID),o=e.getService(zI.ID);t&&t.registerHTMLStyleReader(OU.StyleNames,new OU),n&&n.registerAttrHTMLWriter(RU.AttrNames,new RU),r&&r.registerLakeStyleReader(xU.StyleNames,new xU),o&&o.registerLakeAttrWriter(PU.AttrNames,new PU)}}]),t}(ft);Object.defineProperty(AU,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:hU.pluginName}),Object.defineProperty(AU,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[mU,yU]});var jU=uI({pluginName:"breakLine",command:{breakLine:"breakLine"}});function IU(e,t,n){return t=Qe(t),Xe(e,BU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BU=function(){return!!e})()}var MU=function(e){function t(){return Ye(this,t),IU(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return Di.isUnbreakable(t)?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===gt.UNAVAILABLE)return e.cancelJob(t),!1;var n=t.getSelection();n.collapsed||(n=Di.deleteContent(t,n)),kt.fatal(n.collapsed,"plugins/break-line/src/kernel/break-line-command.ts:37");var r=rr.breakLine(t,n.firstRange.start);return t.setSelection([t.newRange(r)]),e.commitJob(t),!0}}]),t}(wt);function FU(e,t,n){return t=Qe(t),Xe(e,LU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function LU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LU=function(){return!!e})()}Object.defineProperty(MU,"ID",{enumerable:!0,configurable:!0,writable:!0,value:jU.command.breakLine});var UU=function(e){function t(){return Ye(this,t),FU(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(ft);function VU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(o);try{for(a.s();!(i=a.n()).done;){var l=i.value;l&&l.isConnected&&l.isCardNode()&&r.setAttribute(l,"value",Object.assign(Object.assign({},l.attrs.value),n))}}catch(e){a.e(e)}finally{a.f()}return e.commitJob(r),!0}}]),t}(wt);function qU(e,t,n){return t=Qe(t),Xe(e,$U()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($U=function(){return!!e})()}Object.defineProperty(WU,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.cardBatchApply});var KU=function(e){function t(){return Ye(this,t),qU(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return pt}},{key:"getValue",value:function(e,t){return!!t&&e.getNodesByName(t).some((function(e){return e.isConnected}))}},{key:"execute",value:function(e,t){return this.getValue(e.job,t)}}]),t}(wt);function YU(e,t,n){return t=Qe(t),Xe(e,GU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function GU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(GU=function(){return!!e})()}Object.defineProperty(KU,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.cardIsExist});var JU=function(e){function t(){return Ye(this,t),YU(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return pt}},{key:"getValue",value:function(e,t){var n=e.getNodeById(t);return n&&n.isConnected&&n.isCardNode()?n.attrs.value:null}}]),t}(wt);function XU(e,t,n){return t=Qe(t),Xe(e,QU()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function QU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QU=function(){return!!e})()}Object.defineProperty(JU,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.cardValue});var ZU=function(e){function t(){return Ye(this,t),XU(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=e.newJob(),r=n.getNodeById(t),o=n.getSelection();if(r&&r.hasCategory(ze.Card)&&1===o.rangeCount){var i=n.newSelection(Wt.selectNodeContents(r));i=Di.deleteContent(n,i,!0,!0),n.setSelection(i),e.commitJob(n)}else e.cancelJob(n)}}]),t}(wt);function eV(e,t,n){return t=Qe(t),Xe(e,tV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tV=function(){return!!e})()}Object.defineProperty(ZU,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.deleteCard});var nV=function(e){function t(){return Ye(this,t),eV(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jL,r=e.newJob(),o=r.getNodeById(t);return o&&o.isConnected&&o.isCardNode()?(n===jL?r.setSelection(r.newSelection(r.newRange(r.newPosition(o,0)))):n===BL?r.setSelection(r.newSelection(r.newRange(r.newPosition(o.parentNode,o.offset+1)))):n===IL&&r.setSelection(r.newSelection(r.newRange(r.newPosition(o.parentNode,o.offset)))),e.commitJob(r),!0):(e.cancelJob(r),!1)}}]),t}(wt);function rV(e,t,n){return t=Qe(t),Xe(e,oV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oV=function(){return!!e})()}Object.defineProperty(nV,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.focusCard});var iV=function(e){function t(){return Ye(this,t),rV(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this._execute(e,t,n,r)}}]),t}(NM);function aV(e,t,n){return t=Qe(t),Xe(e,lV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lV=function(){return!!e})()}Object.defineProperty(iV,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.insertCard});var uV=function(e){function t(){return Ye(this,t),aV(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n,r){kt.fatal("boolean"==typeof t,"plugins/card/src/kernel/commands/set-card-value-command.ts:17");var o=e.newJob(t?He.Auto:He.User),i=o.getNodeById(n);return i&&i.isConnected&&i.hasCategory(ze.Card)?(o.setAttribute(i,"value",r),e.commitJob(o),!0):(e.cancelJob(o),!1)}}]),t}(wt);function cV(e,t,n){return t=Qe(t),Xe(e,sV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sV=function(){return!!e})()}Object.defineProperty(uV,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.setCardValue});var dV=function(e){function t(){return Ye(this,t),cV(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){e.setVirtual((function(){})),e._handleAppend=function(){}}}]),t}(AB);function fV(e,t,n){return t=Qe(t),Xe(e,hV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hV=function(){return!!e})()}Object.defineProperty(dV,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["hole"]});var pV=function(e){function t(){return Ye(this,t),fV(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t;null===(t=e.getService(zI.ID))||void 0===t||t.registerLakeNodeWriter(dV.NodeNames,new dV)}}]),t}(ft);function vV(e,t){return Di.replaceBlockNode(e,t,null,!1)}Object.defineProperty(pV,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:OM.pluginName}),Object.defineProperty(pV,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[uV,iV,nV,ZU,JU,DM,KU,WU]});var mV=uI({pluginName:"clearFormat",toolbar:{clearFormat:"clearFormat"},command:{clearFormat:"clearFormat"}});function gV(e,t,n){return t=Qe(t),Xe(e,bV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bV=function(){return!!e})()}var yV=function(e){function t(){return Ye(this,t),gV(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return Di.isInCard(t)||Di.isInHole(t)?ht:pt}},{key:"execute",value:function(e){var t=e.newJob(),n=function(e,t){if(t.isCardSelection)return t;if(t.isTableSelection)return vV(e,t);var n=t.firstRange;if(n.collapsed){if(!zt.closest(n.start.node,ze.Block)){kt.fatal(n.start.node.hasCategory([ze.Root,ze.LikeRoot]),"plugins/clear-format/src/kernel/helper/clear-format.ts:26");var r=rr.makeSureAtInput(e,n.start);return vV(e,e.newSelection(e.newRange(r)))}return vV(e,t)}var o=n.start.node,i=n.end.node,a=zt.closest(o,ze.Block),l=zt.closest(i,ze.Block);return a&&a===l?function(e,t){var n=zo.splitTextContent(e,t.firstRange);return zo.walkRange(n,(function(t){if(t.isTextNode()||t.hasCategory(ze.InlineCard)){var n=t.attrs;Object.keys(n).forEach((function(n){e.removeAttribute(t,n)}))}})),t.cloneByRange(n)}(e,t):vV(e,t)}(t,t.getSelection());return t.setSelection(n),!0}}]),t}(wt);function wV(e,t,n){return t=Qe(t),Xe(e,kV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kV=function(){return!!e})()}Object.defineProperty(yV,"ID",{enumerable:!0,configurable:!0,writable:!0,value:mV.command.clearFormat});var CV=function(e){function t(){return Ye(this,t),wV(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(ft);function _V(e,t){return t.cloneByRange(t.ranges.map((function(t){var n=t.start,r=n.node,o=n.offset,i=t.end;if(!t.collapsed&&r.isElement()&&r.childCount===o){var a=function(e){for(kt(e.isElement(),"plugins/clipboard/src/common/reduce-selection.ts:48");e&&!e.isRootNode();){if(e.nextSibling)return e.nextSibling;e=e.parent}return null}(r);if(a){var l=Wt.createAt(new Nt(a,0),i);return Jn(l),Ia(e,l)}}return t})))}Object.defineProperty(CV,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:mV.pluginName}),Object.defineProperty(CV,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[yV]});var NV=uI({pluginName:"clipboard",command:{copy:"copy",cut:"cut",paste:"paste"}});function OV(e,t,n){return t=Qe(t),Xe(e,xV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function xV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xV=function(){return!!e})()}var EV=function(e){function t(){return Ye(this,t),OV(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return t.isCardSelection?gt.NOT_EXECUTED:t.collapsed?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"getValue",value:function(){return!1}},{key:"execute",value:function(e,t,n){var r=e.job;if(t){var o=r.newPosition(t.start.node,t.start.offset),i=r.newPosition(t.end.node,t.end.offset);return this._copyBySelection(r,r.newSelection(r.newRange(o,i)),n)}return this.getState(r)===gt.UNAVAILABLE?null:this._copyBySelection(r,r.getSelection(),n)}},{key:"_copyBySelection",value:function(e,t,n){t.isCardSelection||(t=t.cloneByRange(t.ranges.map((function(t){return zo.enlargeRangeContainsBlockNode(e,t)}))));var r=Di.extractINode(e,_V(e,t));if(!r)return{};var o=this.kernel,i=o.getSupportedWriterTypes(),a={};return i.forEach((function(e){if("text/markdown"!==e&&"text/aone"!==e){var t=o.writeData(e,r,Object.assign(Object.assign({mode:PL.INLINE},n),{since:"copy"}));a[e]="string"==typeof t?t:JSON.stringify(t)}})),a}}]),t}(wt);function DV(e,t,n){return t=Qe(t),Xe(e,RV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function RV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(RV=function(){return!!e})()}Object.defineProperty(EV,"ID",{enumerable:!0,configurable:!0,writable:!0,value:NV.command.copy});var PV=function(e){function t(){return Ye(this,t),DV(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return t.isCardSelection?gt.NOT_EXECUTED:t.collapsed?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"getValue",value:function(){return!1}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===gt.UNAVAILABLE)return!1;var n=this._extractINode(t);if(!n)return null;var r=this.kernel,o=r.getSupportedWriterTypes(),i={};o.forEach((function(e){if("text/markdown"!==e&&"text/aone"!==e){var t=r.writeData(e,n,{since:"copy",mode:PL.INLINE});i[e]="string"==typeof t?t:JSON.stringify(t)}}));var a=Di.deleteContent(t,t.getSelection());return t.setSelection(a),e.commitJob(t),i}},{key:"_extractINode",value:function(e){var t,n=e.getSelection();return t=n.isCardSelection?n:n.cloneByRange(n.ranges.map((function(t){return zo.enlargeRangeContainsBlockNode(e,t)}))),Di.extractINode(e,_V(e,t))}}]),t}(wt);function SV(e,t,n){return t=Qe(t),Xe(e,TV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function TV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(TV=function(){return!!e})()}Object.defineProperty(PV,"ID",{enumerable:!0,configurable:!0,writable:!0,value:NV.command.cut});var AV=["text/ne-inode","text/lake","text/html","text/plain","Files"],jV=function(e){function t(){return Ye(this,t),SV(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return gt.NOT_EXECUTED}},{key:"getValue",value:function(){return!1}},{key:"execute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];kt.fatal(t.types.indexOf,"payload.types is not array like","plugins/clipboard/src/kernel/commands/paste.ts:34"),kt.fatal("function"==typeof t.getData,"payload.getData is not a function","plugins/clipboard/src/kernel/commands/paste.ts:35");for(var o=e.newJob(),i=this.kernel,a=i.getSupportedReaderTypes(),l=t.types,u=null,c=0,s=AV.length;c=0)}}};const VV={code:{parents:[ze.Block],category:[ze.Inline,ze.InlineBox,ze.TextContainer],children:[ze.Text,ze.Inline]}};var HV=uI({pluginName:"code",cardName:"code",cardSelect:"code",command:{code:"code"}});function zV(e,t,n){return t=Qe(t),Xe(e,WV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function WV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WV=function(){return!!e})()}var qV=function(e){function t(){var e;return Ye(this,t),e=zV(this,t,arguments),Object.defineProperty(Je(e),"_nodeName",{enumerable:!0,configurable:!0,writable:!0,value:FV}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){var n=e.getSelection();if(Di.isUnbreakable(n))return ht;var r=n.firstRange.commonAncestorContainer;if(zt.closest(r,"code"))return vt;if(!n.isCollapsed){var o=n.firstRange,i=zo.shrinkRange(e,o,!0);return zt.closest(i.commonAncestorContainer,"code")?vt:Cr(Qe(t.prototype),"getState",this).call(this,e)}var a=n.firstRange;if(!a.collapsed)return ht;var l=a.start.node,u=l.isTextNode()?l.parentNode:l;return(null==u?void 0:u.hasCategory([ze.Root,ze.LikeRoot]))?e.acceptNode(e.defaultElementName,"code")?pt:ht:u&&e.acceptNode(u.nodeName,"code")?pt:ht}},{key:"execute",value:function(e,t){var n=e.newJob();if(this.getState(n)===ht)return e.cancelJob(n),!1;var r,o=n.getSelection();r=o.collapsed?o.firstRange:zo.shrinkRange(n,o.firstRange,!0);var i=zt.closest(r.commonAncestorContainer,"code");if(i){var a=zo.unwrapInlineNode(n,r,i);return n.setSelection([a]),e.commitJob(n),!0}var l=n.createElement("code");if(o.collapsed){var u=o.firstRange;if(u.start.node.hasCategory([ze.Root,ze.LikeRoot])){var c=n.createElement(n.defaultElementName);n.insertNodeByPosition(u.start,c),u=n.newRange(n.newPosition(c,0))}var s=n.createInheritTextNode(t||"",u.start);n.appendChild(l,s),rr.insertInlineNode(n,u.start,l),n.setSelection(o.cloneByRange(n.newRange(n.newPosition(s,s.dataLength))))}else zo.wrapInlineNode(n,o.firstRange,l),kt.fatal(l.isConnected,"plugins/code/src/kernel/commands/code-command.ts:166"),n.setSelection(o.cloneByRange(Wt.selectNodeContents(l)));return e.commitJob(n),!0}}]),t}(Kl);Object.defineProperty(qV,"ID",{enumerable:!0,configurable:!0,writable:!0,value:HV.command.code});var $V=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e){return e.setNode(Wo.createElement("code")),!1}}]),e}();function KV(e,t,n){return t=Qe(t),Xe(e,YV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function YV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YV=function(){return!!e})()}Object.defineProperty($V,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[FV]});var GV=function(e){function t(){return Ye(this,t),KV(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){var t;e.isInlineMode()&&(t={fontFamily:"SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace",backgroundColor:"rgba(0, 0, 0, 0.06)",border:"1px solid rgba(0, 0, 0, 0.08)",borderRadius:"2px",padding:"0px 2px"}),e.setNode(e.createElement(FV,{className:"ne-code",style:t}))}}]),t}(EB);function JV(e,t,n){return t=Qe(t),Xe(e,XV()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function XV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XV=function(){return!!e})()}Object.defineProperty(GV,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[FV]});var QV=function(e){function t(){return Ye(this,t),JV(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){e.setNode(e.createElement(LV))}}]),t}(AB);Object.defineProperty(QV,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[LV]});var ZV=uI({pluginName:"markdownDataSource"});function eH(e,t,n){return t=Qe(t),Xe(e,tH()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tH=function(){return!!e})()}var nH=function(e){function t(e){var n;return Ye(this,t),n=eH(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._kernel=e,n}return et(t,e),Ke(t,[{key:"read",value:function(e,t){return this._kernel.readData("text/markdown",e,t)}},{key:"write",value:function(e,t){var n=e.document.getINode(t);return this._kernel.writeData("text/markdown",n,t)}}]),t}(qt),rH={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:!0,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},oH=/[&<>"']/,iH=new RegExp(oH.source,"g"),aH=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,lH=new RegExp(aH.source,"g"),uH={"&":"&","<":"<",">":">",'"':""","'":"'"},cH=function(e){return uH[e]};function sH(e,t){if(t){if(oH.test(e))return e.replace(iH,cH)}else if(aH.test(e))return e.replace(lH,cH);return e}var dH=/(^|[^\[])\^/g;function fH(e,t){e="string"==typeof e?e:e.source,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(dH,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}var hH={exec:function(){}};function pH(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,o=t;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:vH(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:cn(t,1)[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=vH(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var o=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:o,text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,o,i,a,l,u,c,s,d,f,h,p=t[1].trim(),v=p.length>1,m={type:"list",raw:"",ordered:v,start:v?+p.slice(0,-1):"",loose:!1,items:[]};p=v?"\\d{1,9}\\".concat(p.slice(-1)):"\\".concat(p),this.options.pedantic&&(p=v?p:"[*+-]");for(var g=new RegExp("^( {0,3}".concat(p,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(h=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),s=e.split("\n",1)[0],this.options.pedantic?(i=2,f=c.trimLeft()):(i=(i=t[2].search(/[^ ]/))>4?1:i,f=c.slice(i),i+=t[1].length),l=!1,!c&&/^ *$/.test(s)&&(n+=s+"\n",e=e.substring(s.length+1),h=!0),!h)for(var b=new RegExp("^ {0,".concat(Math.min(3,i-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),y=new RegExp("^ {0,".concat(Math.min(3,i-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),w=new RegExp("^ {0,".concat(Math.min(3,i-1),"}(?:```|~~~)")),k=new RegExp("^ {0,".concat(Math.min(3,i-1),"}#"));e&&(s=d=e.split("\n",1)[0],this.options.pedantic&&(s=s.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!w.test(s))&&!k.test(s)&&!b.test(s)&&!y.test(e);){if(s.search(/[^ ]/)>=i||!s.trim())f+="\n"+s.slice(i);else{if(l)break;if(c.search(/[^ ]/)>=4)break;if(w.test(c))break;if(k.test(c))break;if(y.test(c))break;f+="\n"+s}l||s.trim()||(l=!0),n+=d+"\n",e=e.substring(d.length+1),c=s.slice(i)}m.loose||(u?m.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f))&&(o="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,"")),m.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:f}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=f.trimRight(),m.raw=m.raw.trimRight();var C=m.items.length;for(a=0;a0&&_.some((function(e){return/\n.*\n/.test(e.raw)}));m.loose=N}if(m.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}},{key:"table",value:function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:pH(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,o,i,a,l=n.align.length;for(r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):sH(t[0]):t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=vH(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var o=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,o=0;o-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var a=t[2],l="";if(this.options.pedantic){var u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);u&&(a=u[1],l=u[3])}else l=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),mH(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0],this.lexer)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return mH(n,r,n[0],this.lexer)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){var o,i,a=r[0].length-1,l=a,u=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(i=o.length,r[3]||r[4])l+=i;else if(!((r[5]||r[6])&&a%3)||(a+i)%3){if(!((l-=i)>0)){i=Math.min(i,i+l+u);var s=e.slice(0,a+r.index+i+1);if(Math.min(a,i)%2){var d=s.slice(1,-1);return{type:"em",raw:s,text:d,tokens:this.lexer.inlineTokens(d)}}var f=s.slice(2,-2);return{type:"strong",raw:s,text:f,tokens:this.lexer.inlineTokens(f)}}}else u+=i}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=sH(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e,t){var n,r,o=this.rules.inline.autolink.exec(e);if(o)return r="@"===o[2]?"mailto:"+(n=sH(this.options.mangle?t(o[1]):o[1])):n=sH(o[1]),{type:"link",raw:o[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},{key:"url",value:function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,o;if("@"===n[2])o="mailto:"+(r=sH(this.options.mangle?t(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);r=sH(n[0]),o="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):sH(r[0]):r[0]:sH(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}]),e}(),bH={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:hH,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};bH.def=fH(bH.def).replace("label",bH._label).replace("title",bH._title).getRegex(),bH.bullet=/(?:[*+-]|\d{1,9}[.)])/,bH.listItemStart=fH(/^( *)(bull) */).replace("bull",bH.bullet).getRegex(),bH.list=fH(bH.list).replace(/bull/g,bH.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+bH.def.source+")").getRegex(),bH._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",bH._comment=/|$)/,bH.html=fH(bH.html,"i").replace("comment",bH._comment).replace("tag",bH._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bH.lheading=fH(bH.lheading).replace(/bull/g,bH.bullet).getRegex(),bH.paragraph=fH(bH._paragraph).replace("hr",bH.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",bH._tag).getRegex(),bH.blockquote=fH(bH.blockquote).replace("paragraph",bH.paragraph).getRegex(),bH.normal=Object.assign({},bH),bH.gfm=Object.assign(Object.assign({},bH.normal),{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),bH.gfm.table=fH(bH.gfm.table).replace("hr",bH.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",bH._tag).getRegex(),bH.gfm.paragraph=fH(bH._paragraph).replace("hr",bH.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",bH.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",bH._tag).getRegex(),bH.pedantic=Object.assign(Object.assign({},bH.normal),{html:fH("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",bH._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:hH,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fH(bH.normal._paragraph).replace("hr",bH.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",bH.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var yH={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:hH,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:hH,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}yH._punctuation=wH?"\\p{P}$+<=>`^|~":"$+<=>`^|~",yH.punctuation=fH(yH.punctuation,wH?"u":"").replace(/punctuation/g,yH._punctuation).getRegex(),yH.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,yH.anyPunctuation=/\\[punct]/g,yH._escapes=/\\([punct])/g,yH._comment=fH(bH._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),yH.emStrong.lDelim=fH(yH.emStrong.lDelim,"u").replace(/punct/g,yH._punctuation).getRegex(),yH.emStrong.rDelimAst=fH(yH.emStrong.rDelimAst,"gu").replace(/punct/g,yH._punctuation).getRegex(),yH.emStrong.rDelimUnd=fH(yH.emStrong.rDelimUnd,"gu").replace(/punct/g,yH._punctuation).getRegex(),yH.anyPunctuation=fH(yH.anyPunctuation,"gu").replace(/punct/g,yH._punctuation).getRegex(),yH._escapes=fH(yH._escapes,"gu").replace(/punct/g,yH._punctuation).getRegex(),yH._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,yH._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])?)+(?![-_])/,yH.autolink=fH(yH.autolink).replace("scheme",yH._scheme).replace("email",yH._email).getRegex(),yH._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,yH.tag=fH(yH.tag).replace("comment",yH._comment).replace("attribute",yH._attribute).getRegex(),yH._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,yH._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,yH._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,yH.link=fH(yH.link).replace("label",yH._label).replace("href",yH._href).replace("title",yH._title).getRegex(),yH.reflink=fH(yH.reflink).replace("label",yH._label).replace("ref",bH._label).getRegex(),yH.nolink=fH(yH.nolink).replace("ref",bH._label).getRegex(),yH.reflinkSearch=fH(yH.reflinkSearch,"g").replace("reflink",yH.reflink).replace("nolink",yH.nolink).getRegex(),yH.normal=Object.assign({},yH),yH.pedantic=Object.assign(Object.assign({},yH.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:fH(/^!?\[(label)\]\((.*?)\)/).replace("label",yH._label).getRegex(),reflink:fH(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yH._label).getRegex()}),yH.gfm=Object.assign(Object.assign({},yH.normal),{escape:fH(yH.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]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,n){return t+" ".repeat(n.length)}));for(var l,u=function(){if(i.options.extensions&&i.options.extensions.block&&i.options.extensions.block.some((function(n){return!!(t=n.call({lexer:i},e,a))&&(e=e.substring(t.raw.length),a.push(t),!0)})))return 0;if(t=i.tokenizer.space(e))return e=e.substring(t.raw.length),1===t.raw.length&&a.length>0?a[a.length-1].raw+="\n":a.push(t),0;if(t=i.tokenizer.code(e))return e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?a.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,i.inlineQueue[i.inlineQueue.length-1].src=n.text),0;if(t=i.tokenizer.fences(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=i.tokenizer.heading(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=i.tokenizer.hr(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=i.tokenizer.blockquote(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=i.tokenizer.list(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=i.tokenizer.html(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=i.tokenizer.def(e))return e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?i.tokens.links[t.tag]||(i.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,i.inlineQueue[i.inlineQueue.length-1].src=n.text),0;if(t=i.tokenizer.table(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=i.tokenizer.lheading(e))return e=e.substring(t.raw.length),a.push(t),0;if(r=e,i.options.extensions&&i.options.extensions.startBlock){var l,u=1/0,c=e.slice(1);i.options.extensions.startBlock.forEach((function(e){"number"==typeof(l=e.call({lexer:this},c))&&l>=0&&(u=Math.min(u,l))})),u<1/0&&u>=0&&(r=e.substring(0,u+1))}if(i.state.top&&(t=i.tokenizer.paragraph(r)))return n=a[a.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=n.text):a.push(t),o=r.length!==e.length,e=e.substring(t.raw.length),0;if(t=i.tokenizer.text(e))return e=e.substring(t.raw.length),(n=a[a.length-1])&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=n.text):a.push(t),0;if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(s),1;throw new Error(s)}};e&&(0===(l=u())||1!==l););return this.state.top=!0,a}},{key:"inline",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}},{key:"inlineTokens",value:function(e){var t,n,r,o,i,a,l=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=e;if(this.tokens.links){var s=Object.keys(this.tokens.links);if(s.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)s.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,o.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(var d,f=function(){if(i||(a=""),i=!1,l.options.extensions&&l.options.extensions.inline&&l.options.extensions.inline.some((function(n){return!!(t=n.call({lexer:l},e,u))&&(e=e.substring(t.raw.length),u.push(t),!0)})))return 0;if(t=l.tokenizer.escape(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=l.tokenizer.tag(e))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(t=l.tokenizer.link(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=l.tokenizer.reflink(e,l.tokens.links))return e=e.substring(t.raw.length),(n=u[u.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(t=l.tokenizer.emStrong(e,c,a))return e=e.substring(t.raw.length),u.push(t),0;if(t=l.tokenizer.codespan(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=l.tokenizer.br(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=l.tokenizer.del(e))return e=e.substring(t.raw.length),u.push(t),0;if(t=l.tokenizer.autolink(e,CH))return e=e.substring(t.raw.length),u.push(t),0;if(!l.state.inLink&&(t=l.tokenizer.url(e,CH)))return e=e.substring(t.raw.length),u.push(t),0;if(r=e,l.options.extensions&&l.options.extensions.startInline){var o,s=1/0,d=e.slice(1);l.options.extensions.startInline.forEach((function(e){"number"==typeof(o=e.call({lexer:this},d))&&o>=0&&(s=Math.min(s,o))})),s<1/0&&s>=0&&(r=e.substring(0,s+1))}if(t=l.tokenizer.inlineText(r,kH))return e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),i=!0,(n=u[u.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):u.push(t),0;if(e){var f="Infinite loop on byte: "+e.charCodeAt(0);if(l.options.silent)return console.error(f),1;throw new Error(f)}};e&&(0===(d=f())||1!==d););return u}}],[{key:"rules",get:function(){return{block:bH,inline:yH}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}]),e}(),NH=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"markdownReader",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"attrs",{enumerable:!0,configurable:!0,writable:!0,value:null}),this.kernel=t,this.parent=r}return Ke(e,[{key:"makeChildContext",value:function(){return new e(this.kernel,this.markdownReader,this)}},{key:"addAttr",value:function(e,t){null===this.attrs&&(this.attrs={}),this.attrs[e]=t}},{key:"getAttrs",value:function(){for(var e=this,t={};e&&!e.node;)t=Object.assign(Object.assign({},e.attrs),t),e=e.parent;return t}},{key:"getNode",value:function(){var e;return this.node?this.node:(null===(e=this.parent)||void 0===e?void 0:e.getNode())||null}},{key:"setNode",value:function(e){var t,n=null===(t=this.parent)||void 0===t?void 0:t.getNode();n&&Wo.appendChild(n,e),this.node=e}},{key:"createElement",value:function(e,t){return Wo.createElement(e,t)}},{key:"createText",value:function(e){return Wo.createTextNode(e)}},{key:"appendChild",value:function(e,t){return Wo.appendChild(e,t)}},{key:"transform",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wo.createFragment(),o=new e(this.kernel,this.markdownReader,null);o.setNode(r);var i=[o];return OH(t,(function(e){var t=i[i.length-1];if("text"===e.type)return e.tokens?n.transform(e.tokens,t.getNode()):Wo.appendChild(t.getNode(),Wo.createTextNode(e.raw,t.getAttrs())),!1;var r=n.markdownReader.getMarkdownReader(e.type);if(r){var o=t.makeChildContext();i.push(o);for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:e;this.data.unshift(e),this.data.push(t)}},{key:"newLine",value:function(){this.data.push("\n\n")}},{key:"toString",value:function(){var e=this.data.join("");return this.keepInline?e.replace(/[\n\r]/g," "):e}}]),e}(),DH=function(){function e(){Ye(this,e),Object.defineProperty(this,"writers",{enumerable:!0,configurable:!0,writable:!0,value:new Map})}return Ke(e,[{key:"write",value:function(e,t){var n=this,r=new EH(t);return RH([t],(function(e,t){var r,o,i,a,l;if("#text"===t.name)return e.append(t.data||""),(null===(r=t.attrs)||void 0===r?void 0:r.underline)&&e.wrap("",""),(null===(o=t.attrs)||void 0===o?void 0:o.bold)&&e.wrap("**"),(null===(i=t.attrs)||void 0===i?void 0:i.italic)&&e.wrap("_"),void((null===(a=t.attrs)||void 0===a?void 0:a.strikethrough)&&e.wrap("~"));var u=n.writers.get(t.name);if(u)for(var c=0;c ")})),!0}})}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),this.markdownReader.destroy(),this.markdownWriter.destroy()}}]),t}(ft);Object.defineProperty(IH,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:ZV.pluginName}),Object.defineProperty(IH,"Service",{enumerable:!0,configurable:!0,writable:!0,value:TH});var BH=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t){return e.wrap("`"),!1}}]),e}();function MH(e,t,n){return t=Qe(t),Xe(e,FH()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function FH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FH=function(){return!!e})()}var LH=["`","·"],UH=function(e){function t(){var e;return Ye(this,t),e=MH(this,t,arguments),Object.defineProperty(Je(e),"_handleMarkdownMatch",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){var n=e.createElement("code");zo.wrapInlineNode(e,t,n),e.setSelection([e.newRange(e.newPosition(n.parentNode,n.offset+1))])}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerElement(VV),e.registerAttr(UV),this._watchChange()}},{key:"afterInit",value:function(){var e,t=this.kernel,n=t.getService(zI.ID);n&&n.registerLakeNodeReader($V.NodeNames,new $V);var r=t.getService(zI.ID);r&&r.registerLakeNodeWriter(QV.NodeNames,new QV);var o=t.getService(UI.ID);o&&o.registerNodeHTMLWriter(GV.NodeNames,new GV);var i=t.getService(GI.ID);if(null===(e=t.getService(vF.ID))||void 0===e||e.registerMarkdownWriter("code",new BH),i)for(var a=0,l=LH;a0?e.setAttribute(t,"contentFontsize",n):e.removeAttribute(t,"contentFontsize")}}]),t}(ft);function VH(e){return e.length?Math.max.apply(Math,pn(e.map((function(e){return e.isTextNode()?e.attrs.fontsize||0:e.isElement()?VH(e.children):0})))):0}Object.defineProperty(UH,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:HV.pluginName}),Object.defineProperty(UH,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[qV]});const HH={targets:[ze.Text,ze.InlineCard],values:function(){return!0}};var zH=uI({pluginName:"color",attr:{color:"color"},toolbar:{color:"color"},command:{color:"color",clearColor:"clearColor"},service:{IColorKernelService:"IColorKernelService"}});function WH(e,t,n){return t=Qe(t),Xe(e,qH()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qH=function(){return!!e})()}var $H=function(e){function t(){var e;return Ye(this,t),e=WH(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:zH.attr.color}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){var n,r=e.getSelection();return Di.isInCard(r)&&(null===(n=r.firstRange.commonAncestorContainer)||void 0===n?void 0:n.hasCategory(ze.InlineCard))?pt:Cr(Qe(t.prototype),"getState",this).call(this,e)}},{key:"execute",value:function(e){return Cr(Qe(t.prototype),"execute",this).call(this,e,null)}}]),t}(Zl);function KH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.plugin.service.colorDisableHandlers);try{for(i.s();!(r=i.n()).done;)if((0,r.value)(o))return ht}catch(e){i.e(e)}finally{i.f()}return Di.isInCard(o)&&(null===(n=o.firstRange.commonAncestorContainer)||void 0===n?void 0:n.hasCategory(ze.InlineCard))?pt:Cr(Qe(t.prototype),"getState",this).call(this,e)}}]),t}(Zl);function XH(e,t,n){return t=Qe(t),Xe(e,QH()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function QH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QH=function(){return!!e})()}Object.defineProperty(JH,"ID",{enumerable:!0,configurable:!0,writable:!0,value:zH.command.color});var ZH=function(e){function t(){return Ye(this,t),XH(this,t,arguments)}return et(t,e),Ke(t,[{key:"readStyle",value:function(e,t,n){n&&e.addAttr(zH.attr.color,n)}}]),t}(LF);Object.defineProperty(ZH,"StyleNames",{enumerable:!0,configurable:!0,writable:!0,value:["color"]});var ez=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t,n){e.setAttr(zH.attr.color,n)}}]),e}(),tz=[["rgb(154, 240, 212),rgb(114, 191, 244)","rgb(112, 220, 254),rgb(252, 113, 245)","rgb(255, 104, 91),rgb(255, 134, 217)","rgb(255, 133, 114),rgb(255, 215, 124)"]],nz=[["rgb(42, 188, 191),rgb(56, 54, 221)","rgb(34, 73, 254),rgb(199, 74, 168)","rgb(255, 111, 4),rgb(243, 48, 171)","rgb(244, 170, 6),rgb(229, 70, 49)"]],rz={};function oz(e){if(e.startsWith("var"))return[e,void 0];var t=e.split(/,/g);if(t.length<=2)return t;var n=e.split(/\)\s*?,/);return n.length<2?n:[n[0]+")",n[1]]}function iz(e,t){if(!e)return e;if(rz[e])return t.isDark()?rz[e]:e;if(e.includes(",")){var n=cn(oz(e),2),r=n[0],o=n[1],i=t.toVisualValue(r);return o&&(i="".concat(i,",").concat(t.toVisualValue(o))),i}return t.toVisualValue(e)}function az(e,t){if(rz[e])return t.isDark()?rz[e]:e;if(e.includes(",")){var n=cn(oz(e),2),r=n[0],o=n[1],i=t.toPersistentValue(r);return o&&(i="".concat(i,",").concat(t.toPersistentValue(o))),i}return t.toPersistentValue(e)}function lz(e,t,n){return t=Qe(t),Xe(e,uz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function uz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uz=function(){return!!e})()}tz[0].forEach((function(e,t){rz[e]=nz[0][t],rz[nz[0][t]]=e}));var cz=function(e){function t(){return Ye(this,t),lz(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){if(n){var r=cn(oz(n),1)[0];e.addStyle("color",r)}}}]),t}(WF);Object.defineProperty(cz,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[zH.attr.color]});var sz=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n){n&&e.setStyle("color",n)}}]),e}();function dz(e,t,n){return t=Qe(t),Xe(e,fz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function fz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fz=function(){return!!e})()}Object.defineProperty(sz,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[zH.attr.color]});var hz=function(e){function t(){var e;return Ye(this,t),e=dz(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),Object.defineProperty(Je(e),"colorDisableHandlers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),e}return et(t,e),Ke(t)}(at);function pz(e,t,n){return t=Qe(t),Xe(e,vz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vz=function(){return!!e})()}Object.defineProperty(hz,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(zH.service.IColorKernelService)});var mz=function(e){function t(){return Ye(this,t),pz(this,t,arguments)}return et(t,e),Ke(t,[{key:"registerColorDisableHandler",value:function(e){this.colorDisableHandlers.push(e)}},{key:"destroy",value:function(){this.colorDisableHandlers=[]}}]),t}(hz);function gz(e,t,n){return t=Qe(t),Xe(e,bz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bz=function(){return!!e})()}var yz=function(e){function t(){return Ye(this,t),gz(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttr(zH.attr.color,HH)}},{key:"afterInit",value:function(){var e=this.kernel,t=e.getService(UI.ID);t&&t.registerHTMLStyleReader(ZH.StyleNames,new ZH);var n=e.getService(UI.ID);n&&n.registerAttrHTMLWriter(cz.AttrNames,new cz);var r=e.getService(zI.ID);r&&r.registerLakeStyleReader("color",new ez);var o=e.getService(zI.ID);o&&o.registerLakeAttrWriter(sz.AttrNames,new sz)}}]),t}(ft);Object.defineProperty(yz,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:zH.pluginName}),Object.defineProperty(yz,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[JH,$H]}),Object.defineProperty(yz,"Service",{enumerable:!0,configurable:!0,writable:!0,value:mz});const wz={widthMode:{targets:[ze.WidthModeBox,"table","collapse"],values:[Bl,Il]}};var kz=uI({pluginName:"container"});function Cz(e,t,n){return t=Qe(t),Xe(e,_z()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_z=function(){return!!e})()}var Nz=function(e){function t(){return Ye(this,t),Cz(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){e.setVirtual((function(){}))}}]),t}(AB);function Oz(e,t,n){return t=Qe(t),Xe(e,xz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function xz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xz=function(){return!!e})()}Object.defineProperty(Nz,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["alertHole"]});var Ez=function(e){function t(){return Ye(this,t),Oz(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){e.setVirtual((function(){}))}}]),t}(AB);function Dz(e,t,n){return t=Qe(t),Xe(e,Rz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Rz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rz=function(){return!!e})()}Object.defineProperty(Ez,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["containerHole"]});var Pz=function(e){function t(){return Ye(this,t),Dz(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttr(wz);var t=e.getService(zI.ID);t&&(t.registerLakeNodeWriter(Ez.NodeNames,new Ez),t.registerLakeNodeWriter(Nz.NodeNames,new Nz))}}]),t}(ft);Object.defineProperty(Pz,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:kz.pluginName});var Sz=uI({pluginName:"content",command:{wordCount:"wordCount",isEmpty:"isEmpty",getNodeContent:"getNodeContent",insertAtSelection:"insertAtSelection"},service:{IContentKernelService:"IContentKernelService"}});function Tz(e,t,n){return t=Qe(t),Xe(e,Az()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Az(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Az=function(){return!!e})()}var jz=function(e){function t(){return Ye(this,t),Tz(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return gt.NOT_EXECUTED}},{key:"getValue",value:function(){var e;if(null===(e=this.plugin.service)||void 0===e?void 0:e.isForceHasContent)return!1;var t=this.kernel.model.document.rootNode,n=t.childCount;if(0===n)return!0;if(1===n&&"p"===t.firstChild.nodeName){if(t.firstChild.isEmpty())return!0;if(1===t.firstChild.childCount&&t.firstChild.firstChild.isTextNode()&&t.firstChild.firstChild.isEmpty())return!0}return!1}}]),t}(wt);function Iz(e,t,n){return t=Qe(t),Xe(e,Bz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Bz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bz=function(){return!!e})()}Object.defineProperty(jz,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Sz.command.isEmpty});var Mz=function(e){function t(){return Ye(this,t),Iz(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return gt.NOT_EXECUTED}},{key:"getValue",value:function(){return Ih(this.kernel.getDocument("text/plain"))}}]),t}(wt);function Fz(e,t,n){return t=Qe(t),Xe(e,Lz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Lz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lz=function(){return!!e})()}Object.defineProperty(Mz,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Sz.command.wordCount});var Uz=function(e){function t(){var e;return Ye(this,t),e=Fz(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function Vz(e,t,n){return t=Qe(t),Xe(e,Hz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Hz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hz=function(){return!!e})()}Object.defineProperty(Uz,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(Sz.service.IContentKernelService)});var zz=function(e){function t(){var e;return Ye(this,t),e=Vz(this,t,arguments),Object.defineProperty(Je(e),"isForceHasContent",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"lockContentNotEmpty",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.isForceHasContent=!0,e.plugin._selfChange()}}),Object.defineProperty(Je(e),"releaseLockContentNotEmpty",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.isForceHasContent=!1,e.plugin._selfChange()}}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){}}]),t}(Uz);function Wz(e,t,n){return t=Qe(t),Xe(e,qz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qz=function(){return!!e})()}var $z=function(e){function t(){return Ye(this,t),Wz(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getNodeById(t);if(!o)return"";var i=r.selectNode(o);try{var a=Di.extractINode(r,i),l=this.kernel.writeData(n,a)||"";return e.commitJob(r),l}catch(e){return""}}}]),t}(wt);function Kz(e,t,n){return t=Qe(t),Xe(e,Yz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Yz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yz=function(){return!!e})()}Object.defineProperty($z,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Sz.command.getNodeContent});var Gz=function(e){function t(){return Ye(this,t),Kz(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getSelection();try{var i=this.kernel.readData(t,n);return r.setSelection(Di.insertINode(r,o,i)),e.commitJob(r),i}catch(e){return null}}}]),t}(wt);function Jz(e,t,n){return t=Qe(t),Xe(e,Xz()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Xz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xz=function(){return!!e})()}Object.defineProperty(Gz,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Sz.command.insertAtSelection});var Qz=function(e){function t(){var e;return Ye(this,t),e=Jz(this,t,arguments),Object.defineProperty(Je(e),"changeTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this,r=function(e){n.changeTimer&&clearTimeout(n.changeTimer),n.changeTimer=setTimeout((function(){n._change(),e&&e.mode!==He.OT&&n._selfChange()}))};e.on("document.ready",(function(){t.on(Zi,r)})),e.on("document.destroy",(function(){t.off(Zi,r)}))}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),this.changeTimer&&clearTimeout(this.changeTimer)}},{key:"_change",value:function(){this.kernel.emitEvent("change")}},{key:"_selfChange",value:function(){this.kernel.emitEvent("selfChange")}}]),t}(ft);Object.defineProperty(Qz,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Sz.pluginName}),Object.defineProperty(Qz,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[Mz,jz,$z,Gz]}),Object.defineProperty(Qz,"Service",{enumerable:!0,configurable:!0,writable:!0,value:zz});var Zz=uI({pluginName:"delete",command:{delete:"delete",deleteByRange:"deleteByRange",deleteToBlockEnd:"deleteToBlockEnd"}});function eW(e,t,n){return t=Qe(t),Xe(e,tW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tW=function(){return!!e})()}var nW=function(e){function t(){return Ye(this,t),eW(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){kt.fatal(!t.collapsed,"plugins/delete/src/kernel/commands/delete-by-range-command.ts:11");var n=e.newJob(),r=Di.deleteContent(n,n.newSelection(t),!0,!0,!1);n.setSelection(r),e.commitJob(n)}}]),t}(wt);function rW(e,t,n){return t=Qe(t),Xe(e,oW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oW=function(){return!!e})()}Object.defineProperty(nW,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Zz.command.deleteByRange});var iW=function(e){function t(){return Ye(this,t),rW(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.newJob();n=this.plugin.allowDeleteTable?n:this.plugin.allowDeleteTable;var o=r.getSelection();if(o.isCollapsed)do{var i=o.firstRange.start.node.closest(ze.Block);if(!i||i.nodeName!==r.defaultElementName)break;if(!zt.isLikeEmptyElement(i))break;if(r.document.rootNode.firstChild!==i||1===r.document.rootNode.childCount)break;return r.removeChild(i.parent,i),o=r.newSelection(r.newRange(r.newPosition(r.document.rootNode,0))),r.setSelection(o),void e.commitJob(r)}while(0);o=Di.deleteContent(r,o,!0,t,!1,n),Di.unCollapseAll(r,o),r.setSelection(o),e.commitJob(r)}}]),t}(wt);function aW(e,t,n){return t=Qe(t),Xe(e,lW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lW=function(){return!!e})()}Object.defineProperty(iW,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Zz.command.delete});var uW=function(e){function t(){return Ye(this,t),aW(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e){var t=e.newJob(),n=t.getSelection();if(!n.isCollapsed)return e.cancelJob(t),!1;var r=n.firstRange.start,o=r.node.closest(ze.Block);if(!o)return e.cancelJob(t),!1;var i=rr.alignmentToElement(t,r,ze.Block,"left");if(i.node.hasCategory(ze.Block)&&kt.fatal(i.node===o,"plugins/delete/src/kernel/commands/delete-to-block-end-command.ts:41"),i.node===o&&o.childCount===i.offset)return e.cancelJob(t),!1;var a=t.newRange(i,t.newPosition(o,o.childCount)),l=Di.deleteContent(t,t.newSelection(a),!0,!0,!1);return t.setSelection(l),e.commitJob(t),!0}}]),t}(wt);function cW(e,t,n){return t=Qe(t),Xe(e,sW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sW=function(){return!!e})()}Object.defineProperty(uW,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Zz.command.deleteToBlockEnd});var dW=function(e){function t(){var e;return Ye(this,t),e=cW(this,t,arguments),Object.defineProperty(Je(e),"_allowDeleteTable",{enumerable:!0,configurable:!0,writable:!0,value:!0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){}},{key:"disableDeleteTable",value:function(){this._allowDeleteTable=!1}},{key:"enableDeleteTable",value:function(){this._allowDeleteTable=!0}},{key:"allowDeleteTable",get:function(){return this._allowDeleteTable}}]),t}(ft);Object.defineProperty(dW,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Zz.pluginName}),Object.defineProperty(dW,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[iW,nW,uW]});var fW=uI({pluginName:"dropFile",command:{dropFile:"dropFile"}});function hW(e,t,n){return t=Qe(t),Xe(e,pW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function pW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pW=function(){return!!e})()}var vW=function(e){function t(){return Ye(this,t),hW(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return gt.NOT_EXECUTED}},{key:"getValue",value:function(){return!1}},{key:"execute",value:function(e,t){var n=e.newJob(),r=this.kernel.readData("Files",t,{from:QB,useMediaCard:this.plugin.option.useMediaCard});if(r){var o=Di.insertINode(n,n.getSelection(),r);n.setSelection(o),e.commitJob(n)}}}]),t}(wt);Object.defineProperty(vW,"ID",{enumerable:!0,configurable:!0,writable:!0,value:fW.command.dropFile});var mW={useMediaCard:!1},gW=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Object.assign({},mW,t)}return Ke(e,[{key:"useMediaCard",get:function(){return this._option.useMediaCard}}]),e}();function bW(e,t,n){return t=Qe(t),Xe(e,yW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yW=function(){return!!e})()}Object.defineProperty(gW,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:fW.pluginName});var wW=function(e){function t(){return Ye(this,t),bW(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(ft);Object.defineProperty(wW,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:fW.pluginName}),Object.defineProperty(wW,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:gW}),Object.defineProperty(wW,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[vW]});var kW=uI({pluginName:"fallbackCard"}),CW="inline",_W="block",NW=Ja(Ja({},CW,CW),_W,_W),OW=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t){var n,r,o=NW[null===(n=t.attrs)||void 0===n?void 0:n.cardType]||_W;return e.setNode(Wo.createCard(o,{cardName:t.name,cardValue:null===(r=t.attrs)||void 0===r?void 0:r.value},t.id)),!1}},{key:"destroy",value:function(){}}]),e}();function xW(e,t,n){return t=Qe(t),Xe(e,EW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function EW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EW=function(){return!!e})()}Object.defineProperty(OW,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:"*"});var DW=function(e){function t(){return Ye(this,t),xW(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){var o=NW[e.inode.cardType]||_W;e.setNode(Wo.createCard(o,{cardName:t,cardValue:n},r))}}]),t}(ZM);Object.defineProperty(DW,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["*"]});var RW=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n,r){(null==n?void 0:n.cardName)&&e.setNode(e.createBlockCard(n.cardName,n.cardValue,r))}}]),e}();function PW(e,t,n){return t=Qe(t),Xe(e,SW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function SW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SW=function(){return!!e})()}Object.defineProperty(RW,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["block","inline"]});var TW=function(e){function t(){return Ye(this,t),PW(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerInlineCard("inline"),e.registerBlockCard("block");var t=e.getService(zI.ID);t&&t.registerLakeCardReader(DW.NodeNames,new DW);var n=e.getService(qB.ID);n&&n.registerINodeCardReader(OW.CardName,new OW);var r=e.getService(zI.ID);r&&r.registerLakeCardWriter(RW.NodeNames,new RW)}}]),t}(ft);Object.defineProperty(TW,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:kW.pluginName});var AW="ms-office",jW="mac-office",IW="mind",BW="desgin",MW="pdf",FW="upload",LW="localdoc",UW=Ja(Ja(Ja(Ja(Ja(Ja(Ja({},AW,[]),jW,[]),IW,[]),BW,[]),MW,[]),FW,[]),LW,[]),VW=o(5015),HW=o.n(VW),zW={Pending:"pending",Done:"done",Error:"error",Uploading:"uploading",Transfering:"transfering"},WW={Upload:"upload",Transfer:"transfer"},qW="card",$W="embed",KW="title",YW="inline",GW="block";function JW(e,t,n){return t=Qe(t),Xe(e,XW()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function XW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XW=function(){return!!e})()}var QW={src:"",name:"",size:0,ext:"",source:"",status:zW.Pending,download:!1},ZW=function(e){function t(){return Ye(this,t),JW(this,t,arguments)}return et(t,e),Ke(t,[{key:"cardAlias",get:function(){return this.getMode()}},{key:"getTaskId",value:function(){return this._cardValue.taskId}},{key:"getTaskType",value:function(){return this._cardValue.taskType}},{key:"getName",value:function(){return this._cardValue.name}},{key:"setName",value:function(e){this._cardValue.name=e}},{key:"getExt",value:function(){return this._cardValue.ext}},{key:"setExt",value:function(e){this._cardValue.ext=e}},{key:"getSrc",value:function(){return this._cardValue.src}},{key:"setSrc",value:function(e){this._cardValue.src=e}},{key:"getStatus",value:function(){return this._cardValue.status}},{key:"setStatus",value:function(e){this._cardValue.status=e}},{key:"getType",value:function(){return this._cardValue.type}},{key:"setType",value:function(e){this._cardValue.type=e}},{key:"getSize",value:function(){return this._cardValue.size}},{key:"setSize",value:function(e){this._cardValue.size=e}},{key:"getMessage",value:function(){return this._cardValue.message||""}},{key:"setMessage",value:function(e){this._cardValue.message=e}},{key:"getMode",value:function(){return this._cardValue.mode||$W}},{key:"setMode",value:function(e){this._cardValue.mode=e}},{key:"getRuntimeMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];kt.fatal("boolean"==typeof e,"plugins/file/src/kernel/file-card-data.ts:251");var t=this._cardValue.mode;return e&&t===$W?qW:t||$W}},{key:"isEmbedMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return kt.fatal("boolean"==typeof e,"plugins/file/src/kernel/file-card-data.ts:262"),this.getRuntimeMode(e)===$W}},{key:"isTitleMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return kt.fatal("boolean"==typeof e,"plugins/file/src/kernel/file-card-data.ts:267"),this.getRuntimeMode(e)===KW}},{key:"isCardMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return kt.fatal("boolean"==typeof e,"plugins/file/src/kernel/file-card-data.ts:272"),this.getRuntimeMode(e)===qW}},{key:"getDownload",value:function(){return this._cardValue.download}},{key:"setDownload",value:function(e){this._cardValue.download=e}},{key:"isCompleted",value:function(){var e=this.getStatus();return!(!this.getSrc()&&![zW.Done,zW.Error].includes(e)&&this._cardValue.taskId)}},{key:"toJSON",value:function(){return Object.assign({},this._cardValue)}}],[{key:"fromLake",value:function(e,n){var r=n.type;if(HW()(e))return Jw()({},t.DefaultCardValue,{src:e});e.src&&e.status!==zW.Done&&(e.status=zW.Done);var o=e.mode;return r===YW&&(e.mode=KW,e.download=void 0===e.download||e.download),r===GW&&o===KW&&(e.mode=qW),Jw()({},t.DefaultCardValue,e)}},{key:"toLake",value:function(e){return e}},{key:"fromRepository",value:function(e){var t=e.copiedFileInfo,n={};return n.src=t.url,n.size=t.size,n.name=t.filename,n.ext=t.extname,n.status=zW.Done,n.source="transfer",n.mode=qW,Ll.setCardSpacingToValue(Tl,Jw()({},QW,n))}},{key:"fromTransfer",value:function(e,t){var n,r,o,i,a,l,u={};return u.taskId=t.id,u.taskType=WW.Transfer,u.status=zW.Transfering,u.name=null!==(n=null==e?void 0:e.name)&&void 0!==n?n:QW.name,u.size=null!==(r=null==e?void 0:e.size)&&void 0!==r?r:QW.size,u.type=null!==(o=null==e?void 0:e.type)&&void 0!==o?o:QW.type,u.ext=null!==(i=null==e?void 0:e.ext)&&void 0!==i?i:QW.ext,u.mode=null!==(a=null==e?void 0:e.mode)&&void 0!==a?a:QW.mode,u.download=null!==(l=null==e?void 0:e.download)&&void 0!==l?l:QW.download,Jw()({},QW,u)}},{key:"getInitCardValue",value:function(e,t){var n,r,o,i=t.type,a=t.getFileExtname,l={};return e&&(l.taskId=e.id,l.taskType=WW.Upload,e.file&&(l.name=null!==(n=e.file.name)&&void 0!==n?n:QW.name,l.size=null!==(r=e.file.size)&&void 0!==r?r:QW.size,l.type=null!==(o=e.file.type)&&void 0!==o?o:QW.type,l.ext=e.file.ext?e.file.ext:e.file.name?a(e.file.name):QW.ext)),l.download=i===YW,Ll.setCardSpacingToValue(Tl,Jw()({},QW,l))}}]),t}(Ll);Object.defineProperty(ZW,"DefaultCardValue",{enumerable:!0,configurable:!0,writable:!0,value:QW});var eq=uI({pluginName:"file",cardName:"localdoc",command:{insertFile:"insertFile"},toolbar:"note-file",cardSelect:{file:"file",localFile:"localFile",localDoc:"localDoc",uploadForLocalDoc:"uploadForLocalDoc",officeForLocalDoc:"officeForLocalDoc",macOfficeForLocalDoc:"macOfficeForLocalDoc",mindForLocalDoc:"mindForLocalDoc",designForLocalDoc:"designForLocalDoc",pdfForLocalDoc:"pdfForLocalDoc"},service:{fileKernelService:"IFileKernelService"}});function tq(e,t,n){return t=Qe(t),Xe(e,nq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function nq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nq=function(){return!!e})()}var rq=function(e){function t(){return Ye(this,t),tq(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ZW.fromLake(t,{type:YW});return this._execute(e,"file",r,n)}}]),t}(NM);Object.defineProperty(rq,"ID",{enumerable:!0,configurable:!0,writable:!0,value:eq.command.insertFile});var oq={getAttachmentFileAccept:function(e){return[]},getImageFileAccept:function(e){return[]},getAudioFileAccept:function(e){return[]},getVideoFileAccept:function(e){return[]},getLocalDocFileAccept:function(e,t){return kt(t in UW,"plugins/file/src/common/default-accept-util.ts:52"),[]}},iq={getPreviewUrl:null,getFileDownloadURL:null,accept:null,getFileExtname:function(e){if(!e)return"";var t;if(t="string"==typeof e?e:e.name){if((t=t.toLowerCase()).endsWith(".mindnode.zip"))return"mindnode.zip";if(t.endsWith(".xmind.zip"))return"xmind.zip";if(t.endsWith(".mmap.zip"))return"mmap.zip";if(t.endsWith(".mpp.zip"))return"mpp.zip"}var n=t&&t.split(".").pop()||"",r=e instanceof File&&e.type&&Qf[e.type];return r?r.includes(n)?n:r[0]:n},acceptUtil:oq,migrationHost:!1},aq=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"getFileExtname",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},iq,t),this.getFileExtname=this._option.getFileExtname}return Ke(e,[{key:"accept",get:function(){return this._option.accept}},{key:"acceptUtil",get:function(){return this._option.acceptUtil}},{key:"migrationHost",get:function(){return this._option.migrationHost}},{key:"getPreviewUrl",value:function(e){var t=this._option.getPreviewUrl;return t?t(e):e}},{key:"getFileDownloadURL",value:function(e){var t=this._option.getFileDownloadURL;return t?t(e):e}}]),e}();function lq(e,t,n){return t=Qe(t),Xe(e,uq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function uq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uq=function(){return!!e})()}Object.defineProperty(aq,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:RL.FILE.OPTION_NAME});var cq=function(e){function t(e){var n;return Ye(this,t),n=lq(this,t),Object.defineProperty(Je(n),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"readFile",value:function(e,t){if((null==t?void 0:t.from)===ZB&&"localDoc"===(null==t?void 0:t.category)){var n=e._$neUploadTask;if(n)return Wo.createCard("localdoc",ZW.getInitCardValue(n,{type:GW,getFileExtname:this.plugin.option.getFileExtname}))}}}]),t}(FM);function sq(e,t,n){return t=Qe(t),Xe(e,dq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function dq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dq=function(){return!!e})()}var fq=function(e){function t(e,n){var r;return Ye(this,t),r=sq(this,t),Object.defineProperty(Je(r),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return et(t,e),Ke(t,[{key:"readFile",value:function(e){var t,n=null===(t=e.extName)||void 0===t?void 0:t.toLowerCase();if(this._plugin.option.acceptUtil.getAttachmentFileAccept(this._plugin.option.accept).includes("."+n)){var r=e._$neUploadTaskId;if(r)return Wo.createCard(RL.FILE.NODE_NAME,ZW.getInitCardValue({id:r,file:e.file},{type:YW,getFileExtname:this._plugin.option.getFileExtname}),mr(9))}else this._kernel.emitEvent("unSupportFileUpload",e)}}]),t}(FM);Object.defineProperty(fq,"FileTypes",{enumerable:!0,configurable:!0,writable:!0,value:"*"});var hq=function(){function e(){Ye(this,e)}return Ke(e,[{key:"destroy",value:function(){}},{key:"read",value:function(){return!0}}]),e}();Object.defineProperty(hq,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:RL.LOCAL_DOC.NODE_NAME});var pq=function(){function e(){Ye(this,e)}return Ke(e,[{key:"destroy",value:function(){}},{key:"read",value:function(){return!0}}]),e}();Object.defineProperty(pq,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:RL.FILE.NODE_NAME});var vq=o(3812),mq=o.n(vq);function gq(e,t,n){return t=Qe(t),Xe(e,bq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bq=function(){return!!e})()}var yq=function(e){function t(e){var n;return Ye(this,t),n=gq(this,t),Object.defineProperty(Je(n),"option",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){if(this.option.migrationHost){var o=new URL(n.src);o.hostname.endsWith(".yuque.com")&&(o.hostname="string"==typeof this.option.migrationHost?this.option.migrationHost:"yuque.antfin-inc.com",o.pathname="/api/v2/servicify/migration/attachments".concat(o.pathname),n.src=o.toString())}mq()(n.collapsed)&&(n.mode=n.collapsed?qW:$W);var i=Wo.createCard(RL.LOCAL_DOC.NODE_NAME,ZW.fromLake(n,{type:GW}),r);e.setNode(i)}}]),t}(ZM);function wq(e,t,n){return t=Qe(t),Xe(e,kq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kq=function(){return!!e})()}var Cq=function(e){function t(e){var n;return Ye(this,t),n=wq(this,t),Object.defineProperty(Je(n),"option",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){if(this.option.migrationHost){var o=new URL(n.src);o.hostname.endsWith(".yuque.com")&&(o.hostname="string"==typeof this.option.migrationHost?this.option.migrationHost:"yuque.antfin-inc.com",o.pathname="/api/v2/servicify/migration/attachments".concat(o.pathname),n.src=o.toString())}var i=Wo.createCard(RL.FILE.NODE_NAME,ZW.fromLake(n,{type:YW}),r);e.setNode(i)}}]),t}(ZM);function _q(e,t,n){return t=Qe(t),Xe(e,Nq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Nq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nq=function(){return!!e})()}var Oq=function(e){function t(e){var n;return Ye(this,t),n=_q(this,t),Object.defineProperty(Je(n),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:null}),n._plugin=e,n}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n=Ru()(t,"attrs.value",{}),r=n.src,o=n.download,i=n.name;if(r){var a=this._plugin.option,l=o?a.getFileDownloadURL(r):a.getPreviewUrl(r),u=e.createElement("div",{className:"ne-localdoc"}),c=e.createElement("a",{attrs:{href:l}});e.appendChild(c,e.createTextNode(i)),e.appendChild(u,c),e.setNode(u)}}}]),t}(EB);function xq(e,t,n){return t=Qe(t),Xe(e,Eq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Eq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eq=function(){return!!e})()}var Dq=function(e){function t(){return Ye(this,t),xq(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n=Ru()(t,"attrs.value",{}),r=n.src,o=n.name;if(r){var i=e.createElement("a",{className:"ne-card-file",attrs:{href:r}});e.appendChild(i,e.createTextNode("📎"+o)),e.setNode(i)}}}]),t}(EB),Rq=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n,r){var o=e.createBlockCard(RL.LOCAL_DOC.LAKE_NAME,ZW.toLake(n),r);e.setNode(o)}}]),e}(),Pq=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n,r){var o=e.createInlineCard(RL.FILE.LAKE_NAME,ZW.toLake(n),r);e.setNode(o)}}]),e}();function Sq(e,t,n){return t=Qe(t),Xe(e,Tq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Tq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tq=function(){return!!e})()}var Aq=function(e){function t(){return Ye(this,t),Sq(this,t,arguments)}return et(t,e),Ke(t,[{key:"getFileAcceptUtil",value:function(){return this.plugin.option.acceptUtil}},{key:"getFileExtname",value:function(e){return this.plugin.option.getFileExtname(e)}},{key:"destroy",value:function(){}}]),t}(fF),jq=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t){var n=Ru()(t,"attrs.value",{}),r=n.name,o=n.src,i="[".concat(r,"](").concat(o||"",")");return"inline"===t.cardType?e.append(i):(e.append(i),e.newLine()),!0}}]),e}();function Iq(e,t,n){return t=Qe(t),Xe(e,Bq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Bq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bq=function(){return!!e})()}var Mq=function(e){function t(){return Ye(this,t),Iq(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerInlineCard(t.cardName),e.registerBlockCard(t.blockCardName)}},{key:"afterInit",value:function(){var e,n=this.kernel,r=n.getService(zI.ID);r&&(r.registerLakeCardReader(RL.FILE.UI_NAME,new Cq(this.option)),r.registerLakeCardReader(RL.LOCAL_DOC.UI_NAME,new yq(this.option)));var o=n.getService(zI.ID);o&&(o.registerLakeCardWriter(t.cardName,new Pq),o.registerLakeCardWriter(t.blockCardName,new Rq));var i=n.getService(qB.ID);i&&(i.registerINodeCardReader(pq.CardName,new pq),i.registerINodeCardReader(hq.CardName,new hq));var a=n.getService(UI.ID);a&&(a.registerNodeHTMLWriter(t.cardName,new Dq),a.registerNodeHTMLWriter(t.blockCardName,new Oq(this)));var l=n.getService(HB.ID);null==l||l.registerFileReader(fq.FileTypes,new fq(this,this.kernel)),null==l||l.registerFileReader(this.option.acceptUtil.getLocalDocFileAccept(this.option.accept,LW),new cq(this)),null===(e=n.getService(vF.ID))||void 0===e||e.registerMarkdownWriter([t.cardName,t.blockCardName],new jq)}}]),t}(ft);function Fq(e,t,n){return t=Qe(t),Xe(e,Lq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Lq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lq=function(){return!!e})()}Object.defineProperty(Mq,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:eq.pluginName}),Object.defineProperty(Mq,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:aq}),Object.defineProperty(Mq,"cardName",{enumerable:!0,configurable:!0,writable:!0,value:RL.FILE.NODE_NAME}),Object.defineProperty(Mq,"blockCardName",{enumerable:!0,configurable:!0,writable:!0,value:RL.LOCAL_DOC.NODE_NAME}),Object.defineProperty(Mq,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[rq]}),Object.defineProperty(Mq,"Service",{enumerable:!0,configurable:!0,writable:!0,value:Aq});var Uq=function(e){function t(){return Ye(this,t),Fq(this,t,arguments)}return et(t,e),Ke(t,[{key:"registerFileReader",value:function(e,t){this.plugin.fileReaderManager.registerFileReader(e,t)}},{key:"registerPreFileReader",value:function(e,t){this.plugin.fileReaderManager.registerPreFileReader(e,t)}},{key:"destroy",value:function(){}}]),t}(HB);function Vq(e,t,n){return t=Qe(t),Xe(e,Hq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Hq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hq=function(){return!!e})()}var zq={checkFileSize:function(){return null},getMessageByCode:function(){}},Wq=function(e){function t(e){var n;return Ye(this,t),n=Vq(this,t),Object.defineProperty(Je(n),"_option",{enumerable:!0,configurable:!0,writable:!0,value:null}),n._option=Jw()({},zq,e),n}return et(t,e),Ke(t,[{key:"checkFileSize",value:function(e,t){return this._option.checkFileSize(e,t)}},{key:"getErrorMessageByCode",value:function(e){return this._option.getMessageByCode(e)}}]),t}(ut);function qq(e,t,n){return t=Qe(t),Xe(e,$q()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($q=function(){return!!e})()}Object.defineProperty(Wq,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"fileReader"});var Kq=function(e){function t(){return Ye(this,t),qq(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return gt.NOT_EXECUTED}},{key:"getValue",value:function(){return!1}},{key:"execute",value:function(e,t,n){var r,o=e.newJob(),i=this.kernel,a=o.getSelection(),l=i.readData("Files",t,n);if(l){var u=this._getSelectionAttrs(o,a);null===(r=l.children)||void 0===r||r.forEach((function(e){e.attrs=Object.assign(Object.assign({},u),e.attrs)})),o.setSelection(Di.insertINode(o,o.getSelection(),l)),e.commitJob(o)}else e.cancelJob(o)}},{key:"_getSelectionAttrs",value:function(e,t){var n,r;if(t.firstRange.start.node.isTextNode())r=t.firstRange.start.node.attrs;else if(t.firstRange.start.node.hasCategory(ze.TextContainer)){var o=t.firstRange.start,i=o.node,a=o.offset;r=null===(n=i.children[t.collapsed?a-1:a])||void 0===n?void 0:n.attrs}return r&&(r=Object.keys(r).reduce((function(t,n){return e.acceptAttr(ze.Text,n,r[n])&&(t[n]=r[n]),t}),{})),r}}]),t}(gt),Yq=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_preReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_readers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_fileService",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._plugin=t,this._fileService=t.kernel.requireService(fF.ID)}return Ke(e,[{key:"registerPreFileReader",value:function(e,t){Array.isArray(e)||(e=[e]),this._register(this._preReaders,e,t)}},{key:"registerFileReader",value:function(e,t){Array.isArray(e)||(e=[e]),this._register(this._readers,e,t)}},{key:"read",value:function(e,t,n){var r=this,o=this._preReaders,i=this._readers,a=this._getPreReaderContext(),l=t.map((function(e){return{type:e.type,extName:r._fileService.getFileExtname((e.name||"").toLowerCase()),file:e}})).map((function(e){var t=e.type,l=e.extName,u=r._getReader(o,t,l),c=!0;u&&!1===u.preReadFile(a,e,n)&&(c=!1);var s=r._getReader(o,LL.all);if(c&&s&&!1===s.preReadFile(a,e,n))return null;var d=null,f=r._getReader(i,t,l);if(f&&(d=f.readFile(e,n)),d)return d;var h=r._getReader(i,LL.all);return h?h.readFile(e,n):null})).filter(Boolean);return l.length?Wo.createFragment(l):null}},{key:"_getPreReaderContext",value:function(){var e=this;return{checkFileSize:function(t,n){return e._plugin.option.checkFileSize(t,n)},getErrorMessageByCode:function(t,n){return e._plugin.option.getErrorMessageByCode(t)}}}},{key:"_register",value:function(e,t,n){t.forEach((function(t){kt.fatal(!e[t],"already registered "+t,"plugins/file-reader/src/kernel/lib/file-reader-manager.ts:129"),e[t]=n}))}},{key:"_getReader",value:function(e,t,n){return t&&e[t]?e[t]:n?e[n=n.toLowerCase()]||e["."+n]:null}},{key:"destroy",value:function(){this._plugin=null,this._preReaders={},this._readers={}}}]),e}(),Gq=uI({pluginName:"fileReader"});function Jq(e,t,n){return t=Qe(t),Xe(e,Xq()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Xq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xq=function(){return!!e})()}var Qq=function(e){function t(){var e;return Ye(this,t),e=Jq(this,t,arguments),Object.defineProperty(Je(e),"_fileReaderManager",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._fileReaderManager=new Yq(this),e.registerReader("Files",this._fileReaderManager),e.registerCommand("insertFiles",new Kq)}},{key:"fileReaderManager",get:function(){return this._fileReaderManager}}]),t}(ft);Object.defineProperty(Qq,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Gq.pluginName}),Object.defineProperty(Qq,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Wq}),Object.defineProperty(Qq,"Service",{enumerable:!0,configurable:!0,writable:!0,value:Uq});var Zq=uI({pluginName:"focus",command:{focus:"focus"}});function e$(e,t,n){return t=Qe(t),Xe(e,t$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function t$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t$=function(){return!!e})()}var n$=function(e){function t(){return Ye(this,t),e$(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){if("start"===t||"end"===t){var n,r=e.newJob();n="start"===t?Di.toStart(r.getSelection()):Di.toEnd(r.getSelection()),r.setSelection(n),e.commitJob(r)}}}]),t}(wt);function r$(e,t,n){return t=Qe(t),Xe(e,o$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function o$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o$=function(){return!!e})()}Object.defineProperty(n$,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Zq.command.focus});var i$=function(e){function t(){return Ye(this,t),r$(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(ft);Object.defineProperty(i$,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Zq.pluginName}),Object.defineProperty(i$,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[n$]});var a$=uI({pluginName:"meta",attr:{meta:"meta"},service:{IMetaService:"IMetaService"}});function l$(e,t,n){return t=Qe(t),Xe(e,u$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function u$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u$=function(){return!!e})()}var c$=function(e){function t(){var e;return Ye(this,t),e=l$(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);Object.defineProperty(c$,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(a$.service.IMetaService)});var s$=uI({pluginName:"typography",command:{typography:"typography",paragraphSpacing:"paragraphSpacing"},service:{ITypographyKernelService:"ITypographyKernelService"}});function d$(e,t,n){return t=Qe(t),Xe(e,f$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function f$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f$=function(){return!!e})()}var h$=function(e){function t(){var e;return Ye(this,t),e=d$(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);Object.defineProperty(h$,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(s$.service.ITypographyKernelService)});var p$=uI({pluginName:"fontsize",command:{fontsize:"fontsize",defaultFontsize:"defaultFontsize",clearDefaultFontsize:"clearDefaultFontsize"},toolbar:"fontsize"});function v$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.parent&&i.isConnected&&zo.removeAttribute(e,Wt.selectNodeContents(i),["fontsize"])}}catch(e){o.e(e)}finally{o.f()}}}]),t}(wt);function y$(e,t,n){return t=Qe(t),Xe(e,w$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function w$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w$=function(){return!!e})()}Object.defineProperty(b$,"ID",{enumerable:!0,configurable:!0,writable:!0,value:p$.command.clearDefaultFontsize});var k$=function(e){function t(){return Ye(this,t),y$(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.plugin.getDefaultFontsize();return n?r||void 0:(kt.fatal(this.kernel.hasExtendMethod("getTypographyDetail"),"plugins/fontsize/src/kernel/default-fontsize-command.ts:17"),r||(null===(t=this.kernel.getService(h$.ID))||void 0===t?void 0:t.getTypographyDetail().fontSize))}},{key:"execute",value:function(e,t){return this.plugin.setDefaultFontsize(t)}}]),t}(wt);Object.defineProperty(k$,"ID",{enumerable:!0,configurable:!0,writable:!0,value:p$.command.defaultFontsize});var C$=function(){function e(){Ye(this,e)}return Ke(e,[{key:"needPersistent",value:function(){return!1}},{key:"formatValue",value:function(e,t){return e}},{key:"validate",value:function(e,t){return!0}},{key:"isDefault",value:function(e){return void 0===e}}]),e}(),_$=[12,13,14,15,16,19,22,24];function N$(e,t,n){return t=Qe(t),Xe(e,O$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function O$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O$=function(){return!!e})()}var x$=function(e){function t(){return Ye(this,t),N$(this,t,arguments)}return et(t,e),Ke(t,[{key:"needPersistent",value:function(){return!0}},{key:"validate",value:function(e){return _$.includes(Number(e))||void 0===e}},{key:"isDefault",value:function(e){return void 0===e}}]),t}(C$);const E$={targets:[ze.Text,ze.InlineCard],values:function(e){var t=Number(e);return t>=12&&t<=48}};function D$(e,t,n){return t=Qe(t),Xe(e,R$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function R$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R$=function(){return!!e})()}var P$=function(e){function t(){var e;return Ye(this,t),e=D$(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function S$(e,t,n){return t=Qe(t),Xe(e,T$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function T$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T$=function(){return!!e})()}Object.defineProperty(P$,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IFontsizeService")});var A$=function(e){function t(){var e;return Ye(this,t),e=S$(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:"fontsize"}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){var n,r=e.getSelection();return Di.allBlockNodeHasCategory(r,[ze.Heading,It])?ht:Di.isInCard(r)&&(null===(n=r.firstRange.commonAncestorContainer)||void 0===n?void 0:n.hasCategory(ze.InlineCard))?pt:Cr(Qe(t.prototype),"getState",this).call(this,e)}},{key:"getValue",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Cr(Qe(t.prototype),"getValue",this).call(this,e);if(n)return r;if(null!==r)return r;var o=this.kernel.getService(P$.ID),i=this.kernel.getService(h$.ID);return kt.fatal(o,"plugins/fontsize/src/kernel/fontsize-command.ts:63"),kt.fatal(i,"plugins/fontsize/src/kernel/fontsize-command.ts:64"),this.plugin.getDefaultFontsize()||i.getTypographyDetail().fontSize}},{key:"execute",value:function(e,n){return Cr(Qe(t.prototype),"execute",this).call(this,e,n,ze.Heading)}}]),t}(Zl);Object.defineProperty(A$,"ID",{enumerable:!0,configurable:!0,writable:!0,value:p$.command.fontsize});var j$=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_defaultFontsize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),_$.includes(t)&&(this._defaultFontsize=t)}return Ke(e,[{key:"defaultFontsize",get:function(){return this._defaultFontsize||null}}]),e}();function I$(e,t,n){return t=Qe(t),Xe(e,B$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function B$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B$=function(){return!!e})()}Object.defineProperty(j$,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"defaultFontsize"});var M$=function(e){function t(){return Ye(this,t),I$(this,t,arguments)}return et(t,e),Ke(t,[{key:"getDefaultFontsize",value:function(){return this.plugin.getDefaultFontsize()}},{key:"destroy",value:function(){}}]),t}(P$),F$=1/2.54,L$=/([a-zA-Z]+)\s*$/;function U$(e){return 72*e}var V$={PC:function(e){return 12*e},CM:function(e){return U$(e*F$)},MM:function(e){return U$(.03937007874015748*e)},IN:U$,Q:function(e){return U$(.00984251968503937*e)},PT:function(e){return e}};function H$(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:96;return t=t.toUpperCase(),V$[t]?function(e){return e*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:96)/72}(V$[t](e),n):"PX"===t?e:null}var z$=[12,13,14,15,16,19,22,24,29,32,40,48];function W$(e){if(isNaN(e)||e<=0)return null;if(e>=48)return 48;if(e<=12)return 12;for(var t=0,n=z$.length-1;n>t;)Math.abs(e-z$[t])<=Math.abs(e-z$[n])?n--:t++;return z$[n]}function q$(e,t,n){return t=Qe(t),Xe(e,$$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($$=function(){return!!e})()}var K$={px:!0,in:!0,cm:!0,mm:!0,q:!0,pt:!0,pc:!0},Y$=function(e){function t(e){var n;return Ye(this,t),n=q$(this,t),Object.defineProperty(Je(n),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:null}),n._plugin=e,n}return et(t,e),Ke(t,[{key:"readStyle",value:function(e,t,n){var r=this._formatFontSize(n),o=this._plugin.getDocDefaultFontsize();r&&r!==o&&e.addAttr("fontsize",r)}},{key:"_formatFontSize",value:function(e){var t=function(e){var t=e.match(L$);return t&&t[1]}(e);if(!t)return null;if(!K$[t])return null;var n=parseFloat(e);return Number.isNaN(n)?null:(n>48?n=48:n<12&&(n=12),W$(H$(n,t)||n))}}]),t}(LF);Object.defineProperty(Y$,"StyleNames",{enumerable:!0,configurable:!0,writable:!0,value:["font-size"]});var G$={9:12,10:13,11:14,12:16,14:19,16:22,18:24,22:29,24:32,30:40,36:48,1515:15},J$=/^lake-fontsize-(\d{1,4})$/,X$=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t,n){n.split(" ").forEach((function(t){if(J$.test(t)){var n=G$[RegExp.$1];n&&e.setAttr("fontsize",n)}}))}}]),e}();function Q$(e,t,n){return t=Qe(t),Xe(e,Z$()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Z$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Z$=function(){return!!e})()}var eK=function(e){function t(e){var n;return Ye(this,t),n=Q$(this,t),Object.defineProperty(Je(n),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){var r;if(n){if(e.inode.id){var o=null===(r=this.kernel.document)||void 0===r?void 0:r.getNodeById(e.inode.id);if(null==o?void 0:o.closest(ze.Heading))return}e.addStyle("font-size","".concat(n,"px"))}}}]),t}(WF);Object.defineProperty(eK,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["fontsize"]});var tK={};Object.keys(G$).forEach((function(e){tK[G$[e]]=e}));var nK=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n){var r=tK[n];r&&e.addClassName("lake-fontsize-".concat(r))}}]),e}();function rK(e,t,n){return t=Qe(t),Xe(e,oK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oK=function(){return!!e})()}Object.defineProperty(nK,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["fontsize"]});var iK=function(e){function t(){return Ye(this,t),rK(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.registerAttr("fontsize",E$),this.editing.on("metachange",(function(e,n){var r=Number(null==e?void 0:e.defaultFontsize)||void 0,o=Number(null==n?void 0:n.defaultFontsize)||void 0;r!==o&&(t.kernel.emitPluginEvent("defaultFontsizeChange",{current:r,old:o}),t.kernel.emitEvent("defaultFontsizeChange",r,o))}))}},{key:"afterInit",value:function(){var e=this.kernel,t=e.getService(c$.ID);t&&t.registerMeta("defaultFontsize",new x$);var n=e.getService(UI.ID);n&&n.registerHTMLStyleReader(Y$.StyleNames,new Y$(this));var r=e.getService(zI.ID);r&&r.registerLakeAttrReader("class",new X$);var o=e.getService(UI.ID);o&&o.registerAttrHTMLWriter(eK.AttrNames,new eK(e));var i=e.getService(zI.ID);i&&i.registerLakeAttrWriter(nK.AttrNames,new nK)}},{key:"getDocDefaultFontsize",value:function(){var e;return this.getDefaultFontsize()||(null===(e=this.kernel.getService(h$.ID))||void 0===e?void 0:e.getTypographyDetail().fontSize)||15}},{key:"getDefaultFontsize",value:function(){var e;return Number(null===(e=this.kernel.getService(c$.ID))||void 0===e?void 0:e.getMeta("defaultFontsize"))||this.option.defaultFontsize}},{key:"setDefaultFontsize",value:function(e){var t,n;if(_$.includes(e)){var r=this.getDefaultFontsize();if(r===e)return!1;var o=e;e===(null===(t=this.kernel.getService(h$.ID))||void 0===t?void 0:t.getTypographyDetail().fontSize)&&(o=void 0),null===(n=this.kernel.getService(c$.ID))||void 0===n||n.setMeta("defaultFontsize",o),this.kernel.emitPluginEvent("defaultFontsizeChange",{current:o,old:r}),this.kernel.emitEvent("defaultFontsizeChange",o,r)}}}]),t}(ft);function aK(e,t,n){return t=Qe(t),Xe(e,lK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lK=function(){return!!e})()}Object.defineProperty(iK,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:p$.pluginName}),Object.defineProperty(iK,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:j$}),Object.defineProperty(iK,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[A$,k$,b$]}),Object.defineProperty(iK,"Service",{enumerable:!0,configurable:!0,writable:!0,value:M$});var uK=function(e){function t(){var e;return Ye(this,t),e=aK(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function cK(e,t,n){return t=Qe(t),Xe(e,sK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sK=function(){return!!e})()}Object.defineProperty(uK,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IFormatKernelService")});var dK=function(e){function t(){var e;return Ye(this,t),e=cK(this,t,arguments),Object.defineProperty(Je(e),"ignoreAttrNames",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),e}return et(t,e),Ke(t,[{key:"registerKeepBlockAttrName",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){t.ignoreAttrNames.add(e)})):this.ignoreAttrNames.add(e)}},{key:"getKeepBlockAttrNames",value:function(){return Array.from(this.ignoreAttrNames)}},{key:"destroy",value:function(){this.ignoreAttrNames.clear()}}]),t}(uK),fK=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_formatData",{enumerable:!0,configurable:!0,writable:!0,value:t}),kt.fatal(t,"plugins/format-painter/src/kernel/paint-format-data.ts:12")}return Ke(e,[{key:"getData",value:function(){return this._formatData}}]),e}();function hK(e,t,n,r){return t.cloneByRange(t.ranges.map((function(t){return zo.replaceBlockNodeAndContentTextAttr(e,t,n.blockNodeName||void 0,n.blockNodeAttrs||void 0,n.textAttrs||void 0,r)})))}var pK=uI({pluginName:"formatPainter",command:{paintFormat:"paintFormat"},toolbar:"formatPainter"});function vK(e,t,n){return t=Qe(t),Xe(e,mK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mK=function(){return!!e})()}var gK=function(e){function t(){return Ye(this,t),vK(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return Di.isInCard(t)||Di.isInHole(t)?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"getValue",value:function(e){if(this.getState(e)===gt.UNAVAILABLE)return null;var t=e.getSelection(),n=t.firstRange.start.node,r=zt.closest(t.firstRange.start.node,ze.Block),o=null,i=null;r&&function(e,t){if(t.isCollapsed)return!0;var n=zo.enlargeRangeInBlockNode(e,t.firstRange);return!(n.start.node!==n.end.node||!n.start.node.hasCategory(ze.Block)||0!==n.start.offset||n.end.offset!==n.end.node.childCount)}(e,t)&&(o=r.nodeName,i=lr(r.attrs));var a=null;return n.isTextNode()&&(a=lr(n.attrs)),new fK({blockNodeName:o,blockNodeAttrs:i,textAttrs:a})}},{key:"execute",value:function(e,t){if(!t)return!1;var n=e.newJob(),r=function(e,t,n,r){if(t.isCardSelection)return t;if(Di.isUnbreakable(t))return hK(e,t,n,r);var o=t.firstRange;if(o.collapsed&&o.start.node.hasCategory([ze.Hole,ze.TableHole]))return t;if(o.collapsed){if(!zt.closest(o.start.node,ze.Block)){kt.fatal(o.start.node.hasCategory([ze.Root,ze.LikeRoot]),"plugins/format-painter/src/kernel/commands/helper/exec-format.ts:40");var i=rr.makeSureAtInput(e,o.start);return hK(e,e.newSelection(e.newRange(i)),n,r)}return hK(e,t,n,r)}var a=o.start.node,l=o.end.node,u=zt.closest(a,ze.Block),c=zt.closest(l,ze.Block);return u&&c&&u===c?function(e,t,n){var r=n.textAttrs,o=zo.splitTextContent(e,t.firstRange);return zo.walkRange(o,(function(t){if(t.isTextNode()){var n=t.attrs;Object.keys(n).forEach((function(n){e.removeAttribute(t,n)})),r&&Object.keys(r).forEach((function(n){e.setAttribute(t,n,r[n])}))}})),t.cloneByRange(o)}(e,t,n):hK(e,t,n,r)}(n,n.getSelection(),t.getData(),this.plugin.service.getKeepBlockAttrNames());return n.setSelection(r),e.commitJob(n),!0}}]),t}(wt);function bK(e,t,n){return t=Qe(t),Xe(e,yK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yK=function(){return!!e})()}Object.defineProperty(gK,"ID",{enumerable:!0,configurable:!0,writable:!0,value:pK.command.paintFormat});var wK=function(e){function t(){return Ye(this,t),bK(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(ft);Object.defineProperty(wK,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:pK.pluginName}),Object.defineProperty(wK,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[gK]}),Object.defineProperty(wK,"Service",{enumerable:!0,configurable:!0,writable:!0,value:dK});const kK={collapsed:{targets:[ze.Heading],values:["true","false"]}};var CK=["color","bgColor","indexType"];function _K(e,t,n){return t=Qe(t),Xe(e,NK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NK=function(){return!!e})()}var OK=function(e){function t(){var e;return Ye(this,t),e=_K(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function xK(e,t,n){return t=Qe(t),Xe(e,EK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function EK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EK=function(){return!!e})()}Object.defineProperty(OK,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IHeadingKernelService")});var DK=function(e,t){return t},RK=function(e){function t(){var e;return Ye(this,t),e=xK(this,t,arguments),Object.defineProperty(Je(e),"_keepAttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"_valueProcessMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),e}return et(t,e),Ke(t,[{key:"keepAttrNames",get:function(){return this._keepAttrNames}},{key:"getValueProcess",value:function(e){return this._valueProcessMap.get(e)||DK}},{key:"registerStyleKeepBlockAttrs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DK;this._keepAttrNames.includes(e)||(this._valueProcessMap.set(e,t),this._keepAttrNames.push(e))}},{key:"destroy",value:function(){this._keepAttrNames.length=0}}]),t}(OK),PK={anchor:!1,folding:!0},SK=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},PK,t)}return Ke(e,[{key:"anchor",get:function(){return this._option.anchor}},{key:"folding",get:function(){return this._option.folding}}]),e}();function TK(e,t,n){return t=Qe(t),Xe(e,AK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function AK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AK=function(){return!!e})()}Object.defineProperty(SK,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"heading"});var jK=function(e){function t(){return Ye(this,t),TK(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return t.isCardSelection||t.isTableSelection?gt.UNAVAILABLE:t.firstRange.start.node.closest(ze.Heading)?gt.NOT_EXECUTED:gt.UNAVAILABLE}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===gt.UNAVAILABLE)return e.cancelJob(t),!1;var n=t.getSelection();n.collapsed||(n=Di.deleteContent(t,n)),kt.fatal(n.collapsed,"plugins/heading/src/kernel/commands/heading-break-line-command.ts:54");var r,o=n.firstRange.start.node.closest(ze.Heading);if("true"===o.attrs.collapsed&&function(e,t){var n=e.node;if(!e.isAtEnd)return!1;for(;n;){if(n===t)return!0;if(!n.parent||n!==n.parent.lastChild)return!1;n=n.parent}return!1}(n.firstRange.start,o)){var i=t.createElement(o.nodeName),a=zt.getLastNodeBelongsToHeadingNode(o);t.insertAfter(a.parent,i,a),r=t.newPosition(i,0)}else tn(n.firstRange.start)?r=rr.breakLine(t,n.firstRange.start,!0):("true"===o.attrs.collapsed&&t.setAttribute(o,"collapsed","false"),r=rr.breakLine(t,n.firstRange.start));return t.setSelection([t.newRange(r)]),e.commitJob(t),!0}}]),t}(wt);function IK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.plugin.getOtherSelection());try{for(o.s();!(r=o.n()).done;){var i=r.value.selection.firstRange,a=i.start,l=i.end;if(zt.isBelongsToHeadingNode(a.node,n)||zt.isBelongsToHeadingNode(l.node,n))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}},{key:"execute",value:function(){return!0}}]),t}(wt);function LK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.plugin.getOtherSelection());try{for(i.s();!(o=i.n()).done;){var a=o.value.selection.firstRange,l=a.start,u=a.end;if(zt.isBelongsToHeadingNode(l.node,r)||zt.isBelongsToHeadingNode(u.node,r))return e.cancelJob(n),!1}}catch(e){i.e(e)}finally{i.f()}var c="true"===r.attrs.collapsed;if(n.setAttribute(r,"collapsed",c?"false":"true"),!c){var s=n.getSelection().firstRange,d=s.start,f=s.end;if(zt.isBelongsToHeadingNode(d.node,r)||zt.isBelongsToHeadingNode(f.node,r)){var h=n.selectNodeContents(r);n.setSelection([n.newRange(h.firstRange.end)])}}return e.commitJob(n),!0}}]),t}(wt);function zK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(zt.getAncestorHeadingNodes(r));try{for(i.s();!(o=i.n()).done;){var a=o.value;"true"===a.attrs.collapsed&&n.setAttribute(a,"collapsed","false")}}catch(e){i.e(e)}finally{i.f()}return e.commitJob(n),!0}}]),t}(wt);function KK(e,t,n){return t=Qe(t),Xe(e,YK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function YK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YK=function(){return!!e})()}Object.defineProperty($K,"ID",{enumerable:!0,configurable:!0,writable:!0,value:"headingUnfold"});var GK=function(e){function t(){return Ye(this,t),KK(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){if(Cr(Qe(t.prototype),"getState",this).call(this,e)===ht)return ht;var n=e.getSelection().firstRange,r=n.start,o=n.end;return r.node.closest(ze.OnlyText)||o.node.closest(ze.OnlyText)?ht:pt}},{key:"getValue",value:function(e){var t=!1,n=new Set;return Di.fullWalkSelection(e.getSelection(),{enter:function(e){return!t&&(e.hasCategory([ze.Hole])?(t=!0,!1):(e.hasCategory(ze.Block)&&n.add(e.nodeName),n.size>1?(t=!0,!1):void 0))}}),t||n.size>1?"mixed":Array.from(n)[0]||"p"}},{key:"execute",value:function(e,t){var n=this,r=e.newJob(),o=r.getSelection(),i=Di.replaceBlockNode(r,o,(function(e,r){var o={};return Object.keys((null==r?void 0:r.attrs)||{}).forEach((function(i){var a,l;if(null===(a=n.plugin.service)||void 0===a?void 0:a.keepAttrNames.includes(i)){var u=n.plugin.service.getValueProcess(i)(e,null===(l=null==r?void 0:r.attrs)||void 0===l?void 0:l[i]);e.acceptAttr(t,i,u)&&(o[i]=u)}})),(null==r?void 0:r.hasCategory(ze.Heading))?e.createElement(t,o,r.id):e.createElement(t,o)}),!1,CK);return Di.unCollapseAll(r,o),r.setSelection(i),e.commitJob(r),!0}}]),t}(zl);Object.defineProperty(GK,"ID",{enumerable:!0,configurable:!0,writable:!0,value:"style"});var JK=uI({pluginName:"heading",toolbar:{style:"style"},cardSelect:{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"}});function XK(e,t,n){return t=Qe(t),Xe(e,QK()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function QK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QK=function(){return!!e})()}var ZK=function(e){function t(e){var n;return Ye(this,t),n=XK(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._kernel=e,n}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){var n=t.name;e.setNode(Wo.createElement(n)),e.setIgnoreAttrs("bold","fontsize")}}]),t}(HM);Object.defineProperty(ZK,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["h1","h2","h3","h4","h5","h6"]});var eY=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ye(this,e),Object.defineProperty(this,"_allowFolding",{enumerable:!0,configurable:!0,writable:!0,value:t})}return Ke(e,[{key:"destroy",value:function(){}},{key:"read",value:function(e,t){var n;this._allowFolding||null===(n=t.attrs)||void 0===n||delete n.collapsed,e.setNode(t)}}]),e}();Object.defineProperty(eY,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["h1","h2","h3","h4","h5","h6"]});var tY=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ye(this,e),Object.defineProperty(this,"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_allowFolding",{enumerable:!0,configurable:!0,writable:!0,value:n})}return Ke(e,[{key:"read",value:function(e,t){var n,r={};"true"===(null===(n=t.attrs)||void 0===n?void 0:n.collapsed)&&this._allowFolding&&(r.collapsed="true"),e.setNode(Wo.createElement(t.name,r))}}]),e}();Object.defineProperty(tY,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["h1","h2","h3","h4","h5","h6"]});var nY,rY="traditional",oY="classic";!function(e){e.TRADITIONAL="traditional",e.CLASSIC="classic"}(nY||(nY={}));const iY=Ja(Ja({},nY.TRADITIONAL,{h1:{fontSize:"28px",lineHeight:"36px",margin:"7px 0"},h2:{fontSize:"24px",lineHeight:"32px",margin:"7px 0"},h3:{fontSize:"20",lineHeight:"28px",margin:"7px 0"},h4:{fontSize:"16px",lineHeight:"24px",margin:"7px 0"},h5:{fontSize:"15px",lineHeight:"24px",margin:"7px 0"},h6:{fontSize:"15px",lineHeight:"24px",margin:"7px 0",fontWeight:"normal"}}),nY.CLASSIC,{h1:{fontSize:"28px",lineHeight:"36px",margin:"26px 0 10px 0"},h2:{fontSize:"24px",lineHeight:"32px",margin:"21px 0 5px 0"},h3:{fontSize:"20",lineHeight:"28px",margin:"16px 0 5px 0"},h4:{fontSize:"16px",lineHeight:"24px",margin:"10px 0 5px 0"},h5:{fontSize:"15px",lineHeight:"24px",margin:"8px 0 5px 0"},h6:{fontSize:"15px",lineHeight:"24px",margin:"8px 0 5px 0",fontWeight:"normal"}});function aY(e,t,n){return t=Qe(t),Xe(e,lY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lY=function(){return!!e})()}var uY=function(e){function t(e){var n;return Ye(this,t),n=aY(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._kernel=e,n}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r=t.name;e.isInlineMode()&&(n=this._getTypography()===nY.TRADITIONAL?Object.assign({},iY[nY.TRADITIONAL][r]):Object.assign({},iY[nY.CLASSIC][r])),e.setNode(e.createElement(r,{style:n}))}},{key:"_getTypography",value:function(){return this._kernel.hasExtendMethod("getTypographyName")?this._kernel.getTypographyName():nY.TRADITIONAL}}]),t}(EB);function cY(e,t,n){return t=Qe(t),Xe(e,sY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sY=function(){return!!e})()}Object.defineProperty(uY,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["h1","h2","h3","h4","h5","h6"]});var dY=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Ye(this,t),e=cY(this,t),Object.defineProperty(Je(e),"_allowFolding",{enumerable:!0,configurable:!0,writable:!0,value:n}),e}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r=e.createElement(t.name);e.setNode(r),this._allowFolding&&"true"===(null===(n=t.attrs)||void 0===n?void 0:n.collapsed)&&e.setAttr("collapsed","true")}}]),t}(AB);function fY(e,t,n){return t=Qe(t),Xe(e,hY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hY=function(){return!!e})()}Object.defineProperty(dY,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["h1","h2","h3","h4","h5","h6"]});var pY={"#":"h1","##":"h2","###":"h3","####":"h4","#####":"h5","######":"h6"},vY=function(e){function t(){var e;return Ye(this,t),e=fY(this,t,arguments),Object.defineProperty(Je(e),"_selections",{enumerable:!0,configurable:!0,writable:!0,value:[]}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t,n,r=this;e.registerElement((t=this,n={bold:function(e){return!e},fontsize:function(e,n,r){return e||t.getHeadingFontSize(r)}},{h1:{id:Za,parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Heading,ze.AttrContext,ze.Clean,ze.TextContainer,ze.Brick],contextAttr:n},h2:{id:Za,parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Heading,ze.AttrContext,ze.Clean,ze.TextContainer,ze.Brick],contextAttr:n},h3:{id:Za,parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Heading,ze.AttrContext,ze.Clean,ze.TextContainer,ze.Brick],contextAttr:n},h4:{id:Za,parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Heading,ze.AttrContext,ze.Clean,ze.TextContainer,ze.Brick],contextAttr:n},h5:{id:Za,parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Heading,ze.AttrContext,ze.Clean,ze.TextContainer,ze.Brick],contextAttr:n},h6:{id:Za,parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Heading,ze.AttrContext,ze.Clean,ze.TextContainer,ze.Brick],contextAttr:n}})),e.registerAttr(kK),jc(this,this.editing,"collabSelectionChange",(function(e){var t=e.selections;r._selections=t}))}},{key:"afterInit",value:function(){var e=this,t=this.kernel,n=t.getService(UI.ID);n&&n.registerHTMLNodeReader(ZK.NodeNames,new ZK(t));var r=t.getService(UI.ID);r&&r.registerNodeHTMLWriter(uY.NodeNames,new uY(t));var o=t.getService(qB.ID);o&&o.registerINodeNodeReader(eY.NodeNames,new eY(this.option.folding));var i=t.getService(zI.ID);i&&i.registerLakeNodeReader(tY.NodeNames,new tY(t,this.option.folding));var a=t.getService(zI.ID);a&&a.registerLakeNodeWriter(dY.NodeNames,new dY(this.option.folding));var l=t.getService(GI.ID);l&&Object.keys(pY).forEach((function(t){var n=pY[t];l.registerMarkdownMatcher(WI.whiteSpace,new qI(e.editing,t,(function(t,r,o){var i=t.newSelection([t.newRange(t.newPosition(o,0))]);i=r.nodeName!==n?Di.replaceBlockNode(t,i,(function(t,r){var o={};return Object.keys(null==r?void 0:r.attrs).forEach((function(i){var a,l;if(null===(a=e.service)||void 0===a?void 0:a.keepAttrNames.includes(i)){var u=e.service.getValueProcess(i)(t,null===(l=null==r?void 0:r.attrs)||void 0===l?void 0:l[i]);t.acceptAttr(n,i,u)&&(o[i]=u)}})),(null==r?void 0:r.hasCategory(ze.Heading))?t.createElement(n,o,r.id):t.createElement(n,o)}),!1,CK):Di.replaceBlockNode(t,i,t.createElement("p"),!1,CK),Di.unCollapseAll(t,i),t.setSelection(i)})))}))}},{key:"getOtherSelection",value:function(){return this._selections}},{key:"destroy",value:function(){this._selections=[]}},{key:"getHeadingFontSize",value:function(e){return kt.fatal(this.kernel.hasExtendMethod("getTypographyDetail"),"plugins/heading/src/kernel/index.ts:189"),this.kernel.getTypographyDetail()[e]}}]),t}(ft);function mY(e,t,n){return t=Qe(t),Xe(e,gY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function gY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gY=function(){return!!e})()}Object.defineProperty(vY,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:JK.pluginName}),Object.defineProperty(vY,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:SK}),Object.defineProperty(vY,"Service",{enumerable:!0,configurable:!0,writable:!0,value:RK}),Object.defineProperty(vY,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[GK,HK,FK,jK,$K]});var bY=function(e){function t(){var e;return Ye(this,t),e=mY(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function yY(e,t,n){return t=Qe(t),Xe(e,wY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wY=function(){return!!e})()}Object.defineProperty(bY,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IHistoryService")});var kY=function(e){function t(){var e;return Ye(this,t),e=yY(this,t,arguments),Object.defineProperty(Je(e),"_context",{enumerable:!0,configurable:!0,writable:!0,value:e.plugin._context}),Object.defineProperty(Je(e),"disableHistory",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t,n;null===(n=(t=e._context).destroy)||void 0===n||n.call(t),e.plugin._stack.clear(),delete e._context.destroy}}),Object.defineProperty(Je(e),"lockHistory",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.plugin._stack.lock()}}),Object.defineProperty(Je(e),"unlockHistory",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.plugin._stack.unlock()}}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){}}]),t}(bY),CY=function(){function e(){Ye(this,e),Object.defineProperty(this,"_index",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_lockIndex",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_preventForward",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_capacity",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stack",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_frameClosed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}return Ke(e,[{key:"lock",value:function(){this._preventForward=!0,this._lockIndex=this._index}},{key:"unlock",value:function(){this._preventForward=!1,this._lockIndex=-1}},{key:"clear",value:function(){this._index=-1,this._lockIndex=-1,this._capacity=0,this._stack=[],this._frameClosed=!1}},{key:"canForward",value:function(){return this._index+1-1&&this._index>this._lockIndex}},{key:"add",value:function(e){this._addFrame(e),this._frameClosed=!0}},{key:"append",value:function(e){if(this._frameClosed||-1===this._index)return this._addFrame(e),void(this._frameClosed=!1);var t=this._stack[this._index];t.operations=t.operations.concat(e.operations),t.selection=e.selection}},{key:"closeFrame",value:function(){this._frameClosed=!0}},{key:"_addFrame",value:function(e){this._index++,this._preventForward=!1,this._stack[this._index]=e,this._capacity=this._index+1}},{key:"forward",value:function(){return this.canForward()?(this._frameClosed=!0,this._index++,this._stack[this._index]):null}},{key:"backward",value:function(){if(!this.canBackward())return null;this._frameClosed=!0;var e=this._stack[this._index];return this._index--,e}},{key:"rollback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(kt.fatal(e>=1,"plugins/history/src/kernel/stack.ts:98"),-1===this._index)return null;this._frameClosed=!0;for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:1,n=this._stack;if(!n.canBackward())return!1;var r=n.rollback(t),o=e.newJob(He.History);return r.forEach((function(e){e.operations.slice().reverse().forEach((function(e){return e.reverse(o)})),o.dangerDirectSetSelection(e.previousSelection)})),e.commitJob(o),!0}}]),t}(wt);function PY(e,t,n){return t=Qe(t),Xe(e,SY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function SY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SY=function(){return!!e})()}Object.defineProperty(RY,"ID",{enumerable:!0,configurable:!0,writable:!0,value:_Y.command.rollbackHistory});var TY=function(e){function t(){var e;return Ye(this,t),e=PY(this,t,arguments),Object.defineProperty(Je(e),"_stack",{enumerable:!0,configurable:!0,writable:!0,value:e.plugin._stack}),e}return et(t,e),Ke(t,[{key:"getState",value:function(){return this._stack.canBackward()?gt.NOT_EXECUTED:gt.UNAVAILABLE}},{key:"execute",value:function(e){var t=this._stack;if(!t.canBackward())return!1;var n=t.backward(),r=e.newJob(He.History);return n.operations.slice().reverse().forEach((function(e){return e.reverse(r)})),r.dangerDirectSetSelection(n.previousSelection),e.commitJob(r),!0}}]),t}(wt);function AY(e,t,n){return t=Qe(t),Xe(e,jY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function jY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jY=function(){return!!e})()}Object.defineProperty(TY,"ID",{enumerable:!0,configurable:!0,writable:!0,value:_Y.command.undo});var IY=function(e){function t(){var e;return Ye(this,t),e=AY(this,t,arguments),Object.defineProperty(Je(e),"_stack",{enumerable:!0,configurable:!0,writable:!0,value:new CY}),Object.defineProperty(Je(e),"_context",{enumerable:!0,configurable:!0,writable:!0,value:{destroy:function(){}}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this,r=this._stack,o=this._context;jc(o,e,"document.destroy",(function(){n._stack.clear()})),jc(o,t,"contentchange",(function(e){"user"===e.mode&&(e.isCommitted?r.add({operations:e.operations,selection:e.selection,previousSelection:e.previousSelection}):r.append({operations:e.operations,selection:e.selection,previousSelection:e.previousSelection}))})),jc(o,t,"selectionchange",(function(e){e.pure&&n._stack.closeFrame()}))}},{key:"disable",value:function(){}}]),t}(ft);Object.defineProperty(IY,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:_Y.pluginName}),Object.defineProperty(IY,"Service",{enumerable:!0,configurable:!0,writable:!0,value:kY}),Object.defineProperty(IY,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[xY,TY,RY]});var BY=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_state",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_parentNode",{enumerable:!0,configurable:!0,writable:!0,value:null})}return Ke(e,[{key:"destroy",value:function(){}},{key:"from",get:function(){var e;return null===(e=this._option)||void 0===e?void 0:e.from}},{key:"self",get:function(){var e;return null===(e=this._option)||void 0===e?void 0:e.self}},{key:"parentNode",get:function(){return this._parentNode}},{key:"hasState",value:function(e){return!!this._state[e]}},{key:"getState",value:function(e){return this._state[e]}},{key:"setState",value:function(e,t){this._state[e]=t}}]),e}();function MY(e,t,n){return t=Qe(t),Xe(e,FY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function FY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FY=function(){return!!e})()}var LY=function(e){function t(){return Ye(this,t),MY(this,t,arguments)}return et(t,e),Ke(t,[{key:"getChildContext",value:function(e){var n=new t(Object.assign({},this._option));return n._state=this._state,n._parentNode=e,n}}]),t}(BY);function UY(e,t,n){return t=Qe(t),Xe(e,VY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function VY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VY=function(){return!!e})()}var HY=function(e){function t(){var e;return Ye(this,t),e=UY(this,t,arguments),Object.defineProperty(Je(e),"_node",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"getChildContext",value:function(e){var n=new t(Object.assign({},this._option));return n._state=this._state,n._parentNode=e,n}},{key:"node",get:function(){return this._node}},{key:"setNode",value:function(e){this._node=e}}]),t}(BY),zY=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_cardReader",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_cardPreReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_nodePreReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_nodeReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Ke(e,[{key:"destroy",value:function(){delete this._kernel,delete this._cardReader,delete this._cardPreReaders,delete this._nodePreReaders,delete this._nodeReaders}},{key:"registerNodePreReader",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]),e.forEach((function(e){n._nodePreReaders[e]||(n._nodePreReaders[e]=[]),n._nodePreReaders[e].push(t)}))}},{key:"registerNodeReader",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]),e.forEach((function(e){n._nodeReaders[e]||(n._nodeReaders[e]=[]),n._nodeReaders[e].push(t)}))}},{key:"registerCardPreReader",value:function(e,t){this._cardPreReaders[e]=t}},{key:"registerCardReader",value:function(e,t){this._cardReader[e]=t}},{key:"read",value:function(e,t,n){var r,o,i=this;o="string"==typeof t?JSON.parse(t):t;var a=Array.isArray(o);a||(o=[o]);var l=Wo.createFragment(o);return o.map((function(e){return i._walkNode(new LY(n),new HY(n),l,e)})),(null===(r=l.children)||void 0===r?void 0:r.length)?a?(console.warn("Deprecated, fix me"),l.children):l.children[0]:null}},{key:"_walkNode",value:function(e,t,n,r){if(r.id&&!Of(r.id)&&delete r.id,"text"!==r.type)return"card"!==r.type?this._walkElement(e,t,n,r):this._walkCard(e,t,n,r)}},{key:"_walkElement",value:function(e,t,n,r){var o=this,i=r.name,a=this._nodePreReaders[i];if(a&&a.some((function(t){return!1===t.read(e.getChildContext(n),r)})))Wo.removeChild(n,r);else{var l=this._nodeReaders[i];l&&l.some((function(e){return!1===e.read(t.getChildContext(n),r)}))?Wo.removeChild(n,r):r.children&&r.children.forEach((function(i){o._walkNode(e.getChildContext(n),t.getChildContext(n),r,i)}))}}},{key:"_walkCard",value:function(e,t,n,r){var o=r.name,i=this._cardPreReaders[o];i&&!1===i.read(e.getChildContext(n),r)&&Wo.removeChild(n,r);var a=this._cardReader[o]||this._cardReader["*"];if(a){var l=t.getChildContext(n);if(!1===a.read(l,r)||l.node){var u=n.children.indexOf(r);l.node?n.children.splice(u,1,l.node):n.children.splice(u,1)}}else Wo.removeChild(n,r)}}]),e}();function WY(e,t,n){return t=Qe(t),Xe(e,qY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qY=function(){return!!e})()}var $Y=function(e){function t(){var e;return Ye(this,t),e=WY(this,t,arguments),Object.defineProperty(Je(e),"reader",{enumerable:!0,configurable:!0,writable:!0,value:new zY(e.kernel)}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){delete this.reader}},{key:"registerINodeCardPreReader",value:function(e,t){this.reader.registerCardPreReader(e,t)}},{key:"registerINodeCardReader",value:function(e,t){this.reader.registerCardReader(e,t)}},{key:"registerINodeNodePreReader",value:function(e,t){this.reader.registerNodePreReader(e,t)}},{key:"registerINodeNodeReader",value:function(e,t){this.reader.registerNodeReader(e,t)}}]),t}(qB),KY=uI({pluginName:"hr",cardName:"hr",command:{hr:"hr"},toolbar:"hr",cardSelect:"hr"});function YY(e,t,n){return t=Qe(t),Xe(e,GY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function GY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(GY=function(){return!!e})()}var JY=function(e){function t(){return Ye(this,t),YY(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return Di.isUnbreakable(t)?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.newJob();if(this.getState(r)===gt.UNAVAILABLE)return e.cancelJob(r),!1;var o=Ri.insertCardNode(r,r.getSelection(),"hr",t),i=o.selection,a=o.cardNode;return n?r.setSelection([r.newRange(r.newPosition(a,0))]):r.setSelection(i),e.commitJob(r),a.id}}]),t}(wt);function XY(e,t,n){return t=Qe(t),Xe(e,QY()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function QY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QY=function(){return!!e})()}Object.defineProperty(JY,"ID",{enumerable:!0,configurable:!0,writable:!0,value:KY.command.hr});var ZY=function(e){function t(){return Ye(this,t),XY(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e){e.setNode(Wo.createCard("hr")),e.freeze()}}]),t}(HM);function eG(e,t,n){return t=Qe(t),Xe(e,tG()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tG=function(){return!!e})()}Object.defineProperty(ZY,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["hr"]});var nG=function(e){function t(){return Ye(this,t),eG(this,t,arguments)}return et(t,e),Ke(t)}(GM);function rG(e,t,n){return t=Qe(t),Xe(e,oG()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oG=function(){return!!e})()}Object.defineProperty(nG,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:"hr"});var iG=function(e){function t(){return Ye(this,t),rG(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){var o=Wo.createCard("hr",n,r);e.setNode(o)}}]),t}(ZM);function aG(e,t,n){return t=Qe(t),Xe(e,lG()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lG=function(){return!!e})()}var uG=function(e){function t(){return Ye(this,t),aG(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){var t={};e.isInlineMode()&&(t={backgroundColor:"#e8e8e8",border:"1px solid transparent",margin:"18px 0"}),e.setNode(e.createElement("hr",{className:"ne-hr",style:t}))}}]),t}(EB);function cG(e,t,n){return t=Qe(t),Xe(e,sG()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sG=function(){return!!e})()}Object.defineProperty(uG,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["hr"]});var dG=function(e){function t(){return Ye(this,t),cG(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n,r){var o=e.createBlockCard("hr",n,r);e.setNode(o)}}]),t}(aF),fG=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e){return e.append("---\n\n"),!0}}]),e}();function hG(e,t,n){return t=Qe(t),Xe(e,pG()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function pG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pG=function(){return!!e})()}var vG=function(e){function t(){return Ye(this,t),hG(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBlockCard(t.cardName)}},{key:"afterInit",value:function(){var e,t,n,r,o,i,a,l=this.kernel;null===(e=l.getService(UI.ID))||void 0===e||e.registerHTMLNodeReader(ZY.NodeNames,new ZY),null===(t=l.getService($Y.ID))||void 0===t||t.registerINodeCardReader(nG.CardName,new nG),null===(n=l.getService(UI.ID))||void 0===n||n.registerNodeHTMLWriter(uG.NodeNames,new uG),null===(r=l.getService(zI.ID))||void 0===r||r.registerLakeCardReader("hr",new iG),null===(o=l.getService(zI.ID))||void 0===o||o.registerLakeCardWriter("hr",new dG),null===(i=l.getService(vF.ID))||void 0===i||i.registerMarkdownWriter("hr",new fG),null===(a=l.getService(GI.ID))||void 0===a||a.registerMarkdownMatcher(WI.enter,new qI(this.editing,/^[-*_—*]{3,6}$/,(function(e,t){var n=Ri.insertCardNode(e,e.newSelection([e.newRange(e.newPosition(t,0))]),"hr",null).cardNode;e.setSelection(e.newSelection(e.newRange(e.newPosition(n.parentNode,n.offset+1))))})))}}]),t}(ft);function mG(e,t,n){return t=Qe(t),Xe(e,gG()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function gG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gG=function(){return!!e})()}Object.defineProperty(vG,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:KY.pluginName}),Object.defineProperty(vG,"cardName",{enumerable:!0,configurable:!0,writable:!0,value:"hr"}),Object.defineProperty(vG,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[JY]});var bG=function(e){function t(e){var n;return Ye(this,t),n=mG(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._kernel=e,n}return et(t,e),Ke(t,[{key:"read",value:function(e,t){return this._kernel.readData("text/html",e,t)}},{key:"write",value:function(e,t){var n=e.document.getINode(t);return this._kernel.writeData("text/html",n,t)}}]),t}(qt);function yG(e,t,n){return t=Qe(t),Xe(e,wG()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wG=function(){return!!e})()}var kG=function(e){function t(){return Ye(this,t),yG(this,t,arguments)}return et(t,e),Ke(t,[{key:"reader",get:function(){return this.plugin.htmlReader}},{key:"writer",get:function(){return this.plugin.htmlWriter}},{key:"destroy",value:function(){}},{key:"read",value:function(e,t,n){return this.reader.read(e,t,n)}},{key:"registerHTMLAttributeReader",value:function(e,t){this.reader.registerAttrReader(e,t)}},{key:"registerHTMLNodeReader",value:function(e,t){this.reader.registerNodeReader(e,t)}},{key:"registerPreHTMLAttributeReader",value:function(e,t){this.reader.registerPreAttrReader(e,t)}},{key:"registerPreHTMLNodeReader",value:function(e,t){this.reader.registerPreNodeReader(e,t)}},{key:"registerPreHTMLStyleReader",value:function(e,t){this.reader.registerPreStyleReader(e,t)}},{key:"registerHTMLStyleReader",value:function(e,t){this.reader.registerStyleReader(e,t)}},{key:"registerAttrHTMLWriter",value:function(e,t){this.writer.registerAttrWriter(e,t)}},{key:"registerNodeHTMLWriter",value:function(e,t){this.writer.registerNodeWriter(e,t)}},{key:"registerPreTextWriter",value:function(e){this.writer.registerPreTextWriter(e)}}]),t}(UI),CG=uI({pluginName:"htmlDataSource"});function _G(e,t,n){Array.from(e).forEach((function(r){NG(OG(),{children:e},r,t,n)}))}function NG(e,t,n,r,o){var i,a,l,u,c;if("#text"===n.name){var s=n.data;if(""===s||(null==e?void 0:e.isStrictModel())&&""===s.replace(/\s/g,(function(e){return"\t"===e||"\n"===e||" "===e?e:""}))){var d=t.children.indexOf(n);if(kt.fatal(-1!==d,"plugins/html-data-source/src/kernel/lib/reader/helpers/walk-html-nodes.ts:58"),0===d)return void(null===(i=t.children)||void 0===i||i.splice(d,1));if("#text"!==(null===(l=null===(a=t.children)||void 0===a?void 0:a[d-1])||void 0===l?void 0:l.name))return void(null===(u=t.children)||void 0===u||u.splice(d,1))}}if(!(null===(c=n.attrs)||void 0===c?void 0:c["lake-read-ignore"])){var f=OG(e);r(f,n),f.isStopped()?o(n):n.children?(Array.from(n.children).forEach((function(e){NG(f,n,e,r,o)})),o(n)):o(n)}}function OG(e){var t=!1,n=!e||e.isStrictModel();return{stop:function(){t=!0},isStopped:function(){return t},setStrictMode:function(e){n=!!e},isStrictModel:function(){return n}}}var xG="#block",EG={head:!0,link:!0,meta:!0,script:!0},DG=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"_strictMode",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_meta",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_inSkipMode",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_skipNode",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_parentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_walkContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_state",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_attrs",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_ignoreAttrs",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_mainNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_anonymousNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_leaveHook",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_isFreeze",{enumerable:!0,configurable:!0,writable:!0,value:!1}),kt.fatal(n,"plugins/html-data-source/src/kernel/lib/reader/helpers/transform.ts:52"),this._kernel=t,this._parentNode=n,this._walkContext=r}return Ke(e,[{key:"theme",get:function(){return this._kernel.theme}},{key:"parentNode",get:function(){return this._parentNode}},{key:"newChildContext",value:function(t){var n=new e(this._kernel,this._contentNode||this._anonymousNode,t);return n._attrs=Object.assign(Object.assign({},this._contentNode?this._contentNode.attrs:{}),this._attrs),n._state=Object.assign({},this._state),n._meta=this._meta,n._skipNode=this._skipNode,n._strictMode=this._strictMode,n}},{key:"setSkipMode",value:function(e){this._inSkipMode=e}},{key:"getSkipMode",value:function(){return this._inSkipMode}},{key:"addSkipNode",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r-1}},{key:"removeSkipNode",value:function(e){var t=this._skipNode.indexOf(e);return t>-1&&this._skipNode.splice(t,1),t>-1}},{key:"getMeta",value:function(e){return this._meta[e]}},{key:"setMeta",value:function(e,t){this._meta[e]=t}},{key:"getState",value:function(e,t){return yr(this._state,e)?this._state[e]:t}},{key:"freeze",value:function(){this._isFreeze=!0}},{key:"setStrictMode",value:function(e){var t;e=!!e,this._strictMode=e,null===(t=this._walkContext)||void 0===t||t.setStrictMode(e)}},{key:"isStrictMode",value:function(){return this._strictMode}},{key:"setIgnoreAttrs",value:function(){var e=this;this._ignoreAttrs||(this._ignoreAttrs=new Set);for(var t=arguments.length,n=new Array(t),r=0;r-1&&e._parentNode.children.splice(o,1)}}}(c)},!1!==e.readNode(c,n)})),d&&Object.keys(d).forEach((function(e){var r=t.getPreAttrReaders(e),o=t.getAttrReaders(e),i=d[e];r&&r.forEach((function(t){i=t.readAttr(c,e,i,n)})),o&&o.some((function(t){return t.readAttr(c,e,i,n)}))})),f&&Object.keys(f).forEach((function(e){var r=t.getPreStyleReaders(e),o=t.getStyleReaders(e),i=f[e];r&&r.forEach((function(t){i=t.readStyle(c,e,i,n)})),o&&o.some((function(t){return t.readStyle(c,e,i,n)}))})),c._attachNode(n)}}),(function(e){if(!EG[e.name]){if(a.testIsSkipNode(e))return a.removeSkipNode(e),void a.setSkipMode(!1);if(!a.getSkipMode()){var t=l.pop();t._leaveHook&&t._leaveHook()}}})),kt.fatal(1===l.length,"plugins/html-data-source/src/kernel/lib/reader/helpers/transform.ts:435"),function(e,t,n){for(var r=Wo.createFragment(),o=new PG(t),i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n]*?>[\s\S]+?<\/code>/g,(function(e){return e.replace(/\n/g,"")})).replace(/]*?>[\s\S]+?<\/pre>/g,(function(e){return e.replace(/\n/g,"")})).replace(/\n+/g," ").replace(/<\/br[^>]*?>/g,"").replace(/\uf001/g,"\n").replace(/]*?>/g,"\n");var o={},i=new IG.Parser({onopentag:function(e,i){if(Cf[e])t++;else if(t)t++;else if("style"!==e){var a=LG(i.style),l=Object.assign(Object.assign(Object.assign({},o[e]||{}),o["."+i.class]||{}),a);if("none"!==l.display){delete i.style;var u={type:"element",name:e,attrs:i,style:l,children:[],parent:n};n.children.push(u),n=u}else t++}else r=!0},ontext:function(e){if(!t&&(e=e.replace(/\u200b/g,"")))if(r){var i,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return MG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MG(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}((e=e.replace(/[\r\t\n]/g,"")).matchAll(/([\.|@]?[\w\d]+)\s?{([^}]*)}/g));try{for(a.s();!(i=a.n()).done;){var l=i.value,u=l[1],c=l[2];"string"==typeof u&&"string"==typeof c&&(o[u]=LG(c))}}catch(e){a.e(e)}finally{a.f()}}else{n.children||(n.children=[]);var s=n.children[n.children.length-1];(null==s?void 0:s.name)===BG?s.data+=e:n.children.push({name:BG,data:e,parent:n,type:"text"})}},onclosetag:function(e){t?t--:"style"!==e?n=n.parent:r=!1}},{decodeEntities:!0,lowerCaseTags:!0,lowerCaseAttributeNames:!0});return i.write(e),i.end(),n.children}function LG(e){var t={};return e?(e.toLowerCase().split(";").forEach((function(e){var n=e.split(":"),r=n[0].trim(),o=(2===n.length?n[1]:n.slice(1).join(":")).trim();r&&o&&(t[r]=o)})),t):t}var UG=function(){function e(t){Ye(this,e),Object.defineProperty(this,"pluginOption",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_nodeReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_attrReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_styleReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_preNodeReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_preAttrReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_preStyleReaders",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Ke(e,[{key:"read",value:function(e,t,n){return RG(e,this,jG(FG(t.trim())),this.pluginOption,n)}},{key:"destroy",value:function(){this._nodeReaders=null,this._attrReaders=null,this._styleReaders=null,this._preNodeReaders=null,this._preAttrReaders=null,this._preStyleReaders=null}},{key:"registerNodeReader",value:function(e,t){this._addReader(this._nodeReaders,e,t)}},{key:"registerAttrReader",value:function(e,t){this._addReader(this._attrReaders,e,t)}},{key:"registerStyleReader",value:function(e,t){this._addReader(this._styleReaders,e,t)}},{key:"registerPreNodeReader",value:function(e,t){this._addReader(this._preNodeReaders,e,t)}},{key:"registerPreAttrReader",value:function(e,t){this._addReader(this._preAttrReaders,e,t)}},{key:"registerPreStyleReader",value:function(e,t){this._addReader(this._preStyleReaders,e,t)}},{key:"getNodeReaders",value:function(e){return this._getReader(this._nodeReaders,e)}},{key:"getAttrReaders",value:function(e){return this._getReader(this._attrReaders,e)}},{key:"getStyleReaders",value:function(e){return this._getReader(this._styleReaders,e)}},{key:"getPreNodeReaders",value:function(e){return this._getReader(this._preNodeReaders,e)}},{key:"getPreAttrReaders",value:function(e){return this._getReader(this._preAttrReaders,e)}},{key:"getPreStyleReaders",value:function(e){return this._getReader(this._preStyleReaders,e)}},{key:"_addReader",value:function(e,t,n){(t=Array.isArray(t)?t:[t]).forEach((function(t){e[t]||(e[t]=[]),e[t].push(n)}))}},{key:"_getReader",value:function(e,t){return e[t]||null}}]),e}(),VG={mode:PL.CLEAN},HG=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"_parentContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_inode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_mainNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_wrapNode",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_attrs",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_style",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_virtual",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_state",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._parentContext=t,this._inode=n,this._option=Object.assign(Object.assign({},VG),r||{});var o=this._option.mode;kt.fatal(o===PL.INLINE||o===PL.CLEAN,"plugins/html-data-source/src/kernel/lib/writer/writer-context.ts:43")}return Ke(e,[{key:"isInlineMode",value:function(){return this._option.mode===PL.INLINE}},{key:"isCleanMode",value:function(){return this._option.mode===PL.CLEAN}},{key:"isExport",value:function(){return!0===this._option.isExport}},{key:"getExportType",value:function(){return this._option.exportType}},{key:"getDocMaxWidth",value:function(){return this._option.docMaxWidth}},{key:"previousSiblingContext",get:function(){if(!this._parentContext)return null;var e=this._parentContext._children,t=e.indexOf(this);return kt.fatal(-1!==t,"plugins/html-data-source/src/kernel/lib/writer/writer-context.ts:76"),e[t-1]||null}},{key:"nextSiblingContext",get:function(){if(!this._parentContext)return null;var e=this._parentContext._children,t=e.indexOf(this);return kt.fatal(-1!==t,"plugins/html-data-source/src/kernel/lib/writer/writer-context.ts:89"),e[t+1]||null}},{key:"inode",get:function(){return this._inode}},{key:"mainNode",get:function(){return this._mainNode}},{key:"contentNode",get:function(){return this._contentNode||this._mainNode}},{key:"since",get:function(){return this._option.since}},{key:"setVirtual",value:function(){this._virtual=!0}},{key:"setState",value:function(e,t){this._state[e]=t}},{key:"getState",value:function(e){return this._state[e]}},{key:"setNode",value:function(e,t){this._mainNode=e,this._contentNode=t||e}},{key:"addAttr",value:function(e,t){kt.fatal(this._mainNode===this._contentNode,"plugins/html-data-source/src/kernel/lib/writer/writer-context.ts:130"),this._attrs||(this._attrs={}),this._attrs[e]=t}},{key:"addStyle",value:function(e,t){this._style||(this._style={}),this._style[e]=t}},{key:"wrapNode",value:function(e){kt.fatal(this._mainNode,"plugins/html-data-source/src/kernel/lib/writer/writer-context.ts:148"),this._wrapNode.push(e)}},{key:"newChildContext",value:function(t){var n=new e(this,t,this._option);return n._state=Object.assign({},this._state),this._children.push(n),n}},{key:"clear",value:function(){this._attrs=null,this._style=null,this._mainNode=null,this._contentNode=null}},{key:"close",value:function(){(this._attrs||this._style)&&(this._mainNode?Nd.updateAttribute(this._mainNode,{attrs:this._attrs,style:this._style}):this._mainNode=Nd.createElement("span",{attrs:this._attrs,style:this._style}))}},{key:"_appendTo",value:function(e){if(this._virtual)this._handleAppend(e);else if(this._mainNode){var t=this._mainNode;this._wrapNode.forEach((function(e){Nd.appendChild(e,t),t=e})),Nd.appendChild(e,t)}e=this._contentNode||this._mainNode||e,this._children.forEach((function(t){t._appendTo(e)}))}},{key:"_handleAppend",value:function(e){throw new Error("invalid invoke")}},{key:"createIgnoreElement",value:function(e){return Nd.createElement(e,{attrs:{"lake-read-ignore":!0}})}},{key:"createElement",value:function(){return Nd.createElement.apply(Nd,arguments)}},{key:"createTextNode",value:function(){return Nd.createTextNode.apply(Nd,arguments)}},{key:"createPlainTextNode",value:function(){return Nd.createPlainTextNode.apply(Nd,arguments)}},{key:"appendChild",value:function(){return Nd.appendChild.apply(Nd,arguments)}}]),e}(),zG=function(){function e(){Ye(this,e),Object.defineProperty(this,"_nodeWriters",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_attrWriters",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_preTextWriters",{enumerable:!0,configurable:!0,writable:!0,value:[]})}return Ke(e,[{key:"destroy",value:function(){this._nodeWriters=null,this._attrWriters=null,this._preTextWriters=null}},{key:"write",value:function(e,t,n){var r,o=this;kt.fatal(Wo.isFragmentNode(t),"plugins/html-data-source/src/kernel/lib/writer/html-writer.ts:25");var i=Nd.createElement("#root"),a=new HG(null,t,n);if(null===(r=t.children)||void 0===r||r.forEach((function(t){WG(a,e,o,t)})),a.close(),a._appendTo(i),!i.children)return"";var l=i.children.map((function(e){return Nd.toHTML(e)})).join(""),u="";return e.hasExtendMethod("getTypographyName")&&(u=(u=e.getTypographyName())?' typography="'.concat(u,'"'):""),'
").concat(l,"
")}},{key:"registerNodeWriter",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]),e.forEach((function(e){var r;kt.fatal(!(null===(r=n._nodeWriters)||void 0===r?void 0:r[e]),"plugins/html-data-source/src/kernel/lib/writer/html-writer.ts:69"),n._nodeWriters[e]=t}))}},{key:"registerAttrWriter",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]),e.forEach((function(e){kt.fatal(!n._attrWriters[e],"plugins/html-data-source/src/kernel/lib/writer/html-writer.ts:83"),n._attrWriters[e]=t}))}},{key:"registerPreTextWriter",value:function(e){this._preTextWriters.push(e)}},{key:"getNodeWriter",value:function(e){return this._nodeWriters[e]||null}},{key:"getAttrWriter",value:function(e){return this._attrWriters[e]||null}},{key:"getPreTextWriters",value:function(){return this._preTextWriters}}]),e}();function WG(e,t,n,r){var o;kt.fatal(!Wo.isFragmentNode(r),"plugins/html-data-source/src/kernel/lib/writer/html-writer.ts:111");var i=e.newChildContext(r),a=r.name,l=r.id,u=t.getNodeSchema(a),c=n.getNodeWriter(a);if(u){if(l&&(u.category.includes(ze.Block)||u.category.includes(ze.Card)||u.category.includes(ze.Table))&&i.addAttr("id",l),c)c.write(i,r);else if("text"===u.type){null===(o=n.getPreTextWriters())||void 0===o||o.forEach((function(e){e.preWrite({setAttribute:function(e,t){Wo.setAttribute(r,e,t)}},r)}));var s=Nd.createElement("span",{className:"ne-text"});i.appendChild(s,Nd.createTextNode(r.data)),i.setNode(s)}else u.category.includes(ze.Block)&&i.setNode(Nd.createElement("div"));var d=r.attrs;d&&Object.keys(d).forEach((function(e){!function(e,t,n,r){var o=t.getAttrWriter(n);o&&o.write(e,n,r)}(i,n,e,d[e])})),Wo.isElementNode(r)&&r.children&&r.children.forEach((function(e){WG(i,t,n,e)})),c&&c.leaveNode(i),i.close()}}var qG=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Object.assign({},this._option,t)}return Ke(e,[{key:"readEmptyLine",get:function(){var e;return!!(null===(e=this._option)||void 0===e?void 0:e.readEmptyLine)}}]),e}();function $G(e,t,n){return t=Qe(t),Xe(e,KG()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function KG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KG=function(){return!!e})()}Object.defineProperty(qG,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:CG.pluginName});var YG=function(e){function t(){var e;return Ye(this,t),e=$G(this,t,arguments),Object.defineProperty(Je(e),"_dataSource",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"htmlReader",{enumerable:!0,configurable:!0,writable:!0,value:new UG(e.option)}),Object.defineProperty(Je(e),"htmlWriter",{enumerable:!0,configurable:!0,writable:!0,value:new zG}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._dataSource=new bG(e),e.registerDataSource("text/html",this._dataSource),e.registerReader("text/html",this.htmlReader),e.registerWriter("text/html",this.htmlWriter)}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),this.htmlReader.destroy(),this.htmlWriter.destroy()}}]),t}(ft);Object.defineProperty(YG,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:CG.pluginName}),Object.defineProperty(YG,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:qG}),Object.defineProperty(YG,"Service",{enumerable:!0,configurable:!0,writable:!0,value:kG});for(var GG=8,JG=["columns"],XG=[ze.BlockCard,"alert","table",jt],QG=[],ZG=[],eJ=1,tJ=2*GG+1;eJ<=tJ;eJ++)QG.push(eJ);for(var nJ=1;nJ<=GG;nJ++)ZG.push(nJ);const rJ={indent:{targets:[ze.Block,ze.Hole,ze.TableHole,"quote"],excludes:[ze.Level],values:QG},textIndent:{targets:[ze.Block],excludes:[ze.Level],values:[!0]},level:{targets:[ze.Level],values:ZG},hindent:{targets:XG,excludes:[ze.Level],values:QG}};var oJ=uI({pluginName:"indent",command:{indent:"indent",outdent:"outdent",canIndent:"canIndent"},toolbar:"indent"});function iJ(e,t,n){return t=Qe(t),Xe(e,aJ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aJ=function(){return!!e})()}var lJ=function(e){function t(){return Ye(this,t),iJ(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){var n=e.getNodeById(t);if(!n||JG.includes(n.nodeName))return[];var r=["indent","hindent","level"].find((function(e){return!!n.attrs[e]}));return r?n.attrs[r]>=GG?["canOutdent"]:["canIndent","canOutdent"]:["canIndent"]}},{key:"getState",value:function(e){var t=e.getSelection();if(t.rangeCount>1)return gt.UNAVAILABLE;if(!t.collapsed)return zt.closest(t.firstRange.commonAncestorContainer,ze.TableCell)?gt.UNAVAILABLE:gt.NOT_EXECUTED;var n=t.firstRange.start,r=n.node;if(0!==n.offset)return gt.UNAVAILABLE;if(r.hasCategory([ze.Block,ze.Hole,ze.TableHole]))return gt.NOT_EXECUTED;for(var o=zt.closest(r,ze.Block),i=r;i!==o;){if(0!==i.offset)return gt.UNAVAILABLE;i=i.parentNode}return gt.NOT_EXECUTED}}]),t}(wt);function uJ(e){var t,n=zt.closest(e,[ze.Hole,ze.TableHole,ze.Brick]);return n?(null===(t=n.parent)||void 0===t?void 0:t.hasCategory([ze.TableHole,ze.Hole]))?n.parent:n:null}function cJ(e,t,n){var r=uJ(t);if(r)return dJ(e,r,!1,n)}function sJ(e,t){if("number"==typeof e||"number"==typeof t)return"number"!=typeof t?e+1>GG?GG:e+1:t<0?0:t>GG?GG:t}function dJ(e,t,n,r){var o=t.nodeName,i=t.attrs,a=void 0===i?{}:i,l=a.level,u=void 0===l?0:l,c=a.indent,s=void 0===c?0:c;if(n&&e.acceptAttr(o,"textIndent",!0)&&!a.textIndent)e.setAttribute(t,"textIndent",!0);else{var d=sJ(u,r);if("number"==typeof d)if(e.acceptAttrName(o,"level"))0===d?e.removeAttribute(t,"level"):e.acceptAttr(o,"level",d)&&e.setAttribute(t,"level",d);else{var f=sJ(s,r);"number"==typeof f&&(t.hasCategory([ze.Hole,ze.TableHole])&&t.firstChild&&!e.acceptAttrName(t.firstChild.nodeName,"hindent")||e.acceptAttrName(o,"indent")&&(0===f?(e.removeAttribute(t,"indent"),function(e,t){t.hasCategory([ze.Hole,ze.TableHole])&&t.firstChild&&e.removeAttribute(t.firstChild,"hindent")}(e,t)):e.acceptAttr(o,"indent",f)&&(e.setAttribute(t,"indent",f),function(e,t,n){var r;t.hasCategory([ze.Hole,ze.TableHole])&&t.firstChild&&e.acceptAttr(t.firstChild.nodeName,"hindent",n)&&(e.setAttribute(t.firstChild,"hindent",n),t.firstChild.hasCategory(ze.BlockCard)&&(null===(r=t.firstChild.attrs)||void 0===r?void 0:r.value)?e.setAttribute(t.firstChild,"value",Object.assign(Object.assign({},t.firstChild.attrs.value),{__widthMode:Il})):e.removeAttribute(t.firstChild,"widthMode"))}(e,t,f))))}}}function fJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=e.newJob();return n?this._executeNode(o,e,n,r):this._executeSelection(o,e,t,r)}},{key:"_executeSelection",value:function(e,t,n,r){if(this.getState(e)===gt.UNAVAILABLE)return t.cancelJob(e),!1;var o=e.getSelection(),i=!1;if(o.collapsed&&o.firstRange.start.node.isRootNode()&&o.firstRange.start.isAtEnd){var a=e.createElement(e.defaultElementName);e.appendChild(o.firstRange.start.node,a),i=!0,o=e.newSelection([e.newRange(e.newPosition(a,0))])}return function(e,t,n,r){if(t.collapsed){var o=uJ(t.firstRange.start.node);if(!o)return;dJ(e,o,n,r)}else Di.fullWalkSelection(t,{enter:function(t){dJ(e,t,!1,r)}})}(e,o,n,r),i&&e.setSelection(o),t.commitJob(e),!0}},{key:"_executeNode",value:function(e,t,n,r){var o,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fJ(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}("string"==typeof n?[n]:n||[]);try{for(i.s();!(o=i.n()).done;){var a=o.value,l=e.getNodeById(a);if(!l)return t.cancelJob(e),!1;cJ(e,l,r)}}catch(e){i.e(e)}finally{i.f()}return t.commitJob(e),!0}}]),t}(wt);function mJ(e,t){var n=uJ(t);if(n)return gJ(e,n,!1)}function gJ(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.nodeName,o=t.attrs,i=void 0===o?{}:o,a=i.level,l=void 0===a?0:a,u=i.indent,c=void 0===u?0:u;if(n&&e.acceptAttrName(r,"textIndent")&&i.textIndent)e.removeAttribute(t,"textIndent");else if(e.acceptAttr(r,"level",l-1||1))l-1==0?e.removeAttribute(t,"level"):e.setAttribute(t,"level",l-1);else{var s=c-1;if(t.hasCategory([ze.Hole,ze.TableHole])&&t.firstChild&&!e.acceptAttr(t.firstChild.nodeName,"hindent",s))return e.removeAttribute(t,"indent"),void e.removeAttribute(t.firstChild,"hindent");e.acceptAttr(r,"indent",s||1)&&(0===s?(e.removeAttribute(t,"indent"),t.hasCategory([ze.Hole,ze.TableHole])&&t.firstChild&&e.removeAttribute(t.firstChild,"hindent")):(e.setAttribute(t,"indent",s),t.hasCategory([ze.Hole,ze.TableHole])&&t.firstChild&&e.acceptAttr(t.firstChild.nodeName,"hindent",s)&&e.setAttribute(t.firstChild,"hindent",s)))}}function bJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)return gt.UNAVAILABLE;var n=t.firstRange,r=n.start,o=n.end;return r.node.closest(ze.OnlyText)||o.node.closest(ze.OnlyText)?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=e.newJob();return n?this._executeNode(r,e,n):this._executeSelection(r,e,t)}},{key:"_executeSelection",value:function(e,t,n){return this.getState(e)===gt.UNAVAILABLE?(t.cancelJob(e),!1):(function(e,t,n){if(t.collapsed){var r=uJ(t.firstRange.start.node);if(!r)return;gJ(e,r,n)}else Di.fullWalkSelection(t,{enter:function(t){gJ(e,t)}})}(e,e.getSelection(),n),t.commitJob(e),!0)}},{key:"_executeNode",value:function(e,t,n){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return bJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bJ(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}("string"==typeof n?[n]:n||[]);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=e.getNodeById(i);if(!a)return t.cancelJob(e),!1;mJ(e,a)}}catch(e){o.e(e)}finally{o.f()}return t.commitJob(e),!0}}]),t}(wt);Object.defineProperty(kJ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:oJ.command.outdent});var CJ=Ke((function e(){Ye(this,e)}));function _J(e,t,n){return t=Qe(t),Xe(e,NJ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NJ=function(){return!!e})()}var OJ=function(e){function t(){return Ye(this,t),_J(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n){"hindent"===t&&(e.ignoreInheritedAttrs("hindent"),this._readHIndent(e,n))}},{key:"_readHIndent",value:function(e,t){var n=Number.parseInt(t,10);if(t.endsWith("em")&&n>0&&n%2==0){var r=n/2;r>0&&e.setAttr("hindent",r)}}}]),t}(CJ);Object.defineProperty(OJ,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["hindent"]});var xJ=Ke((function e(){Ye(this,e)}));function EJ(e,t,n){return t=Qe(t),Xe(e,DJ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function DJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DJ=function(){return!!e})()}var RJ=function(e){function t(){return Ye(this,t),EJ(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n){var r;"blockquote"===(null===(r=e.inode)||void 0===r?void 0:r.name)&&e.ignoreInheritedAttrs("indent"),"text-indent"===t?this._readTextIndent(e,n):this._readIndent(e,n)}},{key:"_readTextIndent",value:function(e,t){var n=Number.parseInt(t,10);t.endsWith("em")&&n>0&&e.setAttr("textIndent",!0)}},{key:"_readIndent",value:function(e,t){var n=Number.parseInt(t,10);if(t.endsWith("em")&&n>0&&n%2==0){var r=n/2;r>0&&e.setAttr("indent",r)}}}]),t}(xJ);function PJ(e,t,n){return t=Qe(t),Xe(e,SJ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function SJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SJ=function(){return!!e})()}Object.defineProperty(RJ,"StyleNames",{enumerable:!0,configurable:!0,writable:!0,value:["text-indent","padding-left"]});var TJ=function(e){function t(){return Ye(this,t),PJ(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){if(n)if("textIndent"!==t){var r=e.inode.attrs,o=(r.indent||0)+(r.level||0);o&&e.addStyle("margin-left","".concat(2*o,"em"))}else e.addStyle("text-indent","2em")}}]),t}(WF);Object.defineProperty(TJ,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["indent","textIndent"]});var AJ=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n){switch(t){case"textIndent":e.setStyle("text-indent","2em");break;case"indent":e.setStyle("padding-left",2*n+"em");break;case"hindent":e.setAttr("hindent",2*n+"em")}}}]),e}();function jJ(e,t,n){return t=Qe(t),Xe(e,IJ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function IJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IJ=function(){return!!e})()}Object.defineProperty(AJ,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["indent","hindent","textIndent"]});var BJ=function(e){function t(){return Ye(this,t),jJ(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this;e.registerAttr(rJ),e.extendMethods({genericNodeIndent:cJ});var r=e.getService(UI.ID);r&&r.registerAttrHTMLWriter(TJ.AttrNames,new TJ);var o=e.getService(zI.ID);o&&(o.registerLakeStyleReader(RJ.StyleNames,new RJ),o.registerLakeAttrReader(OJ.AttrNames,new OJ));var i=e.getService(zI.ID);i&&i.registerLakeAttrWriter(AJ.AttrNames,new AJ),jc(this,t,"nodechange",(function(e){if(n.isNeedRemoveHIndent(e)){var t=e.node,r=e.job;r.removeAttribute(t,"hindent"),t.parentNode&&r.removeAttribute(t.parentNode,"indent")}}))}},{key:"isNeedRemoveHIndent",value:function(e){return this.isUpdateCardWidthMode(e)||this.isUpdateNodeWidthMode(e)}},{key:"isUpdateNodeWidthMode",value:function(e){var t=e.node,n=e.job,r=e.type,o=e.subType,i=e.attrName,a=e.value;return"attribute"===r&&["add","update"].includes(o)&&"widthMode"===i&&a===Bl&&n.acceptAttrName(t.nodeName,"hindent")}},{key:"isUpdateCardWidthMode",value:function(e){var t=e.node,n=e.type,r=e.subType,o=e.attrName,i=e.value;return t.hasCategory(ze.BlockCard)&&"attribute"===n&&["add","update"].includes(r)&&"value"===o&&(null==i?void 0:i.__widthMode)===Bl}}]),t}(ft);Object.defineProperty(BJ,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:oJ.pluginName}),Object.defineProperty(BJ,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[vJ,kJ,lJ]});var MJ=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t){return JSON.stringify(t)}},{key:"destroy",value:function(){}}]),e}(),FJ=uI({pluginName:"inodeReader"});function LJ(e,t,n){return t=Qe(t),Xe(e,UJ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function UJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UJ=function(){return!!e})()}var VJ=function(e){function t(){var e;return Ye(this,t),e=LJ(this,t,arguments),Object.defineProperty(Je(e),"_writer",{enumerable:!0,configurable:!0,writable:!0,value:new MJ}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerReader("text/ne-inode",this.service.reader),e.registerWriter("text/ne-inode",this._writer)}},{key:"destroy",value:function(){this._writer.destroy(),delete this._writer,Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(ft);Object.defineProperty(VJ,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:FJ.pluginName}),Object.defineProperty(VJ,"Service",{enumerable:!0,configurable:!0,writable:!0,value:$Y});var HJ=uI({pluginName:"input",command:{input:"input",canInput:"canInput",insertText:"insertText",autoSpacing:"autoSpacing"}});function zJ(e,t,n){return t=Qe(t),Xe(e,WJ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function WJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WJ=function(){return!!e})()}var qJ=function(e){function t(){return Ye(this,t),zJ(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return t.firstRange.collapsed&&t.firstRange.start.node.hasCategory(ze.Card)?ht:pt}}]),t}(wt);function $J(e,t,n){return t=Qe(t),Xe(e,KJ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function KJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KJ=function(){return!!e})()}Object.defineProperty(qJ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:HJ.command.canInput});var YJ=[/(\r\n|\n|\r)/m,/(?:[^a-z0-9]|^)([a-z0-9]{2,}):\/\/(?:[a-z_0-9@:.])+?(?:\/\S*?)?(?:[#\s\S]*?)?(?:(?=[\u0100-\uffff\s])|$)/i];function GJ(e,t){return e&&t&&(On.isChineseChar(e)&&On.isEnAndNumber(t)||On.isEnAndNumber(e)&&On.isChineseChar(t))}function JJ(e,t){return On.isChineseChar(e)&&On.isChineseChar(t)||On.isEnAndNumber(e)&&On.isEnAndNumber(t)}var XJ=function(e){function t(){return Ye(this,t),$J(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?e.newJob():e.job).getSelection();if(o.collapsed||(o=n.newSelection(o.firstRange),(o=Di.deleteContent(n,o,!1,!0,!1,!1)).isCollapsed||(kt.fatal(o.isTableSelection&&o.firstRange.start.node.isEmpty(),"plugins/input/src/kernel/input-command.ts:74"),o=n.newSelection(n.newRange(n.newPosition(o.firstRange.start.node,0))))),kt.fatal(o.collapsed,"plugins/input/src/kernel/input-command.ts:84"),1===(null==t?void 0:t.length))return this._execNormalTextInsert(e,t,n,o,r);for(var i=0,a=YJ;i0){var n=e.node.data[e.offset-1];return{position:new Nt(e.node,e.offset-1),ch:n}}if(null===(t=e.node.previousSibling)||void 0===t?void 0:t.isTextNode()){var r=e.node.previousSibling.data[e.node.previousSibling.data.length-1];return{position:new Nt(e.node.previousSibling,e.node.previousSibling.data.length-1),ch:r}}return null}},{key:"getNextChar",value:function(e){var t;if(!e.node.isTextNode())return null;if(e.offset2&&void 0!==arguments[2]?arguments[2]:null,r=e.newJob(),o=n?r.newSelection(r.newRange(r.newPosition(n.node,n.offset))):r.getSelection();if(o.collapsed||(o=r.newSelection(r.newRange(o.firstRange.start))),!r.acceptNode(o.firstRange.start.node.nodeName,"#text"))return!1;rr.insertText(r,o.firstRange.start,t);try{Oo(r,o.firstRange)}catch(e){}return!0}}]),t}(wt);function tX(e,t,n){return t=Qe(t),Xe(e,nX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function nX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nX=function(){return!!e})()}Object.defineProperty(eX,"ID",{enumerable:!0,configurable:!0,writable:!0,value:HJ.command.insertText});var rX=function(e){function t(){return Ye(this,t),tX(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(ft);function oX(e,t,n){return t=Qe(t),Xe(e,iX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function iX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iX=function(){return!!e})()}Object.defineProperty(rX,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:HJ.pluginName}),Object.defineProperty(rX,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[XJ,qJ,eX]});var aX=function(e){function t(e){var n;return Ye(this,t),n=oX(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._kernel=null}},{key:"read",value:function(e,t){return this._kernel.readData("text/lake",e,t)}},{key:"write",value:function(e,t){var n=e.document.getINode(t);return this._kernel.writeData("text/lake",n,t)}}]),t}(qt),lX=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:t})}return Ke(e,[{key:"from",get:function(){var e;return null===(e=this._option)||void 0===e?void 0:e.from}},{key:"createElement",value:function(){return Nd.createElement.apply(Nd,arguments)}},{key:"setAttribute",value:function(){return Nd.setAttribute.apply(Nd,arguments)}},{key:"removeAttribute",value:function(){return Nd.removeAttribute.apply(Nd,arguments)}}]),e}();function uX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this._ignoreInheritedAttr);try{for(n.s();!(e=n.n()).done;)delete t[e.value]}catch(e){n.e(e)}finally{n.f()}return t}},{key:"getState",value:function(e,t){return yr(this._state,e)?this._state[e]:t}},{key:"setAttr",value:function(e,t){kt.fatal(!this._node,"plugins/lake-data-source/src/kernel/lib/context/lake-read-context.ts:115"),this._attrs[e]=t}},{key:"createElement",value:function(){return Wo.createElement.apply(Wo,arguments)}},{key:"createCard",value:function(){return Wo.createCard.apply(Wo,arguments)}},{key:"createTextNode",value:function(){return Wo.createTextNode.apply(Wo,arguments)}},{key:"_setNode",value:function(e){kt.fatal(null===this._node,"plugins/lake-data-source/src/kernel/lib/context/lake-read-context.ts:132"),this._node=e}},{key:"close",value:function(e){var t=this,n=this._node,r=[];if(this._children.forEach((function(t){t.close(e).forEach((function(e){r.push(e)}))})),!n)return r;Object.keys(this._attrs).forEach((function(e){Wo.setAttribute(n,e,t._attrs[e])}));var o=e.getNodeSchema(n.name);if(null==o?void 0:o.category.includes(ze.Block)){var i=r[r.length-1];i&&"text"===i.type&&i.data.endsWith("\n")&&(i.data=i.data.substring(0,i.data.length-1))}return r.forEach((function(e){Wo.appendChild(n,e)})),[n]}}]),e}();function sX(e,t){var n=new cX(e,t);return n.setNode(Wo.createFragment()),n}function dX(e){var t={};return e?(e.split(";").forEach((function(e){var n=$O(e.split(":")),r=n[0],o=n.slice(1),i=r.trim(),a=o.join(":").trim();i&&a&&(t[i]=a)})),t):t}function fX(e){for(var t=/(name|content)="([^"]*?)"/g,n=null,r={name:"",value:""};n=t.exec(e);)"content"===n[1]?r.value=n[2]:r.name=n[2];return r}var hX=function(){function e(){Ye(this,e),Object.defineProperty(this,"_lists",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Ke(e,[{key:"addToList",value:function(e,t){t.attrs.list=e;var n=this._lists,r=function(e){var t;return(null===(t=e.attrs)||void 0===t?void 0:t["data-lake-indent"])||0}(t);n[e]||(n[e]={});var o=function(e){var t;return Math.max(parseInt(null===(t=e.attrs)||void 0===t?void 0:t.start,10)||0,0)}(t);0===o?delete t.attrs.start:t.attrs.start=o;var i=n[e];if(r]*?>)*/,(function(e){return function(e,t){for(var n,r=/]*?)>/g;n=r.exec(e);){var o=fX(n[1]),i=o.name,a=o.value;i&&a&&(t[i]=a)}}(e,t),""}))}(e=e.replace(/^]*?>/,"").replace(/<(focus|anchor|cursor)( ?\/)?>/gi,""),t),e=function(e){return(e=(e=e.replace(/\r/gi,"").replace(/<\/br>/gi,"").replace(//gi,"
")).replace(/\n*
\n*/gi,"
")).replace(/\n+/g," ")}(e=function(e){return e.replace(/]*?><\/card>/g,(function(e){var t=/\bname="table"[\s\S]*?\bvalue="data:([^"]*?)"[^>]*?><\/card>$/.exec(e);if(!t)return e;try{var n=JSON.parse(decodeURIComponent(t[1]));if(!n.html||!n.html.startsWith("0?c--:(kt.fatal(l.name===e||"card"===l.type,"plugins/lake-data-source/src/kernel/lib/lake-reader.ts:316"),"card"===l.type&&(u=!1),l=a.pop())}},{decodeEntities:!0,lowerCaseTags:!0,lowerCaseAttributeNames:!0,recognizeSelfClosing:!0});return s.write(e),s.end(),kt.fatal(0===a.length,"plugins/lake-data-source/src/kernel/lib/lake-reader.ts:335"),r.forEach((function(e){var t=e.node,n=e.parentNode,r=n.children.indexOf(t);if(r===n.children.length-1&&wf[n.name])n.children.length-=1;else{var o=n.children[r-1];o&&"text"===o.type?(n.children.splice(r,1),o.data+="\n"):n.children[r]={type:_t.Text,name:"#text",data:"\n"}}})),function(e,t){var n=t.filter((function(e){var t,n,r=e.node,o=e.parentNode;return!(null===(t=r.attrs)||void 0===t?void 0:t.list)&&(r.children=null===(n=r.children)||void 0===n?void 0:n.filter((function(e){var t="li"===e.name;if(!t){var n=o.children.indexOf(r);o.children.splice(n,0,e)}return t})),!0)})),r=new hX;n.forEach((function(e,t){var o;!function(e,t,n){var r=t.node;if(n&&function(e,t){var n,r=e.node,o=e.parentNode;if(o!==t.parentNode)return!1;var i=o.children,a=i.indexOf(r),l=i.indexOf(t.node);if(-1===a||-1===l)return!1;kt.fatal(l=l;u--){var c=i[u];if(c===t.node)return!0;if("element"!==c.type||(null===(n=c.children)||void 0===n?void 0:n.length))return!1}return!1}(t,n)){var o=n.node.attrs.list;kt.fatal(o,"plugins/lake-data-source/src/kernel/lib/helpers/reflow-list.ts:152"),e.addToList(o,r)}else e.addToList(gr(),r)}(r,e,n[t-1]);var i=e.node,a=i.attrs,l=a.list,u=a.start;null===(o=i.children)||void 0===o||o.forEach((function(e){e.attrs.list=l,u?e.attrs.start=u:delete e.attrs.start}))}))}(0,o),i.forEach((function(e){var t,n,r=e.node,o=e.parentNode,i=[],a=!1;if(Array.from(r.children||[]).forEach((function(e){var t;if("code"===e.name){var n=e,o=r.children.indexOf(n);if(r.children.splice(o,1),null===(t=n.children)||void 0===t?void 0:t.length){var l=lr(r);l.children=pn(n.children),n.children=[l],a=!0,i.push(n)}}else if(a){var u=r.children.indexOf(e);r.children.splice(u,1);var c=lr(r);c.children=[e],i.push(c)}})),i.length){var l=o.children.indexOf(r);(t=o.children).splice.apply(t,[l+1,0].concat(i)),(null===(n=r.children)||void 0===n?void 0:n.length)||function(e,t){var n=e.children.indexOf(t);-1!==n&&e.children.splice(n,1)}(o,r)}})),{nodes:n.children||[],meta:t}}},{key:"_walkNodes",value:function(e,t,n){var r=this;t.forEach((function(t){var o;if("text"===t.type){if(!(null===(o=t.data)||void 0===o?void 0:o.trim())&&e.node&&Wo.isFragmentNode(e.node))return;return r._walkTextNode(e,t)}return"card"===t.type?r._walkCardNode(e,t,n):r._walkElement(e,t,n)}))}},{key:"_walkTextNode",value:function(e,t){var n,r,o,i=e.getChildContext(t),a=t.data.replace(/[\u200B\uFEFF]/g,"");e&&e.inode&&"span"===e.inode.name&&1===(null===(n=e.inode.children)||void 0===n?void 0:n.length)&&(o=null===(r=e.inode.attrs)||void 0===r?void 0:r.id),o&&!Of(o)&&(o=void 0),i.setText(a||"",o)}},{key:"_walkElement",value:function(e,t,n){var r=this,o=t.name,i=this._nodePreReaders[o];if(i)for(var a=new lX(n),l=0,u=i.length;l1&&void 0!==arguments[1]?arguments[1]:e;this._mainNode=e,this._contentNode=t}},{key:"replaceNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;this._mainNode=e,this._contentNode=t}},{key:"wrapNode",value:function(e){kt.fatal(this._mainNode,"plugins/lake-data-source/src/kernel/lib/context/lake-write-context.ts:91"),this._wrapNode.push(e)}},{key:"setAttr",value:function(e,t){this._attrs||(this._attrs={}),this._attrs[e]=t}},{key:"setStyle",value:function(e,t){this._style||(this._style={}),this._style[e]=t}},{key:"hasStyle",value:function(e){var t;return!!(null===(t=this._style)||void 0===t?void 0:t[e])}},{key:"getStyle",value:function(e){var t;return(null===(t=this._style)||void 0===t?void 0:t[e])||null}},{key:"removeStyle",value:function(e){this._style&&delete this._style[e]}},{key:"addClassName",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0){var e=Object.assign({},this._attrs);this._mainNode?Nd.updateAttribute(this._mainNode,{attrs:e,style:this._style,className:Array.from(this._classNames)}):this._virtual||(this._mainNode=Nd.createElement("span",{attrs:e,style:this._style,className:Array.from(this._classNames)}))}}},{key:"_appendTo",value:function(e){this._virtual?this._handleAppend(e):this._mainNode&&(this._wrapNode.length&&this._wrapNode.forEach((function(t){Nd.appendChild(e,t),e=t})),Nd.appendChild(e,this._mainNode)),e=this._contentNode||this._mainNode||e,this._children.forEach((function(t){t._appendTo(e)}))}},{key:"_handleAppend",value:function(e){throw new Error("invalid invoke")}},{key:"isLikeEmpty",value:function(e){return Nd.isLikeEmpty(e)}},{key:"createElement",value:function(){return Nd.createElement.apply(Nd,arguments)}},{key:"createInlineCard",value:function(e,t,n,r){return this._createCardElement("inline",e,t,n,r)}},{key:"createBlockCard",value:function(e,t,n,r){return this._createCardElement("block",e,t,n,r)}},{key:"appendChild",value:function(e,t){return Nd.appendChild(e,t)}},{key:"toHTML",value:function(){kt.fatal(this._mainNode,"plugins/lake-data-source/src/kernel/lib/context/lake-write-context.ts:234"),this.close();var e=this.createElement("*");return this._appendTo(e),e.children.map((function(e){return Nd.toHTML(e)})).join("")}},{key:"_createCardElement",value:function(e,t,n,r,o){return n&&"object"===We(n)&&r&&(n.id=r),Nd.createElement("card",{attrs:Object.assign(Object.assign({type:e,name:t},o),{value:n})})}}]),e}(),mX=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_nodeWriters",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_attrWriters",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_cardWriters",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Ke(e,[{key:"destroy",value:function(){delete this._kernel,delete this._nodeWriters,delete this._cardWriters,delete this._attrWriters}},{key:"registerNodeWriter",value:function(e,t){var n=this;"string"==typeof e?this._nodeWriters[e]=t:e.forEach((function(e){n._nodeWriters[e]=t}))}},{key:"registerAttrWriter",value:function(e,t){var n=this;"string"==typeof e&&(e=[e]),e.forEach((function(e){n._attrWriters[e]=t}))}},{key:"registerCardWriter",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]),e.forEach((function(e){n._cardWriters[e]=t}))}},{key:"getNodeWriter",value:function(e){return this._nodeWriters[e]||null}},{key:"getCardWriter",value:function(e){return this._cardWriters[e]||null}},{key:"getAttrWriter",value:function(e){return this._attrWriters[e]||null}},{key:"write",value:function(e,t,n){var r,o=this;kt.fatal(Wo.isFragmentNode(t),"plugins/lake-data-source/src/kernel/lib/lake-writer.ts:78");var i,a=Nd.createElement("#root"),l=new vX(null,t,n);null===(r=t.children)||void 0===r||r.forEach((function(t){gX(l,e,o,t)})),l.close(),l._appendTo(a),i=a.children&&0!==a.children.length?a.children.map((function(e){return Nd.toHTML(e)})).join(""):"


";var u=this._kernel,c=[];if(n&&n.includeMeta){c.push('');var s=u.getService(c$.ID);s&&c.push(s.toXML())}return c.join("")+i}}]),e}();function gX(e,t,n,r){var o,i,a;kt.fatal(!Wo.isFragmentNode(r),"plugins/lake-data-source/src/kernel/lib/lake-writer.ts:123");var l=e.newChildContext(r),u=r.name,c=r.attrs,s=r.id;if("br"===u)return l.setNode(l.createElement("br")),void l.close();var d=t.getNodeSchema(u),f=n.getCardWriter(u);if(d.category.includes(ze.Card)){if(f&&(f.write(l,u,(null===(o=r.attrs)||void 0===o?void 0:o.value)||{},r.id),l.mainNode)){var h=null===(i=l.mainNode.attrs)||void 0===i?void 0:i.value;if(null==h)return void(null===(a=l.mainNode.attrs)||void 0===a||delete a.value);!function(e,t){if(null==t?void 0:t.value){var n=t.value,r=n.__spacing,o=n.__height,i=n.__widthMode,a=null;r===Tl?a={top:!0,bottom:!0}:r===Al?a={top:!0}:r===jl&&(a={bottom:!0}),a&&(e.margin=a),o&&(e.height=o),i&&(e.widthMode=i)}}(h,c),l.mainNode.attrs.value="data:".concat(encodeURIComponent(JSON.stringify(h)))}return r.attrs&&Object.keys(r.attrs).forEach((function(e){bX(l,n,e,r.attrs[e],r)})),void l.close()}s&&(l.setAttr("data-lake-id",s),l.setAttr("id",s));var p=n.getNodeWriter(u);if("text"===d.type)l.setNode(Nd.createTextNode(r.data||"​"));else if(p&&(p.write(l,r),d.category.includes(ze.Block)))if(kt.fatal(l.contentNode,"plugins/lake-data-source/src/kernel/lib/lake-writer.ts:195"),Wo.isLikeEmpty(r))!function(e){for(var t;e;){var n=null===(t=e.children)||void 0===t?void 0:t[e.children.length-1];if(!n)break;if(n.type===_t.Text)break;e=n}Wo.appendChild(e,Wo.createElement("br"))}(r);else{var v=function(e){var t=e.children||[],n=t[t.length-1];return n&&"text"===n.type?n:null}(r);v&&v.type===_t.Text&&v.data.endsWith("\n")&&(v.data+="\n")}r.attrs&&(r.attrs.color&&bX(l,n,"color",r.attrs.color,r),Object.keys(r.attrs).forEach((function(e){"color"!==e&&bX(l,n,e,r.attrs[e],r)}))),Wo.isElementNode(r)&&r.children&&r.children.forEach((function(e){gX(l,t,n,e)})),p&&p.leaveNode(l,r),l.close()}function bX(e,t,n,r,o){var i=t.getAttrWriter(n);i&&i.write(e,n,r,o)}function yX(e,t,n){return t=Qe(t),Xe(e,wX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wX=function(){return!!e})()}var kX=function(e){function t(){var e;return Ye(this,t),e=yX(this,t,arguments),Object.defineProperty(Je(e),"lakeReader",{enumerable:!0,configurable:!0,writable:!0,value:new pX(e.kernel)}),Object.defineProperty(Je(e),"lakeWriter",{enumerable:!0,configurable:!0,writable:!0,value:new mX(e.kernel)}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){this.lakeReader.destroy(),this.lakeWriter.destroy()}},{key:"registerLakeAttrReader",value:function(e,t){this.lakeReader.registerAttrReader(e,t)}},{key:"registerLakeCardPreReader",value:function(e,t){this.lakeReader.registerCardPreReader(e,t)}},{key:"registerLakeCardReader",value:function(e,t){this.lakeReader.registerCardReader(e,t)}},{key:"registerLakeNodePreReader",value:function(e,t){this.lakeReader.registerNodePreReader(e,t)}},{key:"registerLakeNodeReader",value:function(e,t){this.lakeReader.registerNodeReader(e,t)}},{key:"registerLakeStyleReader",value:function(e,t){this.lakeReader.registerStyleReader(e,t)}},{key:"registerLakeNodeWriter",value:function(e,t){this.lakeWriter.registerNodeWriter(e,t)}},{key:"registerLakeCardWriter",value:function(e,t){this.lakeWriter.registerCardWriter(e,t)}},{key:"registerLakeAttrWriter",value:function(e,t){this.lakeWriter.registerAttrWriter(e,t)}}]),t}(zI),CX=uI({pluginName:"lake"});function _X(e,t,n){return t=Qe(t),Xe(e,NX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NX=function(){return!!e})()}var OX=function(e){function t(){var e;return Ye(this,t),e=_X(this,t,arguments),Object.defineProperty(Je(e),"_dataSource",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._dataSource=new aX(e),e.registerDataSource("text/lake",this._dataSource),e.registerWriter("text/lake",this.service.lakeWriter),e.registerReader("text/lake",this.service.lakeReader)}},{key:"destroy",value:function(){var e;Cr(Qe(t.prototype),"destroy",this).call(this),this._dataSource.destroy(),null===(e=this.service)||void 0===e||e.destroy()}}]),t}(ft);function xX(e,t,n){return t=Qe(t),Xe(e,EX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function EX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EX=function(){return!!e})()}Object.defineProperty(OX,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:CX.pluginName}),Object.defineProperty(OX,"Service",{enumerable:!0,configurable:!0,writable:!0,value:kX});var DX=function(e){function t(){return Ye(this,t),xX(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){return e.getSelection().rangeCount>1?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.newJob();if(this.getState(r)===gt.UNAVAILABLE)return e.cancelJob(r),!1;var o=Ri.insertCardNode(r,r.getSelection(),"label",t),i=o.selection,a=o.cardNode;return n?r.setSelection([r.newRange(r.newPosition(a,0))]):r.setSelection(i),e.commitJob(r),a.id}}]),t}(gt);function RX(e,t,n){return t=Qe(t),Xe(e,PX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function PX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PX=function(){return!!e})()}var SX=function(e){function t(){return Ye(this,t),RX(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e){var t=e.getSelection();if(!Di.isInCard(t))return null;var n=t.firstRange.start.node;return"label"===n.nodeName?n.id:null}}]),t}(gt);function TX(e,t,n){return t=Qe(t),Xe(e,AX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function AX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AX=function(){return!!e})()}var jX,IX=function(e){function t(){return Ye(this,t),TX(this,t,arguments)}return et(t,e),Ke(t)}(GM);Object.defineProperty(IX,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:"label"});var BX=["color0","color1","color2","color3","color4","color5"],MX=(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(jX={},"label.".concat(BX[0],".bg"),{light:"#F8CED3",dark:"#5B2027"}),"label.".concat(BX[0],".border"),{light:"#F1A2AB",dark:"#741B25"}),"label.".concat(BX[0],".text"),{light:"#70000D",dark:"#E6BCC1"}),"label.".concat(BX[1],".bg"),{light:"#F6E1AC",dark:"#564825"}),"label.".concat(BX[1],".border"),{light:"#F5D480",dark:"#775C18"}),"label.".concat(BX[1],".text"),{light:"#664900",dark:"#EEDEB4"}),"label.".concat(BX[2],".bg"),{light:"#DBF1B7",dark:"#445625"}),"label.".concat(BX[2],".border"),{light:"#C1E77E",dark:"#557915"}),"label.".concat(BX[2],".text"),{light:"#2A4200",dark:"#D5E1C1"}),"label.".concat(BX[3],".bg"),{light:"#EFF0F0",dark:"#292929"}),Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(jX,"label.".concat(BX[3],".border"),{light:"#EFF0F0",dark:"#292929"}),"label.".concat(BX[3],".text"),{light:"#262626",dark:"#E2E2E2"}),"label.".concat(BX[4],".bg"),{light:"#C0DDFC",dark:"#253C56"}),"label.".concat(BX[4],".border"),{light:"#81BBF8",dark:"#1D4672"}),"label.".concat(BX[4],".text"),{light:"#00346B",dark:"#B5D0ED"}),"label.".concat(BX[5],".bg"),{light:"#C0CAFC",dark:"#252D56"}),"label.".concat(BX[5],".border"),{light:"#96A7FD",dark:"#1B2A74"}),"label.".concat(BX[5],".text"),{light:"#101E60",dark:"#B5BEED"}));function FX(e,t,n){return t=Qe(t),Xe(e,LX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function LX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LX=function(){return!!e})()}var UX=function(e){function t(e){return Ye(this,t),FX(this,t,[Jw()({},t.DefaultCardValue,e)])}return et(t,e),Ke(t,[{key:"getLabel",value:function(){return this._cardValue.label}},{key:"setLabel",value:function(e){this._cardValue.label=e}},{key:"getColorIndex",value:function(){return this._cardValue.colorIndex||0}},{key:"setColorIndex",value:function(e){this._cardValue.colorIndex=e}},{key:"getStyle",value:function(e){var t=e||this._cardValue,n=t.colorIndex,r=t.label;return{background:"var(".concat(bu("label.".concat(BX[n],".bg")),")"),color:"var(".concat(bu("label.".concat(BX[n],".text")),")"),opacity:r?1:.45}}}],[{key:"fromLake",value:function(e){var n=Jw()({},t.DefaultCardValue,e);return(null==n?void 0:n.label)&&(n.label=Cd.decodeHTML(n.label)),n}},{key:"toLake",value:function(e){return Object.assign(Object.assign({},e),{label:(null==e?void 0:e.label)?Cd.encodeHTML(e.label):void 0})}}]),t}(Ll);function VX(e,t,n){return t=Qe(t),Xe(e,HX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function HX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HX=function(){return!!e})()}Object.defineProperty(UX,"DefaultCardValue",{enumerable:!0,configurable:!0,writable:!0,value:{label:void 0,colorIndex:0}});var zX=function(e){function t(){return Ye(this,t),VX(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){var o=e.createCard("label",UX.fromLake(n),r);e.setNode(o)}}]),t}(ZM);function WX(e,t,n){return t=Qe(t),Xe(e,qX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qX=function(){return!!e})()}var $X=function(e){function t(){return Ye(this,t),WX(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r=(t.attrs||{}).value,o=new UX(void 0===r?{}:r),i=o.getLabel()||gc("设置标签");e.isInlineMode()&&(n=Object.assign(Object.assign({},o.getStyle()),{fontWeight:400,fontSize:"12px",overflow:"hidden",maxWidth:"200px",display:"inline-block",whiteSpace:"nowrap",marginBottom:"-4px",borderRadius:"4px",border:"none",padding:"2px 5px",textOverflow:"ellipsis",lineHeight:"14px",marginLeft:"1px",marginRight:"1px"}));var a=e.createElement("span",{className:"ne-label",attrs:{"data-color":o.getColorIndex()},style:n});e.appendChild(a,e.createTextNode(i)),e.setNode(a)}}]),t}(EB);function KX(e,t,n){return t=Qe(t),Xe(e,YX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function YX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YX=function(){return!!e})()}var GX=function(e){function t(){return Ye(this,t),KX(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n,r){var o=e.createInlineCard("label",UX.toLake(n),r);e.setNode(o)}}]),t}(aF),JX=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t){var n=Ru()(t,"attrs.value",{}).label;return e.append(n||""),!0}}]),e}();function XX(e,t,n){return t=Qe(t),Xe(e,QX()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function QX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QX=function(){return!!e})()}var ZX=function(e){function t(){return Ye(this,t),XX(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var n,r,o,i,a;e.registerInlineCard(t.cardName),e.registerCommand("label",new DX),e.registerCommand("getSelectLabel",new SX),null===(n=e.getService(zI.ID))||void 0===n||n.registerLakeCardReader("label",new zX),null===(r=e.getService(qB.ID))||void 0===r||r.registerINodeCardReader(IX.CardName,new IX),null===(o=e.getService(UI.ID))||void 0===o||o.registerNodeHTMLWriter(t.cardName,new $X),null===(i=e.getService(zI.ID))||void 0===i||i.registerLakeCardWriter(t.cardName,new GX),null===(a=e.getService(vF.ID))||void 0===a||a.registerMarkdownWriter(t.cardName,new JX)}}]),t}(ft);Object.defineProperty(ZX,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"label"}),Object.defineProperty(ZX,"cardName",{enumerable:!0,configurable:!0,writable:!0,value:"label"});var eQ="fixed",tQ="adapt";function nQ(e,t,n){return t=Qe(t),Xe(e,rQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rQ=function(){return!!e})()}var oQ=function(e){function t(e){var n;return Ye(this,t),n=nQ(this,t),Object.defineProperty(Je(n),"_cachedValue",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"needPersistent",value:function(){return!0}},{key:"validate",value:function(e){return e===eQ||e===tQ}},{key:"beforeSetMeta",value:function(e){this._cachedValue=e}},{key:"getMeta",value:function(){return this._cachedValue}},{key:"isDefault",value:function(e){return void 0===e}}]),t}(C$);function iQ(e,t,n){return t=Qe(t),Xe(e,aQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aQ=function(){return!!e})()}var lQ=function(e){function t(){var e;return Ye(this,t),e=iQ(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function uQ(e,t,n){return t=Qe(t),Xe(e,cQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function cQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cQ=function(){return!!e})()}Object.defineProperty(lQ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("ILayoutService")});var sQ=function(e){function t(){return Ye(this,t),uQ(this,t,arguments)}return et(t,e),Ke(t,[{key:"setLayout",value:function(e){this.plugin.setLayout(e)}},{key:"getLayout",value:function(){return this.plugin.getLayout()}},{key:"destroy",value:function(){}}]),t}(lQ),dQ=uI({pluginName:"layout",command:{layout:"layout"}});function fQ(e,t,n){return t=Qe(t),Xe(e,hQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hQ=function(){return!!e})()}var pQ=function(e){function t(){return Ye(this,t),fQ(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return pt}},{key:"getValue",value:function(){return this.plugin.getLayout()}},{key:"execute",value:function(e,t){return this.plugin.setLayout(t)}}]),t}(wt);function vQ(e,t,n){return t=Qe(t),Xe(e,mQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mQ=function(){return!!e})()}Object.defineProperty(pQ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:dQ.command.layout});var gQ=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eQ;Ye(this,e),Object.defineProperty(this,"_layout",{enumerable:!0,configurable:!0,writable:!0,value:eQ}),this._layout=t}return Ke(e,[{key:"layout",get:function(){return this._layout}}]),e}();Object.defineProperty(gQ,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"layout"});var bQ=function(e){function t(e,n){var r;return Ye(this,t),r=vQ(this,t,[e]),Object.defineProperty(Je(r),"kernelOption",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return et(t,e),Ke(t)}(gQ);function yQ(e,t,n){return t=Qe(t),Xe(e,wQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wQ=function(){return!!e})()}Object.defineProperty(bQ,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"layout"});var kQ=function(e){function t(){return Ye(this,t),yQ(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.kernel.requireService(c$.ID),e.extendMethods({getLayout:function(){return t.getLayout()},setLayout:function(e){return t.setLayout(e)}})}},{key:"afterInit",value:function(){this.kernel.requireService(c$.ID).registerMeta("viewport",new oQ(this.option.layout))}},{key:"setLayout",value:function(e){if(e===tQ||e===eQ){var t=this.getLayout();this.kernel.requireService(c$.ID).setMeta("viewport",e),t!==e&&(this.kernel.emitEvent("layoutChange",e,t),this.kernel.emitPluginEvent("layoutChange",{current:e,prev:t}))}}},{key:"getLayout",value:function(){return this.kernel.requireService(c$.ID).getMeta("viewport")}}]),t}(ft);Object.defineProperty(kQ,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:dQ.pluginName}),Object.defineProperty(kQ,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:gQ}),Object.defineProperty(kQ,"Service",{enumerable:!0,configurable:!0,writable:!0,value:sQ}),Object.defineProperty(kQ,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[pQ]});const CQ={targets:[ze.Block],values:[1,1.15,1.5,2,2.5,3]};var _Q=uI({pluginName:"lineHeight",command:{lineHeight:"lineHeight"},toolbar:"lineHeight"});function NQ(e,t,n){return t=Qe(t),Xe(e,OQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function OQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OQ=function(){return!!e})()}var xQ=function(e){function t(){var e;return Ye(this,t),e=NQ(this,t,arguments),Object.defineProperty(Je(e),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:"lineHeight"}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){if(Cr(Qe(t.prototype),"getState",this).call(this,e)===ht)return ht;var n=e.getSelection().firstRange,r=n.start,o=n.end;return r.node.closest(ze.OnlyText)||o.node.closest(ze.OnlyText)?ht:pt}}]),t}(Zl);Object.defineProperty(xQ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:_Q.command.lineHeight});var EQ={1:1,115:1.15,15:1.5,2:2,25:2.5,3:3},DQ={1:1,1.15:115,1.5:15,2:2,2.5:25,3:3},RQ={1:1,1.15:1.15,1.5:1.5,2:2,2.5:2.5,3:3,default:null};function PQ(e,t,n){return t=Qe(t),Xe(e,SQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function SQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SQ=function(){return!!e})()}var TQ=/^lake-lineheight-(\d+)$/,AQ=function(e){function t(){return Ye(this,t),PQ(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n){n.split(" ").forEach((function(t){if(TQ.test(t)){var n=EQ[RegExp.$1];n&&e.setAttr("lineHeight",n)}}))}}]),t}(CJ),jQ=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t,n){e.addClassName("lake-lineheight-".concat(DQ[n]))}}]),e}();function IQ(e,t,n){return t=Qe(t),Xe(e,BQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BQ=function(){return!!e})()}Object.defineProperty(jQ,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["lineHeight"]});var MQ=function(e){function t(){return Ye(this,t),IQ(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){n&&e.addStyle("line-height",n)}}]),t}(WF);function FQ(e,t,n){return t=Qe(t),Xe(e,LQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function LQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LQ=function(){return!!e})()}Object.defineProperty(MQ,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["lineHeight"]});var UQ=function(e){function t(){return Ye(this,t),FQ(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttr("lineHeight",CQ);var t=e.getService(UI.ID);t&&t.registerAttrHTMLWriter(MQ.AttrNames,new MQ);var n=e.getService(zI.ID);n&&n.registerLakeAttrReader("class",new AQ);var r=e.getService(zI.ID);r&&r.registerLakeAttrWriter(jQ.AttrNames,new jQ)}}]),t}(ft);Object.defineProperty(UQ,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:_Q.pluginName}),Object.defineProperty(UQ,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[xQ]});var VQ=o(179),HQ=o.n(VQ),zQ=uI({pluginName:"textDataSource",command:{text:"text"},service:{ITextDataSourceKernelService:"ITextDataSourceKernelService"}});function WQ(e,t,n){return t=Qe(t),Xe(e,qQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qQ=function(){return!!e})()}var $Q=function(e){function t(){var e;return Ye(this,t),e=WQ(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);Object.defineProperty($Q,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(zQ.service.ITextDataSourceKernelService)});const KQ={src:{targets:["link"],values:function(e){return"string"==typeof e}},external:{targets:["link"],values:[!0,!1]}};function YQ(e,t,n){return t=Qe(t),Xe(e,GQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function GQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(GQ=function(){return!!e})()}var JQ=function(e){function t(){var e;return Ye(this,t),e=YQ(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function XQ(e,t,n){return t=Qe(t),Xe(e,QQ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function QQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QQ=function(){return!!e})()}Object.defineProperty(JQ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("ILinkKernelService")});var ZQ=function(e){function t(){var e;return Ye(this,t),e=XQ(this,t,arguments),Object.defineProperty(Je(e),"linkTextReadProxy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"isValidURL",value:function(e){return this.plugin.option.isValidURL(e)}},{key:"transformURL",value:function(e){return this.plugin.option.transformURL(e)}},{key:"registerTextReadProxy",value:function(e){this.linkTextReadProxy=e}},{key:"getTextReadProxy",value:function(){return this.linkTextReadProxy}},{key:"destroy",value:function(){}}]),t}(JQ);const eZ={link:{parents:[ze.TextContainer],excludes:["link"],category:[ze.Inline,ze.TextContainer],children:[ze.Text]}};var tZ=uI({pluginName:"link",node:"link",toolbar:"link",command:{link:"link",unlink:"unlink",insertLink:"insertLink",linkText:"linkText",updateLink:"updateLink",cardToLink:"cardToLink",selectionPureLink:"selectionPureLink"},cardSelect:"link"});function nZ(e,t,n){return t=Qe(t),Xe(e,rZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rZ=function(){return!!e})()}var oZ=function(e){function t(){return Ye(this,t),nZ(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e.newJob(),l=a.getNodeById(t);if(!l)return e.cancelJob(a),!1;if(kt.fatal(l.isCardNode(),"plugins/link/src/kernel/commands/card-to-link-command.ts:26"),!n||!i&&!this.plugin.option.isValidURL(n))return e.cancelJob(a),!1;var u={src:n};o&&(u.external=!0);var c=a.createElement("link",u),s=a.createInheritTextNode(r||n,a.newPosition(l.parentNode,l.offset));if(a.appendChild(c,s),a.hasCategory(l.nodeName,ze.BlockCard)){var d=l.closest(ze.Hole),f=a.createElement(a.defaultElementName);a.appendChild(f,c),a.replaceChild(d.parentNode,f,d)}else a.replaceChild(l.parentNode,c,l);a.setSelection(a.newSelection(a.newRange(a.newPosition(c.parentNode,c.offset+1)))),e.commitJob(a)}}]),t}(wt);function iZ(e,t,n){return t=Qe(t),Xe(e,aZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aZ=function(){return!!e})()}Object.defineProperty(oZ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tZ.command.cardToLink});var lZ=function(e){function t(){return Ye(this,t),iZ(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){if(Cr(Qe(t.prototype),"getState",this).call(this,e)===ht)return ht;var n=e.getSelection(),r=n.firstRange;if(!r.collapsed)return ht;var o=n.firstRange,i=o.start,a=o.end;if(i.node.closest(ze.OnlyText)||a.node.closest(ze.OnlyText))return ht;var l=r.start.node,u=l.isTextNode()?l.parentNode:l;return u.hasCategory([ze.Root,ze.LikeRoot])?e.acceptNode(e.defaultElementName,"link")?pt:ht:u&&e.acceptNode(u.nodeName,"link")?pt:ht}},{key:"execute",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=e.newJob();if(!n||!t||this.getState(i)===ht||!o&&!this.plugin.option.isValidURL(n))return e.cancelJob(i),!1;var a={src:n};r&&(a.external=!0);var l=i.getSelection();kt.fatal(l.isCollapsed,"plugins/link/src/kernel/commands/insert-link-command.ts:87");var u=i.createElement("link",a),c=i.createInheritTextNode(t,l.firstRange.start);return i.appendChild(u,c),rr.insertInlineNode(i,l.firstRange.start,u),i.dangerDirectSetSelection(i.selectNode(u)),e.commitJob(i),u.id}}]),t}(zl);function uZ(e,t,n){return t=Qe(t),Xe(e,cZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function cZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cZ=function(){return!!e})()}Object.defineProperty(lZ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tZ.command.insertLink});var sZ=function(e){function t(){var e;return Ye(this,t),e=uZ(this,t,arguments),Object.defineProperty(Je(e),"_nodeName",{enumerable:!0,configurable:!0,writable:!0,value:"link"}),e}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.newJob();if(!t||this.getState(o)===ht||!r&&!this.plugin.option.isValidURL(t))return e.cancelJob(o),!1;var i={src:t};n&&(i.external=!0);var a=o.createElement("link",i),l=zo.wrapInlineNode(o,o.getSelection().firstRange,a);return zo.walkRange(l,(function(e){e.isTextNode()&&o.removeAttribute(e,"color")})),o.dangerDirectSetSelection(o.selectNode(a)),e.commitJob(o),kt.fatal(a.isConnected,"plugins/link/src/kernel/commands/link-command.ts:60"),a.id}}]),t}(Kl);function dZ(e,t,n){return t=Qe(t),Xe(e,fZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function fZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fZ=function(){return!!e})()}Object.defineProperty(sZ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tZ.command.link});var hZ=function(e){function t(){return Ye(this,t),dZ(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){return this._getLinkNode(e)?pt:ht}},{key:"getValue",value:function(e,t){var n=this._getLinkNode(e,t);return n?n.children.map((function(e){var t=e.isTextNode();return kt.fatal(t,"plugins/link/src/kernel/commands/link-text-command.ts:36"),t?e.data:""})).join(""):null}},{key:"_getLinkNode",value:function(e,t){if(t){var n=e.getNodeById(t);return n&&"link"===n.nodeName?n:null}var r=e.getSelection();return r.rangeCount>1?null:r.firstRange.commonAncestorContainer.closest("link")}}]),t}(wt);function pZ(e,t,n){return t=Qe(t),Xe(e,vZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vZ=function(){return!!e})()}Object.defineProperty(hZ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tZ.command.linkText});var mZ=function(e){function t(){return Ye(this,t),pZ(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e){var t,n,r,o,i=e.getSelection(),a=null==i?void 0:i.firstRange;if(!a||i.rangeCount>1)return null;var l=null===(t=a.start)||void 0===t?void 0:t.node,u=null===(n=a.start)||void 0===n?void 0:n.offset,c=null===(r=a.end)||void 0===r?void 0:r.node,s=null===(o=a.end)||void 0===o?void 0:o.offset;return a.collapsed?this._getLinkNode(l,u-1,!0)||this._getLinkNode(c,s-1,!0):a.collapsed?null:this._getLinkNode(l,u,!0)&&this._getLinkNode(c,s,!1)}},{key:"_getLinkNode",value:function(e,t,n){var r,o;if(!e||"number"!=typeof t)return null;if((null===(r=e.isTextNode)||void 0===r?void 0:r.call(e))&&"link"===(null===(o=e.parent)||void 0===o?void 0:o.nodeName))return e.parent;if(e.hasCategory(ze.TextContainer)){var i=e.children[n?t:t-1];if("link"===(null==i?void 0:i.nodeName))return i}return null}}]),t}(zl);function gZ(e,t,n){return t=Qe(t),Xe(e,bZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bZ=function(){return!!e})()}Object.defineProperty(mZ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tZ.command.selectionPureLink});var yZ=function(e){function t(){return Ye(this,t),gZ(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=e.newJob(),r=n.getNodeById(t);if(this.getState(n)===ht||!r||"link"!==r.nodeName)return e.cancelJob(n),!1;var o=zo.unwrapInlineNode(n,n.getSelection().firstRange,r);return n.setSelection(n.newSelection([o])),e.commitJob(n),!0}}]),t}(zl);function wZ(e,t,n){return t=Qe(t),Xe(e,kZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kZ=function(){return!!e})()}Object.defineProperty(yZ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tZ.command.unlink});var CZ=function(e){function t(){return Ye(this,t),wZ(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){if(!n.text&&!n.src&&"boolean"!=typeof n.external)return!1;var r=e.newJob(),o=r.getNodeById(t);if(!o||"link"!==o.nodeName)return e.cancelJob(r),!1;if(n.src){if(!this.plugin.option.isValidURL(n.src))return e.cancelJob(r),!1;r.setAttribute(o,"src",n.src)}if(n.text&&this._updateLinkNodeContent(r,o,n.text),"boolean"==typeof n.external)r.setAttribute(o,"external",n.external);else if(n.src){var i=this.plugin.option.isTargetBlankURL(n.src);r.setAttribute(o,"external",i)}return r.dangerDirectSetSelection(r.selectNode(o)),e.commitJob(r),!0}},{key:"_updateLinkNodeContent",value:function(e,t,n){var r=e.createInheritTextNode(n,e.newPosition(t,0));t.children.forEach((function(n){e.removeChild(t,n)})),e.appendChild(t,r)}}]),t}(wt);Object.defineProperty(CZ,"ID",{enumerable:!0,configurable:!0,writable:!0,value:tZ.command.updateLink});var _Z={autoCompleteLink:!1,referenceURL:null,protectURL:!1,Commons:["http:","https:","data:","dingtalk:","ftp:","mailto:","fleamarket:","alipays:","qinpai:"],isValidURL:function(e,t){try{var n=new URL(e,"http://localhost/").Common;return!!t.includes(n)}catch(e){}return!1},sanitizeURL:function(e){return xh.sanitizeUrl(e)},isTargetBlankURL:function(e,t){try{if("necustom:"===new URL(e,"necustom://me.com/").Common)return!1}catch(e){return!0}try{var n=new URL(e,t),r=new URL(t);if(n.host===r.host)return!1}catch(e){return!0}return!0},transformURL:function(e,t){return e},allowToOpenLocal:function(e,t){return!1}},NZ=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Object.assign(Object.assign({},_Z),t)}return Ke(e,[{key:"autoCompleteLink",get:function(){return this._option.autoCompleteLink}},{key:"referenceURL",get:function(){return this._option.referenceURL||this.kernelOption.currentURL}},{key:"protectURL",get:function(){return!!this._option.protectURL}},{key:"allowToOpenLocal",value:function(e,t){return this._option.allowToOpenLocal(e,t)}},{key:"isValidURL",value:function(e){return this._option.isValidURL(e,this._option.Commons)}},{key:"sanitizeURL",value:function(e){return this._option.sanitizeURL(e)}},{key:"isTargetBlankURL",value:function(e){return this._option.isTargetBlankURL(e,this.referenceURL)}},{key:"transformURL",value:function(e){return this._option.transformURL(e,this.referenceURL)}}]),e}();Object.defineProperty(NZ,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"link"});var OZ=Ke((function e(){Ye(this,e)}));function xZ(e,t,n){return t=Qe(t),Xe(e,EZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function EZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EZ=function(){return!!e})()}var DZ=function(e){function t(e){var n;return Ye(this,t),n=xZ(this,t),Object.defineProperty(Je(n),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._plugin=e,n}return et(t,e),Ke(t,[{key:"read",value:function(e,t){var n=t.attrs;(null==n?void 0:n.href)&&(this._plugin.option.protectURL&&!this._plugin.option.isValidURL(null==n?void 0:n.href)||e.setNode(Wo.createElement("link",{src:n.href,external:"_blank"===n.target})))}}]),t}(OZ);function RZ(e,t,n){return t=Qe(t),Xe(e,PZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function PZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PZ=function(){return!!e})()}var SZ=function(e){function t(e){var n;return Ye(this,t),n=RZ(this,t),Object.defineProperty(Je(n),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:null}),n._plugin=e,n}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){var n=t.attrs,r=t.children,o=this._extractLinkText(r)||(null==n?void 0:n.name),i=this._plugin.option,a=i.transformURL(null==n?void 0:n.href);if((null==n?void 0:n.href)&&i.isValidURL(null==n?void 0:n.href))if(o){e.stop();var l=Wo.createElement("link",{src:a,external:i.isTargetBlankURL(a)});Wo.appendChild(l,Wo.createTextNode(o)),e.setNode(l)}else e.setState("link",a)}},{key:"_extractLinkText",value:function(e){var t=this;return(null==e?void 0:e.length)?e.map((function(e){return"#text"===e.name?e.data:e.children?t._extractLinkText(e.children):""})).join("").replace(/[\u200B\uFEFF]/g,"").trim():""}}]),t}(HM);Object.defineProperty(SZ,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["a"]});var TZ={http:!0,https:!0},AZ=/(?:[^a-z0-9]|^)([a-z0-9]{2,}):\/\/(?:[a-z_0-9@:.])+?(?:\/\S*?)?(?:[#\s\S]*?)?(?:(?=[\u0100-\uffff\s])|$)/gi,jZ=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"pluginOption",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"service",{enumerable:!0,configurable:!0,writable:!0,value:n})}return Ke(e,[{key:"read",value:function(e,t){for(var n,r,o,i=[];o=AZ.exec(e);)if(TZ[o[1].toLowerCase()]){var a=o[0],l=o.index;/^[^a-z0-9]/i.test(o[0])&&(l+=1,a=a.substring(1)),this.pluginOption.isValidURL(a)&&i.push({index:l,url:a})}if(0===i.length)return null;var u=null===(r=null===(n=this.service)||void 0===n?void 0:n.getTextReadProxy())||void 0===r?void 0:r(i,t.originText,e);return(null==u?void 0:u.length)?u:this._generateLinkNode(i,e)}},{key:"_generateLinkNode",value:function(e,t){var n=[],r=0,o=this.pluginOption;return e.forEach((function(e){var i=e.url,a=e.index;a>r&&n.push(Wo.createTextNode(t.substring(r,a)));var l=o.transformURL(i),u=Wo.createElement("link",{external:o.isTargetBlankURL(l),src:l});Wo.appendChild(u,Wo.createTextNode(i)),n.push(u),r=a+i.length})),r]+(?:source=")([^"]+)"/))||void 0===n?void 0:n[1])||"").split("#")[0];i&&Wo.setAttribute(t,{src:i+t.attrs.src})}}},{key:"destroy",value:function(){}}]),e}(),zZ=uI({pluginName:"kernelAssistant",service:{IKernelAssistantService:"IKernelAssistantService"}});function WZ(e,t,n){return t=Qe(t),Xe(e,qZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qZ=function(){return!!e})()}var $Z=function(e){function t(){var e;return Ye(this,t),e=WZ(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function KZ(e,t,n){return t=Qe(t),Xe(e,YZ()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function YZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YZ=function(){return!!e})()}Object.defineProperty($Z,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(zZ.service.IKernelAssistantService)});var GZ=function(e){function t(){var e;return Ye(this,t),e=KZ(this,t,arguments),Object.defineProperty(Je(e),"nodeAttrProcessor",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){return e.closest("link")?HQ()(t,["color","bgColor"]):t}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t,n,r=this;e.registerElement(eZ),e.registerAttr(KQ),e.extendMethods({isValidURL:function(){var e;return(e=r.option).isValidURL.apply(e,arguments)},transformURL:function(){var e;return(e=r.option).transformURL.apply(e,arguments)}});var o=e.getService(UI.ID);o&&o.registerHTMLNodeReader(SZ.NodeNames,new SZ(this));var i=e.getService(UI.ID);i&&i.registerNodeHTMLWriter(MZ.NodeNames,new MZ(this));var a=e.getService($Q.ID);a&&a.registerTextReader(new jZ(this.option,this.service));var l=e.getService(zI.ID);l&&l.registerLakeNodeReader("a",new DZ(this));var u=e.getService(zI.ID);u&&u.registerLakeNodeWriter(UZ.NodeNames,new UZ);var c=e.getService($Y.ID);c&&c.registerINodeNodePreReader(tZ.node,new HZ),null===(t=e.getService(vF.ID))||void 0===t||t.registerMarkdownWriter("link",new VZ),null===(n=e.getService($Z.ID))||void 0===n||n.registerBeforeInsertTextInheritAttrs(this.nodeAttrProcessor),this._initMarkdownKey()}},{key:"_initMarkdownKey",value:function(){var e=this.kernel.getService(GI.ID);e&&e.registerMarkdownMatcher(WI.whiteSpace,new GB(this.editing,{match:/\[(.+?)]\(([\S]+?)\)$/,exclude:/!\[(.+?)]\(([\S]+?)\)$/},(function(e,t,n,r){var o=r.matched,i=e.newPosition(n,o.index),a=o[1],l=o[2],u=e.createElement("link",{src:l}),c=e.createInheritTextNode(a,i);e.appendChild(u,c),rr.insertInlineNode(e,i,u),e.setSelection(e.newSelection(e.newRange(e.newPosition(u.parentNode,u.offset+1))))})))}}]),t}(ft);Object.defineProperty(GZ,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:tZ.pluginName}),Object.defineProperty(GZ,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:NZ}),Object.defineProperty(GZ,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[sZ,yZ,lZ,hZ,CZ,oZ,mZ]}),Object.defineProperty(GZ,"Service",{enumerable:!0,configurable:!0,writable:!0,value:ZQ});var JZ=uI({pluginName:"list",node:{oli:"oli",uli:"uli",tli:"tli"},domNode:{oli:"ne-oli","oli-i":"ne-oli-i","oli-c":"ne-oli-c",tli:"ne-tli","tli-i":"ne-tli-i","tli-c":"ne-tli-c",uli:"ne-uli","uli-i":"ne-uli-i","uli-c":"ne-uli-c"},attr:{list:"list",fid:"fid",level:"level",index:"index",start:"start",indexStyle:"indexStyle",indexType:"indexType",parentIndex:"parentIndex",checked:"checked",version:"version"},service:{listDataProcessService:"IListDataProcessService"},command:{orderedList:"orderedList",unorderedList:"unorderedList",taskList:"taskList",orderedListIndexType:"orderedListIndexType",orderedListIndexQuery:"orderedListIndexQuery",taskStatus:"taskStatus"},toolbar:{orderedList:"orderedList",unorderedList:"unorderedList",taskList:"taskList",notetaskList:"notetaskList","note-taskList-black":"note-taskList-black"},cardSelect:{orderedList:"orderedList",unorderedList:"unorderedList",taskList:"taskList"}});function XZ(e,t,n,r){var o={configurable:!0,enumerable:!0};return o[e]=r,Object.defineProperty(t,n,o)}for(var QZ=8,ZZ=["bold","italic","fontsize","color"],e0="headingIndexTypeChange",t0=[JZ.node.oli,JZ.node.tli,JZ.node.uli],n0={orderedList:JZ.node.oli,unorderedList:JZ.node.uli,taskList:JZ.node.tli},r0=Ja(Ja(Ja({},JZ.node.oli,{mainIcon:"editor-main-ordered-list",icon:"t-order-list"}),JZ.node.uli,{mainIcon:"editor-main-unordered-list",icon:"t-unorder-list"}),JZ.node.tli,{mainIcon:"editor-main-task-list",icon:"t-task-list"}),o0=XZ("get",XZ("get",XZ("get",{},JZ.node.oli,(function(){return gc("有序列表")})),JZ.node.uli,(function(){return gc("无序列表")})),JZ.node.tli,(function(){return gc("任务列表")})),i0=[],a0=1;a0<=QZ;a0++)i0.push(a0);const l0=Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja({},JZ.attr.list,{targets:[ze.Level]}),JZ.attr.fid,{targets:[ze.Level]}),JZ.attr.level,{targets:[ze.Level],values:i0}),JZ.attr.index,{targets:[ze.Level]}),JZ.attr.start,{targets:[ze.Level]}),JZ.attr.indexStyle,{targets:[ze.Level]}),JZ.attr.indexType,{targets:[ze.Level,ze.Heading]}),JZ.attr.parentIndex,{targets:[ze.Level]}),JZ.attr.checked,{targets:[JZ.node.tli],values:[!0],cleanByBreakLine:!0}),JZ.attr.version,{targets:[JZ.node.tli],cleanByBreakLine:!0});function u0(e,t,n){return t=Qe(t),Xe(e,c0()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function c0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c0=function(){return!!e})()}var s0=function(e){function t(){var e;return Ye(this,t),e=u0(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function d0(e,t,n){return t=Qe(t),Xe(e,f0()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function f0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f0=function(){return!!e})()}Object.defineProperty(s0,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(JZ.service.listDataProcessService)});var h0=function(e){function t(){var e;return Ye(this,t),e=d0(this,t,arguments),Object.defineProperty(Je(e),"_processer",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"registerProcesser",value:function(e){kt.fatal(null===this._processer,"plugins/list/src/kernel/list-data-process-service.ts:9"),this._processer=e}},{key:"getProcesser",value:function(){return this._processer}},{key:"destroy",value:function(){}}]),t}(s0);const p0=Ja(Ja(Ja({},JZ.node.oli,{parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Sticky,ze.DisallowEmpty,ze.Level,ze.TextContainer,ze.Brick],standardAttrs:[JZ.attr.list,JZ.attr.level,JZ.attr.start,JZ.attr.fid,JZ.attr.index,JZ.attr.indexStyle,JZ.attr.checked]}),JZ.node.uli,{parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Sticky,ze.DisallowEmpty,ze.Level,ze.TextContainer,ze.Brick],standardAttrs:[JZ.attr.list,JZ.attr.level,JZ.attr.start,JZ.attr.fid,JZ.attr.index,JZ.attr.indexStyle,JZ.attr.checked]}),JZ.node.tli,{parents:["#root",ze.LikeRoot],category:[ze.Block,ze.Sticky,ze.Clean,ze.DisallowEmpty,ze.Level,ze.TextContainer,ze.Brick],standardAttrs:[JZ.attr.list,JZ.attr.level,JZ.attr.start,JZ.attr.fid,JZ.attr.index,JZ.attr.indexStyle,JZ.attr.checked]});var v0=0,m0=2;function g0(){return v0}function b0(e){v0=e}function y0(){return m0}function w0(e){m0=e}function k0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:y0(),r=arguments.length>2?arguments[2]:void 0,o=e.newJob(),i=null;if(r){if(!(null==(i=o.getNodeById(r))?void 0:i.hasCategory(N0)))return e.cancelJob(o),!1;if(!(null==i?void 0:i.hasCategory(N0)))return e.cancelJob(o),!1;i.attrs.indexType===n?o.removeAttribute(i,"indexType"):t.setBlockNodeIndexType(o,i,n)}else{if(this.getState(o)===ht)return e.cancelJob(o),!1;var a=t.isHeadingSelection(o.getSelection());kt.fatal(a,"plugins/list/src/kernel/commands/index-type-command.ts:82");var l,u=a.every((function(e){return e.attrs.indexType===n})),c=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k0(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(a);try{for(c.s();!(l=c.n()).done;){var s=l.value;u?o.removeAttribute(s,"indexType"):t.setBlockNodeIndexType(o,s,n)}}catch(e){c.e(e)}finally{c.f()}}return o.setSelection(o.getSelection()),e.commitJob(o),!0}}],[{key:"isHeadingSelection",value:function(e){var t,n,r,o,i=e.firstRange,a=i.start,l=i.end;a.node.isRootNode()&&l.node.isRootNode()?(r=a.node.children[a.offset],o=l.node.children[l.offset]||l.node.children[l.offset-1]):(r=a.node.closest(ze.Block),o=l.node.closest(ze.Block));var u=new Set;if((null==r?void 0:r.hasCategory(ze.Heading))&&(null===(t=r.parent)||void 0===t?void 0:t.isRootNode())&&(null==o?void 0:o.hasCategory(ze.Heading))&&(null===(n=o.parentNode)||void 0===n?void 0:n.isRootNode())){var c=r;for(u.add(c);c&&c!==o;){if(u.add(c),!c.hasCategory(ze.Heading))return null;c=c.nextSibling}return u.add(o),Array.from(u)}return null}},{key:"setBlockNodeIndexType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y0();e.setAttribute(t,"indexType",n),w0(n),e.document.getNodesByCategory(ze.Heading).filter((function(e){var t;return e.isConnected&&(null===(t=e.parentNode)||void 0===t?void 0:t.isRootNode())})).forEach((function(r){r!==t&&"number"==typeof r.attrs.indexType&&r.attrs.indexType!==n&&e.setAttribute(r,"indexType",n)}))}},{key:"getCurrentIndexType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y0();return e.document.getNodesByCategory(ze.Heading).filter((function(e){var t;return e.isConnected&&(null===(t=e.parentNode)||void 0===t?void 0:t.isRootNode())})).find((function(e){return"number"==typeof e.attrs.indexType&&(t=e.attrs.indexType,!0)})),t}}]),t}(Wl);function x0(e,t,n){return t=Qe(t),Xe(e,E0()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function E0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E0=function(){return!!e})()}var D0=function(e){function t(){var e;return Ye(this,t),e=x0(this,t,arguments),Object.defineProperty(Je(e),"nodeName",{enumerable:!0,configurable:!0,writable:!0,value:JZ.node.oli}),e}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){var n=this.nodeName,r=e.getNodeById(t);if(!r||r.nodeName!==n)return null;var o=r.attrs.list,i=e.getNodesByName(n).filter((function(e){return e.isConnected}));if(i.find((function(e){return e.attrs.list===o&&zt.compare(e,r).preceding})))return[!0,!1,r.attrs.indexType];var a={},l=i.find((function(e){var t=e.attrs.list;return!a[t]&&t!==o&&(a[t]=e,zt.compare(e,r).preceding)}));return[r.attrs.start,!!l,r.attrs.indexType]}},{key:"execute",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.newJob(),o=this.nodeName,i=r.getNodeById(t);if(!i||i.nodeName!==o)return e.cancelJob(r),!1;var a=i.attrs.list;if(i.attrs.fid,n){var l=r.getNodesByName(o).filter((function(e){return e.attrs.list===a&&zt.compare(e,i).following})),u=gr();return r.removeAttribute(i,JZ.attr.fid),r.removeAttribute(i,JZ.attr.start),r.setAttribute(i,JZ.attr.list,u),l.forEach((function(e){r.removeAttribute(e,JZ.attr.fid),r.setAttribute(e,JZ.attr.list,u)})),e.commitJob(r),!0}var c=r.getNodesByName(o).filter((function(e){return e.isConnected})),s={};c.forEach((function(e){var t=e.attrs.list;s[t]||t===a||(s[t]=e)}));var d=Object.values(s).filter((function(e){return e.isConnected&&zt.compare(e,i).preceding})).sort((function(e,t){var n=zt.compare(e,t);return n.preceding?-1:(kt.fatal(n.following,"plugins/list/src/kernel/commands/list-ordered-index-command.ts:109"),1)}));if(0===d.length)return e.cancelJob(r),!1;var f=d[d.length-1].attrs.list;return r.removeAttribute(i,JZ.attr.fid),r.setAttribute(i,JZ.attr.list,f),c.forEach((function(e){e.attrs.list===a&&(r.removeAttribute(e,JZ.attr.fid),r.setAttribute(e,JZ.attr.list,f))})),e.commitJob(r),!0}}]),t}(zl);function R0(e,t,n){return t=Qe(t),Xe(e,P0()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function P0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P0=function(){return!!e})()}Object.defineProperty(D0,"ID",{enumerable:!0,configurable:!0,writable:!0,value:JZ.command.orderedListIndexQuery});var S0=function(e){function t(){var e;return Ye(this,t),e=R0(this,t,arguments),Object.defineProperty(Je(e),"nodeName",{enumerable:!0,configurable:!0,writable:!0,value:JZ.node.oli}),Object.defineProperty(Je(e),"categories",{enumerable:!0,configurable:!0,writable:!0,value:[JZ.node.oli,ze.Heading]}),e}return et(t,e),Ke(t,[{key:"getValueByHeading",value:function(e){var t=e.firstRange,n=t.start,r=t.end,o=n.node.closest(ze.Block);return o&&o.hasCategory(ze.Heading)&&o===r.node.closest(ze.Block)&&o.attrs.indexType||null}},{key:"getValue",value:function(e){var t=new Set,n=!1,r=e.getSelection(),o=r.firstRange.start.node.closest([ze.Block]);return o&&o.hasCategory(ze.Heading)?this.getValueByHeading(r):(Di.fullWalkSelection(r,{enter:function(e){return!n&&(e.hasCategory(ze.TextContainer)?(kt.fatal(e.isElement(),"plugins/list/src/kernel/commands/list-ordered-type-command.ts:52"),e.hasCategory("oli")?t.add(e.attrs.indexType):zt.isLikeEmptyElement(e)||(n=!0),!1):void 0)}}),n||1!==t.size?null:Array.from(t)[0])}},{key:"execute",value:function(e,t,n){var r=e.newJob(),o=this.categories,i=r.getNodeById(t);return i&&i.hasCategory(o)&&"number"==typeof n?(b0(n),r.setAttribute(i,JZ.attr.indexType,n),e.commitJob(r),!0):(e.cancelJob(r),!1)}}]),t}(zl);function T0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(a);try{for(c.s();!(l=c.n()).done;){var s=l.value;u?o.removeAttribute(s,"indexType"):O0.setBlockNodeIndexType(o,s,n)}}catch(e){c.e(e)}finally{c.f()}return o.setSelection(i),void e.commitJob(o)}void 0!==n&&b0(n)}void 0===n&&(n=g0());var d=i;if(this.getState(o)===t.NOT_EXECUTED)d=Di.replaceBlockNode(o,i,o.createElement(this._nodeName,this._nodeName===JZ.node.oli?{list:gr(),indexType:n}:{list:gr()}),(function(e,t,o){var i=function(e,t,n){M0(e,t,n,F0)}(e,t,o);return r._nodeName===JZ.node.oli&&e.setAttribute(t,JZ.attr.indexType,n),i}),!0);else{var f=this._getNodes(o);f&&f[0].nodeName===JZ.node.oli&&f[0].attrs.indexType!==n?f.forEach((function(e){o.setAttribute(e,JZ.attr.indexType,n)})):d=Di.replaceBlockNode(o,i,o.createElement(o.defaultElementName),B0,!0)}return o.setSelection(d),e.commitJob(o),!0}},{key:"_getNodes",value:function(e){var t=this._nodeName,n=new Set,r=!1;return Di.fullWalkSelection(e.getSelection(),{enter:function(e){return!r&&(e.hasCategory(ze.TextContainer)?(kt.fatal(e.isElement(),"plugins/list/src/kernel/commands/list-command.ts:167"),e.hasCategory(t)?n.add(e):zt.isLikeEmptyElement(e)||(r=!0),!1):void 0)}}),r?null:Array.from(n)}}]),t}(zl);function B0(e,t,n){M0(e,t,n,L0)}function M0(e,t,n,r){if(n.attrs){var o=Object.assign({},n.attrs);r(e,o,t),Object.keys(o).forEach((function(n){var r=o[n];e.acceptAttr(t.nodeName,n,r)&&e.setAttribute(t,n,r)}))}}function F0(e,t,n){var r=(t.textIndent||0)+(t.indent||0);0!==r&&(e.setAttribute(n,JZ.attr.level,r),delete t.textIndent,delete t.indent)}function L0(e,t,n){t.level&&(e.setAttribute(n,"indent",t.level),delete t.level)}function U0(e,t,n){return t=Qe(t),Xe(e,V0()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function V0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V0=function(){return!!e})()}var H0=function(e){function t(e,n,r){var o;return Ye(this,t),o=U0(this,t,[e,n,r,JZ.node.oli]),Object.defineProperty(Je(o),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"editing",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:r}),o}return et(t,e),Ke(t)}(I0);function z0(e,t,n){return t=Qe(t),Xe(e,W0()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function W0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(W0=function(){return!!e})()}Object.defineProperty(H0,"ID",{enumerable:!0,configurable:!0,writable:!0,value:JZ.command.orderedList});var q0=function(e){function t(){return Ye(this,t),z0(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n,r){var o=e.newJob(),i=o.getNodeById(t);if(!i||i.nodeName!==JZ.node.tli)return!1;var a=n;if(void 0===n)a=!i.attrs.checked;else if(i.attrs.checked===n)return!0;return a?o.setAttribute(i,JZ.attr.checked,a):o.removeAttribute(i,JZ.attr.checked),o.setAttribute(i,JZ.attr.version,r||+new Date),e.commitJob(o),!0}}]),t}(wt);function $0(e,t,n){return t=Qe(t),Xe(e,K0()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function K0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(K0=function(){return!!e})()}Object.defineProperty(q0,"ID",{enumerable:!0,configurable:!0,writable:!0,value:JZ.command.taskStatus});var Y0=function(e){function t(e,n,r){var o;return Ye(this,t),o=$0(this,t,[e,n,r,JZ.node.tli]),Object.defineProperty(Je(o),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"editing",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:r}),o}return et(t,e),Ke(t)}(I0);function G0(e,t,n){return t=Qe(t),Xe(e,J0()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function J0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J0=function(){return!!e})()}Object.defineProperty(Y0,"ID",{enumerable:!0,configurable:!0,writable:!0,value:JZ.command.taskList});var X0=function(e){function t(e,n,r){var o;return Ye(this,t),o=G0(this,t,[e,n,r,JZ.node.uli]),Object.defineProperty(Je(o),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"editing",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:r}),o}return et(t,e),Ke(t)}(I0);Object.defineProperty(X0,"ID",{enumerable:!0,configurable:!0,writable:!0,value:JZ.command.unorderedList});var Q0={个:1,十:10,百:100,千:1e3,万:1e4},Z0={零:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9};function e1(e,t,n){return t=Qe(t),Xe(e,t1()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function t1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t1=function(){return!!e})()}var n1={enableDynamic:!1,allFromStart:!1,onAfterKernelPluginInit:function(){},onAfterViewerPluginInit:function(){},getInitialHeadingIndex:function(){return[Number.MAX_VALUE]}},r1=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},n1,t)}return Ke(e,[{key:"enableDynamic",get:function(){return this._option.enableDynamic}},{key:"allFromStart",get:function(){return this._option.allFromStart}},{key:"getInitialHeadingIndex",get:function(){return this._option.getInitialHeadingIndex}},{key:"onAfterKernelPluginInit",get:function(){return this._option.onAfterKernelPluginInit}},{key:"onAfterViewerPluginInit",get:function(){return this._option.onAfterViewerPluginInit}}]),e}();Object.defineProperty(r1,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"list"});var o1=function(e){function t(e,n){var r;return Ye(this,t),r=e1(this,t,[e]),Object.defineProperty(Je(r),"kernelOption",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return et(t,e),Ke(t)}(r1);Object.defineProperty(o1,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"list"});var i1=["零","一","二","三","四","五","六","七","八","九"],a1=["","十","百","千","万"];function l1(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e>1e4)return l1(Math.floor(e/1e4))+"万"+l1(e%1e4,e%1e4<1e3);for(var n=e.toString(),r="",o=0;o3&&void 0!==arguments[3]?arguments[3]:p1;return r===p1?d1(e,t):r===v1?function(e,t){return e+=1,0==(t=(t||0)%3)?u1(e):1===t?"(".concat(u1(e),")"):e+""}(e,t):r===m1?h1(e,t,n):d1(e,t)}function b1(e,t,n){for(var r=n,o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var r=n.newJob(He.Auto);try{var o=r.document.getNodesByCategory(ze.Heading).filter((function(e){var t;return e.isConnected&&(null===(t=e.parentNode)||void 0===t?void 0:t.isRootNode())})).sort((function(e,t){return zt.compare(e,t).preceding?-1:1}));e.newNodeAddIndexType(r,o),n.commitJob(r),e._hasChangeIndexType=!1,t.emitPluginEvent(e0,!0)}catch(e){n.cancelJob(r)}e._nodes.clear()}e._hasChangeIndexType&&(e._hasChangeIndexType=!1,t.emitPluginEvent(e0,!0))})),jc(this,t,"contentchange",(function(){e.shouldReCompute&&(e.shouldReCompute=!1,e.compute())}))}},{key:"getHeadingIndexInfo",value:function(e){return e&&this.idToInfoMap.get(e)||null}},{key:"newNodeAddIndexType",value:function(e,t){this._nodes.forEach((function(n){var r;if(null===(r=n.parent)||void 0===r?void 0:r.isRootNode())for(var o=Number(n.nodeName.slice(1))||0,i=t.indexOf(n),a=t[i-1];a;){if((Number(a.nodeName.slice(1))||0)<=o)return void("number"==typeof a.attrs.indexType&&e.setAttribute(n,"indexType",a.attrs.indexType));a=t[(i-=1)-1]}else"number"==typeof n.attrs.indexType&&e.removeAttribute(n,"indexType")}))}},{key:"destroy",value:function(){}},{key:"compute",value:function(){var e=this;if(this.iKernel.document){this.idToInfoMap.clear();var t,n=[0,0,0,0,0,0],r=[],o=Number.MAX_VALUE,i=[],a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return y1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y1(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.iKernel.document.rootNode.children);try{for(a.s();!(t=a.n()).done;){var l=t.value;if(l.hasCategory(ze.Heading)){var u=Number(l.nodeName.slice(1))-1;r=r.slice(0,u+1),"number"==typeof l.attrs.indexType&&(n[u]=1,o=Math.min(u,o),"number"==typeof r[u]?r[u]++:r[u]=0,i.push({headingIndex:r.slice(0),headingLevel:u,node:l}))}}}catch(e){a.e(e)}finally{a.f()}for(var c=n.reduce((function(e,t,n){return t&&(e[n]=e._currentIndex++),e}),{_currentIndex:0}),s=function(){var t=f[d],r=t.node,i=t.headingIndex,a=t.headingLevel,l=b1(i,(function(e,t,r){return n[r]&&r<=a&&e.push(t),e}),[]);e.idToInfoMap.set(r.id,{index:i[a],indexType:r.attrs.indexType,level:a-o,parentIndex:i.slice(o,a),symbol:e._getIndexText(l[c[a]],r.attrs.indexType,c[a],l.slice(0,c[a]))})},d=0,f=i;d3&&void 0!==arguments[3]?arguments[3]:p1;return r===p1?d1(e,t)+". ":r===v1?function(e,t){return e+=1,0==(t=(t||0)%3)?u1(e)+"、":1===t?"(".concat(u1(e),") "):e+". "}(e,t):r===m1?h1(e,t,n)+". ":void 0}(e,n,r,t)||""}catch(e){console.error(e)}return""}}]),e}(),k1=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"_fid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_level",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_indexType",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_parentNodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_nodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._fid=t||gr(),this._parentNodes=(n||[]).slice(0,-1)}return Ke(e,[{key:"updateTopNodes",value:function(e){this._parentNodes=(e||[]).slice(0,-1)}},{key:"level",get:function(){return this._level}},{key:"addNode",value:function(e){kt.fatal(!this._nodes.includes(e),"plugins/list/src/kernel/lib/list-fragment.ts:31"),0===this._nodes.length&&(this._level=e.attrs.level||0,this._indexType=e.attrs.indexType||0),this._nodes.push(e)}},{key:"reset",value:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this._fid,a=(null===(r=null===(n=this._nodes[0])||void 0===n?void 0:n.attrs)||void 0===r?void 0:r.start)||0,l=o?a:0,u=this._parentNodes.map((function(e){return e.getAttribute(JZ.attr.index)}));this._nodes.forEach((function(n,r){var o,c;e.setAttribute(n,JZ.attr.fid,i),e.setAttribute(n,JZ.attr.indexType,t),o=u,c=n.attrs.parentIndex,!!Array.isArray(c)&&o.length===c.length&&!!o.every((function(e,t){return e===c[t]}))||e.setAttribute(n,JZ.attr.parentIndex,u),a?e.setAttribute(n,JZ.attr.start,a):e.removeAttribute(n,JZ.attr.start),e.setAttribute(n,JZ.attr.index,l+r)}))}}]),e}(),C1=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"_listId",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_type",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_allResetFromStart",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_indexType",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_nodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),kt.fatal(t,"plugins/list/src/kernel/lib/list.ts:16"),kt.fatal(n===JZ.node.uli||n===JZ.node.oli||n===JZ.node.tli,"plugins/list/src/kernel/lib/list.ts:17")}return Ke(e,[{key:"id",get:function(){return this._listId}},{key:"addNode",value:function(e){0===this._nodes.size&&(this._indexType=e.attrs.indexType||0),this._nodes.add(e)}},{key:"isEmpty",value:function(){return 0===this._nodes.size}},{key:"removeNode",value:function(e){this._nodes.delete(e)}},{key:"acceptNode",value:function(e){return e.nodeName===this._type}},{key:"setNewIndexType",value:function(e){this._indexType=e}},{key:"reset",value:function(e){var t=this,n=this._listId,r=this._allResetFromStart,o=Array.from(this._nodes).filter((function(e){var t;return e.isConnected&&(null===(t=e.attrs)||void 0===t?void 0:t.list)===n}));o.sort((function(e,t){var n=zt.compare(e,t);return n.preceding?-1:(kt.fatal(n.following,"plugins/list/src/kernel/lib/list.ts:64"),1)}));var i=[],a=[],l=[];o.forEach((function(e){var t=e.attrs,n=t.level,r=void 0===n?0:n,o=t.fid;l.splice(r,Number.MAX_VALUE),l[r]=e;var u=_1(a);if(!u)return u=new k1(o,l.slice(0)),i.push(u),a.push(u),void u.addNode(e);for(;a.length&&r1&&void 0!==arguments[1]?arguments[1]:[];return e.isTextNode()||e.isCardNode()&&e.hasCategory(ze.InlineCard)?t.push(e):e.isElement()&&e.children.forEach((function(e){return O1(e,t)})),t}var x1=function(){function e(t,n,r){var o=this;Ye(this,e),Object.defineProperty(this,"_allResetFromStart",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"iKernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"iEditing",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_lists",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_allowContinue",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_change",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var i=new Map;jc(this,this.iEditing,"nodechange",(function(e){var t=e.node,n=e.type,r=e.attrName,a=e.value;if(t.isTextNode()||t.hasCategory(ze.InlineCard)){if("attribute"===n&&ZZ.includes(r)){var l=zt.closest(t,[JZ.node.oli,JZ.node.uli]);l&&i.set(l,Object.assign(Object.assign({},i.get(l)),Ja({},r,!0)))}else if("insert"===n||"remove"===n){var u=zt.closest(t,[JZ.node.oli,JZ.node.uli]);u&&i.set(u,"*")}}else{var c=t.nodeName;c!==JZ.node.oli&&c!==JZ.node.uli||"insert"===n&&i.set(t,"*"),t.hasCategory(ze.Level)&&("list"===r&&e.oldValue?o.addChange({node:t,type:"updateList",value:a,oldValue:e.oldValue}):"indexType"===r?o.addChange({node:t,type:r,value:a}):"insert"!==n&&"remove"!==n&&"attribute"!==n||o.addChange({node:t,type:n}))}})),jc(this,this.iEditing,"operationRollback",(function(){i.clear(),o.clear()})),jc(this,this.iEditing,"beforecontentchange",(function(){var e;if(i.size>0&&(i.forEach((function(e,t){"*"===e?o._resetListIndexStyle(t,ZZ):o._resetListIndexStyle(t,Object.keys(e))})),i.clear()),null===(e=o.hasChange)||void 0===e?void 0:e.call(o)){var t=o.iEditing.newJob(He.Auto);o.applyChange(t),o.iEditing.commitJob(t)}}))}return Ke(e,[{key:"destroy",value:function(){this._change.clear(),this._change=null,this._lists=null}},{key:"startWork",value:function(){this._allowContinue=!0}},{key:"_resetListIndexStyle",value:function(e,t){var n=this.iEditing,r=n.newJob(He.Auto);N1(r,e,t),n.commitJob(r)}},{key:"addChange",value:function(e){var t=e.node,n=e.type,r=e.value,o=e.oldValue;"updateList"===n?this._change.set(t,Object.assign(Object.assign({},this._change.get(t)),Ja({},n,[r,o]))):this._change.set(t,Object.assign(Object.assign({},this._change.get(t)),Ja({},n,"number"!=typeof r||r)))}},{key:"hasChange",value:function(){return this._change.size>0}},{key:"clear",value:function(){this._change.clear()}},{key:"applyChange",value:function(e){var t=this._lists;try{(function(e,t){var n=t._change,r=t._lists,o=new Set,i=[];return n.forEach((function(e,n){var a,l,u,c=(n.attrs||{}).list;if(c&&o.add(c),e.updateList){var s=cn(e.updateList,2),d=s[0],f=s[1];f&&(o.add(f),null===(a=r[f])||void 0===a||a.removeNode(n)),d&&(o.add(d),r[d]||(r[d]=new C1(d,n.nodeName,t._allResetFromStart)),r[d].addNode(n))}c&&yr(e,JZ.attr.indexType)&&(null===(l=r[c])||void 0===l||l.setNewIndexType(e.indexType)),!c||n.isConnected?e.insert&&i.push(n):null===(u=r[c])||void 0===u||u.removeNode(n)})),t._allowContinue&&function(e,t,n,r){var o=t._lists;n=n.sort((function(e,t){var n=zt.compare(e,t);return n.preceding?-1:(kt.fatal(n.following,"plugins/list/src/kernel/lib/list-manager.ts:277"),1)})).filter((function(t){var n=(t.attrs||{}).list;if(n&&o[n]){if(o[n].acceptNode(t))return!1;var i=gr();e.setAttribute(t,JZ.attr.list,i),r.add(i)}return!0}));var i={};n.forEach((function(t){var n,a,l,u=t.previousSibling,c=t.nextSibling,s=t.attrs,d=(void 0===s?{}:s).list;if(d||(d=gr(),e.setAttribute(t,JZ.attr.list,d)),i[d])e.setAttribute(t,JZ.attr.list,i[d]);else{var f;if((null==u?void 0:u.nodeName)===t.nodeName&&(null===(n=null==u?void 0:u.attrs)||void 0===n?void 0:n.list))f=u.attrs.list;else{if((null==c?void 0:c.nodeName)!==t.nodeName||!(null===(a=null==c?void 0:c.attrs)||void 0===a?void 0:a.list))return;f=c.attrs.list}kt.fatal(f,"plugins/list/src/kernel/lib/list-manager.ts:335"),null===(l=o[d])||void 0===l||l.removeNode(t),i[d]=f,e.setAttribute(t,JZ.attr.list,f),r.add(f)}})),n.forEach((function(t){var n;(null===(n=t.attrs)||void 0===n?void 0:n.list)||e.setAttribute(t,JZ.attr.list,gr())}))}(e,t,i,o),function(e,t,n,r){var o=t._lists;r.forEach((function(e){var r,i=(null===(r=e.attrs)||void 0===r?void 0:r.list)||gr();i&&(o[i]||(o[i]=new C1(i,e.nodeName,t._allResetFromStart),n.add(i)),o[i].addNode(e))})),n.forEach((function(t){var n;null===(n=o[t])||void 0===n||n.reset(e)}))}(e,t,o,i),o})(e,this).forEach((function(e){var n;(null===(n=t[e])||void 0===n?void 0:n.isEmpty())&&delete t[e]}))}finally{this._change.clear()}}}]),e}();function E1(e,t,n){return t=Qe(t),Xe(e,D1()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function D1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D1=function(){return!!e})()}var R1=function(e){function t(e){var n;return Ye(this,t),n=E1(this,t),Object.defineProperty(Je(n),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){var r;if(Number.isNaN(n)||e.addAttr("data-lake-index-type",n),e.mainNode.name){var o=e.inode.id,i=null===(r=this.plugin._indexTypeManager)||void 0===r?void 0:r.getHeadingIndexInfo(o);if(i){var a=e.createIgnoreElement("span");e.appendChild(a,e.createTextNode(null==i?void 0:i.symbol)),e.appendChild(e.mainNode,a)}}}}]),t}(WF);function P1(e,t,n){return t=Qe(t),Xe(e,S1()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function S1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S1=function(){return!!e})()}Object.defineProperty(R1,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["indexType"]});var T1={1:"lower-alpha",2:"lower-roman"},A1={1:"circle",2:"square"},j1={oli:"ne-ol",uli:"ne-ul",tli:"ne-tl"},I1=function(e){function t(){return Ye(this,t),P1(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){e.setVirtual();var n=function(e,t){var n=e.previousSiblingContext,r=t.name,o=t.attrs,i=void 0===o?{}:o;if(!n||!n._listNode)return null;var a=n._listNode;return r===JZ.node.oli&&"ol"!==a.name?null:r!==JZ.node.uli&&r!==JZ.node.tli||"ul"===a.name?((n.inode.attrs?n.inode.attrs.level:0)||0)!==(i.level||0)||a._id!==i.list?null:a:null}(e,t);n?this._appendToList(e,t,n):this._createNewList(e,t)}},{key:"_createNewList",value:function(e,t){var n=t.id,r=t.name,o=(null==t?void 0:t.attrs)||{},i={};r===JZ.node.oli&&o.index>0&&(kt.fatal(o.list!==n&&Number.isInteger(o.index),"plugins/list/src/kernel/writers/html-list-node-writer.ts:60"),i.start=o.index+1),o.level>0&&(i["ne-level"]=o.level),o.indexType>0&&(i["data-index-type"]=o.indexType);var a=e.createElement(r===JZ.node.oli?"ol":"ul",{attrs:i,style:B1(e,t),className:j1[r]});a._id=o.list,e._listNode=a,this._appendListItem(e,t,a),e._handleAppend=function(t){var n=o.level||0;if(n){var i=e.createElement(r===JZ.node.oli?"ol":"ul",{className:"ne-list-wrap",style:B1(e,{name:"wrap"})});e.appendChild(t,i);for(var l=1;l0&&e.setAttr("data-lake-index-type",n):Number(n)>=0&&e.setAttr("data-lake-index-type",n)}}]),e}();function F1(e,t,n){return t=Qe(t),Xe(e,L1()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function L1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L1=function(){return!!e})()}Object.defineProperty(M1,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["indexType"]});var U1=function(e){function t(){return Ye(this,t),F1(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){e.setVirtual((function(){}));var n=function(e,t){var n,r,o=e.previousSiblingContext,i=t.attrs,a=void 0===i?{}:i;if(!o||!o._listNode)return null;var l=o._listNode;return(null===(n=l.attrs)||void 0===n?void 0:n.list)!==a.list||((null===(r=o.inode.attrs)||void 0===r?void 0:r.level)||0)!==(a.level||0)?null:l}(e,t);n?this._appendToList(e,t,n):this._createNewList(e,t)}},{key:"_createNewList",value:function(e,t){var n=t.name,r=t.attrs,o=void 0===r?{}:r,i={};i.list=o.list?o.list:gr(),0!==o.index&&(i.start=o.index+1),o.level>0&&(i["data-lake-indent"]=o.level),delete o.indent,delete o.textIndent;var a=e.createElement(n===JZ.node.oli?"ol":"ul",{attrs:i,style:{},className:n===JZ.node.tli?["lake-list"]:void 0});e._listNode=a;var l=V1(e,t);e.setNode(l),e.appendChild(a,l),e.setVirtual((function(t){e.appendChild(t,a)}))}},{key:"_appendToList",value:function(e,t,n){var r,o,i=V1(e,t);null===(r=t.attrs)||void 0===r||delete r.indent,null===(o=t.attrs)||void 0===o||delete o.textIndent,e._listNode=n,e.setNode(i),e.appendChild(n,i),e.setVirtual((function(){}))}}]),t}(AB);function V1(e,t){var n=t.name,r=t.attrs,o=void 0===r?{}:r,i={};o.fid&&(i.fid=o.fid),o.version&&(i.version=o.version);var a=e.createElement("li",{className:n===JZ.node.tli?["lake-list-node","lake-list-task"]:void 0,attrs:i});return n===JZ.node.tli&&e.appendChild(a,e.createElement("card",{attrs:{type:"inline",name:"checkbox",value:"data:".concat(!(!t.attrs||!t.attrs.checked))}})),a}Object.defineProperty(U1,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[JZ.node.oli,JZ.node.uli,JZ.node.tli]});var H1=function(){function e(){Ye(this,e)}return Ke(e,[{key:"destroy",value:function(){}}]),e}();function z1(e){return 0==(e=(e||0)%3)?"●":1===e?"○":"■"}function W1(e,t,n){return t=Qe(t),Xe(e,q1()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function q1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(q1=function(){return!!e})()}var $1=[JZ.node.oli,JZ.node.uli,JZ.node.tli],K1=["[ ]","[X]"],Y1=function(e){function t(){return Ye(this,t),W1(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r=t.name,o=t.attrs,i=void 0===o?{}:o,a=i.level,l=" ".repeat(void 0===a?0:a),u="";switch(r){case JZ.node.oli:u=this._getOrderListCounterText(i);break;case JZ.node.uli:u=this._getUnorderListCounterText(i);break;case JZ.node.tli:u=this._getTaskListCounterText(i);break;default:u=""}1===(null===(n=e.rootNode.children)||void 0===n?void 0:n.length)?e.newline("".concat(l)):e.newline("".concat(l).concat(u))}},{key:"_getOrderListCounterText",value:function(e){var t=e.level,n=void 0===t?0:t,r=e.index,o=void 0===r?0:r,i=e.parentIndex,a=void 0===i?[]:i,l=e.indexType;return"".concat(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p1;return r===p1?d1(e,t)+".":r===v1?function(e,t){return e+=1,0==(t=(t||0)%3)?u1(e)+"、":1===t?"(".concat(u1(e),")"):e+"."}(e,t):r===m1?h1(e,t,n)+".":void 0}(o,n,a,void 0===l?0:l)," ")}},{key:"_getUnorderListCounterText",value:function(e){var t=e.level;return"".concat(z1(void 0===t?0:t)," ")}},{key:"_getTaskListCounterText",value:function(e){var t=e.checked,n=K1[Number(void 0!==t&&t)%K1.length];return"".concat(n," ")}}]),t}(H1);Object.defineProperty(Y1,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:$1});var G1=Ke((function e(){Ye(this,e)}));function J1(e,t,n){return t=Qe(t),Xe(e,X1()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function X1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X1=function(){return!!e})()}var Q1=function(e){function t(){return Ye(this,t),J1(this,t,arguments)}return et(t,e),Ke(t,[{key:"readAttr",value:function(e,t,n,r){e.addAttr("indexType",Number(n)||0),["h1","h2","h3","h4","h5","h6"].includes(r.name||"")&&w0(Number(n)||0)}}]),t}(G1);function Z1(e,t,n){return t=Qe(t),Xe(e,e2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function e2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(e2=function(){return!!e})()}Object.defineProperty(Q1,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["data-lake-index-type"]});var t2=function(e){function t(){return Ye(this,t),Z1(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e){var t=e.getAttr(JZ.attr.level);e.addAttr(JZ.attr.list,gr()),t>=0?e.addAttr(JZ.attr.level,1+t):e.addAttr(JZ.attr.level,0)}}]),t}(HM);function n2(e,t,n){return t=Qe(t),Xe(e,r2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function r2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r2=function(){return!!e})()}Object.defineProperty(t2,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["ul","ol"]});var o2=function(e){function t(){return Ye(this,t),n2(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){var n,r,o,i;if(t.parent){var a=((null===(n=t.parent.attrs)||void 0===n?void 0:n.class)||"").split(/\s+/),l=t.parent.name;if(a.includes("ne-tl"))e.setNode(Wo.createElement(JZ.node.tli,{checked:"true"===(null===(r=t.attrs)||void 0===r?void 0:r.checked)}));else if(a.includes("task-list")){var u=null===(o=t.children)||void 0===o?void 0:o[0],c="input"===(null==u?void 0:u.name)&&!!(null===(i=u.attrs)||void 0===i?void 0:i.checked);e.setNode(Wo.createElement(JZ.node.tli,{checked:c}))}else a.includes("ne-ol")||"ol"===l?e.setNode(Wo.createElement(JZ.node.oli)):e.setNode(Wo.createElement(JZ.node.uli));var s=e.getAttr(JZ.attr.level);s&&e.addAttr(s,s)}}}]),t}(HM);function i2(e,t,n){return t=Qe(t),Xe(e,a2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function a2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a2=function(){return!!e})()}Object.defineProperty(o2,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["li"]});var l2=function(e){function t(){return Ye(this,t),i2(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(){}}]),t}(ZM);function u2(e,t,n){return t=Qe(t),Xe(e,c2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function c2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c2=function(){return!!e})()}Object.defineProperty(l2,"CardNames",{enumerable:!0,configurable:!0,writable:!0,value:["checkbox"]});var s2=function(e){function t(){return Ye(this,t),u2(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n){var r=Number.parseInt(n,10);if(n.endsWith("em")&&r>0&&r%2==0){var o=r/2;o>0&&e.setState("listIndent",o)}}}]),t}(xJ);Object.defineProperty(s2,"StyleNames",{enumerable:!0,configurable:!0,writable:!0,value:["margin-left"]});var d2=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t,n){var r;e.setAttr("indexType",Number(n)||0),["h1","h2","h3","h4","h5","h6"].includes((null===(r=e.node)||void 0===r?void 0:r.name)||"")&&w0(Number(n)||0)}}]),e}();function f2(e,t,n){return t=Qe(t),Xe(e,h2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function h2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h2=function(){return!!e})()}Object.defineProperty(d2,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:["data-lake-index-type"]});var p2=function(e){function t(e){var n;return Ye(this,t),n=f2(this,t),Object.defineProperty(Je(n),"processService",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t){var n,r,o,i,a=e.getState("listType"),l=e.getState("listId");a||(kt.fatal(!l,"plugins/list/src/kernel/readers/lake/lake-list-item-node-reader.ts:22"),a="ul",l=gr());var u={id:null===(n=t.attrs)||void 0===n?void 0:n.id,list:l,fid:null===(r=t.attrs)||void 0===r?void 0:r.fid},c=e.getState("listStart");c&&(u.start=c);var s=function(e){return(e.getState("listIndent")||0)+(e.getState("listLevel")||0)}(e);s&&(u.level=s);var d="ol"===a?JZ.node.oli:JZ.node.uli;if((null===(i=null===(o=t.attrs)||void 0===o?void 0:o.class)||void 0===i?void 0:i.indexOf("lake-list-task"))>=0){d=JZ.node.tli;var f=function(e,t){var n,r=e.children,o=void 0===r?[]:r,i=null===(n=e.attrs)||void 0===n?void 0:n.version;if(!o[0]||"checkbox"!==o[0].name)return{checked:!1,version:i};var a=o[0];o.splice(0,1);var l={checked:a.value+""=="true",version:i},u=t.getProcesser();if(u){var c=u(e);c&&(l.checked=c.checked,l.version=c.version)}return l}(t,this.processService),h=f.checked,p=f.version;u.checked=h,u.version=p}var v=Wo.createElement(d,u);e.setNode(v)}}]),t}(OZ);function v2(e,t,n){return t=Qe(t),Xe(e,m2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function m2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m2=function(){return!!e})()}var g2=function(e){function t(){return Ye(this,t),v2(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t){var n=t.name,r=t.attrs,o=void 0===r?{}:r,i=Number.parseInt(o["data-lake-indent"],10),a=Math.max(Number.parseInt(o.start,10)-1||0,0);i>0&&e.setState("listLevel",i),kt.fatal(o.list,"plugins/list/src/kernel/readers/lake/lake-list-node-reader.ts:20"),e.setState("listStart",a),e.setState("listId",o.list),e.setState("listType",n)}}]),t}(OZ),b2=Ke((function e(){Ye(this,e)}));function y2(e,t,n){return t=Qe(t),Xe(e,w2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function w2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w2=function(){return!!e})()}var k2=function(e){function t(){return Ye(this,t),y2(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){if(t.parent)try{return this.readEverNoteTaskList(e,t)}catch(e){return}}},{key:"readEverNoteTaskList",value:function(e,t){for(var n,r,o,i,a,l,u,c,s,d,f=0,h=null,p="",v=[];t.children&&f0&&"td"!==(null===(d=t.parent)||void 0===d?void 0:d.name)&&e.addAttr("level",Math.min(b,8))))}}}]),t}(b2);Object.defineProperty(k2,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["div"]});var C2=[JZ.node.oli,JZ.node.uli,JZ.node.tli],_2=["+","-","*"],N2=["[ ]","[X]"],O2=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t){var n=t.name,r=t.attrs,o=void 0===r?{}:r,i=o.level,a=" ".repeat(void 0===i?0:i),l="";switch(n){case JZ.node.oli:l=this._getOrderListCounterText(o);break;case JZ.node.uli:l=this._getUnorderListCounterText(o);break;case JZ.node.tli:l=this._getTaskListCounterText(o);break;default:l=""}return e.appendFirst("".concat(a).concat(l)),e.append("\n"),!0}},{key:"_getOrderListCounterText",value:function(e){var t=e.index;return"".concat((void 0===t?0:t)+1,". ")}},{key:"_getUnorderListCounterText",value:function(e){var t=e.level;return"".concat(_2[(void 0===t?0:t)%3]," ")}},{key:"_getTaskListCounterText",value:function(e){var t=e.checked,n=N2[Number(void 0!==t&&t)%N2.length];return"".concat(n," ")}}]),e}();function x2(e,t,n){return t=Qe(t),Xe(e,E2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function E2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E2=function(){return!!e})()}Object.defineProperty(O2,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:C2});var D2={"-":JZ.node.uli,"+":JZ.node.uli,"*":JZ.node.uli,"[]":JZ.node.tli,"[x]":JZ.node.tli},R2=function(e){function t(){var e;return Ye(this,t),e=x2(this,t,arguments),Object.defineProperty(Je(e),"_indexTypeManager",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_listManager",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerElement(p0),e.registerAttr(l0),e.registerCommand("indexType",new O0),this._initEvent(),this._initMarkdownKey();var t=e.getService(zI.ID);t&&t.registerLakeCardReader(l2.CardNames,new l2)}},{key:"afterInit",value:function(){var e,t,n=this.kernel;this.option.onAfterKernelPluginInit&&this.option.onAfterKernelPluginInit(n,this),null===(e=n.getService(OK.ID))||void 0===e||e.registerStyleKeepBlockAttrs("indexType",(function(e,t){return O0.getCurrentIndexType(e,t)}));var r=n.getService(uK.ID);r&&r.registerKeepBlockAttrName([JZ.attr.list,JZ.attr.fid,JZ.attr.index]);var o=n.getService(UI.ID);o&&(o.registerPreHTMLNodeReader(k2.NodeNames,new k2),o.registerHTMLNodeReader(t2.NodeNames,new t2),o.registerHTMLNodeReader(o2.NodeNames,new o2),o.registerHTMLAttributeReader(Q1.AttrNames,new Q1));var i=n.getService(zI.ID);i&&(i.registerLakeNodeReader(["ol","ul"],new g2),i.registerLakeNodeReader("li",new p2(this.service)),i.registerLakeStyleReader(s2.StyleNames,new s2),i.registerLakeAttrReader(d2.AttrNames,new d2));var a=n.getService(UI.ID);a&&(a.registerNodeHTMLWriter(I1.NodeNames,new I1),a.registerAttrHTMLWriter(R1.AttrNames,new R1(this)));var l=n.getService(zI.ID);l&&(l.registerLakeNodeWriter(U1.NodeNames,new U1),l.registerLakeAttrWriter(M1.AttrNames,new M1));var u=n.getService($Q.ID);u&&u.registerTextWriter(Y1.NodeNames,new Y1),null===(t=n.getService(vF.ID))||void 0===t||t.registerMarkdownWriter(O2.NodeNames,new O2)}},{key:"_initEvent",value:function(){var e=this,t=this.kernel;t.on("document.create",(function(){e._indexTypeManager=new w1(e.kernel,e.editing),e._listManager=new x1(e.option.allFromStart,e.kernel,e.editing)})),t.on("document.ready",(function(){var t,n;null===(t=e._listManager)||void 0===t||t.startWork(),null===(n=e._indexTypeManager)||void 0===n||n.startWork()})),t.on("document.destroy",(function(){e._listManager&&(e._listManager.destroy(),e._listManager=null),e._indexTypeManager&&(e._indexTypeManager.destroy(),e._indexTypeManager=null)}))}},{key:"_initMarkdownKey",value:function(){var e=this,t=this.kernel,n=t.getService(GI.ID);n&&(Object.keys(D2).forEach((function(r){n.registerMarkdownMatcher(WI.whiteSpace,new qI(e.editing,r,(function(t,n,o,i){e._handlerMarkdown(t,D2[r],n,i.matchedText,0)}),[t.defaultElementName]))})),n.registerMarkdownMatcher(WI.whiteSpace,new qI(this.editing,/^\d{1,3}\.$/,(function(t,n,r,o){if(n.hasCategory(ze.Heading))return O0.setBlockNodeIndexType(t,n,O0.getCurrentIndexType(t,2)),void t.setSelection(t.newSelection(t.newRange(t.newPosition(n,0))));e._handlerMarkdown(t,JZ.node.oli,n,o.matchedText,0)}),[t.defaultElementName,ze.Heading])),n.registerMarkdownMatcher(WI.whiteSpace,new qI(this.editing,/^[一二三四五六七八九十零百千万]+\、$/,(function(t,n,r,o){try{if(n.hasCategory(ze.Heading))return O0.setBlockNodeIndexType(t,n,O0.getCurrentIndexType(t,1)),void t.setSelection(t.newSelection(t.newRange(t.newPosition(n,0))));var i=function(e){e+="个";for(var t=0,n=Number.MAX_VALUE,r=0;r0&&(l.start=u)}var c=e.createElement(t,l),s=Di.replaceBlockNode(e,e.newSelection(e.newRange(e.newPosition(n,0))),c,!0,!0),d=s.firstRange.start.node.firstChild;if((null==d?void 0:d.isTextNode())&&" "===d.data[0]&&e.setTextNodeData(d,d.data.slice(1)),(null==d?void 0:d.isTextNode())&&0===d.dataLength){var f=d.parentNode;e.removeChild(d.parentNode,d),s=e.newSelection(e.newRange(e.newPosition(f,0)))}e.setSelection(s);try{var h=s.firstRange.start.node;if(t!==JZ.node.oli||(null===(i=h.previousSibling)||void 0===i?void 0:i.nodeName)===JZ.node.oli||(null===(a=h.nextSibling)||void 0===a?void 0:a.nodeName)!==JZ.node.oli)return;var p=h.nextSibling.attrs.list,v=e.getNodesByName(JZ.node.oli).filter((function(e){return e.isConnected&&e.attrs.list===p&&zt.compare(e,h).following})),m=gr();if("number"==typeof h.attrs.start&&0!==h.attrs.start){var g=e.getNodesByName(JZ.node.oli).filter((function(e){return e.isConnected&&0===(e.attrs.level||0)&&zt.compare(e,h).preceding})).sort((function(e,t){return zt.compare(e,t).preceding?-1:1})).pop();g&&(g.attrs.indexType||0)===(h.attrs.indexType||0)&&(m=g.attrs.list)}e.removeAttribute(h,JZ.attr.fid),e.setAttribute(h,JZ.attr.list,m),v.forEach((function(t){e.removeAttribute(t,JZ.attr.fid),e.setAttribute(t,JZ.attr.list,m)}))}catch(e){console.error(e)}}}]),t}(ft);Object.defineProperty(R2,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:JZ.pluginName}),Object.defineProperty(R2,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:r1}),Object.defineProperty(R2,"Service",{enumerable:!0,configurable:!0,writable:!0,value:h0}),Object.defineProperty(R2,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[H0,Y0,X0,D0,S0,q0]});var P2=uI({pluginName:"mark",node:{mark:"mark"},domNode:{mark:"ne-mark","mark-content":"ne-mark-content"}});const S2=Ja({},P2.node.mark,{parents:[ze.Block],category:[ze.Inline,ze.InlineBox,ze.TextContainer],children:[ze.Text,ze.Inline]});function T2(e,t,n){return t=Qe(t),Xe(e,A2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function A2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(A2=function(){return!!e})()}var j2=function(e){function t(){return Ye(this,t),T2(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e){e.setNode(Wo.createElement("mark"))}}]),t}(OZ);function I2(e,t,n){return t=Qe(t),Xe(e,B2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function B2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B2=function(){return!!e})()}var M2=function(e){function t(){return Ye(this,t),I2(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){var t;e.isInlineMode()&&(t={backgroundColor:"#ff0",padding:"0",margin:"0 1px"}),e.setNode(e.createElement("mark",{className:"ne-mark",style:t}))}}]),t}(EB);function F2(e,t,n){return t=Qe(t),Xe(e,L2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function L2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L2=function(){return!!e})()}Object.defineProperty(M2,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["mark"]});var U2=function(e){function t(){return Ye(this,t),F2(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){e.setNode(e.createElement("mark"))}}]),t}(AB);function V2(e,t,n){return t=Qe(t),Xe(e,H2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function H2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H2=function(){return!!e})()}Object.defineProperty(U2,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["mark"]});var z2=function(e){function t(){return Ye(this,t),V2(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerElement(S2);var t=e.getService(zI.ID);t&&t.registerLakeNodeReader("mark",new j2);var n=e.getService(zI.ID);n&&n.registerLakeNodeWriter(U2.NodeNames,new U2);var r=e.getService(UI.ID);r&&r.registerNodeHTMLWriter(M2.NodeNames,new M2);var o=e.getService(GI.ID);o&&o.registerMarkdownMatcher(WI.whiteSpace,new QF(this.editing,"==",(function(e,t){var n=e.createElement("mark");zo.wrapInlineNode(e,t,n),e.setSelection([e.newRange(e.newPosition(n.parentNode,n.offset+1))])})))}}]),t}(ft);function W2(e,t,n){return t=Qe(t),Xe(e,q2()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function q2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(q2=function(){return!!e})()}Object.defineProperty(z2,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:P2.pluginName});var $2=function(e){function t(){var e;return Ye(this,t),e=W2(this,t,arguments),Object.defineProperty(Je(e),"_whiteSpaceMatchers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"_enterMatchers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){delete this.editing,delete this._whiteSpaceMatchers,delete this._enterMatchers}},{key:"registerMarkdownMatcher",value:function(e,t){("whiteSpace"===e?this._whiteSpaceMatchers:this._enterMatchers).push(t)}},{key:"getMarkdownMatchContext",value:function(e,t){var n=t.node,r=zt.closest(n,ze.Block);if(!r)return null;var o=this.editing.newJob(He.Silent),i=o.newRange(o.newPosition(r,0),t);if(i.collapsed)return null;var a=zo.getTextSections(o,i);return a.length?this._execMatch(e,a[0],t):null}},{key:"_execMatch",value:function(e,t,n){for(var r="whiteSpace"===e?this._whiteSpaceMatchers:this._enterMatchers,o=0,i=r.length;o'):null})).filter((function(e){return null!==e})).join("")}},{key:"destroy",value:function(){}}]),t}(c$);function s3(e,t,n){return t=Qe(t),Xe(e,d3()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function d3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d3=function(){return!!e})()}var f3=function(e){function t(){var e;return Ye(this,t),e=s3(this,t,arguments),Object.defineProperty(Je(e),"descriptors",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(Je(e),"metaStorage",{enumerable:!0,configurable:!0,writable:!0,value:{}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.registerAttr(a$.attr.meta,r3),e.on("document.create",(function(){t.metaStorage={}})),this.editing.on("nodechange",(function(e){var n=e.node,r=e.type,o=e.job,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0,"plugins/quick-input/src/kernel/helpers/get-previous-text-info.ts:112"),{atStart:a,text:l,blockNode:t.parentNode,position:e}}(e,t,On.substring(t.data,0,n));if(!t.hasCategory(ze.Block))return null;if(0===n)return{text:"",atStart:!0,blockNode:t,position:e.clone()};var r=t.children[n-1];if(kt.fatal(r,"plugins/quick-input/src/kernel/helpers/get-previous-text-info.ts:45"),!r.isTextNode())return{text:"",atStart:!1,blockNode:t,position:e.clone()};for(var o=[],i=!1;r&&r.isTextNode();){if(o.push(r.data),!r.previousSibling){i=!0;break}r=r.previousSibling}var a=o.reverse().join("");return kt.fatal(On.size(a)>=0,"plugins/quick-input/src/kernel/helpers/get-previous-text-info.ts:72"),{text:a,atStart:i,blockNode:t,position:e}}(r);return!!o&&!!t.some((function(t){var i=t.descriptor,a=t.handler,l=function(e,t,n,r){var o,i=n.atStart,a=n.text,l=n.blockNode,u=n.position;return t.match?t.match(r,l)||!1:!(l&&l.nodeName!==e.defaultElementName&&!(null===(o=t.allowBlock)||void 0===o?void 0:o.call(t,l)))&&!(t.matchPosition&&!t.matchPosition(e,r,l))&&!(t.atStart&&!i)&&!(t.mustEmpty&&l&&!zt.isLikeEmptyElement(l))&&!(t.pattern&&!t.pattern.test(a))&&{matchedText:a,blockNode:l,start:A3(e,u,a),end:u}}(e,i,o,r);return!!l&&(n={info:l,handler:a},!0)}))&&n}}]),e}(),B3=uI({pluginName:"quickInput",service:{IQuickInputKernelService:"IQuickInputKernelService",IQuickInputRendererService:"IQuickInputRendererService"}});function M3(e,t,n){return t=Qe(t),Xe(e,F3()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function F3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F3=function(){return!!e})()}var L3=function(e){function t(){var e;return Ye(this,t),e=M3(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function U3(e,t,n){return t=Qe(t),Xe(e,V3()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function V3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V3=function(){return!!e})()}Object.defineProperty(L3,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(B3.service.IQuickInputKernelService)});var H3=function(e){function t(){return Ye(this,t),U3(this,t,arguments)}return et(t,e),Ke(t,[{key:"destroy",value:function(){}},{key:"matchQuickInput",value:function(e){var t=this.editing.newJob(),n=t.getSelection();if(!n.isCollapsed)return!1;var r=n.firstRange.start.node;return!r.closest(ze.OnlyText)&&(r.isTextNode()&&(r=r.parentNode),!!r.hasCategory([ze.Block,ze.Root,ze.LikeRoot])&&I3.match(t,e))}}]),t}(L3);function z3(e,t,n){return t=Qe(t),Xe(e,W3()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function W3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(W3=function(){return!!e})()}var q3=function(e){function t(){return Ye(this,t),z3(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){}}]),t}(ft);Object.defineProperty(q3,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:B3.pluginName}),Object.defineProperty(q3,"Service",{enumerable:!0,configurable:!0,writable:!0,value:H3});var $3=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"onAfterKernelPluginInit",get:function(){return this._option.onAfterKernelPluginInit}}]),e}();Object.defineProperty($3,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"quote"});var K3=uI({pluginName:"quote",node:"quote",domNode:"ne-quote",toolbar:"quote",cardSelect:"quote",command:{quote:"quote"},service:{IQuoteEditingService:"IQuoteEditingService"}});function Y3(e,t,n){return t=Qe(t),Xe(e,G3()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function G3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(G3=function(){return!!e})()}var J3=function(e){function t(){var e;return Ye(this,t),e=Y3(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function X3(e,t,n){return t=Qe(t),Xe(e,Q3()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Q3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Q3=function(){return!!e})()}Object.defineProperty(J3,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(K3.service.IQuoteEditingService)});var Z3=function(e){function t(){return Ye(this,t),X3(this,t,arguments)}return et(t,e),Ke(t,[{key:"destroy",value:function(){delete this.editing}},{key:"wrapQuote",value:function(e){var t,n=this.editing,r=n.newJob(),o=e.start,i=e.end,a=e.blockNode;zo.deleteContent(r,r.newRange(o,i)),(null===(t=null==a?void 0:a.firstChild)||void 0===t?void 0:t.isTextNode())&&0===a.firstChild.dataLength&&r.removeChild(a,a.firstChild);var l=r.createElement(K3.node);r.replaceChild(a.parentNode,l,a),r.appendChild(l,a),r.setSelection(r.newSelection(r.newRange(r.newPosition(a,0)))),n.commitJob(r)}}]),t}(J3);const e4=Ja({},K3.node,{parents:[ze.Root,ze.LikeRoot],excludes:[ze.VirtualLikeRoot],category:[ze.LikeRoot,ze.VirtualLikeRoot,ze.Brick]});function t4(e,t,n){return t=Qe(t),Xe(e,n4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function n4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n4=function(){return!!e})()}var r4=function(e){function t(){return Ye(this,t),t4(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){if(Cr(Qe(t.prototype),"getState",this).call(this,e)===ht)return ht;var n=e.getSelection(),r=n.firstRange,o=r.start,i=r.end;if(o.node.closest(ze.OnlyText)||i.node.closest(ze.OnlyText))return ht;var a=!1,l=[];return Di.fullWalkSelection(n,{enter:function(e){return e.hasCategory([ze.Table,ze.TableHole,ze.Hole])?(a=!0,!1):e.parentNode&&e.parentNode.hasCategory([ze.Root,ze.LikeRoot])?(l.push(e),!1):void 0}}),a?ht:!l.length||l.some((function(e){return"quote"!==e.nodeName}))?pt:vt}},{key:"execute",value:function(e){var t=e.newJob(),n=this.getState(t);if(n===ht)return e.cancelJob(t),!1;kt.fatal(1===t.getSelection().rangeCount,"plugins/quote/src/kernel/commands/quote-command.ts:86");var r=t.getSelection().firstRange;return r=n===pt?zo.wrapRootNode(t,r,t.createElement("quote")):zo.unwrapNode(t,r,"quote"),t.setSelection(t.newSelection(r)),e.commitJob(t),!0}}]),t}(zl);function o4(e,t,n){return t=Qe(t),Xe(e,i4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function i4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i4=function(){return!!e})()}Object.defineProperty(r4,"ID",{enumerable:!0,configurable:!0,writable:!0,value:K3.command.quote});var a4=function(e){function t(){return Ye(this,t),o4(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t){var n,r=null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.class;return!!(null==r?void 0:r.includes("lake-alert"))||(e.setNode(Wo.createElement(K3.node)),!1)}}]),t}(OZ);function l4(e,t,n){return t=Qe(t),Xe(e,u4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function u4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u4=function(){return!!e})()}Object.defineProperty(a4,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["blockquote"]});var c4=function(e){function t(){return Ye(this,t),l4(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){var t={};e.isInlineMode()&&(t={margin:"5px 0",paddingLeft:"1em",borderLeft:"3px solid #eeeeee"}),e.setNode(e.createElement("div",{className:"ne-quote",style:t}))}}]),t}(EB);function s4(e,t,n){return t=Qe(t),Xe(e,d4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function d4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d4=function(){return!!e})()}var f4=function(e){function t(){return Ye(this,t),s4(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){e.setNode(e.createElement("blockquote"))}}]),t}(AB);function h4(e,t,n){return t=Qe(t),Xe(e,p4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function p4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p4=function(){return!!e})()}Object.defineProperty(f4,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[K3.node]});var v4=function(e){function t(){return Ye(this,t),h4(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerElement(e4)}},{key:"afterInit",value:function(){var e=this.kernel,t=e.getService(zI.ID);t&&t.registerLakeNodeReader(a4.NodeNames,new a4);var n=e.getService(zI.ID);n&&n.registerLakeNodeWriter(f4.NodeNames,new f4);var r=e.getService(UI.ID);r&&r.registerNodeHTMLWriter(f4.NodeNames,new c4),this.option.onAfterKernelPluginInit&&this.option.onAfterKernelPluginInit(this.kernel)}}]),t}(ft);Object.defineProperty(v4,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:K3.pluginName}),Object.defineProperty(v4,"Service",{enumerable:!0,configurable:!0,writable:!0,value:Z3}),Object.defineProperty(v4,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[r4]}),Object.defineProperty(v4,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:$3});var m4=uI({pluginName:"save",command:{save:"save"},toolbar:{save:"save"}});function g4(e,t,n){return t=Qe(t),Xe(e,b4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function b4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b4=function(){return!!e})()}var y4=function(e){function t(){return Ye(this,t),g4(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){return e.getSelection().isCardSelection?gt.UNAVAILABLE:gt.NOT_EXECUTED}}]),t}(wt);function w4(e,t,n){return t=Qe(t),Xe(e,k4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function k4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k4=function(){return!!e})()}Object.defineProperty(y4,"ID",{enumerable:!0,configurable:!0,writable:!0,value:m4.command.save});var C4=function(e){function t(){return Ye(this,t),w4(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(ft);Object.defineProperty(C4,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:m4.pluginName}),Object.defineProperty(C4,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[y4]});var _4=uI({pluginName:"selectAll",command:{selectAll:"selectAll"}});function N4(e,t,n){return t=Qe(t),Xe(e,O4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function O4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O4=function(){return!!e})()}var x4=["alert",jt],E4=function(e){function t(){return Ye(this,t),N4(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e){var t=e.newJob(),n=t.getSelection(),r=this._trySelectTable(t,n);if(r)return!0;if(this.plugin.isOnlyTableSelect()&&!r)return!1;for(var o=0,i=x4;o2&&void 0!==arguments[2])||arguments[2],r=e.newJob(),o=t.ranges.map((function(e){var t=e.start,n=e.end,o=r.newPosition(t.node,t.offset),i=n?r.newPosition(n.node,n.offset):void 0;return function(e,t){var n=t.start,r=t.end;return t.collapsed||!n.node.isCardNode()&&!r.node.isCardNode()?t:(n.node.isCardNode()&&(n=e.newPosition(n.node.parentNode,n.node.offset)),r.node.isCardNode()&&(r=e.newPosition(r.node.parentNode,r.node.offset+1)),e.newRange(n,r))}(r,r.newRange(o,i))}));return n||(o=o.map((function(e){return zo.shrinkBlockNodeBoundary(r,e)}))),r.setSelectionWithoutOptimize(r.newSelection(o,t.anchor,t.focus)),!0}}]),t}(wt);function I4(e,t,n){return t=Qe(t),Xe(e,B4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function B4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B4=function(){return!!e})()}Object.defineProperty(j4,"ID",{enumerable:!0,configurable:!0,writable:!0,value:S4.command.selection});var M4=function(e){function t(){return Ye(this,t),I4(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(ft);Object.defineProperty(M4,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:S4.pluginName}),Object.defineProperty(M4,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[j4]});var F4=uI({pluginName:"slash",toolbar:{cardSelect:"cardSelect"},command:{insertSlash:"insertSlash",canInsertSlash:"canInsertSlash"},node:{slash:"slash"}});function L4(e,t,n){return t=Qe(t),Xe(e,U4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function U4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U4=function(){return!!e})()}var V4=function(e){function t(){return Ye(this,t),L4(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){if(Cr(Qe(t.prototype),"getState",this).call(this,e)===ht)return ht;var n=e.getSelection();if(!n.isCollapsed)return ht;var r=n.firstRange.start.node;return r.closest(ze.OnlyText)?ht:r.closest([ze.Block])||r.hasCategory([ze.Root,ze.LikeRoot])?pt:ht}}]),t}(zl);function H4(e,t,n){return t=Qe(t),Xe(e,z4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function z4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(z4=function(){return!!e})()}Object.defineProperty(V4,"ID",{enumerable:!0,configurable:!0,writable:!0,value:F4.command.canInsertSlash});var W4=function(e){function t(){return Ye(this,t),H4(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=e.newJob();if(this.getState(n)===ht)return e.cancelJob(n),!1;var r=n.getSelection();r.collapsed||(r=Di.deleteContent(n,n.getSelection())),kt.fatal(r.collapsed,"plugins/slash/src/kernel/commands/insert-slash-command.ts:26");var o=Ri.insertCardNode(n,r,F4.node.slash,t).cardNode;return n.setSelection(n.newSelection(n.newRange(n.newPosition(o,0)))),e.commitJob(n),o.id}}]),t}(V4);function q4(e,t,n){return t=Qe(t),Xe(e,$4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($4=function(){return!!e})()}Object.defineProperty(W4,"ID",{enumerable:!0,configurable:!0,writable:!0,value:F4.command.insertSlash});var K4=function(e){function t(){return Ye(this,t),q4(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerInlineCard(F4.node.slash)}}]),t}(ft);Object.defineProperty(K4,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:F4.pluginName}),Object.defineProperty(K4,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[V4,W4]});const Y4={sub:{targets:[ze.Text],values:[!0],cleanByBreakLine:!0},sup:{targets:[ze.Text],values:[!0],cleanByBreakLine:!0}};function G4(e,t,n){return t=Qe(t),Xe(e,J4()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function J4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J4=function(){return!!e})()}var X4=function(e){function t(){var e;return Ye(this,t),e=G4(this,t,arguments),Object.defineProperty(Je(e),"commandName",{enumerable:!0,configurable:!0,writable:!0,value:""}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){if(Cr(Qe(t.prototype),"getState",this).call(this,e)===ht)return ht;var n=e.getSelection().firstRange,r=n.commonAncestorContainer;if(n.collapsed){if(!r.hasCategory([ze.Root,ze.LikeRoot])&&!n.commonAncestorContainer.closest(ze.Block))return ht}else if(!n.commonAncestorContainer.closest(ze.Block))return ht;var o=null,i=this.commandName;return zo.fullWalkRange(n,{enter:function(t){if(!1===o)return!1;if(e.acceptAttr(t.nodeName,i,!0)){if(!t.hasAttribute(i))return o=!1,!1;null===o&&(o=!0)}}}),!0===o?vt:pt}},{key:"execute",value:function(e){var t=e.newJob(),n=this.getState(t);if(n===ht)return e.cancelJob(t),!1;var r=t.getSelection(),o=t.getSelection().firstRange;return o=n===pt?zo.setAttribute(t,o,this.commandName,!0):zo.removeAttribute(t,o,this.commandName),o=zo.removeAttribute(t,o,"sub"===this.commandName?"sup":"sub"),t.setSelection(r.cloneByRange(o)),!0}}]),t}(zl),Q4=uI({pluginName:"subscript",command:{sup:"sup",sub:"sub"},attr:{sup:"sup",sub:"sub"}});function Z4(e,t,n){return t=Qe(t),Xe(e,e5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function e5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(e5=function(){return!!e})()}var t5=function(e){function t(){var e;return Ye(this,t),e=Z4(this,t,arguments),Object.defineProperty(Je(e),"commandName",{enumerable:!0,configurable:!0,writable:!0,value:Q4.command.sub}),e}return et(t,e),Ke(t)}(X4);function n5(e,t,n){return t=Qe(t),Xe(e,r5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function r5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r5=function(){return!!e})()}Object.defineProperty(t5,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Q4.command.sub});var o5=function(e){function t(){var e;return Ye(this,t),e=n5(this,t,arguments),Object.defineProperty(Je(e),"commandName",{enumerable:!0,configurable:!0,writable:!0,value:Q4.command.sup}),e}return et(t,e),Ke(t)}(X4);function i5(e,t,n){return t=Qe(t),Xe(e,a5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function a5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a5=function(){return!!e})()}Object.defineProperty(o5,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Q4.command.sup});var l5=function(e){function t(){return Ye(this,t),i5(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t){e.setAttr(t.name,!0)}}]),t}(OZ);function u5(e,t,n){return t=Qe(t),Xe(e,c5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function c5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c5=function(){return!!e})()}var s5=function(e){function t(){return Ye(this,t),u5(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n){n&&e.wrapNode(e.createElement(t))}}]),t}(WF);Object.defineProperty(s5,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[Q4.attr.sub,Q4.attr.sup]});var d5=function(){function e(){Ye(this,e)}return Ke(e,[{key:"write",value:function(e,t){e.wrapNode(e.createElement(t))}}]),e}();function f5(e,t,n){return t=Qe(t),Xe(e,h5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function h5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h5=function(){return!!e})()}Object.defineProperty(d5,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[Q4.attr.sub,Q4.attr.sup]});var p5={"^":"sup","~":"sub"},v5=function(e){function t(){return Ye(this,t),f5(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.registerAttr(Y4);var n=e.getService(zI.ID);n&&n.registerLakeNodeReader(["sub","sup"],new l5);var r=e.getService(UI.ID);r&&r.registerAttrHTMLWriter(s5.AttrNames,new s5);var o=e.getService(zI.ID);o&&o.registerLakeAttrWriter(d5.AttrNames,new d5);var i=e.getService(GI.ID);i&&Object.keys(p5).forEach((function(e){i.registerMarkdownMatcher(WI.whiteSpace,new QF(t.editing,e,(function(n,r){t._handlerMarkdown(n,p5[e],r)}),!0))}))}},{key:"_handlerMarkdown",value:function(e,t,n){n=zo.setAttribute(e,n,t,!0);var r=e.createTextNode("");e.insertNodeByPosition(n.end,r),e.setSelection([e.newRange(e.newPosition(r,0))])}}]),t}(ft);Object.defineProperty(v5,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Q4.pluginName}),Object.defineProperty(v5,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[t5,o5]});var m5=["top","middle","bottom"],g5=["cellBgColor","verticalAlign"],b5=uI({pluginName:"table",toolbar:{tableCellBgColor:"tableCellBgColor",tableMergeCell:"tableMergeCell",tableVerticalAlign:"tableVerticalAlign",tableBorderVisible:"tableBorderVisible"},cardSelect:"table",command:{tableBorderVisible:"tableBorderVisible",tableClearContent:"tableClearContent",tableColumnMoveTo:"tableColumnMoveTo",tableColumnWidth:"tableColumnWidth",tableDeleteColumn:"tableDeleteColumn",tableDeleteRow:"tableDeleteRow",deleteTable:"deleteTable",tableEquallyColumn:"tableEquallyColumn",tableInsertBeforeColumn:"tableInsertBeforeColumn",tableInsertAfterColumn:"tableInsertAfterColumn",tableInsertBeforeRow:"tableInsertBeforeRow",tableInsertAfterRow:"tableInsertAfterRow",tableMergeCell:"tableMergeCell",moveTable:"moveTable",tableRowHeight:"tableRowHeight",tableRowMoveTo:"tableRowMoveTo",tableSpacing:"tableSpacing",tableCellBgColor:"tableCellBgColor",tableSetQueueNo:"tableSetQueueNo",table:"table",tableToggleWidthMode:"tableToggleWidthMode",tableUnmergeCell:"tableUnmergeCell",tableVerticalAlign:"tableVerticalAlign",tableRowHead:"tableRowHead",tableColHead:"tableColHead",tableColumnAdaptation:"tableColumnAdaptation"},attr:{colspan:"colspan",colSpan:"colSpan",col:"col",rowspan:"rowspan",rowSpan:"rowSpan",width:"width",height:"height",cellBgColor:"cellBgColor",verticalAlign:"verticalAlign",colHead:"colHead",rowHead:"rowHead"},node:{tableHole:"tableHole",table:"table",th:"th",td:"td",tr:"tr"}}),y5=b5.node.table,w5=b5.node.tr,k5=b5.node.td;const C5={colWidths:{targets:[y5],values:function(e){return!!Array.isArray(e)&&(0!==e.length&&e.every(N5))}},height:{targets:[w5],values:N5},rowCount:{targets:[y5],values:O5},colCount:{targets:[y5],values:O5},borderVisible:{targets:[y5],values:[!1]},spacing:{targets:[y5],values:[!0,!1]},col:{targets:[k5],values:function(e){return"number"==typeof e&&(!!Number.isInteger(e)&&e>=0)}},rowSpan:{targets:[k5],values:x5},colSpan:{targets:[k5],values:x5},cellBgColor:{targets:[k5],values:function(){return!0}},borderColor:{targets:[k5],values:function(){return!0}},borderStyle:{targets:[k5],values:["solid","dashed"]},verticalAlign:{targets:[k5],values:m5},rowHead:{targets:[y5],values:_5},colHead:{targets:[y5],values:_5},fitWidth:{targets:[y5],values:[!0,!1]}};function _5(e){return"string"==typeof e&&/;/.test(e)}function N5(e){return"number"==typeof e&&!!Number.isFinite(e)&&e>0}function O5(e){return"number"==typeof e&&!!Number.isInteger(e)&&e>0}function x5(e){return"number"==typeof e&&!!Number.isInteger(e)&&e>1}var E5=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"onKernelPluginInit",get:function(){return this._option.onKernelPluginInit}}]),e}();Object.defineProperty(E5,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"table"});const D5=Ja(Ja(Ja({},y5,{parents:[ze.TableHole],id:Za,category:[ze.Table,ze.WidthModeBox,ze.Brick]}),w5,{parents:[y5],category:[ze.TableRow]}),k5,{parents:[w5],category:[ze.TableCell,ze.LikeRoot]});function R5(e,t,n){return t=Qe(t),Xe(e,P5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function P5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P5=function(){return!!e})()}var S5=function(e){function t(){return Ye(this,t),R5(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){var n;kt.fatal(t,"plugins/table/src/kernel/commands/spacing.ts:15");var r=e.getNodeById(t);return!1!==(null===(n=null==r?void 0:r.attrs)||void 0===n?void 0:n.spacing)}},{key:"execute",value:function(e,t,n){kt.fatal(t,"plugins/table/src/kernel/commands/spacing.ts:23");var r=e.newJob(),o=r.getNodeById(t);return(null==o?void 0:o.hasCategory(ze.Table))?(n?r.removeAttribute(o,"spacing"):r.setAttribute(o,"spacing",!1),e.commitJob(r),!0):(e.cancelJob(r),!1)}}]),t}(wt);Object.defineProperty(S5,"ID",{enumerable:!0,configurable:!0,writable:!0,value:b5.command.tableSpacing});var T5=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_rowCount",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_colCount",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_widthList",{enumerable:!0,configurable:!0,writable:!0,value:[]});var n=t.row,r=t.col,o=t.width;this._width=o,this._rowCount=n,this._colCount=r,this._widthList=function(e,t){for(var n=Math.floor(e/t),r=[],o=0;o0&&(r[r.length-1]+=i),r}(o,r)}return Ke(e,[{key:"toNode",value:function(e){for(var t=e.createElement(y5,{rowCount:this._rowCount,colCount:this._colCount,colWidths:this._widthList}),n=0;n1&&void 0!==arguments[1]?arguments[1]:3,col:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3})}}]),e}(),j5=750;function I5(e,t,n){return t=Qe(t),Xe(e,B5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function B5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B5=function(){return!!e})()}var M5=function(e){function t(){return Ye(this,t),I5(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){for(var t=e.getSelection().ranges,n=0,r=t.length;n1||zt.closest(t.firstRange.commonAncestorContainer,ze.TableCell)?pt:gt.UNAVAILABLE}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===ht)return e.cancelJob(t),!1;var n=t.getSelection(),r=n.ranges.map((function(e){var n=zt.closest(e.commonAncestorContainer,ze.TableCell);return kt.fatal(n,"plugins/table/src/kernel/commands/clear-content.ts:52"),zo.deleteContent(t,Wt.selectNodeContents(n))}));return t.setSelection(n.cloneByRange(r)),e.commitJob(t),!0}}]),t}(wt);function W5(e,t,n){return t=Qe(t),Xe(e,q5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function q5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(q5=function(){return!!e})()}Object.defineProperty(z5,"ID",{enumerable:!0,configurable:!0,writable:!0,value:b5.command.tableClearContent});var $5=function(e){function t(){return Ye(this,t),W5(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return ja.isInTable(t)&&ja.isSelectColumn(t)?gt.NOT_EXECUTED:gt.UNAVAILABLE}},{key:"execute",value:function(e,t){var n=e.newJob();if(this.getState(n)===gt.UNAVAILABLE)return e.cancelJob(n),!1;var r=n.getSelection(),o=zt.closest(r.firstRange.commonAncestorContainer,ze.Table);return!Number.isInteger(t)||t<0||t>o.attrs.colCount?(e.cancelJob(n),!1):(function(e,t,n){var r=zt.closest(t.firstRange.commonAncestorContainer,ze.Table);kt.fatal(r,"plugins/table/src/kernel/commands/helpers/move-column.ts:20");var o=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;t.ranges.forEach((function(e){var t=zt.closest(e.commonAncestorContainer,ze.TableCell).attrs,n=t.col,r=t.colSpan,a=void 0===r?1:r;o=Math.min(o,n),i=Math.max(i,n+a-1)})),r.children.forEach((function(t){!function(e,t,n,r,o){var i=r-n+1,a=o>n?o-r-1:o-n,l=null,u=t.children.filter((function(t){var u=t.attrs.col;return u===o&&(l=t),u>r?(u=n&&u<=r?(e.setAttribute(t,"col",u+a),!0):(u=o&&e.setAttribute(t,"col",u+i),!1)}));kt.fatal(u.length<=i,"plugins/table/src/kernel/commands/helpers/move-column.ts:106"),0===o?u.reverse().forEach((function(n){e.prependChild(t,n)})):l?u.forEach((function(n){e.insertBefore(t,n,l)})):u.forEach((function(n){e.appendChild(t,n)}))}(e,t,o,i,n)}));for(var a=pn(r.attrs.colWidths),l=a.slice(o,i+1),u=o;u<=i;u++)a[u]=null;a.splice.apply(a,[n,0].concat(pn(l))),e.setAttribute(r,"colWidths",a.filter((function(e){return null!==e})))}(n,r,t),e.commitJob(n),!0)}}]),t}(wt);function K5(e,t,n){return t=Qe(t),Xe(e,Y5()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Y5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y5=function(){return!!e})()}Object.defineProperty($5,"ID",{enumerable:!0,configurable:!0,writable:!0,value:b5.command.tableColumnMoveTo});var G5=function(e){function t(){return Ye(this,t),K5(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n,r,o){n=Array.isArray(n)?n:[n];var i=e.newJob(),a=i.getNodeById(t);if(!(null==a?void 0:a.hasCategory(ze.Table)))return!1;var l=a.attrs,u=l.colWidths,c=l.fitWidth,s=[];return(r=Number.parseInt(r+"",10))>0?(c?o.forEach((function(e,t){n.includes(t)?(t+1=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Q5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&a=0&&l1,"plugins/table/src/kernel/commands/helpers/re-layout.ts:137"),e.setAttribute(t,"rowSpan",u)}if(l!==r){var c=r-l+1;kt.fatal(c>1,"plugins/table/src/kernel/commands/helpers/re-layout.ts:143"),e.setAttribute(t,"colSpan",c)}}function t8(e,t,n){return t=Qe(t),Xe(e,n8()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function n8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n8=function(){return!!e})()}Object.defineProperty(J5,"TYPE_REF",{enumerable:!0,configurable:!0,writable:!0,value:"#ref"}),Object.defineProperty(J5,"TYPE_NODE",{enumerable:!0,configurable:!0,writable:!0,value:"#node"});var r8=function(e){function t(){return Ye(this,t),t8(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection(),n=zt.closest(t.firstRange.commonAncestorContainer,ze.TableCell);return n?Ci(n,t)?ht:pt:ht}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===ht)return e.cancelJob(t),!1;var n=t.getSelection(),r=zt.closest(n.firstRange.start.node,ze.Table);kt.fatal(r,"plugins/table/src/kernel/commands/delete-column.ts:52");var o=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;return n.ranges.forEach((function(e){var t=zt.closest(e.start.node,ze.TableCell);o=Math.min(t.attrs.col,o),i=Math.max(t.attrs.col+(t.attrs.colSpan||1),i)})),kt.fatal(!(0===o&&i===r.attrs.colCount),"plugins/table/src/kernel/commands/delete-column.ts:68"),n=function(e,t,n,r){var o=r-n,i=t.attrs,a=i.colWidths,l=i.colCount,u=function(e,t){if((e=pn(e)).length>t)e.length=t;else if(e.lengtho,"plugins/table/src/kernel/commands/helpers/delete-column.ts:24"),u.splice(n,o),kt.fatal(u.length===l-o,"plugins/table/src/kernel/commands/helpers/delete-column.ts:28"),e.setAttribute(t,"colCount",l-o),e.setAttribute(t,"colWidths",u);var c=J5.getLayout(t);c.forEach((function(t){t.splice(n,o).forEach((function(t){var n=t.type,r=t.node;n===J5.TYPE_NODE&&e.removeChild(r.parentNode,r)}))}));var s=Z5(e,t,c),d=s[0][n]||s[0][n-1];kt.fatal(d,"plugins/table/src/kernel/commands/helpers/delete-column.ts:49");var f=d.node;return kt.fatal(f&&f.isConnected,"plugins/table/src/kernel/commands/helpers/delete-column.ts:53"),e.newSelection(e.newRange(e.newPosition(f,0)))}(t,r,o,i),t.setSelection(n),e.commitJob(t),!0}}]),t}(wt);function o8(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i8(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function i8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;l--){var u=o[l].children[0];if(!u)return null;if(0===u._attrs.col){if(u.childCount>1||(null===(r=null===(n=u.children)||void 0===n?void 0:n[0])||void 0===r?void 0:r.nodeName)!==e.defaultElementName)return null;var c=u.children[0];if(!c)return null;var s,d="",f=o8(c.children);try{for(f.s();!(s=f.n()).done;){var h=s.value;if("#text"!==h.nodeName)return null;d+=h.data}}catch(e){f.e(e)}finally{f.f()}var p=parseInt(d.trim(),10);if(isNaN(i)||p+""!==d.trim())return null;if(-1===i)i=p;else{if(p!==i-1)return null;i=p}if(1===i)return{startRow:l,endRow:a}}}return null}function l8(e,t){return!t.node.isConnected||!!(t.node.isTextNode()&&t.offset>t.node.dataLength)||t.node.offset>t.node.childCount}function u8(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=t.children,i=0;if(o.forEach((function(t,r){r0||0!==t.attrs.col||(i++,function(e,t,n){if(function(e){if(e.childCount>1)return null;var t=e.children[0];if(!t)return null;var n,r="",o=o8(t.children);try{for(o.s();!(n=o.n()).done;){var i=n.value;if("#text"!==i.nodeName)return null;r+=i.data}}catch(e){o.e(e)}finally{o.f()}return r.trim()}(t)!==n){var r=t.children.slice(0),o=0,i=r[0];(null==i?void 0:i.nodeName)===e.defaultElementName?o=1:(o=0,i=e.createElement("p",{alignment:"center"}));for(var a=o;a=0&&r0,"plugins/table/src/kernel/commands/helpers/delete-row.ts:22");var a=a8(e,t);e.setAttribute(t,"rowCount",i-o);for(var l=J5.getLayout(t),u=pn(t.children),c=n;ca.startRow&&u8(e,t,n2&&void 0!==arguments[2]?arguments[2]:j5,r=e.newJob(),o=r.getNodeById(t);if(!(null==o?void 0:o.hasCategory(ze.Table)))return!1;var i=o.attrs,a=i.colCount,l=i.colWidths;if(i.widthMode===Bl&&(n=l.reduce((function(e,t){return e+t}),0)),!(n>a))return e.cancelJob(r),!1;var u=this._equallyDividedColumn(n,a);return r.setAttribute(o,"colWidths",u),e.commitJob(r),!0}},{key:"_equallyDividedColumn",value:function(e,t){var n=Math.floor(e/t);kt.fatal(n>0,"plugins/table/src/kernel/commands/equally-column.ts:55");for(var r=e%t,o=[],i=0;i0&&(o[t-1]+=r),o}}]),t}(wt);Object.defineProperty(g8,"ID",{enumerable:!0,configurable:!0,writable:!0,value:b5.command.tableEquallyColumn});var b8=o(4383),y8=o.n(b8);function w8(e,t,n){return t=Qe(t),Xe(e,k8()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function k8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k8=function(){return!!e})()}var C8=function(e){function t(){var e;return Ye(this,t),e=w8(this,t,arguments),Object.defineProperty(Je(e),"_position",{enumerable:!0,configurable:!0,writable:!0,value:""}),e}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return t.rangeCount>1||zt.closest(t.firstRange.commonAncestorContainer,ze.Table)?pt:gt.UNAVAILABLE}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.newJob();if(this.getState(o)===ht)return e.cancelJob(o),!1;var i=o.getSelection();return-1===n&&(n=this._getIndex(i)),function(e,t,n,r,o){var i,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=-1===(i="before"===r?n-1:n)?0:i,u=t.attrs,c=u.colCount,s=u.colWidths,d=pn(s),f=a?80:s[n];kt.fatal(i>=-1&&i<=c,"plugins/table/src/kernel/commands/helpers/insert-column.ts:42");var h=[];if(t.children.forEach((function(e,t){var n=l,r=e.children[n];if(!h[t]){for(;(!r||r.attrs.col>l)&&0!==n;)n--,r=e.children[n];if(r)for(var o=r.attrs.rowSpan,i=void 0===o?1:o,a=t;a=0;r--)e.prependChild(t,e.createElement("td",a?{col:r}:Object.assign({col:r},h[n])))})),void(a&&u8(e,t,1));if(i!==c){var g=J5.getLayout(t),b=new Set;g.forEach((function(t,n){var r=t[i],a=r.type,l=r.node;if(l.attrs.col+(l.attrs.colSpan||1)-1>i){b.has(l)||(b.add(l),e.setAttribute(l,"colSpan",l.attrs.colSpan+o));for(var u=0;u1||l.attrs.rowSpan>1,"plugins/table/src/kernel/commands/helpers/insert-column.ts:172");for(var c=0;c1||zt.closest(t.firstRange.commonAncestorContainer,ze.Table)?pt:gt.UNAVAILABLE}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.newJob();if(this.getState(o)===ht)return e.cancelJob(o),!1;var i=o.getSelection();-1===n&&(n=this._getSourceRowIndex(i));var a=function(e,t,n,r,o){var i={},a=t.children[n];kt.fatal(a,"plugins/table/src/kernel/commands/helpers/insert-row.ts:23"),a.attrs.height&&(i.height=a.attrs.height);var l=t.attrs.rowCount;kt.fatal(n>=0&&n<=l-1,"plugins/table/src/kernel/commands/helpers/insert-row.ts:33"),e.setAttribute(t,"rowCount",l+o);var u=a8(e,t);if(0===n&&"before"===r||n===l-1&&"after"===r){var c=function(e,t,n,r,o,i){var a=null,l=J5.getLayout(t)[o],u=e.createElement(w5,i),c=[];l.forEach((function(t,n){if(t.type===J5.TYPE_NODE){var r=y8()(t.node.attrs,g5);c[n]=e.createElement(k5,Object.assign({col:n},r)),e.appendChild(u,c[n])}else{var o=t.node,i=c[o.attrs.col];if(i)kt.fatal(o.attrs.colSpan>1,"plugins/table/src/kernel/commands/helpers/insert-row.ts:118"),e.setAttribute(i,"colSpan",(i.attrs.colSpan||1)+1);else{var a=y8()(o.attrs,g5);c[n]=e.createElement(k5,Object.assign({col:n},a)),e.appendChild(u,c[n])}}}));for(var s=0;s=0&&cc)kt.fatal(g.attrs.rowSpan>1,"plugins/table/src/kernel/commands/helpers/insert-row.ts:194"),f.has(g)||(f.add(g),e.setAttribute(g,"rowSpan",g.attrs.rowSpan+n));else{var b=h[v],y=p[b.node.attrs.col];if(b.type===J5.TYPE_REF&&y)e.setAttribute(y,"colSpan",(y.attrs.colSpan||1)+1);else{var w=y8()(b.node.attrs,g5);p[v]=e.createElement(k5,Object.assign({col:v},w)),e.appendChild(d,p[v])}}}for(var k=t.children[c],C=0;C=u.startRow&&u8(e,t,u.startRow),s}(o,zt.closest(i.firstRange.commonAncestorContainer,ze.Table),n,this._position,t);return r&&o.setSelection(o.selectNodeContents(a.firstChild)),e.commitJob(o),!0}},{key:"_getSourceRowIndex",value:function(e){var t=this._position,n=zt.closest(("before"===t?e.firstRange:e.lastRange).commonAncestorContainer,ze.TableCell);kt.fatal(n,"plugins/table/src/kernel/commands/insert-row.ts:85");var r=n.parentNode;return"before"===t?r.offset:r.offset+(n.attrs.rowSpan||1)-1}}]),t}(wt),D8=function(e){function t(){var e;return Ye(this,t),e=O8(this,t,arguments),Object.defineProperty(Je(e),"_position",{enumerable:!0,configurable:!0,writable:!0,value:"before"}),e}return et(t,e),Ke(t)}(E8);Object.defineProperty(D8,"ID",{enumerable:!0,configurable:!0,writable:!0,value:b5.command.tableInsertBeforeRow});var R8=function(e){function t(){var e;return Ye(this,t),e=O8(this,t,arguments),Object.defineProperty(Je(e),"_position",{enumerable:!0,configurable:!0,writable:!0,value:"after"}),e}return et(t,e),Ke(t)}(E8);function P8(e,t,n,r){e[t]||(e[t]=[]);for(var o=n;o1||r.attrs.rowSpan>1)?gt.EXECUTED:gt.UNAVAILABLE}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===gt.UNAVAILABLE)return e.cancelJob(t),!1;var n=t.getSelection(),r=zt.closest(n.firstRange.start.node,ze.Table);return kt.fatal(n.rangeCount>1,"plugins/table/src/kernel/commands/merge-cell.ts:52"),kt.fatal(r,"plugins/table/src/kernel/commands/merge-cell.ts:53"),n=function(e,t){var n=t.ranges,r=n.map((function(e){return zt.closest(e.start.node,ze.TableCell)})),o=r[0],i=o.parentNode.parentNode,a=a8(e,i);T8(o)&&e.removeChild(o,o.firstChild);for(var l=o.parentNode.offset,u=l,c=0,s=1,d=r.length;sl&&e.setAttribute(o,"rowSpan",u-l+1),c>0?e.setAttribute(o,"colSpan",(o.attrs.colSpan||1)+c):a&&u>l&&u>a.startRow&&u8(e,i,Math.min(l,a.startRow)),function(e,t){kt.fatal(t.hasCategory(ze.Table),"plugins/table/src/kernel/commands/helpers/reset-position.ts:6");var n=[];t.children.forEach((function(t){!function(e,t,n){var r=n.offset;t[r]||(t[r]=[]);var o=0;n.children.forEach((function(n){o=function(e,t){for(var n=0,r=e.length;no.attrs.rowCount?(e.cancelJob(n),!1):(function(e,t,n){var r=zt.closest(t.firstRange.commonAncestorContainer,ze.Table);kt.fatal(r,"plugins/table/src/kernel/commands/helpers/move-row.ts:16");var o=r.attrs.rowCount,i=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;t.ranges.forEach((function(e){var t=zt.closest(e.commonAncestorContainer,ze.TableCell).parentNode.offset;i=Math.min(i,t),a=Math.max(a,t)}));var l=r.children.slice(i,a+1);if(n!==o){var u=r.children[n];kt.fatal(u,"plugins/table/src/kernel/commands/helpers/move-row.ts:45"),l.forEach((function(t){e.insertBefore(r,t,u)}))}else l.forEach((function(t){e.appendChild(r,t)}))}(n,r,t),e.commitJob(n),!0)}}]),t}(wt);function q8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(o.ranges);try{for(i.s();!(r=i.n()).done;){var a=r.value.commonAncestorContainer.closest(ze.TableCell);if(!a)return e.cancelJob(n),!1;t?n.setAttribute(a,"cellBgColor",t):n.removeAttribute(a,"cellBgColor")}}catch(e){i.e(e)}finally{i.f()}return n.setSelection(o),e.commitJob(n),!0}}]),t}(wt);function G8(e,t,n){return t=Qe(t),Xe(e,J8()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function J8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J8=function(){return!!e})()}Object.defineProperty(Y8,"ID",{enumerable:!0,configurable:!0,writable:!0,value:b5.command.tableCellBgColor});var X8=function(e){function t(){return Ye(this,t),G8(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){kt.fatal(t,"plugins/table/src/kernel/commands/toggle-width-mode.ts:20");var n=e.getNodeById(t);return kt.fatal(n,"plugins/table/src/kernel/commands/toggle-width-mode.ts:24"),this._getValue(n)}},{key:"execute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;kt.fatal(t,"plugins/table/src/kernel/commands/toggle-width-mode.ts:30");var r=e.newJob(),o=r.getNodeById(t);if(!(null==o?void 0:o.hasCategory(ze.Table)))return e.cancelJob(r),!1;if(n===Bl||n===Il)r.setAttribute(o,"widthMode",n);else{var i=this._getValue(o);r.setAttribute(o,"widthMode",i===Bl?Il:Bl)}return e.commitJob(r),!0}},{key:"_getValue",value:function(e){var t;return(null===(t=e.attrs)||void 0===t?void 0:t.widthMode)===Bl?Bl:Il}}]),t}(wt);function Q8(e,t,n,r){if(kt.fatal(!r.isConnected,"plugins/table/src/kernel/commands/helpers/unmerge-cell.ts:64"),0===n)return e.prependChild(t,r),void kt.fatal(0===r.offset,"plugins/table/src/kernel/commands/helpers/unmerge-cell.ts:69");for(var o=t.children[n-1]||t.lastChild;o;){if(o.attrs.col1||n.attrs.rowSpan>1)?gt.NOT_EXECUTED:gt.UNAVAILABLE}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===gt.UNAVAILABLE)return e.cancelJob(t),!1;var n=t.getSelection(),r=zt.closest(n.firstRange.commonAncestorContainer,ze.TableCell);return kt.fatal(r,"plugins/table/src/kernel/commands/ummerge-cell.ts:52"),function(e,t){var n=t.parentNode.parentNode;kt.fatal(n,"plugins/table/src/kernel/commands/helpers/unmerge-cell.ts:9");var r=J5.getLayout(n),o=t.attrs,i=o.rowSpan,a=void 0===i?1:i,l=o.colSpan,u=void 0===l?1:l,c=o.col,s=t.parentNode.offset;e.removeAttribute(t,"colSpan"),e.removeAttribute(t,"rowSpan"),kt.fatal(a>1||u>1,"plugins/table/src/kernel/commands/helpers/unmerge-cell.ts:26");for(var d=0;d0,"plugins/table/src/kernel/helpers/table-matrix.ts:94"),o.forEach((function(t,o){var a,l,u;n[o]||Wo.appendChild(e,Wo.createElement("tr"));for(var c=-1,s=0,d=r;sr&&(i.length=r),{colCount:r,colWidths:i,rowCount:this._matrix.length}}},{key:"_removeEmptyRow",value:function(e){var t=[];this._matrix=this._matrix.map((function(n,r){var o;return 0===n.length?((null===(o=e.children)||void 0===o?void 0:o[r])&&t.push(e.children[r]),null):n})).filter(Boolean),t.forEach((function(t){Wo.removeChild(e,t)}))}},{key:"_addNodeToMatrix",value:function(e,t){if(!this._matrix[e])return this._matrix[e]=[t],0;for(var n=this._matrix[e],r=0,o=n.length;r0?r:null}));Wo.setAttribute(this._tableNode,"colWidths",t)}}},{key:"_parseRow",value:function(e){var t=this,n=e.style,r=e.children,o=e.attrs,i={};n&&n.height&&n.height.endsWith("px")&&(i.height=parseInt(n.height,10)||33),(o["data-lake-id"]||o.id)&&(i.id=o["data-lake-id"]||o.id);var a=Wo.createElement(w5,i);r&&r.forEach((function(e){"th"!==e.name&&"td"!==e.name||t._parseCell(a,e)})),Wo.appendChild(this._tableNode,a)}},{key:"_parseCell",value:function(e,t){var n={},r=this._readContext.getChildContext(),o=t.attrs,i=t.style;i&&(i.background&&i.background.indexOf(" ")<0&&(n.cellBgColor=i.background),i["background-color"]&&(n.cellBgColor=i["background-color"]),i["vertical-align"]&&(n.verticalAlign=i["vertical-align"]),i["text-align"]&&r.setAttr("alignment",i["text-align"])),o.colspan>1&&(n.colSpan=Number.parseInt(o.colspan,10)),o.rowspan>1&&(n.rowSpan=Number.parseInt(o.rowspan,10)),(o["data-lake-id"]||o.id)&&(n.id=o["data-lake-id"]||o.id);var a=Wo.createElement(k5,n);Wo.appendChild(e,a),t.children&&Wo.setChildren(a,r.readByNodes(t.children))}}]),e}();function s6(e,t,n){return t=Qe(t),Xe(e,d6()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function d6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d6=function(){return!!e})()}var f6=function(e){function t(){return Ye(this,t),s6(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t){e.stop();var n=new c6(e,t).parse();n&&e.setNode(n)}}]),t}(OZ);function h6(e,t,n){return t=Qe(t),Xe(e,p6()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function p6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p6=function(){return!!e})()}var v6=function(e){function t(){return Ye(this,t),h6(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){e.stop(),t.children&&t.children.forEach((function(t){e.newGroup(),t.children&&t.children.forEach((function(t){e.newGroup(),t.children&&t.children.forEach((function(t){e.write(t)})),e.closeGroup()})),e.closeGroup()}))}}]),t}(H1);function m6(e,t,n){return t=Qe(t),Xe(e,g6()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function g6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g6=function(){return!!e})()}var b6=function(e){function t(){return Ye(this,t),m6(this,t,arguments)}return et(t,e),Ke(t,[{key:"readAttr",value:function(e,t,n,r){if((n=parseInt(n,10))&&!(n<=0))if("height"!==t){if("td"===r.name||"th"===r.name)switch(t){case"colspan":n>0&&e.addAttr("colSpan",n);break;case"rowspan":n>0&&e.addAttr("rowSpan",n);break;case"width":"td"===r.name&&e.addAttr("width",n);break;default:return}}else{if("tr"!==r.name)return;e.addAttr("height",n)}}}]),t}(G1);function y6(e,t,n){return t=Qe(t),Xe(e,w6()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function w6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w6=function(){return!!e})()}Object.defineProperty(b6,"AttrNames",{enumerable:!0,configurable:!0,writable:!0,value:[b5.attr.colspan,b5.attr.rowspan,b5.attr.width,b5.attr.height]});var k6=function(e){function t(){return Ye(this,t),y6(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e){e.setNode(Wo.createElement("td"))}}]),t}(HM);Object.defineProperty(k6,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[b5.node.th,b5.node.td]});var C6=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_tableNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rows",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_cols",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_current",{enumerable:!0,configurable:!0,writable:!0,value:null}),this._tableNode=t}return Ke(e,[{key:"_addNode",value:function(e){var t=e.name;if("table"!==t&&"tbody"!==t&&"thead"!==t&&"tfoot"!==t)return"tr"===t?(_6(e),this._rows.push(e),void(this._current=e)):"td"===t||"th"===t?(this._current||(this._current=Nd.createElement("tr"),this._rows.push(this._current)),void N6(this._current,e)):void("colgroup"!==t?"col"===t&&(this._cols.push(e),_6(e)):_6(e));_6(e)}},{key:"walk",value:function(){var e=this._tableNode;this._walk(e.children),e.children=[];var t=Nd.createElement("colgroup");return N6(e,t),this._cols.forEach((function(e){N6(t,e)})),this._rows.forEach((function(t){N6(e,t)})),e}},{key:"_walk",value:function(e){var t=this;e&&Array.from(e).forEach((function(e){e&&(t._addNode(e),t._walk(e.children))}))}}]),e}();function _6(e){var t,n=e.parent,r=null===(t=null==n?void 0:n.children)||void 0===t?void 0:t.indexOf(e);void 0!==r&&r>-1&&n.children.splice(r,1),e.parent=null}function N6(e,t){_6(t),e.children||(e.children=[]),e.children.push(t),t.parent=e}function O6(e,t,n){return t=Qe(t),Xe(e,x6()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function x6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x6=function(){return!!e})()}var E6=function(e){function t(){return Ye(this,t),O6(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){var n,r,o;if(t="table"!==(o=t).name?o:new C6(o).walk(),e.setNode(Wo.createElement("table")),"colgroup"===(null===(r=null===(n=t.children)||void 0===n?void 0:n[0])||void 0===r?void 0:r.name)){var i=this._parseColWidths(t.children[0]);e.addAttr("colWidths",i)}}},{key:"leaveNode",value:function(e){var t=e.getNode();t&&!l6(t)&&e.parentNode&&t&&Wo.removeChild(e.parentNode,t)}},{key:"_parseColWidths",value:function(e){return(e.children||[]).map((function(e){var t;return"col"!==e.name?null:parseInt(null===(t=null==e?void 0:e.attrs)||void 0===t?void 0:t.width,10)||100})).filter(Boolean)}}]),t}(HM);function D6(e,t,n){return t=Qe(t),Xe(e,R6()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function R6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R6=function(){return!!e})()}Object.defineProperty(E6,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[b5.node.table]});var P6=function(e){function t(){return Ye(this,t),D6(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e){e.setNode(Wo.createElement("tr"))}}]),t}(HM);function S6(e,t,n){return t=Qe(t),Xe(e,T6()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function T6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T6=function(){return!!e})()}Object.defineProperty(P6,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[b5.node.tr]});var A6=function(e){function t(){return Ye(this,t),S6(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r,o,i,a=null===(n=t.attrs)||void 0===n?void 0:n.borderVisible,l=null===(r=t.attrs)||void 0===r?void 0:r.colWidths,u={};e.isInlineMode()&&(u.tableLayout="fixed",u.borderCollapse="collapse",u.border=!1!==a?"1px solid #d9d9d9":"none");var c=l.reduce((function(e,t){return e+t}),0),s=[];if(e.isExport()){l.forEach((function(e,t){s[t]=parseFloat((e/c*100).toFixed(2))}));var d=e.getDocMaxWidth();u.width=d&&c=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function a9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1||zt.closest(t.firstRange.commonAncestorContainer,ze.Table)?pt:gt.UNAVAILABLE}},{key:"getValue",value:function(e){var t=e.getSelection(),n=zt.closest(t.firstRange.commonAncestorContainer,ze.Table);return n?a8(e,n):pt}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.newJob();if(this.getState(n)===ht)return e.cancelJob(n),!1;var r=n.getSelection(),o=zt.closest(r.firstRange.commonAncestorContainer,ze.Table);if(!o||t>o.children.length)return e.cancelJob(n),!1;var i=a8(n,o);if(u8(n,o,t-1),i&&i.startRow1?ht:pt}},{key:"getValue",value:function(e){return this.getState(e)===ht?null:zo.getTextContent(e,e.getSelection().firstRange)}}]),t}(wt);function y9(e,t,n){return t=Qe(t),Xe(e,w9()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function w9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w9=function(){return!!e})()}Object.defineProperty(b9,"ID",{enumerable:!0,configurable:!0,writable:!0,value:zQ.command.text});var k9=function(e){function t(e){var n;return Ye(this,t),n=y9(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._kernel=null}},{key:"read",value:function(e,t){return this._kernel.readData("text/plain",e,t)}},{key:"write",value:function(e,t){var n=e.document.getINode(t);return this._kernel.writeData("text/plain",n,t)}}]),t}(qt);function C9(e,t,n){return t=Qe(t),Xe(e,_9()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_9=function(){return!!e})()}var N9=function(e){function t(){return Ye(this,t),C9(this,t,arguments)}return et(t,e),Ke(t,[{key:"destroy",value:function(){}},{key:"registerTextReader",value:function(e){this.plugin._readerManager.register(e)}},{key:"registerTextWriter",value:function(e,t){this.plugin._textWriterManager.register(e,t)}}]),t}($Q),O9=function(){function e(){Ye(this,e),Object.defineProperty(this,"_readers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}return Ke(e,[{key:"destroy",value:function(){delete this._readers}},{key:"register",value:function(e){this._readers.push(e)}},{key:"read",value:function(e,t,n){for(var r=this._readers,o=t.replace(/[\u200B\uFEFF]/g,"").replace(/\r\n/g,"\n").replace(/\r/g,"").split("\n").map((function(e){if(!(null==n?void 0:n.forceText))for(var o=0,i=r.length;o2)o[a].forEach((function(e){i.push(e)}));else{var u=Wo.createElement("p");Wo.setChildren(u,o[a]),i.push(u)}return Wo.createFragment(i)}}]),e}();function x9(e){var t=[];return t.context=e,t}var E9=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_rootBuffer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_currentBuffer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._rootBuffer=x9({parent:null,offset:-1,index:-1}),this._currentBuffer=this._rootBuffer}return Ke(e,[{key:"rootNode",get:function(){return this._rootNode}},{key:"append",value:function(e){var t=this._currentBuffer.context;-1===t.index&&(t.index=0),this._currentBuffer[t.index]=(this._currentBuffer[t.index]||"")+e}},{key:"newline",value:function(e){this._currentBuffer.context.index++,this._currentBuffer[this._currentBuffer.context.index]=e||""}},{key:"newGroup",value:function(){this._currentBuffer.context.index++;var e=x9({parent:this._currentBuffer,offset:this._currentBuffer.context.index,index:-1});this._currentBuffer[this._currentBuffer.context.index]=e,this._currentBuffer=e}},{key:"closeGroup",value:function(){kt.fatal(this._currentBuffer.context.parent,"plugins/text-data-source/src/kernel/lib/text-builder.ts:70"),this._currentBuffer=this._currentBuffer.context.parent}},{key:"toString",value:function(){return D9(this._rootBuffer)}}]),e}();function D9(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\n";return e.map((function(e){return"string"==typeof e?e:D9(e,"\n"===t?"\t":"\n")})).join(t)}var R9=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"_writers",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_builder",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_toText",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}return Ke(e,[{key:"rootNode",get:function(){return this._builder.rootNode}},{key:"write",value:function(e){this._toText(this._writers,this._builder,this._kernel,e)}},{key:"newline",value:function(e){this._builder.newline(e)}},{key:"newGroup",value:function(){this._builder.newGroup()}},{key:"append",value:function(e){this._builder.append(e)}},{key:"closeGroup",value:function(){this._builder.closeGroup()}},{key:"isStop",value:function(){return this._stopped}},{key:"stop",value:function(){this._stopped=!0}}]),e}();function P9(e,t,n,r){var o,i;if(Wo.isFragmentNode(r))null===(o=r.children)||void 0===o||o.forEach((function(r){return P9(e,t,n,r)}));else{var a=n.getNodeSchema(r.name);if(a)if(a.type!==_t.Text){var l=e[r.name];if(l){var u=new R9(e,t,n,P9);return l.write(u,r),void(u.isStop()||Wo.isElementNode(r)&&r.children&&r.children.forEach((function(r){P9(e,t,n,r)})))}if(a.type===_t.Element)return a.category.includes(ze.Block)&&t.newline(),void(r.children&&r.children.forEach((function(r){return P9(e,t,n,r)})));kt.fatal(a.type===_t.Card,"plugins/text-data-source/src/kernel/lib/to-text.ts:64"),a.category.includes(ze.BlockCard)&&t.newline()}else t.append((null===(i=r.data)||void 0===i?void 0:i.replace(/\u00a0/g," "))||"")}}var S9=function(){function e(){Ye(this,e),Object.defineProperty(this,"_writers",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Ke(e,[{key:"destroy",value:function(){delete this._writers}},{key:"write",value:function(e,t){var n=new E9(t);return P9(this._writers,n,e,t),n.toString()}},{key:"register",value:function(e,t){var n=this;Array.isArray(e)?e.forEach((function(e){n._writers[e]=t})):this._writers[e]=t}}]),e}();function T9(e,t,n){return t=Qe(t),Xe(e,A9()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function A9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(A9=function(){return!!e})()}var j9=function(e){function t(){var e;return Ye(this,t),e=T9(this,t,arguments),Object.defineProperty(Je(e),"_dataSource",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_readerManager",{enumerable:!0,configurable:!0,writable:!0,value:new O9}),Object.defineProperty(Je(e),"_textWriterManager",{enumerable:!0,configurable:!0,writable:!0,value:new S9}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this._dataSource=new k9(e),e.registerDataSource("text/plain",this._dataSource),e.registerReader("text/plain",this._readerManager),e.registerWriter("text/plain",this._textWriterManager),e.extendMethods({registerTextReader:function(e){t._readerManager.register(e)}}),e.extendMethods({registerTextWriter:function(e,n){t._textWriterManager.register(e,n)}})}},{key:"destroy",value:function(){this._dataSource.destroy(),this._readerManager.destroy(),this._textWriterManager.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(ft);Object.defineProperty(j9,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:zQ.pluginName}),Object.defineProperty(j9,"Service",{enumerable:!0,configurable:!0,writable:!0,value:N9}),Object.defineProperty(j9,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[b9]});var I9="relax",B9="default";function M9(e,t,n){return t=Qe(t),Xe(e,F9()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function F9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F9=function(){return!!e})()}var L9=function(e){function t(){return Ye(this,t),M9(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return gt.NOT_EXECUTED}},{key:"getValue",value:function(){return this.plugin.getParagraphSpacing()}},{key:"execute",value:function(e,t){return this.plugin.setParagraphSpacing(t)}}]),t}(wt);function U9(e,t,n){return t=Qe(t),Xe(e,V9()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function V9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V9=function(){return!!e})()}Object.defineProperty(L9,"ID",{enumerable:!0,configurable:!0,writable:!0,value:s$.command.paragraphSpacing});var H9=function(e){function t(){return Ye(this,t),U9(this,t,arguments)}return et(t,e),Ke(t,[{key:"needPersistent",value:function(){return!0}},{key:"validate",value:function(e){return e===I9||e===B9}},{key:"isDefault",value:function(e){return e===B9||void 0===e}}]),t}(C$);function z9(e,t,n){return t=Qe(t),Xe(e,W9()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function W9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(W9=function(){return!!e})()}var q9=function(e){function t(){return Ye(this,t),z9(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return gt.NOT_EXECUTED}},{key:"getValue",value:function(){return this.plugin.getTypographyName()}},{key:"execute",value:function(e,t){return this.plugin.setTypography(t)}}]),t}(wt);function $9(e,t,n){return t=Qe(t),Xe(e,K9()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function K9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(K9=function(){return!!e})()}Object.defineProperty(q9,"ID",{enumerable:!0,configurable:!0,writable:!0,value:s$.command.typography});var Y9=function(e){function t(){return Ye(this,t),$9(this,t,arguments)}return et(t,e),Ke(t,[{key:"destroy",value:function(){}},{key:"getParagraphSpacing",value:function(){return this.plugin.getParagraphSpacing()}},{key:"getTypographyDetail",value:function(){return this.plugin.getTypographyDetail()}},{key:"getTypographyName",value:function(){return this.plugin.getTypographyName()}},{key:"isParagraphSpacingRelax",value:function(){return this.plugin.getParagraphSpacing()===I9}},{key:"setParagraphSpacing",value:function(e){this.plugin.setParagraphSpacing(e)}},{key:"setTypography",value:function(e){this.plugin.setTypography(e)}}]),t}(h$);function G9(e,t,n){return t=Qe(t),Xe(e,J9()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function J9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J9=function(){return!!e})()}var X9=function(e){function t(){return Ye(this,t),G9(this,t,arguments)}return et(t,e),Ke(t,[{key:"needPersistent",value:function(){return!0}},{key:"validate",value:function(e){return e===rY||e===oY}},{key:"isDefault",value:function(e){return e===rY||void 0===e}}]),t}(C$),Q9=function(){function e(t){if(Ye(this,e),Object.defineProperty(this,"_typography",{enumerable:!0,configurable:!0,writable:!0,value:rY}),Object.defineProperty(this,"_paragraphSpacing",{enumerable:!0,configurable:!0,writable:!0,value:B9}),Object.defineProperty(this,"_mustTypography",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),"string"==typeof t)this._setTypography(t);else{var n=t||{};n.typography&&this._setTypography(n.typography),n.paragraphSpacing&&this._setParagraphSpacing(n.paragraphSpacing),n.mustTypography&&this._setMustTypography(n.mustTypography)}}return Ke(e,[{key:"_setMustTypography",value:function(e){this._mustTypography=e!==rY&&e!==oY?void 0:e}},{key:"_setTypography",value:function(e){this._typography=e!==rY&&e!==oY?rY:e}},{key:"_setParagraphSpacing",value:function(e){this._paragraphSpacing=e!==B9&&e!==I9?B9:e}},{key:"typography",get:function(){return this._typography}},{key:"paragraphSpacing",get:function(){return this._paragraphSpacing}},{key:"mustTypography",get:function(){return this._mustTypography}}]),e}();function Z9(e,t,n){return t=Qe(t),Xe(e,e7()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function e7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(e7=function(){return!!e})()}Object.defineProperty(Q9,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"typography"});var t7=Ja(Ja({},rY,{fontSize:14,color:"#262626",lineHeight:1.16,h1:28,h2:24,h3:20,h4:16,h5:14,h6:14}),oY,{fontSize:15,color:"#262626",lineHeight:1.16,h1:28,h2:24,h3:20,h4:16,h5:14,h6:14}),n7=function(e){function t(){return Ye(this,t),Z9(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.kernel.requireService(c$.ID),e.extendMethods({isParagraphSpacingRelax:function(){return t.getParagraphSpacing()===I9},getParagraphSpacing:function(){return t.getParagraphSpacing()},getTypographyName:function(){return t.getTypographyName()},getTypographyDetail:function(){return t.getTypographyDetail()}}),this.editing.on("metachange",(function(e,n){var r=null==e?void 0:e.typography,o=null==n?void 0:n.typography;r&&(t.kernel.emitPluginEvent("typographyChange",{current:r,old:o}),t.kernel.emitEvent("typographyChange",r,o))}))}},{key:"afterInit",value:function(){var e=this.kernel.requireService(c$.ID);e.registerMeta("typography",new X9),e.registerMeta("paragraphSpacing",new H9)}},{key:"getParagraphSpacing",value:function(){var e;return(null===(e=this.kernel.getService(c$.ID))||void 0===e?void 0:e.getMeta("paragraphSpacing"))||this.option.paragraphSpacing}},{key:"getTypographyName",value:function(){var e;return this.option.mustTypography||(null===(e=this.kernel.getService(c$.ID))||void 0===e?void 0:e.getMeta("typography"))||this.option.typography}},{key:"getTypographyDetail",value:function(){var e=this.getTypographyName();return t7[e]}},{key:"setParagraphSpacing",value:function(e){if(e===I9||e===B9){var t=this.getParagraphSpacing();t!==e&&(this.kernel.requireService(c$.ID).setMeta("paragraphSpacing",e),this.kernel.emitPluginEvent("paragraphSpacingChange",{current:e,old:t}),this.kernel.emitEvent("paragraphSpacingChange",e,t))}}},{key:"setTypography",value:function(e){if(e===oY||e===rY){var t=this.getTypographyName();if(t===e)return!1;this.kernel.requireService(c$.ID).setMeta("typography",e),this.kernel.emitPluginEvent("typographyChange",{current:e,old:t}),this.kernel.emitEvent("typographyChange",e,t)}}}]),t}(ft);Object.defineProperty(n7,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:s$.pluginName}),Object.defineProperty(n7,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Q9}),Object.defineProperty(n7,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[q9,L9]}),Object.defineProperty(n7,"Service",{enumerable:!0,configurable:!0,writable:!0,value:Y9});var r7,o7=[{value:"agda",syntax:"text/x-agda",name:"Agda",ext:["agda"]},{value:"arkts",syntax:"text/x-arkts",name:"ArkTS",ext:["ets","arkts"]},{value:"bash",syntax:"shell",name:"Bash",ext:["bash"]},{value:"basic",syntax:"vbscript",name:"Basic",ext:["vbs"]},{value:"c",syntax:"text/x-csrc",name:"C",ext:["c","h","ino"]},{value:"cpp",syntax:"text/x-c++src",name:"C++",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"]},{value:"csharp",syntax:"text/x-csharp",name:"C#",ext:["cs"]},{value:"css",syntax:"css",name:"CSS",ext:["css"]},{value:"dart",syntax:"dart",name:"Dart",ext:["dart"]},{value:"diff",syntax:"diff",name:"Diff",ext:["diff","patch"]},{value:"dockerfile",syntax:"dockerfile",name:"Dockerfile"},{value:"erlang",syntax:"erlang",name:"Erlang",ext:["erl"]},{value:"glsl",syntax:"x-shader/x-vertex",name:"Glsl",ext:["glsl"]},{value:"git",syntax:"shell",name:"Git"},{value:"go",syntax:"go",name:"Go",ext:["go"]},{value:"graphql",syntax:"graphql",name:"GraphQL"},{value:"groovy",syntax:"groovy",name:"Groovy",ext:["groovy","gradle"]},{value:"html",syntax:"htmlmixed",name:"HTML",ext:["html","htm","handlebars","hbs"]},{value:"http",syntax:"http",name:"HTTP"},{value:"java",syntax:"text/x-java",name:"Java",ext:["java"]},{value:"javascript",syntax:"text/javascript",name:"JavaScript",ext:["js"]},{value:"json",syntax:"application/json",name:"JSON",ext:["json","map"]},{value:"jsx",syntax:"jsx",name:"JSX",ext:["jsx"]},{value:"katex",syntax:"simplemode",name:"KaTeX"},{value:"kotlin",syntax:"text/x-kotlin",name:"Kotlin",ext:["kt"]},{value:"less",syntax:"css",name:"Less",ext:["less"]},{value:"makefile",syntax:"cmake",name:"Makefile"},{value:"markdown",syntax:"markdown",name:"Markdown",ext:["markdown","md","mkd"]},{value:"matlab",syntax:"octave",name:"MATLAB"},{value:"nginx",syntax:"nginx",name:"Nginx",ext:["conf"]},{value:"objectivec",syntax:"text/x-objectivec",name:"Objective-C",ext:["m"]},{value:"pascal",syntax:"pascal",name:"Pascal",ext:["p","pas"]},{value:"perl",syntax:"perl",name:"Perl",ext:["pl","pm"]},{value:"php",syntax:"text/x-php",name:"PHP",ext:["php","php3","php4","php5","php7","phtml"]},{value:"powershell",syntax:"powershell",name:"PowerShell",ext:["ps1","psd1","psm1"]},{value:"protobuf",syntax:"protobuf",name:"Protobuf",ext:["proto"]},{value:"python",syntax:"python",name:"Python",ext:["build","bzl","py","pyw"]},{value:"r",syntax:"r",name:"R",ext:["r","R"]},{value:"ruby",syntax:"ruby",name:"Ruby",ext:["rb"]},{value:"rust",syntax:"rust",name:"Rust",ext:["rs"]},{value:"scala",syntax:"text/x-scala",name:"Scala",ext:["scala"]},{value:"shell",syntax:"shell",name:"Shell",ext:["sh","ksh"]},{value:"sql",syntax:"text/x-sql",name:"SQL",ext:["sql"]},{value:"plsql",syntax:"text/x-plsql",name:"PL/SQL"},{value:"swift",syntax:"swift",name:"Swift",ext:["swift"]},{value:"typescript",syntax:"text/typescript",name:"TypeScript",ext:["ts"]},{value:"vbnet",syntax:"vb",name:"VB.net",ext:["vb"]},{value:"velocity",syntax:"velocity",name:"Velocity",ext:["vtl"]},{value:"xml",syntax:"xml",name:"XML",ext:["xml","xsl","xsd","svg"]},{value:"yaml",syntax:"yaml",name:"YAML",ext:["yaml","yml"]},{value:"stex",syntax:"text/x-stex",name:"sTeX"},{value:"latex",syntax:"text/x-latex",name:"LaTeX",ext:["text","ltx","tex"]},{value:"systemverilog",syntax:"text/x-systemverilog",name:"SystemVerilog",ext:["sv","svh"]},{value:"sass",name:"Sass",syntax:"text/x-sass",ext:["sass","scss"]},{value:"tcl",syntax:"text/x-tcl",name:"Tcl",ext:["tcl"]},{value:"verilog",syntax:"text/x-verilog",name:"Verilog",ext:["v"]},{value:"vue",syntax:"text/x-vue",name:"Vue"},{value:"lua",syntax:"text/x-lua",name:"Lua",ext:["lua"]},{value:"haskell",syntax:"haskell",name:"Haskell",ext:["hs"]},{value:"properties",syntax:"properties",name:"Properties",ext:["properties","ini","in"]},{value:"toml",syntax:"toml",name:"TOML",ext:["toml"]},{value:"cypher",syntax:"cypher",name:"Cypher",ext:["cyp","cypher"]},{value:"tsx",syntax:"jsx",name:"TSX",ext:["tsx"]},{value:"f#",syntax:"mllike",name:"F#",ext:["fs"]},{value:"ocaml",syntax:"mllike",name:"OCaml",ext:["ml","mli","mll","mly"]},{value:"clojure",syntax:"clojure",name:"Clojure",ext:["clj","cljc","cljx"]},{value:"abap",syntax:"abap",name:"ABAP"},{value:"julia",syntax:"julia",name:"Julia",ext:["jl"]},{value:"cmake",syntax:"cmake",name:"CMake",ext:["cmake"]},{value:"scheme",syntax:"scheme",name:"Scheme",ext:["scm","ss"]},{value:"commonlisp",syntax:"commonlisp",name:"Lisp",ext:["cl","lisp","el"]},{value:"fortran",syntax:"fortran",name:"Fortran",ext:["f90","f95","f03"]},{value:"solidity",syntax:"solidity",name:"Solidity",ext:["sol"]}];o7.sort((function(e,t){var n=e.name.toLowerCase(),r=t.name.toLowerCase();return n===r?0:n1&&void 0!==arguments[1]?arguments[1]:null,r=e||{mode:"plain",autoWrap:!1,theme:r7.GITHUB},o={mode:r.mode,tabSize:r.tabSize||null,collapsed:!!r.collapsed,indentWithTab:!!r.indentWithTab,name:r.name||"",autoWrap:!!r.autoWrap,hideToolbar:!!r.hideToolbar,lineNumbers:!yr(r,"lineNumbers")||!!r.lineNumbers,lightLines:r.lightLines||[],foldLines:r.foldLines||[],customStyle:r.customStyle||[],code:n||"",theme:r.theme};return o.code&&"object"===We(o.code)&&(o=Object.assign(o,o.code)),Ll.setCardSpacingToValue(Pl.BOTH,Jw()({},t.DefaultCardValue,o))}},{key:"fromLake",value:function(e){var n=y8()(e,["mode","code","autoWrap","lineNumbers","theme","heightLimit","collapsed","hideToolbar","indentWithTab","name","lightLines","foldLines","customStyle","tabSize"]);return n.code&&"object"===We(n.code)&&(n=Object.assign(n,n.code)),n.mode&&(n.mode=(o7.find((function(e){var t,r,o;return[null===(t=e.value)||void 0===t?void 0:t.toLowerCase(),null===(r=e.name)||void 0===r?void 0:r.toLowerCase()].includes(n.mode.toLowerCase())||(null===(o=e.ext)||void 0===o?void 0:o.includes(n.mode.toLowerCase()))}))||o7[0]).value),Jw()({},t.DefaultCardValue,n)}},{key:"toLake",value:function(e){var t=[e.name||""].join(",");return Object.assign(Object.assign({search:t},e),{heightLimit:!0})}},{key:"setCodeTheme",value:function(e,t){e.theme=t}}]),t}(Ll);Object.defineProperty(d7,"DefaultCardValue",{enumerable:!0,configurable:!0,writable:!0,value:{mode:"plain",code:"",autoWrap:!1,lineNumbers:!0,heightLimit:!0,collapsed:!1,hideToolbar:!1,name:"",tabSize:null,indentWithTab:!1,lightLines:[],foldLines:[],customStyle:[],theme:r7.GITHUB}});const f7=d7;var h7={LOCAL_STORAGE_KEY:"lake-codeblock",load:function(){var e=null,t=Tf.getItem(this.LOCAL_STORAGE_KEY);if(t)try{e=JSON.parse(t)}catch(e){console.log("invalid data:",t)}return e},save:function(e){var t={mode:e.mode,autoWrap:e.autoWrap,theme:e.theme,indentWithTab:e.indentWithTab,lineNumbers:e.lineNumbers,hideToolbar:e.hideToolbar};Tf.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(t))},clear:function(){var e;null===(e=Tf.removeItem)||void 0===e||e.call(Tf,this.LOCAL_STORAGE_KEY)}};const p7=h7;function v7(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e.toLowerCase();var t=o7.find((function(t){var n;return null===(n=t.ext)||void 0===n?void 0:n.includes(e)}));return(null==t?void 0:t.value)||e}function m7(e,t,n){return t=Qe(t),Xe(e,g7()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function g7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g7=function(){return!!e})()}var b7="vscode-editor-data",y7=function(){function e(){Ye(this,e),Object.defineProperty(this,"_lines",{enumerable:!0,configurable:!0,writable:!0,value:[]})}return Ke(e,[{key:"addToLine",value:function(e){this._lines.push(e)}},{key:"newLine",value:function(){this._lines.push("\n")}},{key:"getLines",value:function(){return this._lines.join("").split("\n")}},{key:"enterNode",value:function(e){wf[e.name]&&this._lines.push("\n")}},{key:"leaveNode",value:function(e){}}]),e}(),w7=function(e){function t(){return Ye(this,t),m7(this,t,arguments)}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t,n){var r,o,i=[],a="",l=!0;if("code-block"===t.name){var u=function(e){var t;if("code-block"!==e.name)return null;if(!e.children||"div"!==e.children[0].name||"wolai-pre"!==(null===(t=e.children[0].attrs)||void 0===t?void 0:t.class))return null;var n=e.children[0];if(!n.children)return null;var r={lines:null,lng:null};return n.children.forEach((function(e){var t;if("pre"===e.name){var n=new y7;C7(n,e.children),r.lines=n.getLines()}else if("div"===e.name&&(null===(t=e.attrs)||void 0===t?void 0:t["data-lang"])){var o=e.attrs["data-lang"].toLowerCase();o7.find((function(e){return e.value===o&&(r.lng=e.value),e.value===o}))}})),r}(t);a=null==u?void 0:u.lng,i=null==u?void 0:u.lines}else if("div"===t.name)i=function(e){var t,n,r;return"div"===e.name&&(null===(n=null===(t=e.style)||void 0===t?void 0:t["font-family"])||void 0===n?void 0:n.includes("monospace"))&&"pre"===(null===(r=e.style)||void 0===r?void 0:r["white-space"])&&e.children&&e.children.every((function(e){var t=e.name;return"div"===t||"br"===t||"#text"===t}))?function(e){for(var t=[],n=0,r=e.length;n1&&(t[0].trim()||t.shift(),t[t.length-1].trim()||t.pop()),t}(e.children):null}(t),(null==n?void 0:n.clipboardPayload)&&(a=function(e){if(!(null==e?void 0:e.types.includes(b7)))return null;var t="";try{var n=JSON.parse(e.getData(b7));t=n.mode||null}catch(e){console.warn("failed to detect code language",e)}return t&&o7.some((function(e){return e.value===t}))?t:null}(null==n?void 0:n.clipboardPayload));else{var c=t.children,s=new y7;1===(null==c?void 0:c.length)&&"code"===c[0].name?(l=!1,a=function(e){if(!e)return null;Array.isArray(e)||(e=e.split(/\s+/));var t=e.map((function(e){return null==e?void 0:e.split(/\s+/g)})).flat(1).find((function(e){return e&&(e.startsWith("language-")||e.startsWith("lang-"))}));if(!t)return null;var n=t.replace(/lang(uage)?-/,"");return o7.some((function(e){return e.value===n}))?n:null}([null===(r=t.attrs)||void 0===r?void 0:r.class,null===(o=c[0].attrs)||void 0===o?void 0:o.class]),_7(s,c[0].children)):_7(s,c),i=s.getLines()}(null==i?void 0:i.length)&&(e.stop(),l&&1===i.length?(Nd.removeAllAttribute(t),Nd.removeAllStyle(t),e.setNode(Nd.createTextNode(i[0]))):(Nd.setAttribute(t,"codeblock","true"),Nd.setAttribute(t,"languageMode",a),Nd.setChildren(t,[Nd.createTextNode(i.join("\n"))])))}}]),t}(b2);function k7(e){var t,n=e.children;if(!n)return null;for(var r=[],o=0,i=n.length;o1?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"getValue",value:function(e){return e.getNodesByName("mention").filter((function(e){return e.isConnected})).map((function(e){return e.attrs&&e.attrs.value?Object.assign({},e.attrs.value):null})).filter(Boolean)}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.newJob();if(this.getState(r)===gt.UNAVAILABLE)return e.cancelJob(r),!1;var o=Ri.insertCardNode(r,r.getSelection(),"mention",t),i=o.selection,a=o.cardNode;return n?r.setSelection([r.newRange(r.newPosition(a,0))]):r.setSelection(i),e.commitJob(r),a.id}}]),t}(gt),Q7={origin:null,externalOpen:!1,generateMentionInfo:null},Z7=function(){function e(t){var n=this;Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"generateMentionInfo",{enumerable:!0,configurable:!0,writable:!0,value:function(e){if(n._option.generateMentionInfo)return n._option.generateMentionInfo(e);var t=e.login,r=e.name,o=e.nickName;if(t){var i=n._option,a=i.origin,l=i.externalOpen;return a?"boolean"!=typeof l&&(l=!0):a=Ru()(window,"location.origin"),{text:"".concat(o||r||t),url:encodeURI("".concat(a,"/").concat(t)),externalOpen:!!l}}return{text:o||r,url:null,externalOpen:!1}}}),this._option=Jw()({},Q7,t)}return Ke(e,[{key:"onAfterKernelPluginInit",get:function(){return this._option.onAfterKernelPluginInit}}]),e}();function eee(e,t,n){return t=Qe(t),Xe(e,tee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tee=function(){return!!e})()}Object.defineProperty(Z7,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"mention"});var nee=function(e){function t(){return Ye(this,t),eee(this,t,arguments)}return et(t,e),Ke(t)}(GM);function ree(e,t,n){return t=Qe(t),Xe(e,oee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oee=function(){return!!e})()}Object.defineProperty(nee,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:"mention"});var iee=function(e){function t(){return Ye(this,t),ree(this,t,arguments)}return et(t,e),Ke(t,[{key:"setUserInfo",value:function(e){var t=e.login,n=e.nickName,r=e.name,o=e.userid;this._cardValue.login=t,this._cardValue.nickName=n,this._cardValue.name=r,this._cardValue.userid=o}},{key:"getUserInfo",value:function(){return{login:this._cardValue.login,nickName:this._cardValue.nickName,name:this._cardValue.name,userid:this._cardValue.userid}}}],[{key:"fromLake",value:function(e){return Jw()({},t.DefaultCardValue,e)}},{key:"toLake",value:function(e){return Object.assign({},e)}}]),t}(Ll);function aee(e,t,n){return t=Qe(t),Xe(e,lee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lee=function(){return!!e})()}Object.defineProperty(iee,"DefaultCardValue",{enumerable:!0,configurable:!0,writable:!0,value:{login:void 0,nickName:void 0,name:void 0,userid:void 0}});var uee=function(e){function t(){return Ye(this,t),aee(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){if(n){var o=e.createCard("mention",iee.fromLake(n),r);e.setNode(o)}}}]),t}(ZM);function cee(e,t,n){return t=Qe(t),Xe(e,see()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function see(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(see=function(){return!!e})()}Object.defineProperty(uee,"LakeCardName",{enumerable:!0,configurable:!0,writable:!0,value:"mention"});var dee=function(e){function t(e){var n;return Ye(this,t),n=cee(this,t),Object.defineProperty(Je(n),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:null}),n._plugin=e,n}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n=Ru()(t,"attrs.value",{}),r=n.login,o=n.name,i=n.nickName,a=e.createElement("span",{className:"ne-mention"});if(!r)return o||i?(e.appendChild(a,e.createTextNode("@"+(i||o))),void e.setNode(a)):void e.clear();var l=this._plugin.option.generateMentionInfo({login:r,name:o,nickName:i}),u=l.text,c=l.url,s=l.externalOpen,d=e.createElement("a",{attrs:{href:c,target:s?"_blank":void 0}});e.appendChild(d,e.createTextNode("@"+u)),e.appendChild(a,d),e.setNode(a)}}]),t}(EB);function fee(e,t,n){return t=Qe(t),Xe(e,hee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hee=function(){return!!e})()}var pee=function(e){function t(){return Ye(this,t),fee(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n,r){if(n){var o=e.createInlineCard("mention",iee.toLake(n),r,{"data-login":n.login,"data-name":n.name,"data-userid":n.userid});e.setNode(o)}}}]),t}(aF);function vee(e,t,n){return t=Qe(t),Xe(e,mee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mee=function(){return!!e})()}var gee=function(e){function t(e){var n;return Ye(this,t),n=vee(this,t),Object.defineProperty(Je(n),"_option",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r=(null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.value)||{},o=this._option.generateMentionInfo(r).text;o&&e.append("@"+o)}}]),t}(H1),bee=function(){function e(t){Ye(this,e),Object.defineProperty(this,"plugin",{enumerable:!0,configurable:!0,writable:!0,value:t})}return Ke(e,[{key:"write",value:function(e,t){var n=Ru()(t,"attrs.value",{}),r=n.login,o=n.name,i=n.nickName;if(!r)return!o&&!i||(e.append("[@".concat(i||o,"]()")),!0);var a=this.plugin.option.generateMentionInfo({login:r,name:o,nickName:i}),l=(a.text,a.url);return a.externalOpen,e.append("[@".concat(i||o,"](").concat(l,")")),!0}}]),e}();function yee(e,t,n){return t=Qe(t),Xe(e,wee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wee=function(){return!!e})()}var kee=function(e){function t(){var e;return Ye(this,t),e=yee(this,t,arguments),Object.defineProperty(Je(e),"isValidMentionPosition",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.node,r=t.offset;if(n.hasCategory([ze.Root,ze.LikeRoot]))return!0;if(zt.closest(n,ze.Inline))return!1;if(n.isTextNode()){var o=e._getPrevText(n,r);return!o||!o.match(/[a-z0-9_]$/)}return kt.fatal(n.isElement()&&n.hasCategory(ze.Block),"plugins/mention/src/kernel/index.ts:106"),!0}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var n,r,o,i,a,l;e.registerInlineCard(t.cardName),e.registerCommand("mention",new X7),e.extendMethods({isValidMentionPosition:this.isValidMentionPosition}),null===(n=e.getService(zI.ID))||void 0===n||n.registerLakeCardReader(uee.LakeCardName,new uee),null===(r=e.getService(qB.ID))||void 0===r||r.registerINodeCardReader(nee.CardName,new nee),null===(o=e.getService($Q.ID))||void 0===o||o.registerTextWriter(t.cardName,new gee(this.option)),null===(i=e.getService(zI.ID))||void 0===i||i.registerLakeCardWriter(t.cardName,new pee),null===(a=e.getService(UI.ID))||void 0===a||a.registerNodeHTMLWriter(t.cardName,new dee(this)),null===(l=e.getService(vF.ID))||void 0===l||l.registerMarkdownWriter(t.PluginName,new bee(this)),this.option.onAfterKernelPluginInit&&this.option.onAfterKernelPluginInit(this.kernel)}},{key:"_getPrevText",value:function(e,t){kt.fatal(e.isTextNode(),"plugins/mention/src/kernel/index.ts:111");var n=[];return n.push(On.substring(e.data,0,t)),e.previousSibling&&e.previousSibling.isTextNode()&&(e=e.previousSibling,n.push(e.data)),n.reverse().join("")}}]),t}(ft);Object.defineProperty(kee,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"mention"}),Object.defineProperty(kee,"cardName",{enumerable:!0,configurable:!0,writable:!0,value:"mention"}),Object.defineProperty(kee,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Z7});var Cee={accept:null,useOriginSrc:function(){return!1}},_ee=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},Cee,t)}return Ke(e,[{key:"accept",get:function(){return this._option.accept}},{key:"name",get:function(){return this._option.name}},{key:"migrationHost",get:function(){return this._option.migrationHost}},{key:"useOriginSrc",value:function(e){var t,n;return(null===(n=(t=this._option).useOriginSrc)||void 0===n?void 0:n.call(t,e))||!1}}]),e}();Object.defineProperty(_ee,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"video"});var Nee={Pending:"pending",Uploading:"uploading",Uploaded:"uploaded",Done:"done",Error:"error"};function Oee(e,t,n){return t=Qe(t),Xe(e,xee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function xee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xee=function(){return!!e})()}var Eee={status:Nee.Pending,name:null,size:null,taskId:null,taskType:"",url:null,cover:null,videoId:null},Dee=function(e){function t(){return Ye(this,t),Oee(this,t,arguments)}return et(t,e),Ke(t,[{key:"getTaskId",value:function(){return this._cardValue.taskId}},{key:"getName",value:function(){return this._cardValue.name}},{key:"setName",value:function(e){this._cardValue.name=e}},{key:"getStatus",value:function(){return this._cardValue.status}},{key:"setStatus",value:function(e){this._cardValue.status=e}},{key:"getUrl",value:function(){return this._cardValue.url}},{key:"setUrl",value:function(e){this._cardValue.url=e}},{key:"getCover",value:function(){return this._cardValue.cover}},{key:"setCover",value:function(e){this._cardValue.cover=e}},{key:"getCode",value:function(){return this._cardValue.code}},{key:"setCode",value:function(e){this._cardValue.code=e}},{key:"getMessage",value:function(){return this._cardValue.message}},{key:"setMessage",value:function(e){this._cardValue.message=e}},{key:"getSize",value:function(){return this._cardValue.size}},{key:"setSize",value:function(e){this._cardValue.size=e}},{key:"isCompleted",value:function(){switch(this.getStatus()){case Nee.Uploaded:case Nee.Done:case Nee.Error:return!0;default:return!1}}}],[{key:"getInitCardValue",value:function(e){var n,r,o={};return e&&(o.taskId=e.id,o.taskType="upload",e.file&&(o.name=null!==(n=e.file.name)&&void 0!==n?n:Eee.name,o.size=null!==(r=e.file.size)&&void 0!==r?r:Eee.size)),Ll.setCardSpacingToValue(Tl,Jw()({},t.DefaultCardValue,o))}},{key:"fromRepository",value:function(e){var t=e.copiedFileInfo,n={status:Nee.Uploaded,name:t.filename,size:t.size,url:t.url,videoId:t.video_id};return Ll.setCardSpacingToValue(Tl,Jw()({},Eee,n))}},{key:"fromLake",value:function(e){var t=Object.assign({},e);return t.url&&t.status!==Nee.Done&&(t.status=Nee.Done),Jw()({},Eee,t)}},{key:"toLake",value:function(e){return e}}]),t}(Ll);function Ree(e,t,n){return t=Qe(t),Xe(e,Pee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Pee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pee=function(){return!!e})()}Object.defineProperty(Dee,"DefaultCardValue",{enumerable:!0,configurable:!0,writable:!0,value:Eee});var See=function(e){function t(){return Ye(this,t),Ree(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Dee.fromRepository({copiedFileInfo:t});return this._execute(e,"video",r,n)}}]),t}(NM);function Tee(e,t,n){return t=Qe(t),Xe(e,Aee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Aee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Aee=function(){return!!e})()}Object.defineProperty(See,"ID",{enumerable:!0,configurable:!0,writable:!0,value:"insertVideo"});var jee=function(e){function t(){return Ye(this,t),Tee(this,t,arguments)}return et(t,e),Ke(t)}(GM);function Iee(e,t,n){return t=Qe(t),Xe(e,Bee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Bee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bee=function(){return!!e})()}Object.defineProperty(jee,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:"video"});var Mee=function(e){function t(e){var n;return Ye(this,t),n=Iee(this,t),Object.defineProperty(Je(n),"option",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){if(this.option.migrationHost&&!n.url&&n.videoId&&"string"==typeof n.videoId){var o="string"==typeof this.option.migrationHost?this.option.migrationHost:"yuque.antfin-inc.com";n.url="https://".concat(o,"/api/v2/servicify/migration/videos/").concat(n.videoId)}var i=e.createCard("video",Dee.fromLake(n),r);e.setNode(i)}}]),t}(ZM);function Fee(e,t,n){return t=Qe(t),Xe(e,Lee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Lee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lee=function(){return!!e})()}var Uee=function(e){function t(){return Ye(this,t),Fee(this,t,arguments)}return et(t,e),Ke(t,[{key:"readFile",value:function(e,t){if(("video"===(null==t?void 0:t.category)||"localDoc"===(null==t?void 0:t.category)||(null==t?void 0:t.useMediaCard))&&((null==t?void 0:t.from)===ZB||(null==t?void 0:t.useMediaCard))){var n=e._$neUploadTask;if(n)return Wo.createCard("video",Dee.getInitCardValue(n))}}}]),t}(FM);function Vee(e,t,n){return t=Qe(t),Xe(e,Hee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Hee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hee=function(){return!!e})()}var zee=function(e){function t(e){var n;return Ye(this,t),n=Vee(this,t),Object.defineProperty(Je(n),"_currentUrl",{enumerable:!0,configurable:!0,writable:!0,value:""}),n._currentUrl=e,n}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n,r,o,i=null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.value;if(i&&(null==i?void 0:i.status)===Nee.Done){var a=(null==i?void 0:i.name)||"",l=e.createElement("div",{className:"ne-video"}),u=e.createElement("a",{attrs:{href:(null===(o=null===(r=null==t?void 0:t.attrs)||void 0===r?void 0:r.value)||void 0===o?void 0:o.url)||""}});e.appendChild(u,e.createTextNode(a)),e.appendChild(l,e.createTextNode("此处为语雀视频卡片,点击链接查看:")),e.appendChild(l,u),e.setNode(l)}}}]),t}(EB);function Wee(e,t,n){return t=Qe(t),Xe(e,qee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qee=function(){return!!e})()}var $ee=function(e){function t(){return Ye(this,t),Wee(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t,n,r){var o=e.createBlockCard("video",Dee.toLake(n),r);e.setNode(o)}}]),t}(aF),Kee=Ke((function e(){Ye(this,e)}));function Yee(e,t,n){return t=Qe(t),Xe(e,Gee()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Gee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gee=function(){return!!e})()}var Jee=function(e){function t(e){var n;return Ye(this,t),n=Yee(this,t),Object.defineProperty(Je(n),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){if(t.attrs&&t.attrs.src){var n=t.attrs,r=n.src,o=n._$neUploadTask;return this.plugin.option.useOriginSrc(r)?(e.setNode(Wo.createCard("video",Dee.fromLake({url:r}))),!1):o?(e.setNode(Wo.createCard("video",Dee.getInitCardValue(o))),!1):void 0}}}]),t}(HM);Object.defineProperty(Jee,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["video"]});var Xee=Ke((function e(){Ye(this,e)})),Qee=Ke((function e(){Ye(this,e)}));function Zee(e,t,n){return t=Qe(t),Xe(e,ete()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ete(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ete=function(){return!!e})()}var tte=function(e){function t(e){var n;return Ye(this,t),n=Zee(this,t),Object.defineProperty(Je(n),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t){if(t.attrs&&t.attrs.src){var n=t.attrs,r=n.src,o=n._$neUploadTask;return this.plugin.option.useOriginSrc(r)?(e.setNode(Wo.createCard("video",Dee.fromLake({url:r}))),!1):o?(e.setNode(Wo.createCard("video",Dee.getInitCardValue(o))),!1):void 0}}}]),t}(OZ);function nte(e,t,n){return t=Qe(t),Xe(e,rte()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rte=function(){return!!e})()}var ote=function(e){function t(){return Ye(this,t),nte(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var n,r,o,i,a,l,u;e.registerBlockCard(t.cardName);var c=e.requireService(fF.ID);null===(n=e.getService(zI.ID))||void 0===n||n.registerLakeCardReader("video",new Mee(this.option)),null===(r=e.getService(qB.ID))||void 0===r||r.registerINodeCardReader(jee.CardName,new jee),null===(o=e.getService(HB.ID))||void 0===o||o.registerFileReader(c.getFileAcceptUtil().getVideoFileAccept(this.option.name),new Uee),null===(i=e.getService(zI.ID))||void 0===i||i.registerLakeCardWriter("video",new $ee),null===(a=e.getService(UI.ID))||void 0===a||a.registerNodeHTMLWriter("video",new zee(e.option.currentURL)),null===(l=e.getService(UI.ID))||void 0===l||l.registerHTMLNodeReader(Jee.NodeNames,new Jee(this)),null===(u=e.getService(zI.ID))||void 0===u||u.registerLakeNodeReader("video",new tte(this))}}]),t}(ft);Object.defineProperty(ote,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"video"}),Object.defineProperty(ote,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:_ee}),Object.defineProperty(ote,"cardName",{enumerable:!0,configurable:!0,writable:!0,value:"video"}),Object.defineProperty(ote,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[See]});var ite=uI({pluginName:"columns",service:{IColumnsKernelService:"IColumnsKernelService"},command:{columns:"columns",columnsWidths:"columnsWidths",columnsAddColumn:"columnsAddColumn",columnDelete:"columnDelete",columnDeleteByIndex:"columnDeleteByIndex",selectColumnEnd:"selectColumnEnd",deleteColumns:"deleteColumns",moveColumns:"moveColumns",moveColumn:"moveColumn",columnsToggleWidthMode:"columnsToggleWidthMode"},node:{columns:"columns",column:"column"},lakeNode:{article:"article"},htmlNode:{article:"article"},domNode:{columns:"ne-columns",column:"ne-column",columnsContent:"ne-columns-content",columnContent:"ne-column-content",columnBorder:"ne-column-border",columnHover:"ne-column-hover",columnController:"ne-column-controller"},attr:{width:"width"},cardSelect:{columns:"columns",columns2:"columns2",columns3:"columns3",columns4:"columns4",columns5:"columns5",columns6:"columns6"}});const ate={width:{targets:[ite.node.column],values:function(e){return"number"==typeof e}}};function lte(e,t,n){return t=Qe(t),Xe(e,ute()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ute(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ute=function(){return!!e})()}var cte=function(e){function t(){var e;return Ye(this,t),e=lte(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function ste(e,t,n){return t=Qe(t),Xe(e,dte()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function dte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dte=function(){return!!e})()}Object.defineProperty(cte,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(ite.service.IColumnsKernelService)});var fte=function(e){function t(){return Ye(this,t),ste(this,t,arguments)}return et(t,e),Ke(t,[{key:"reAlignColumnWidth",value:function(e,t){var n=e.children.map((function(e){return Number(e.attrs.width)*(1-1/t)})),r=0,o=0;do{for(var i=0;i0&&o<10);return kt.fatal(0===r,"plugins/columns/src/kernel/columns-kernel-service.ts:35"),n}},{key:"destroy",value:function(){}}]),t}(cte);const hte={columns:{parents:[ze.ContainerHole],excludes:[ze.VirtualLikeRoot],category:[xr,ze.WidthModeBox,ze.Brick],children:[Er]},column:{parents:[xr],category:[ze.LikeRoot,Er]}};function pte(e,t,n){return t=Qe(t),Xe(e,vte()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vte=function(){return!!e})()}var mte=function(e){function t(){return Ye(this,t),pte(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getSelection(),i=r.getNodeById(t);if((null==i?void 0:i.nodeName)!==xr||isNaN(n)||n<0||n>=i.childCount)return e.cancelJob(r),!1;var a=i.children[n];if(kt.fatal(a&&a.nodeName===Er,"plugins/columns/src/kernel/commands/column-delete-by-index-command.ts:36"),i.childCount<2)return e.cancelJob(r),!1;if(2===i.childCount){for(var l=i.parentNode.parentNode,u=this._isSelectionInColumnNode(r,o,a),c=r.newPosition(l,Math.max(0,i.parentNode.offset-1)),s=0;s1||s.firstChild&&!zt.isLikeEmptyElement(s.firstChild))return e.cancelJob(l),!1;if(c.childCount<=2){if(c.children.every((function(e){return zt.isLikeEmptyElement(e)}))){var d=Di.deleteContent(l,l.selectNode(c));return kt.fatal(d.collapsed,"plugins/columns/src/kernel/commands/column-delete-command.ts:63"),l.setSelection(d),e.commitJob(l),!0}for(var f=c.parentNode.parentNode,h=l.newPosition(f,Math.max(0,c.parentNode.offset-1)),p=0;p=i.childCount||r<0||r>i.childCount)return e.cancelJob(o),!1;var a=i.children[n];return r===i.childCount?(o.removeChild(i,a),o.appendChild(i,a)):o.insertBefore(i,a,i.children[r]),e.commitJob(o),!0}}]),t}(wt);function _te(e,t,n){return t=Qe(t),Xe(e,Nte()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Nte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nte=function(){return!!e})()}Object.defineProperty(Cte,"ID",{enumerable:!0,configurable:!0,writable:!0,value:ite.command.moveColumn});var Ote=function(e){function t(){return Ye(this,t),_te(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=e.newJob(),r=n.getNodeById(t);if((null==r?void 0:r.nodeName)!==Er)return e.cancelJob(n),!1;var o=r.lastChild;if(!o||o.hasCategory(ze.Hole)){var i=n.createElement(n.defaultElementName);n.appendChild(r,i),n.setSelection([n.newRange(n.newPosition(i,0))])}else if(o){var a=Wt.selectNodeContents(o).end;n.setSelection([n.newRange(a)])}return e.commitJob(n),!0}}]),t}(wt);function xte(e,t,n){return t=Qe(t),Xe(e,Ete()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ete(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ete=function(){return!!e})()}Object.defineProperty(Ote,"ID",{enumerable:!0,configurable:!0,writable:!0,value:ite.command.selectColumnEnd});var Dte=function(e){function t(){return Ye(this,t),xte(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){var n=e.getNodeById(t);return(null==n?void 0:n.nodeName)!==xr?-1:n.childCount}},{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getNodeById(t);if((null==o?void 0:o.nodeName)!==xr||n<0||o.childCount>=Dr)return e.cancelJob(r),!1;for(var i=o.childCount+1,a=r.createElement(Er,{width:1/i}),l=this.plugin.service.reAlignColumnWidth(o,i),u=0;u=o.childCount?r.appendChild(o,a):r.insertBefore(o,a,o.children[n]);var s=r.createElement(r.defaultElementName);return r.appendChild(a,s),r.setSelection([r.newRange(r.newPosition(s,0))]),e.commitJob(r),!0}}]),t}(wt);function Rte(e,t,n){return t=Qe(t),Xe(e,Pte()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Pte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pte=function(){return!!e})()}Object.defineProperty(Dte,"ID",{enumerable:!0,configurable:!0,writable:!0,value:ite.command.columnsAddColumn});var Ste=function(e){function t(){return Ye(this,t),Rte(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return Di.isUnbreakable(t)?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e.newJob();if(this.getState(n)===gt.UNAVAILABLE)return e.cancelJob(n),!1;var r=n.getSelection();r.collapsed||(r=Di.deleteContent(n,r)),kt.fatal(r.collapsed,"plugins/columns/src/kernel/commands/columns-command.ts:42");var o=r.firstRange.start,i=o.node.closest(ze.Block);i&&zt.isLikeEmptyElement(i)&&(o=n.newPosition(i.parentNode,i.offset),n.removeChild(i.parentNode,i));var a=n.createElement("containerHole"),l=n.createElement(ite.node.columns);n.appendChild(a,l);for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:null;kt.fatal(t,"plugins/columns/src/kernel/commands/toggle-width-mode.ts:31");var r=e.newJob(),o=r.getNodeById(t);if(null===o||o.nodeName!==xr)return e.cancelJob(r),!1;if(n===Bl||n===Il)r.setAttribute(o,"widthMode",n);else{var i=this._getValue(o);r.setAttribute(o,"widthMode",i===Bl?Il:Bl)}return e.commitJob(r),!0}},{key:"_getValue",value:function(e){var t;return(null===(t=e.attrs)||void 0===t?void 0:t.widthMode)===Bl?Bl:Il}}]),t}(wt);function Wte(e,t,n){return t=Qe(t),Xe(e,qte()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qte=function(){return!!e})()}Object.defineProperty(zte,"ID",{enumerable:!0,configurable:!0,writable:!0,value:ite.command.columnsToggleWidthMode});var $te=function(e){function t(){return Ye(this,t),Wte(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t){if(t&&t.attrs&&t.attrs.class&&t.attrs.class.includes("lake-columns")){var n=Wo.createElement(ite.node.columns,{widthMode:t.attrs.widthmode||void 0});return e.setNode(n),!1}if(t&&t.attrs&&t.attrs.class&&t.attrs.class.includes("lake-column-item")){var r=t.style.width.replace(/%$/,""),o=Wo.createElement(ite.node.column,{width:parseFloat(r)/100||0});return e.setNode(o),!1}return!0}}]),t}(OZ);function Kte(e,t,n){return t=Qe(t),Xe(e,Yte()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Yte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yte=function(){return!!e})()}Object.defineProperty($te,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[ite.lakeNode.article]});var Gte=function(e){function t(){return Ye(this,t),Kte(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n=null==t?void 0:t.name;if(n===ite.node.columns){var r=((null==t?void 0:t.attrs)||{}).widthMode;e.setNode(e.createElement(ite.htmlNode.article,{className:"lake-columns",style:{display:"flex"},widthMode:r}))}else if(n===ite.node.column){var o=((null==t?void 0:t.attrs)||{width:0}).width;e.setNode(e.createElement(ite.htmlNode.article,{className:"lake-column-item",style:{flex:o},width:(100*o).toFixed(6)+"%"}))}}}]),t}(EB);function Jte(e,t,n){return t=Qe(t),Xe(e,Xte()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Xte(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xte=function(){return!!e})()}Object.defineProperty(Gte,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[xr,Er]});var Qte=function(e){function t(){return Ye(this,t),Jte(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n=null==t?void 0:t.name;if(n===xr){var r=((null==t?void 0:t.attrs)||{}).widthMode;e.setNode(Wo.createElement(ite.lakeNode.article)),e.addClassName("lake-columns"),e.setAttr("widthMode",r)}else if(n===Er){var o=((null==t?void 0:t.attrs)||{width:0}).width;e.setNode(Wo.createElement(ite.lakeNode.article)),e.addClassName("lake-column-item"),e.setStyle("width",(100*o).toFixed(6)+"%")}}}]),t}(AB);function Zte(e,t,n){return t=Qe(t),Xe(e,ene()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ene(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ene=function(){return!!e})()}Object.defineProperty(Qte,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[ite.node.columns,ite.node.column]});var tne=function(e){function t(){return Ye(this,t),Zte(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerElement(hte),e.registerAttr(ate)}},{key:"afterInit",value:function(){var e,t,n;null===(e=this.kernel.getService(zI.ID))||void 0===e||e.registerLakeNodeReader($te.NodeNames,new $te),null===(t=this.kernel.getService(zI.ID))||void 0===t||t.registerLakeNodeWriter(Qte.NodeNames,new Qte),null===(n=this.kernel.getService(UI.ID))||void 0===n||n.registerNodeHTMLWriter(Gte.NodeNames,new Gte)}}]),t}(ft);Object.defineProperty(tne,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:ite.pluginName}),Object.defineProperty(tne,"Service",{enumerable:!0,configurable:!0,writable:!0,value:fte}),Object.defineProperty(tne,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[Ste,Ute,Dte,yte,mte,Ote,jte,Mte,Cte,zte]});const nne={open:{targets:[jt],values:["true","false"]}},rne=Ja(Ja({},jt,{parents:[ze.ContainerHole],excludes:[ze.VirtualLikeRoot],category:[ze.LikeRoot,ze.WidthModeBox,jt,ze.Brick]}),It,{parents:[jt],category:[ze.Block,It,ze.AttrContext,ze.Clean,ze.TextContainer,ze.OnlyText],children:[ze.Text]});var one=uI({pluginName:"collapse",node:"collapse",command:{collapse:"collapse",moveCollapse:"moveCollapse",deleteCollapse:"deleteCollapse",collapseOpen:"collapseOpen",collspseClosable:"collspseClosable",collapseBreakLine:"collapseBreakLine",collapseToggleWidthMode:"collapseToggleWidthMode",tryUnfoldCollapse:"tryUnfoldCollapse"},cardSelect:"collapse"});function ine(e,t,n){return t=Qe(t),Xe(e,ane()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ane(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ane=function(){return!!e})()}var lne=function(e){function t(){return Ye(this,t),ine(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return Di.isUnbreakable(t)?gt.UNAVAILABLE:t.firstRange.start.node.closest(jt)?gt.NOT_EXECUTED:gt.UNAVAILABLE}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===gt.UNAVAILABLE)return e.cancelJob(t),!1;var n=t.getSelection();n.collapsed||(n=Di.deleteContent(t,n)),kt.fatal(n.collapsed,"plugins/collapse/src/kernel/commands/collapse-break-line-command.ts:53");var r=n.firstRange.start,o=r.node,i=r.offset,a=o.closest(jt),l=o.closest([ze.Block,ze.Hole,ze.TableHole]);if(null===a||null===l)return e.cancelJob(t),!1;var u,c=l.hasCategory(It),s=!!c&&(o.isTextNode()&&i===o.dataLength&&o===l.lastChild||o.hasCategory(It)&&o.childCount===i);return u=c&&s&&2===a.childCount&&zt.isLikeEmptyElement(a.lastChild)?t.newPosition(a.lastChild,0):rr.breakLine(t,n.firstRange.start),"false"===a.attrs.open&&t.setAttribute(a,"open","true"),t.setSelection([t.newRange(u)]),e.commitJob(t),!0}}]),t}(wt);function une(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.plugin.getOtherSelection());try{for(o.s();!(r=o.n()).done;){var i=r.value.selection.firstRange,a=i.start,l=i.end;if(a.node.closest(jt)===n||l.node.closest(jt)===n)return gt.UNAVAILABLE}}catch(e){o.e(e)}finally{o.f()}return gt.NOT_EXECUTED}},{key:"execute",value:function(){return!0}}]),t}(wt);function fne(e,t,n){return t=Qe(t),Xe(e,hne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hne=function(){return!!e})()}Object.defineProperty(dne,"ID",{enumerable:!0,configurable:!0,writable:!0,value:one.command.collspseClosable});var pne=function(e){function t(){return Ye(this,t),fne(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(e){var t=e.getSelection();return Di.isUnbreakable(t)?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"execute",value:function(e){var t=e.newJob();if(this.getState(t)===gt.UNAVAILABLE)return e.cancelJob(t),!1;var n=t.getSelection();n.collapsed||(n=Di.deleteContent(t,n)),kt.fatal(n.collapsed,"plugins/collapse/src/kernel/commands/collapse-command.ts:50");var r=n.firstRange.start,o=r.node.closest([ze.Block,ze.Root]);if(null===o)return e.cancelJob(t),!1;!o.isRootNode()&&zt.isLikeEmptyElement(o)&&(r=t.newPosition(o.parentNode,o.offset),t.removeChild(o.parentNode,o));var i=t.createHole("containerHole"),a=t.createElement(jt,{open:"true"}),l=t.createElement(It),u=t.createElement(t.defaultElementName);return t.appendChild(a,l),t.appendChild(a,u),t.appendChild(i,a),rr.insertNodes(t,r,[i]),t.setSelection([t.newRange(t.newPosition(l,0))]),e.commitJob(t),!0}}]),t}(wt);function vne(e,t,n){return t=Qe(t),Xe(e,mne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mne=function(){return!!e})()}Object.defineProperty(pne,"ID",{enumerable:!0,configurable:!0,writable:!0,value:one.command.collapse});var gne=function(e){function t(){return Ye(this,t),vne(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n=e.newJob(),r=n.getNodeById(t);if((null==r?void 0:r.nodeName)!==jt)return e.cancelJob(n),!1;var o=Di.deleteContent(n,n.selectNode(r));return kt.fatal(o.collapsed,"plugins/collapse/src/kernel/commands/collapse-delete-command.ts:25"),n.setSelection(o),e.commitJob(n),!0}}]),t}(wt);function bne(e,t,n){return t=Qe(t),Xe(e,yne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yne=function(){return!!e})()}Object.defineProperty(gne,"ID",{enumerable:!0,configurable:!0,writable:!0,value:one.command.deleteCollapse});var wne=function(e){function t(){return Ye(this,t),bne(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t,n){var r=e.newJob(),o=r.getNodeById(t);o&&o.isConnected&&(null==o?void 0:o.nodeName)===jt?(rr.insertNodes(r,n,[o.parentNode]),r.setSelection(r.selectNode(o)),e.commitJob(r)):e.cancelJob(r)}}]),t}(wt);function kne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.plugin.getOtherSelection());try{for(o.s();!(r=o.n()).done;){var i=r.value.selection.firstRange,a=i.start,l=i.end;if(a.node.closest(jt)===n||l.node.closest(jt)===n)return gt.UNAVAILABLE}}catch(e){o.e(e)}finally{o.f()}return gt.NOT_EXECUTED}},{key:"execute",value:function(e,t){var n=e.newJob();if(this.canSetClose(n,t)===gt.UNAVAILABLE)return e.cancelJob(n),!1;var r=n.getNodeById(t);if((null==r?void 0:r.nodeName)!==jt)return e.cancelJob(n),!1;var o="true"===r.attrs.open;if(n.setAttribute(r,"open",o?"false":"true"),o){var i=n.getSelection().firstRange,a=i.start,l=i.end;if(a.node.closest(jt)===r||l.node.closest(jt)===r){var u=n.selectNodeContents(r.children[0]);n.setSelection([n.newRange(u.firstRange.end)])}}return e.commitJob(n),!0}}]),t}(wt);function One(e,t,n){return t=Qe(t),Xe(e,xne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function xne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xne=function(){return!!e})()}Object.defineProperty(Nne,"ID",{enumerable:!0,configurable:!0,writable:!0,value:one.command.collapseOpen});var Ene=function(e){function t(){return Ye(this,t),One(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){kt.fatal(t,"plugins/collapse/src/kernel/commands/toggle-width-mode.ts:20");var n=e.getNodeById(t);return kt.fatal(n,"plugins/collapse/src/kernel/commands/toggle-width-mode.ts:24"),this._getValue(n)}},{key:"execute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;kt.fatal(t,"plugins/collapse/src/kernel/commands/toggle-width-mode.ts:30");var r=e.newJob(),o=r.getNodeById(t);if(null===o||o.nodeName!==jt)return e.cancelJob(r),!1;if(n===Bl||n===Il)r.setAttribute(o,"widthMode",n);else{var i=this._getValue(o);r.setAttribute(o,"widthMode",i===Bl?Il:Bl)}return e.commitJob(r),!0}},{key:"_getValue",value:function(e){var t;return(null===(t=e.attrs)||void 0===t?void 0:t.widthMode)===Bl?Bl:Il}}]),t}(wt);function Dne(e,t,n){return t=Qe(t),Xe(e,Rne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Rne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rne=function(){return!!e})()}Object.defineProperty(Ene,"ID",{enumerable:!0,configurable:!0,writable:!0,value:one.command.collapseToggleWidthMode});var Pne=function(e){function t(){return Ye(this,t),Dne(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t){var n,r;if(t&&t.attrs&&(null===(r=null===(n=t.attrs.class)||void 0===n?void 0:n.includes)||void 0===r?void 0:r.call(n,"lake-collapse"))){var o=Wo.createElement(jt,{open:t.attrs.open||"true",widthMode:t.attrs.widthmode||void 0});return e.setNode(o),!1}return!0}}]),t}(OZ);function Sne(e,t,n){return t=Qe(t),Xe(e,Tne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Tne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tne=function(){return!!e})()}Object.defineProperty(Pne,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["details"]});var Ane=function(e){function t(){return Ye(this,t),Sne(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t){var n,r;if(null===(r=null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.class)||void 0===r?void 0:r.includes("lake-summary")){var o=Wo.createElement(It);return e.setNode(o),!1}return!0}}]),t}(OZ);function jne(e,t,n){return t=Qe(t),Xe(e,Ine()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ine(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ine=function(){return!!e})()}Object.defineProperty(Ane,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[It]});var Bne=function(e){function t(){return Ye(this,t),jne(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n=e.createElement("details",{className:["lake-collapse"]});e.setNode(n)}}]),t}(EB);function Mne(e,t,n){return t=Qe(t),Xe(e,Fne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Fne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fne=function(){return!!e})()}Object.defineProperty(Bne,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[jt]});var Lne=function(e){function t(){return Ye(this,t),Mne(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){var t=e.createElement(It);e.setNode(t)}}]),t}(EB);function Une(e,t,n){return t=Qe(t),Xe(e,Vne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Vne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vne=function(){return!!e})()}Object.defineProperty(Lne,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[It]});var Hne=function(e){function t(){return Ye(this,t),Une(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e,t){var n=(null==t?void 0:t.attrs)||{},r=n.open,o=n.widthMode;e.setNode(Wo.createElement("details")),e.addClassName("lake-collapse"),e.setAttr("open",r),e.setAttr("widthMode",o)}}]),t}(AB);function zne(e,t,n){return t=Qe(t),Xe(e,Wne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Wne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wne=function(){return!!e})()}Object.defineProperty(Hne,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[jt]});var qne=function(e){function t(){return Ye(this,t),zne(this,t,arguments)}return et(t,e),Ke(t,[{key:"write",value:function(e){e.setNode(Wo.createElement(It)),e.addClassName("lake-summary")}}]),t}(AB);function $ne(e,t,n){return t=Qe(t),Xe(e,Kne()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Kne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kne=function(){return!!e})()}Object.defineProperty(qne,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[It]});var Yne=function(e){function t(){return Ye(this,t),$ne(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){if(!t)return!1;var n=e.newJob(),r=n.getNodeById(t);if(!r)return e.cancelJob(n),!1;var o=r.closest(jt);return(null==o?void 0:o.nodeName)!==jt?(e.cancelJob(n),!1):(n.setAttribute(o,"open","true"),e.commitJob(n),!0)}}]),t}(wt);function Gne(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Jne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jne(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Jne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ng.childCount&&(kt.fatal(v.childCount>=u.offset-g.childCount,"plugins/collapse/src/kernel/index.ts:144"),s=v,d=u.offset-g.childCount)),c.node===v&&(f=g,h=c.offset,c.offset>g.childCount&&(kt.fatal(v.childCount>=c.offset-g.childCount,"plugins/collapse/src/kernel/index.ts:156"),f=v,h=c.offset-g.childCount))}for(var w=1;w1?r-1:0),i=1;i0&&t0)||t.urlPattern.some((function(t){return t.test(e)})))}},{key:"getMatchUrl",value:function(e){if((null==e?void 0:e.startsWith("1&&r[0]&&(o=r[0]+"/");var i="edit"===n[3]?"view":n[3];return n[1]+o+i+"?embed"}return null}},{key:"isValid",value:function(e){return e&&e.match(/^https:\/\/[\w_-~.]+?\.canva\.cn\//)}}]),t}(roe);function koe(e,t,n){return t=Qe(t),Xe(e,Coe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Coe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Coe=function(){return!!e})()}Object.defineProperty(woe,"config",{enumerable:!0,configurable:!0,writable:!0,value:{type:toe,name:"canva",example:"https://www.canva.cn/design/DAD3c63mhHU/view?embed",simple:"https://www.canva.cn/design/…",label:"Canva",maximize:!0,resize:!0}});var _oe=[/^https:\/\/codepen\.io\/[^/]+\/(embed|pen|full)\//],Noe=function(e){function t(){return Ye(this,t),koe(this,t,arguments)}return et(t,e),Ke(t,null,[{key:"getMainSearch",value:function(){return"/cod"}},{key:"getKeywords",value:function(){return[t.getName(),"codepen"]}},{key:"isValid",value:function(e){return _oe.some((function(t){return t.test(e)}))}},{key:"getMatchUrl",value:function(e){return e?(e.startsWith("1&&Wo.isEmptyNode(a)&&i.pop(),i}));return kt.fatal(1===n.length,"plugins/kernel-assistant/src/kernel/helper/normalize-node-tree.ts:82"),kt.fatal(Wo.isFragmentNode(n[0]),"plugins/kernel-assistant/src/kernel/helper/normalize-node-tree.ts:83"),n[0]}catch(e){return console.error(e),t}}function Hie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.beforeInsertTextInheritAttrsProcess);try{for(o.s();!(n=o.n()).done;)r=(0,n.value)(e,r)}catch(e){o.e(e)}finally{o.f()}return r}},{key:"registerBeforeInsertTextInheritAttrs",value:function(e){this.beforeInsertTextInheritAttrsProcess.add(e)}},{key:"destroy",value:function(){this.beforeInsertTextInheritAttrsProcess.clear()}}]),t}($Z),$ie=function(){function e(t){Ye(this,e),Object.defineProperty(this,"kernel",{enumerable:!0,configurable:!0,writable:!0,value:t})}return Ke(e,[{key:"afterSplitText",value:function(e,t,n){t.attrs.emoji&&e.setAttribute(n,"emoji",!0)}},{key:"createTextNode",value:function(e,t,n){if(!t.data)return[e.createTextNode("",Object.assign({},n),t.id)];var r=t.id;return On.splitEmoji(t.data).reduce((function(t,o,i){return o&&(t.push(e.createTextNode(o,i%2==1?Object.assign(Object.assign({},n),{emoji:!0}):HQ()(n,"emoji"),r)),r=void 0),t}),[])}},{key:"splitTextNode",value:function(e,t,n){if(!(n>=t.dataLength)){var r=t.parentNode;kt.fatal(r,"plugins/kernel-assistant/src/kernel/helper/text-helper.ts:67");var o=e.createTextNode(t.data.slice(n),t.attrs);e.setTextNodeData(t,t.data.slice(0,n)),e.insertAfter(r,o,t)}}},{key:"insertText",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.isTextNode()){var i=!!t.attrs.emoji,a=On.splitEmoji(r);if(1===a.length){if(i){this.splitTextNode(e,t,n);var l=e.createTextNode(r,HQ()(t.attrs,"emoji"));return e.insertAfter(t.parentNode,l,t),e.newPosition(l,On.size(r))}return e.setTextNodeData(t,On.insertString(t.data,n,r)),e.newPosition(t,n+On.size(r))}this.splitTextNode(e,t,n);for(var u=t.parentNode,c=t,s=0;s=2e3){var n=function(e){var t=e.rootNode,n=e.getPath(),r=t;for(var o in n)if(!Zie(r=r.children[n[o]]))return r;return e}(e);throw n}})),t}return 0}function Zie(e){return!Xie.includes(e.nodeName)}function eae(e,t,n){return t=Qe(t),Xe(e,tae()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tae=function(){return!!e})()}var nae=function(e){function t(){return Ye(this,t),eae(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.kernel.document.rootNode,o=0,i=-1;o<500&&i<9;){var a=i+1,l=r.children[a];if(!l)break;var u=void 0;try{u=Qie(l)}catch(e){if(null==e?void 0:e.getPath)return n.beforePath=e.getPath(),this.kernel.getDocument(t,n);throw e}i=a,o+=u}return n.beforeIndex=i+1,this.kernel.getDocument(t,n)}}]),t}(gt);function rae(e,t,n){return t=Qe(t),Xe(e,oae()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oae=function(){return!!e})()}var iae=function(e){function t(){return Ye(this,t),rae(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerCommand("getSummary",new nae)}}]),t}(ft);Object.defineProperty(iae,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"summary"});var aae=uI({pluginName:"aoneDataSource"});function lae(e,t,n){return t=Qe(t),Xe(e,uae()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function uae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uae=function(){return!!e})()}var cae=function(e){function t(e){var n;return Ye(this,t),n=lae(this,t),Object.defineProperty(Je(n),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._kernel=e,n}return et(t,e),Ke(t,[{key:"read",value:function(e,t){return this._kernel.readData("text/aone",e,t)}},{key:"write",value:function(){return""}}]),t}(qt);function sae(e){var t=JSON.parse(e);if(!Array.isArray(t)||t.length<2)throw new Error("not validate ding content");return dae(t)}function dae(e){var t=$O(e),n=t[0],r=t[1],o=t.slice(2);return"root"===e[0]?{klass:"document",data:e[1],nodes:Array.isArray(o)?o.map(dae):[]}:["h1","h2","h3","h4","h5","h6"].includes(n)?{klass:"block",data:e[1],type:pae(n),nodes:Array.isArray(o)?o.map(dae):[]}:["a","img"].includes(n)?{klass:"inline",data:e[1],type:pae(n),nodes:Array.isArray(o)?o.map(dae):[]}:"span"===n?"text"===e[1]["data-type"]?{klass:"text",leaves:Array.isArray(o)?o.map(dae):[]}:"leaf"===e[1]["data-type"]?{klass:"leaf",marks:fae(r),text:"string"==typeof o[0]?o[0]:""}:{klass:"inline",data:r,type:pae(r["data-type"]||n),nodes:Array.isArray(o)?o.map(dae):[]}:{klass:"block",data:e[1],type:pae(n),nodes:Array.isArray(o)?o.map(dae):[]}}function fae(e){return Object.keys(e).reduce((function(t,n){return e[n]&&t.push({data:{value:e[n]},klass:"mark",type:n}),t}),[])}var hae={p:"paragraph",a:"link",img:"image",h1:"heading-1",h2:"heading-2",h3:"heading-3",h4:"heading-4",h5:"heading-5",h6:"heading-6"};function pae(e){return hae[e]||e}var vae=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"attrs",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isStop",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.kernel=t,this.parent=n}return Ke(e,[{key:"addAttr",value:function(e,t){null===this.attrs&&(this.attrs={}),this.attrs[e]=t}},{key:"makeChildContext",value:function(){return new e(this.kernel,this)}},{key:"getNode",value:function(){var e;return this.node?this.node:(null===(e=this.parent)||void 0===e?void 0:e.getNode())||null}},{key:"makeStop",value:function(){this.isStop=!0}},{key:"setNode",value:function(e,t){var n,r=t||(null===(n=this.parent)||void 0===n?void 0:n.getNode());r&&Wo.appendChild(r,e),this.node=e}},{key:"setNodes",value:function(e,t){var n,r=t||(null===(n=this.parent)||void 0===n?void 0:n.getNode());r&&e.forEach((function(e){Wo.appendChild(r,e)})),this.node=e[e.length-1]}},{key:"createElement",value:function(e,t){return Wo.createElement(e,t)}},{key:"createText",value:function(e){return Wo.createTextNode(e)}},{key:"appendChild",value:function(e,t){return Wo.appendChild(e,t)}},{key:"isText",value:function(e){return"text"===e.klass}}]),e}();function mae(e){return"text"===e.klass}function gae(e){return"block"===e.klass||"inline"===e.klass}function bae(e,t){var n=t.enter,r=t.leave,o=!1;mae(e)||(o=n(e)),o||(function(e){return"document"===e.klass}(e)||function(e){return"block"===e.klass}(e)||function(e){return"inline"===e.klass}(e)?e.nodes.forEach((function(e){bae(e,{enter:n,leave:r})})):mae(e)&&e.leaves.forEach((function(e){bae(e,{enter:n,leave:r})}))),mae(e)||r(e)}function yae(e,t,n){var r=Wo.createFragment(),o=new vae(e,null);o.setNode(r);var i=[o];return bae(t,{enter:function(e){if(e===t)return!1;var r=i[i.length-1],o=r.makeChildContext();if(i.push(o),function(e){return"leaf"===e.klass}(e)){var a=r.getNode();return e.marks.forEach((function(t){var r=n.markReaders;r&&r.find((function(n){return!1===n.read(o,t,e)}))})),a&&(n.leafReaders.find((function(t){return!1===t.read(o,e)}))||r.appendChild(a,Wo.createTextNode(e.text,o.attrs))),o.isStop}if(gae(e)){var l=n.nodeReaders.get(e.type);return l&&l.find((function(t){return!1===t.read(o,e)})),o.isStop}return!1},leave:function(e){if(e===t)return!1;var r=i.pop();if(r&&gae(e)){var o=n.nodeReaders.get(e.type);return o&&o.find((function(t){var n;return!1===(null===(n=t.afterRead)||void 0===n?void 0:n.call(t,r,e))})),r.isStop}return!1}}),r}function wae(e,t,n){return t=Qe(t),Xe(e,kae()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kae=function(){return!!e})()}var Cae=function(e){function t(){var e;return Ye(this,t),e=wae(this,t,arguments),Object.defineProperty(Je(e),"markReaders",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"leafReaders",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"nodeReaders",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),e}return et(t,e),Ke(t,[{key:"registerIMarkReader",value:function(e){this.markReaders.push(e)}},{key:"registerLeafReader",value:function(e){this.leafReaders.push(e)}},{key:"registerNodeReader",value:function(e,t){var n=this;Array.isArray(e)?e.forEach((function(e){return n._registerNodeReader(e,t)})):this._registerNodeReader(e,t)}},{key:"_registerNodeReader",value:function(e,t){var n=this.nodeReaders.get(e);Array.isArray(n)?(n.push(t),this.nodeReaders.set(e,n)):this.nodeReaders.set(e,[t])}},{key:"read",value:function(e,t){return yae(e,sae(t),this)}},{key:"destroy",value:function(){this.markReaders.length=0,this.nodeReaders.clear()}}]),t}(W7),_ae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(t,n){if(e.nodeType.includes(n.type)){var r={};if(n.data.jc&&(r.alignment=n.data.jc),n.data.ind&&n.data.ind.firstLine&&(r.textIndent=!0),n.data.blockquote)return this.readQuote(t,n,r);if(n.data.list){var o=n.data.list;r.list=o.listId,r.level=o.level||0;var i="uli";return o.isOrdered?i="oli":o.isTaskList&&(i="tli",r.checked=o.isChecked),t.setNode(Wo.createElement(i,r)),!1}return t.setNode(Wo.createElement(this.typeToName(n.type),r)),!1}}},{key:"typeToName",value:function(e){return"paragraph"===e?"p":"heading-1"===e?"h1":"heading-2"===e?"h2":"heading-3"===e?"h3":"heading-4"===e?"h4":"heading-5"===e?"h5":"heading-6"===e?"h6":void kt.fatal(!1,"unknown type: ".concat(e),"plugins/aone-data-source/src/kernel/readers/p-aone-reader.ts:61")}},{key:"readQuote",value:function(e,t,n){var r,o,i,a=null===(r=e.parent)||void 0===r?void 0:r.getNode();if(a){var l=null===(o=a.children)||void 0===o?void 0:o[((null===(i=a.children)||void 0===i?void 0:i.length)||1)-1];if(l&&"quote"===l.name)e.setNode(e.createElement("p",n),l);else{var u=e.createElement("quote",{});e.appendChild(a,u);var c=e.createElement("p",n);e.setNode(c,u)}return!1}}}]),e}();Object.defineProperty(_ae,"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:["paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6"]});var Nae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t,n){var r;if("bold"===t.type)e.addAttr("bold",t.data.value);else if("italic"===t.type)e.addAttr("italic",t.data.value);else if("underline"===t.type)e.addAttr("underline",!0);else if("strike"===t.type)e.addAttr("strikethrough",!0);else if("highlight"===t.type){if(/^var\(.+?\)$/.test(t.data.value||""))return!1;e.addAttr("bgColor",t.data.value)}else if("color"===t.type){if(/^var\(.+?\)$/.test(t.data.value||""))return!1;e.addAttr("color",t.data.value)}else if("inlineCode"===t.type)e.addAttr("inlineCode",t.data.value);else if("sz"===t.type)try{var o=(null===(r=n.marks.find((function(e){return"szUnit"===e.type})))||void 0===r?void 0:r.data.value)||"pt",i=W$(H$(t.data.value,o)||0);i&&e.addAttr("fontsize",i)}catch(e){}return!1}}]),e}(),Oae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(t,n){if(e.nodeType.includes(n.type)){var r={};if(n.data.colsWidth&&(r.colWidths=n.data.colsWidth,r.colCount=n.data.colsWidth.length,r.rowCount=n.nodes.length),n.data.h&&(r.height=n.data.h),n.data.colSpan&&n.data.colSpan>1&&(r.colSpan=n.data.colSpan),n.data.rowSpan&&n.data.rowSpan>1&&(r.rowSpan=n.data.rowSpan),n.data.fill&&(r.cellBgColor=n.data.fill),n.data.vAlign?r.verticalAlign=n.data.vAlign:r.verticalAlign="middle",!n.data.hidden)return t.setNode(Wo.createElement(this.typeToName(n.type),r)),!1;t.makeStop()}}},{key:"afterRead",value:function(e,t){if("tr"===t.type){var n=e.getNode();if(n&&n.children){var r=0;t.nodes.forEach((function(e,t){var o;if("block"===e.klass&&!e.data.hidden){var i=null===(o=n.children)||void 0===o?void 0:o[r];i&&i.attrs&&(i.attrs.col=t),r++}}))}}return!1}},{key:"typeToName",value:function(e){return"table"===e?"table":"tc"===e?"td":"tr"===e?"tr":void kt.fatal(!1,"unknown type: ".concat(e),"plugins/aone-data-source/src/kernel/readers/table-aone-reader.ts:71")}}]),e}();Object.defineProperty(Oae,"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:["table","tr","tc"]});var xae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(t,n){if(e.nodeType.includes(n.type)){var r={};return n.data.href&&(r.src=n.data.href),t.setNode(Wo.createElement(this.typeToName(n.type),r)),!1}}},{key:"typeToName",value:function(e){if("link"===e)return"link";kt.fatal(!1,"unknown type: ".concat(e),"plugins/aone-data-source/src/kernel/readers/link-aone-reader.ts:22")}}]),e}();Object.defineProperty(xae,"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:["link"]});var Eae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t){var n;if(null===(n=e.attrs)||void 0===n?void 0:n.inlineCode){var r=Wo.createElement("code",{});return Wo.appendChild(r,Wo.createTextNode(t.text,e.attrs)),e.setNode(r),!1}}}]),e}(),Dae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(t,n){var r,o,i;if(e.nodeType.includes(n.type)){n.nodes=[];var a={src:n.data.src,size:n.data.size,name:n.data.name,rotation:n.data.rotation||0,width:n.data.width,height:n.data.height,original:{type:"binary",from:"aone",ratio:1,width:n.data.width,height:n.data.height}};return"link"===(null===(o=null===(r=t.parent)||void 0===r?void 0:r.node)||void 0===o?void 0:o.name)&&(a.link=null===(i=t.parent.node.attrs)||void 0===i?void 0:i.src),n.data.rectClip&&(a.crop=[n.data.rectClip.left/n.data.width,n.data.rectClip.top/n.data.height,1-n.data.rectClip.right/n.data.width,1-n.data.rectClip.bottom/n.data.height],a.original.width+=n.data.rectClip.left+n.data.rectClip.right,a.original.height+=n.data.rectClip.top+n.data.rectClip.bottom),t.setNode(Wo.createElement(this.typeToName(n.type),{value:a})),!1}}},{key:"typeToName",value:function(e){if("image"===e)return"image";kt.fatal(!1,"unknown type: ".concat(e),"plugins/aone-data-source/src/kernel/readers/img-aone-reader.ts:55")}}]),e}();Object.defineProperty(Dae,"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:["image"]});var Rae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(t,n){if(e.nodeType.includes(n.type))return n.nodes=[],"video"===n.data.type?this.readVideo(t,n):"audio"===n.data.type?this.readAudio(t,n):(t.setNode(t.createElement("localdoc",{value:{src:n.data.src,name:n.data.name,size:n.data.size,status:"done",mode:"card"}})),!1)}},{key:"readVideo",value:function(e,t){return e.setNode(e.createElement("video",{value:{status:"done",name:t.data.name,size:t.data.size,url:t.data.src}})),!1}},{key:"readAudio",value:function(e,t){return e.setNode(e.createElement("audio",{value:{status:"uploaded",audioInfo:{id:t.data.src,fileName:t.data.name,fileSize:t.data.size,url:t.data.src}}})),!1}}]),e}();Object.defineProperty(Rae,"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:["embed"]});var Pae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(t,n){if(e.nodeType.includes(n.type))return n.nodes=[],t.setNode(Wo.createElement(this.typeToName(n.type),{value:{login:n.data.login,nickName:n.data.name,name:n.data.name}})),!1}},{key:"typeToName",value:function(e){if("mention"===e)return"mention";kt.fatal(!1,"unknown type: ".concat(e),"plugins/aone-data-source/src/kernel/readers/mention-aone-reader.ts:28")}}]),e}();Object.defineProperty(Pae,"nodeType",{enumerable:!0,configurable:!0,writable:!0,value:["mention"]});var Sae=/(?:[^a-z0-9]|^)([a-z0-9]{2,}):\/\/(?:[a-z_0-9@:.])+?(?:\/\S*?)?(?:[#\s\S]*?)?(?:(?=[\u0100-\uffff\s])|$)/i,Tae=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t){if(Sae.test(t.text)){var n=e.kernel.readData("text/plain",t.text);if(n&&n.children)return e.setNodes(n.children),!1}return e.setNode(Wo.createTextNode(t.text,e.attrs)),!1}}]),e}();function Aae(e,t,n){return t=Qe(t),Xe(e,jae()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function jae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jae=function(){return!!e})()}var Iae=function(e){function t(){var e;return Ye(this,t),e=Aae(this,t,arguments),Object.defineProperty(Je(e),"_dataSource",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._dataSource=new cae(this.kernel),e.registerDataSource("text/aone",this._dataSource),e.registerReader("text/aone",this.service),this.registerDefaultReaders()}},{key:"registerDefaultReaders",value:function(){this.service.registerIMarkReader(new Nae),this.service.registerNodeReader(_ae.nodeType,new _ae),this.service.registerNodeReader(Oae.nodeType,new Oae),this.service.registerNodeReader(xae.nodeType,new xae),this.service.registerNodeReader(Dae.nodeType,new Dae),this.service.registerNodeReader(Rae.nodeType,new Rae),this.service.registerNodeReader(Pae.nodeType,new Pae),this.service.registerLeafReader(new Eae),this.service.registerLeafReader(new Tae)}},{key:"destroy",value:function(){var e;Cr(Qe(t.prototype),"destroy",this).call(this),null===(e=this._dataSource)||void 0===e||e.destroy(),this._dataSource=null}}]),t}(ft);function Bae(e,t,n){return t=Qe(t),Xe(e,Mae()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Mae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mae=function(){return!!e})()}Object.defineProperty(Iae,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:aae.pluginName}),Object.defineProperty(Iae,"Service",{enumerable:!0,configurable:!0,writable:!0,value:Cae});var Fae=function(e){function t(){var e;return Ye(this,t),e=Bae(this,t,arguments),Object.defineProperty(Je(e),"prefixFNs",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"getToc",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.plugin.getToc()}}),Object.defineProperty(Je(e),"registerCardToText",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){e.plugin.cardToTextManager.register(t,n)}}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){}},{key:"registerPrefix",value:function(e){this.prefixFNs.push(e)}},{key:"start",value:function(){this.prefixFNs.forEach((function(e){return e.start()}))}},{key:"prefix",value:function(e){var t="";return this.prefixFNs.find((function(n){var r=n.prefix(e);return!!r&&(t=r,!0)})),t||""}}]),t}(xre),Lae=function(){function e(){Ye(this,e),Object.defineProperty(this,"cardToTextFnMap",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Ke(e,[{key:"register",value:function(e,t){this.cardToTextFnMap[e]=t}},{key:"getText",value:function(e){kt.fatal(e.isCardNode(),"plugins/toc/src/kernel/card-to-text-manager.ts:25");var t=this.cardToTextFnMap[e.nodeName];return t&&t(e)||" "}},{key:"destroy",value:function(){this.cardToTextFnMap={}}}]),e}();function Uae(e,t){var n=[];return Vae(n,e,t),n.join("")}function Vae(e,t,n){t.isTextNode()?e.push(t.data):t.isCardNode()?e.push(n.getText(t)||" "):(kt.fatal(t.isElement(),"plugins/toc/src/kernel/helpers/get-node-text-content.ts:31"),t.children.forEach((function(t){Vae(e,t,n)})))}function Hae(e,t,n){return t=Qe(t),Xe(e,zae()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function zae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zae=function(){return!!e})()}var Wae={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},qae=/[\u2170-\u217b]/,$ae=function(e){function t(){var e;return Ye(this,t),e=Hae(this,t,arguments),Object.defineProperty(Je(e),"_tocNodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"cardToTextManager",{enumerable:!0,configurable:!0,writable:!0,value:new Lae}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this,r=new Set;e.on("document.destroy",(function(){n._tocNodes=[],r.clear(),n.kernel.emitPluginEvent("tocChange",n.getToc())})),t.on("nodechange",(function(e){var t=e.node,n=e.type;if(!t.isTextNode()||"text"!==n&&"insert"!==n)t.hasCategory(ze.Heading)&&Wae[t.nodeName]&&("insert"===n||"remove"===n||"attribute"===n&&"collapsed"!==e.attrName)&&r.add(t);else{var o=zt.closest(t,ze.Heading);o&&Wae[o.nodeName]&&r.add(o)}})),t.on("operationRollback",(function(){r.clear()})),t.on("aftercontentchange",(function(){if(0!==r.size){var e=Array.from(r);r.clear(),n._refresh(e)}}))}},{key:"destroy",value:function(){this._tocNodes=null,this.cardToTextManager.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"getToc",value:function(){var e=this,t=Number.MAX_SAFE_INTEGER,n=new Set;this.service.start();var r=this._tocNodes.map((function(r){var o=Uae(r,e.cardToTextManager).trim(),i=e.service.prefix(r);if(!o&&!i)return null;var a=Wae[r.nodeName];return t=Math.min(a,t),n.add(a),{type:r.nodeName,id:r.id,text:i+(qae.test(i)?"":"")+o,level:a}})).filter(Boolean),o={};return Array.from(n).sort().forEach((function(e,t){o[e]=t+1})),r.forEach((function(e){e.depth=o[e.level]||1})),r}},{key:"_updateKernelTocData",value:function(){var e=this.getToc();return this.kernel.setDocExtraContent({toc:e}),e}},{key:"_refresh",value:function(e){var t=this,n=!1;e.forEach((function(e){e.isConnected&&e.parentNode.isRootNode()?e.parentNode.isRootNode()&&(n=!0,t._hasNode(e)?t._tryChangeOrder():t._insertNode(e)):t._removeNode(e)&&(n=!0)}));var r=this._updateKernelTocData();n&&this.kernel.emitPluginEvent("tocChange",r)}},{key:"_tryChangeOrder",value:function(){this._tocNodes.sort((function(e,t){var n=zt.compare(e,t);return n.following?1:n.preceding?-1:0})),this._updateKernelTocData()}},{key:"_insertNode",value:function(e){if(0===this._tocNodes.length)return this._tocNodes.push(e),void this._updateKernelTocData();for(var t=0,n=this._tocNodes.length;t1?r-1:0),i=1;i1?r-1:0),i=1;i20&&this.undoScheduleList.shift(),this._cardValue.schedules=e,t||this.afterChange()}},{key:"undo",value:function(){0!==this.undoScheduleList.length&&(this.redoScheduleList.push(this.getSchedules()),this._cardValue.schedules=this.undoScheduleList.pop(),this.afterChange())}},{key:"redo",value:function(){0!==this.redoScheduleList.length&&(this.undoScheduleList.push(this.getSchedules()),this._cardValue.schedules=this.redoScheduleList.pop(),this.afterChange())}},{key:"setSchedule",value:function(e){var t=e.type,n=e.schedule,r=e.prevSchedule,o=e.sync,i=e.index,a=Jw()({},this.getSchedules()),l=function(e,t){for(var n=-1,r=0;r=a&&e.start<=l||e.end>=a&&e.end<=l||e.startl})).map((function(e){return ace.convert(e)})).sort((function(e,t){return e.start-t.start})),this._scheduleList=e}else this._scheduleList=e}else this._scheduleList=e}},{key:"getDateScheduleMap",value:function(){return this._dateScheduleMap||{}}},{key:"setDateScheduleMap",value:function(){for(var e={},t=this.getDateRows(),n=this.getScheduleList(),r=function(){for(var r={},i=function(){var i=t[o][a],l=Que(i),u=n.filter((function(e){return e.include(i)}));if(0===a&&0!==o){var c=e[Que(i.subtract(1,ece))];u=u.sort((function(e,t){var n,r;return(null!==(n=c[e.id])&&void 0!==n?n:99)-(null!==(r=c[t.id])&&void 0!==r?r:99)}))}e[l]={};var s=[];u.filter((function(t){var n=r[t.id];return!n||(e[l][t.id]=n,s.push(n),!1)})).forEach((function(t){var n=function(e){for(var t=0,n=0;n1?gt.UNAVAILABLE:gt.NOT_EXECUTED}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.newJob();if(this.getState(r)===gt.UNAVAILABLE)return e.cancelJob(r),!1;var o=Ri.insertCardNode(r,r.getSelection(),Kse.cardName,t),i=o.selection,a=o.cardNode;return n?r.setSelection([r.newRange(r.newPosition(a,0))]):r.setSelection(i),e.commitJob(r),a.id}}]),t}(gt);function Xse(e,t,n){return t=Qe(t),Xe(e,Qse()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Qse(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qse=function(){return!!e})()}var Zse=function(e){function t(){return Ye(this,t),Xse(this,t,arguments)}return et(t,e),Ke(t)}(GM);function ede(e,t,n){return t=Qe(t),Xe(e,tde()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tde(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tde=function(){return!!e})()}Object.defineProperty(Zse,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:Kse.cardName});var nde=function(e){function t(e){return Ye(this,t),ede(this,t,[Jw()({},t.DefaultCardValue,e)])}return et(t,e),Ke(t,[{key:"getDate",value:function(){return this._cardValue.date}},{key:"setDate",value:function(e){this._cardValue.date=e}}],[{key:"fromLake",value:function(e){return Jw()({},t.DefaultCardValue,e)}},{key:"toLake",value:function(e){return Object.assign(Object.assign({},e),{date:e.date})}}]),t}(Ll);function rde(e,t,n){return t=Qe(t),Xe(e,ode()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ode(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ode=function(){return!!e})()}Object.defineProperty(nde,"DefaultCardValue",{enumerable:!0,configurable:!0,writable:!0,value:{date:Date.now()}});var ide=function(e){function t(){return Ye(this,t),rde(this,t,arguments)}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n,r){var o=e.createCard(Kse.cardName,nde.fromLake(n),r);e.setNode(o)}}]),t}(ZM);function ade(e){return e<10?"0".concat(e):e}function lde(e){var t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,o=t.getDate();return"".concat(n,"年").concat(ade(r),"月").concat(ade(o),"日")}var ude={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};function cde(e){for(var t=0,n=0;n2&&t.x<5)?dfe[4][t.x]:e}}]),e}(),pfe={"zh-cn":{"#000000":"黑色","#262626":"深灰 3","#595959":"深灰 2","#8C8C8C":"深灰 1","#BFBFBF":"灰色","#D9D9D9":"浅灰 4","#E9E9E9":"浅灰 3","#F5F5F5":"浅灰 2","#FAFAFA":"浅灰 1","#FFFFFF":"白色","#F5222D":"红色","#FA541C":"朱红","#FA8C16":"橙色","#FADB14":"黄色","#52C41A":"绿色","#13C2C2":"青色","#1890FF":"浅蓝","#2F54EB":"蓝色","#722ED1":"紫色","#EB2F96":"玫红","#FFE8E6":"红色 1","#FFECE0":"朱红 1","#FFEFD1":"橙色 1","#FCFCCA":"黄色 1","#E4F7D2":"绿色 1","#D3F5F0":"青色 1","#D4EEFC":"浅蓝 1","#DEE8FC":"蓝色 1","#EFE1FA":"紫色 1","#FAE1EB":"玫红 1","#FFA39E":"红色 2","#FFBB96":"朱红 2","#FFD591":"橙色 2","#FFFB8F":"黄色 2","#B7EB8F":"绿色 2","#87E8DE":"青色 2","#91D5FF":"浅蓝 2","#ADC6FF":"蓝色 2","#D3ADF7":"紫色 2","#FFADD2":"玫红 2","#FF4D4F":"红色 3","#FF7A45":"朱红 3","#FFA940":"橙色 3","#FFEC3D":"黄色 3","#73D13D":"绿色 3","#36CFC9":"青色 3","#40A9FF":"浅蓝 3","#597EF7":"蓝色 3","#9254DE":"紫色 3","#F759AB":"玫红 3","#CF1322":"红色 4","#D4380D":"朱红 4","#D46B08":"橙色 4","#D4B106":"黄色 4","#389E0D":"绿色 4","#08979C":"青色 4","#096DD9":"浅蓝 4","#1D39C4":"蓝色 4","#531DAB":"紫色 4","#C41D7F":"玫红 4","#820014":"红色 5","#871400":"朱红 5","#873800":"橙色 5","#614700":"黄色 5","#135200":"绿色 5","#00474F":"青色 5","#003A8C":"浅蓝 5","#061178":"蓝色 5","#22075E":"紫色 5","#780650":"玫红 5","#585A5A":"深灰 2","#8A8F8D":"深灰 1","#D8DAD9":"灰色","#E7E9E8":"浅灰 4","#EFF0F0":"浅灰 3","#F4F5F5":"浅灰 2","#DF2A3F":"红色","#ED740C":"橘橙","#ECAA04":"金盏黄","#FBDE28":"柠檬黄","#74B602":"绿色","#1DC0C9":"青色","#117CEE":"浅蓝","#2F4BDA":"蓝色","#601BDE":"紫色","#D22D8D":"玫红","#FBE4E7":"红色 1","#FDE6D3":"橘橙 1","#F9EFCD":"金盏黄 1","#FBF5CB":"柠檬黄 1","#E8F7CF":"绿色 1","#CEF5F7":"青色 1","#D9EAFC":"浅蓝 1","#D9DFFC":"蓝色 1","#E6DCF9":"紫色 1","#FBDFEF":"玫红 1","#F1A2AB":"红色 2","#F8B881":"橘橙 2","#F5D480":"金盏黄 2","#FCE75A":"柠檬黄 2","#C1E77E":"绿色 2","#81DFE4":"青色 2","#81BBF8":"浅蓝 2","#96A7FD":"蓝色 2","#BA9BF2":"紫色 2","#F297CC":"玫红 2","#E4495B":"红色 3","#F38F39":"橘橙 3","#F3BB2F":"金盏黄 3","#EDCE02":"柠檬黄 3","#8CCF17":"绿色 3","#01B2BC":"青色 3","#2F8EF4":"浅蓝 3","#4861E0":"蓝色 3","#7E45E8":"紫色 3","#E746A4":"玫红 3","#AD1A2B":"红色 4","#C75C00":"橘橙 4","#C99103":"金盏黄 4","#A58F04":"柠檬黄 4","#5C8D07":"绿色 4","#07787E":"青色 4","#0C68CA":"浅蓝 4","#213BC0":"蓝色 4","#4C16B1":"紫色 4","#AE146E":"玫红 4","#70000D":"红色 5","#663000":"橘橙 5","#664900":"金盏黄 5","#665800":"柠檬黄 5","#2A4200":"绿色 5","#004347":"青色 5","#00346B":"浅蓝 5","#101E60":"蓝色 5","#270070":"紫色 5","#5C0036":"玫红 5"},en:{"#000000":"Black","#262626":"Dark Gray 3","#595959":"Dark Gray 2","#8C8C8C":"Dark Gray 1","#BFBFBF":"Gray","#D9D9D9":"Light Gray 4","#E9E9E9":"Light Gray 3","#F5F5F5":"Light Gray 2","#FAFAFA":"Light Gray 1","#FFFFFF":"White","#F5222D":"Red","#FA541C":"Chinese Red","#FA8C16":"Orange","#FADB14":"Yellow","#52C41A":"Green","#13C2C2":"Cyan","#1890FF":"Light Blue","#2F54EB":"Blue","#722ED1":"Purple","#EB2F96":"Magenta","#FFE8E6":"Red 1","#FFECE0":"Chinese Red 1","#FFEFD1":"Orange 1","#FCFCCA":"Yellow 1","#E4F7D2":"Green 1","#D3F5F0":"Cyan 1","#D4EEFC":"Light Blue 1","#DEE8FC":"Blue 1","#EFE1FA":"Purple 1","#FAE1EB":"Magenta 1","#FFA39E":"Red 2","#FFBB96":"Chinese Red 2","#FFD591":"Orange 2","#FFFB8F":"Yellow 2","#B7EB8F":"Green 2","#87E8DE":"Cyan 2","#91D5FF":"Light Blue 2","#ADC6FF":"Blue 2","#D3ADF7":"Purple 2","#FFADD2":"Magenta 2","#FF4D4F":"Red 3","#FF7A45":"Chinese Red 3","#FFA940":"Orange 3","#FFEC3D":"Yellow 3","#73D13D":"Green 3","#36CFC9":"Cyan 3","#40A9FF":"Light Blue 3","#597EF7":"Blue 3","#9254DE":"Purple 3","#F759AB":"Magenta 3","#CF1322":"Red 4","#D4380D":"Chinese Red 4","#D46B08":"Orange 4","#D4B106":"Yellow 4","#389E0D":"Green 4","#08979C":"Cyan 4","#096DD9":"Light Blue 4","#1D39C4":"Blue 4","#531DAB":"Purple 4","#C41D7F":"Magenta 4","#820014":"Red 5","#871400":"Chinese Red 5","#873800":"Orange 5","#614700":"Yellow 5","#135200":"Green 5","#00474F":"Cyan 5","#003A8C":"Light Blue 5","#061178":"Blue 5","#22075E":"Purple 5","#780650":"Magenta 5","#585A5A":"Dark Gray 2","#8A8F8D":"Dark Gray 1","#D8DAD9":"Gray","#E7E9E8":"Light Gray 4","#EFF0F0":"Light Gray 3","#F4F5F5":"Light Gray 2","#DF2A3F":"Red","#ED740C":"Orange","#ECAA04":"Yellow","#FBDE28":"Bright Yellow","#74B602":"Green","#1DC0C9":"Cyan","#117CEE":"Light Blue","#2F4BDA":"Blue","#601BDE":"Purple","#D22D8D":"Magenta","#FBE4E7":"Red 1","#FDE6D3":"Orange 1","#F9EFCD":"Yellow 1","#FBF5CB":"Bright Yellow 1","#E8F7CF":"Green 1","#CEF5F7":"Cyan 1","#D9EAFC":"Light Blue 1","#D9DFFC":"Blue 1","#E6DCF9":"Purple 1","#FBDFEF":"Magenta 1","#F1A2AB":"Red 2","#F8B881":"Orange 2","#F5D480":"Yellow 2","#FCE75A":"Bright Yellow 2","#C1E77E":"Green 2","#81DFE4":"Cyan 2","#81BBF8":"Light Blue 2","#96A7FD":"Blue 2","#BA9BF2":"Purple 2","#F297CC":"Magenta 2","#E4495B":"Red 3","#F38F39":"Orange 3","#F3BB2F":"Yellow 3","#EDCE02":"Bright Yellow 3","#8CCF17":"Green 3","#01B2BC":"Cyan 3","#2F8EF4":"Light Blue 3","#4861E0":"Blue 3","#7E45E8":"Purple 3","#E746A4":"Magenta 3","#AD1A2B":"Red 4","#C75C00":"Orange 4","#C99103":"Yellow 4","#A58F04":"Bright Yellow 4","#5C8D07":"Green 4","#07787E":"Cyan 4","#0C68CA":"Light Blue 4","#213BC0":"Blue 4","#4C16B1":"Purple 4","#AE146E":"Magenta 4","#70000D":"Red 5","#663000":"Orange 5","#664900":"Yellow 5","#665800":"Bright Yellow 5","#2A4200":"Green 5","#004347":"Cyan 5","#00346B":"Light Blue 5","#101E60":"Blue 5","#270070":"Purple 5","#5C0036":"Magenta 5"}};function vfe(e,t,n){return t=Qe(t),Xe(e,mfe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mfe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mfe=function(){return!!e})()}var gfe=function(e){function t(){var e;return Ye(this,t),e=vfe(this,t,arguments),Object.defineProperty(Je(e),"toState",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return hu.parse(e)||su.white}}),Object.defineProperty(Je(e),"getContrastingColor",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return"transparent"===e.toCSSValue()?"rgba(0,0,0,0.4)":(299*e.r+587*e.g+114*e.b)/1e3>=210?"#8C8C8C":"#FFFFFF"}}),Object.defineProperty(Je(e),"onSelect",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){n.preventDefault(),n.stopPropagation(),e.props.onSelect&&e.props.onSelect(t)}}),e}return et(t,e),Ke(t,[{key:"getColorArray",value:function(e){var t=e.split(/,/g);if(t.length<=2)return t;var n=e.split(/\)\s*?,/);return[n[0]+")",n[1]]}},{key:"render",value:function(){var e,t=this.props,n=t.color,r=t.activeColors,o=t.theme,i=cn(this.getColorArray(n),2),a=i[0],l=i[1],u=this.toState(a||"#FFFFFF");e="dark"===o?["#000000","#141414","transparent"].indexOf(n)>=0:["#ffffff","#fafafa","transparent"].indexOf(u.toCSSValue())>=0;var c=!1,s={};l?(s.backgroundImage="linear-gradient(90deg, ".concat(a," 0%, ").concat(l," 100%)"),c=!0):s.backgroundColor=n;var d=r&&r.indexOf(n)>=0,f="transparent"===n,h={check:{fill:this.getContrastingColor(u),display:d?"block":"none"}};return nc().createElement("span",{className:uC()("lake-colorboard-group-item",{"lake-colorboard-group-item-border":e,"lake-colorboard-group-item-border-none":c,"lake-colorboard-group-item-active":d,"lake-colorboard-group-item-special":f}),title:pfe[this.props.lang||"zh-cn"][n],onClick:this.onSelect.bind(this,n)},nc().createElement("span",{style:s},nc().createElement("svg",{style:h.check,viewBox:"0 0 18 18"},nc().createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))}}]),t}(nc().Component);function bfe(e,t,n){return t=Qe(t),Xe(e,yfe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yfe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yfe=function(){return!!e})()}var wfe=function(e){function t(){return Ye(this,t),bfe(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,r=e.activeColors,o=e.defaultColor,i=e.onSelect,a=e.lang,l=e.theme;return nc().createElement("span",{className:"lake-colorboard-group"},n.map((function(e){return nc().createElement(gfe,{color:e,key:e,lang:a,activeColors:r,defaultColor:o,theme:l,onSelect:i})})))}}]),t}(nc().Component),kfe=o(7350),Cfe=o.n(kfe),_fe=o(8527),Nfe={},Ofe=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(Nfe[o])return Nfe[o];var i=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return Nfe[o]=i,i},xfe=Object.assign||function(e){for(var t=1;ta?1:Math.round(100*s/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f;if(r!==(f=c<0?0:c>i?1:Math.round(100*c/i)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},Sfe(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Pfe(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,_fe.Ay)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:Rfe({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return nc().createElement("div",{style:n.alpha},nc().createElement("div",{style:n.checkboard},nc().createElement(Dfe,{renderers:this.props.renderers})),nc().createElement("div",{style:n.gradient}),nc().createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},nc().createElement("div",{style:n.pointer},this.props.pointer?nc().createElement(this.props.pointer,this.props):nc().createElement("div",{style:n.slider}))))}}]),t}(tc.PureComponent||tc.Component);const Afe=Tfe;var jfe=function(){function e(e,t){for(var n=0;n-1)){var o=n.getArrowOffset(),i=38===e.keyCode?r+o:r-o;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+Bfe++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),jfe(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,_fe.Ay)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return nc().createElement("div",{style:t.wrap},nc().createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?nc().createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(tc.PureComponent||tc.Component);const Ffe=Mfe;var Lfe=function(){function e(e,t){for(var n=0;ni?0:360*(-100*c/i+100)/100,n.h!==s)return{h:s,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d;if(d=u<0?0:u>o?359:100*u/o*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},Ufe(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Lfe(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,_fe.Ay)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return nc().createElement("div",{style:r.hue},nc().createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},nc().createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),nc().createElement("div",{style:r.pointer},this.props.pointer?nc().createElement(this.props.pointer,this.props):nc().createElement("div",{style:r.slider}))))}}]),t}(tc.PureComponent||tc.Component);const Hfe=Vfe;var zfe=o(5556),Wfe=o.n(zfe);const qfe=function(e,t){return e===t||e!=e&&t!=t},$fe=function(e,t){for(var n=e.length;n--;)if(qfe(e[n][0],t))return n;return-1};var Kfe=Array.prototype.splice;function Yfe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Yfe.prototype.set=function(e,t){var n=this.__data__,r=$fe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const Gfe=Yfe,Jfe="object"==typeof global&&global&&global.Object===Object&&global;var Xfe="object"==typeof self&&self&&self.Object===Object&&self;const Qfe=Jfe||Xfe||Function("return this")(),Zfe=Qfe.Symbol;var ehe=Object.prototype,the=ehe.hasOwnProperty,nhe=ehe.toString,rhe=Zfe?Zfe.toStringTag:void 0;var ohe=Object.prototype.toString;var ihe=Zfe?Zfe.toStringTag:void 0;const ahe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ihe&&ihe in Object(e)?function(e){var t=the.call(e,rhe),n=e[rhe];try{e[rhe]=void 0;var r=!0}catch(e){}var o=nhe.call(e);return r&&(t?e[rhe]=n:delete e[rhe]),o}(e):function(e){return ohe.call(e)}(e)},lhe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},uhe=function(e){if(!lhe(e))return!1;var t=ahe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},che=Qfe["__core-js_shared__"];var she,dhe=(she=/[^.]+$/.exec(che&&che.keys&&che.keys.IE_PROTO||""))?"Symbol(src)_1."+she:"";var fhe=Function.prototype.toString;const hhe=function(e){if(null!=e){try{return fhe.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var phe=/^\[object .+?Constructor\]$/,vhe=Function.prototype,mhe=Object.prototype,ghe=vhe.toString,bhe=mhe.hasOwnProperty,yhe=RegExp("^"+ghe.call(bhe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const whe=function(e){return!(!lhe(e)||(t=e,dhe&&dhe in t))&&(uhe(e)?yhe:phe).test(hhe(e));var t},khe=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return whe(n)?n:void 0},Che=khe(Qfe,"Map"),_he=khe(Object,"create");var Nhe=Object.prototype.hasOwnProperty;var Ohe=Object.prototype.hasOwnProperty;function xhe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991},ope=function(e){return null!=e&&rpe(e.length)&&!uhe(e)};var ipe="object"==typeof exports&&exports&&!exports.nodeType&&exports,ape=ipe&&"object"==typeof module&&module&&!module.nodeType&&module,lpe=ape&&ape.exports===ipe?Qfe.Buffer:void 0;const upe=(lpe?lpe.isBuffer:void 0)||function(){return!1};var cpe=Function.prototype,spe=Object.prototype,dpe=cpe.toString,fpe=spe.hasOwnProperty,hpe=dpe.call(Object);var ppe={};ppe["[object Float32Array]"]=ppe["[object Float64Array]"]=ppe["[object Int8Array]"]=ppe["[object Int16Array]"]=ppe["[object Int32Array]"]=ppe["[object Uint8Array]"]=ppe["[object Uint8ClampedArray]"]=ppe["[object Uint16Array]"]=ppe["[object Uint32Array]"]=!0,ppe["[object Arguments]"]=ppe["[object Array]"]=ppe["[object ArrayBuffer]"]=ppe["[object Boolean]"]=ppe["[object DataView]"]=ppe["[object Date]"]=ppe["[object Error]"]=ppe["[object Function]"]=ppe["[object Map]"]=ppe["[object Number]"]=ppe["[object Object]"]=ppe["[object RegExp]"]=ppe["[object Set]"]=ppe["[object String]"]=ppe["[object WeakMap]"]=!1;var vpe="object"==typeof exports&&exports&&!exports.nodeType&&exports,mpe=vpe&&"object"==typeof module&&module&&!module.nodeType&&module,gpe=mpe&&mpe.exports===vpe&&Jfe.process,bpe=function(){try{return mpe&&mpe.require&&mpe.require("util").types||gpe&&gpe.binding&&gpe.binding("util")}catch(e){}}(),ype=bpe&&bpe.isTypedArray;const wpe=ype?(kpe=ype,function(e){return kpe(e)}):function(e){return Jhe(e)&&rpe(e.length)&&!!ppe[ahe(e)]};var kpe;const Cpe=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var _pe=Object.prototype.hasOwnProperty;const Npe=function(e,t,n){var r=e[t];_pe.call(e,t)&&qfe(r,n)&&(void 0!==n||t in e)||jhe(e,t,n)};var Ope=/^(?:0|[1-9]\d*)$/;const xpe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ope.test(e))&&e>-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Fpe),Vpe=function(e,t){return Upe(function(e,t,n){return t=Bpe(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Bpe(r.length-t,0),a=Array(i);++o1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Hpe.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!lhe(n))return!1;var r=typeof t;return!!("number"==r?ope(n)&&xpe(t,n.length):"string"==r&&t in n)&&qfe(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n=t||n<0||d&&e-c>=i}function v(){var e=$pe();if(p(e))return m(e);l=setTimeout(v,function(e){var n=t-(e-u);return d?rve(n,i-(e-c)):n}(e))}function m(e){return l=void 0,f&&r?h(e):(r=o=void 0,a)}function g(){var e=$pe(),n=p(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(v,t),s?h(e):a}(u);if(d)return clearTimeout(l),l=setTimeout(v,t),h(u)}return void 0===l&&(l=setTimeout(v,t)),a}return t=tve(t)||0,lhe(n)&&(s=!!n.leading,i=(d="maxWait"in n)?nve(tve(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=u=o=l=void 0},g.flush=function(){return void 0===l?a:m($pe())},g};var ive=function(){function e(e,t){for(var n=0;no&&(u=o),c<0?c=0:c>i&&(c=i);var s=u/o,d=1-c/i;return{h:t.h,s,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return lhe(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ove(e,t,{leading:r,maxWait:t,trailing:o})}((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ive(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,i=t.pointer,a=t.circle,l=(0,_fe.Ay)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:i,circle:a}},{custom:!!this.props.style});return nc().createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},nc().createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),nc().createElement("div",{style:l.white,className:"saturation-white"},nc().createElement("div",{style:l.black,className:"saturation-black"}),nc().createElement("div",{style:l.pointer},this.props.pointer?nc().createElement(this.props.pointer,this.props):nc().createElement("div",{style:l.circle}))))}}]),t}(tc.PureComponent||tc.Component);const lve=ave,uve=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Mve(e,360),t=Mve(t,100),n=Mve(n,100),0===t)r=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=a(u,l,e+1/3),o=a(u,l,e),i=a(u,l,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Bve(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function bve(e,t,n){e=Mve(e,255),t=Mve(t,255),n=Mve(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),l=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=l>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(gve(r));return i}function Ave(e,t){t=t||6;for(var n=gve(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(gve({h:r,s:o,v:i})),i=(i+l)%1;return a}gve.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=Bve(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=yve(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=yve(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=bve(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=bve(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return wve(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[Uve(Math.round(e).toString(16)),Uve(Math.round(t).toString(16)),Uve(Math.round(n).toString(16)),Uve(Hve(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Mve(this._r,255))+"%",g:Math.round(100*Mve(this._g,255))+"%",b:Math.round(100*Mve(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Mve(this._r,255))+"%, "+Math.round(100*Mve(this._g,255))+"%, "+Math.round(100*Mve(this._b,255))+"%)":"rgba("+Math.round(100*Mve(this._r,255))+"%, "+Math.round(100*Mve(this._g,255))+"%, "+Math.round(100*Mve(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Ive[wve(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+kve(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=gve(e);n="#"+kve(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return gve(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Ove,arguments)},brighten:function(){return this._applyModification(xve,arguments)},darken:function(){return this._applyModification(Eve,arguments)},desaturate:function(){return this._applyModification(Cve,arguments)},saturate:function(){return this._applyModification(_ve,arguments)},greyscale:function(){return this._applyModification(Nve,arguments)},spin:function(){return this._applyModification(Dve,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Tve,arguments)},complement:function(){return this._applyCombination(Rve,arguments)},monochromatic:function(){return this._applyCombination(Ave,arguments)},splitcomplement:function(){return this._applyCombination(Sve,arguments)},triad:function(){return this._applyCombination(Pve,[3])},tetrad:function(){return this._applyCombination(Pve,[4])}},gve.fromRatio=function(e,t){if("object"==pve(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Vve(e[r]));e=n}return gve(e,t)},gve.equals=function(e,t){return!(!e||!t)&&gve(e).toRgbString()==gve(t).toRgbString()},gve.random=function(){return gve.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},gve.mix=function(e,t,n){n=0===n?0:n||50;var r=gve(e).toRgb(),o=gve(t).toRgb(),i=n/100;return gve({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},gve.readability=function(e,t){var n=gve(e),r=gve(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},gve.isReadable=function(e,t,n){var r,o,i,a,l,u=gve.readability(e,t);switch(o=!1,(i=n,"AA"!==(a=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==a&&(a="AA"),"small"!==(l=(i.size||"small").toLowerCase())&&"large"!==l&&(l="small"),r={level:a,size:l}).level+r.size){case"AAsmall":case"AAAlarge":o=u>=4.5;break;case"AAlarge":o=u>=3;break;case"AAAsmall":o=u>=7}return o},gve.mostReadable=function(e,t,n){var r,o,i,a,l=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;cu&&(u=r,l=gve(t[c]));return gve.isReadable(e,l,{level:i,size:a})||!o?l:(n.includeFallbackColors=!1,gve.mostReadable(e,["#fff","#000"],n))};var jve=gve.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ive=gve.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(jve);function Bve(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mve(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Fve(e){return Math.min(1,Math.max(0,e))}function Lve(e){return parseInt(e,16)}function Uve(e){return 1==e.length?"0"+e:""+e}function Vve(e){return e<=1&&(e=100*e+"%"),e}function Hve(e){return Math.round(255*parseFloat(e)).toString(16)}function zve(e){return Lve(e)/255}var Wve=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function qve(e){return!!Wve.CSS_UNIT.exec(e)}var $ve=function(e){var t=0,n=0;return hve(["r","g","b","a","h","s","l","v"],(function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1)})),t===n&&e},Kve=function(e,t){var n=e.hex?gve(e.hex):gve(e),r=n.toHsl(),o=n.toHsv(),i=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===a&&0===i.a?"transparent":"#"+a,rgb:i,hsv:o,oldHue:e.h||t||r.h,source:e.source}},Yve=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&gve(e).isValid()},Gve=function(e){if(!e)return"#fff";var t=Kve(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},Jve=function(e,t){return gve(t+" ("+e.replace("°","")+")")._ok},Xve=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var o=arguments.length,i=Array(o),a=0;al))return!1;var c=i.get(e),s=i.get(t);if(c&&s)return c==t&&s==e;var d=-1,f=!0,h=2&n?new cme:void 0;for(i.set(e,t),i.set(t,e);++d1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(nye(e.s)?n.props.hsl.s:e.s),l:Number(nye(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),oye(t,[{key:"render",value:function(){var e=this,t=(0,_fe.Ay)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=nc().createElement("div",{style:t.fields,className:"flexbox-fix"},nc().createElement("div",{style:t.field},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=nc().createElement("div",{style:t.fields,className:"flexbox-fix"},nc().createElement("div",{style:t.field},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),nc().createElement("div",{style:t.field},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),nc().createElement("div",{style:t.field},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),nc().createElement("div",{style:t.alpha},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=nc().createElement("div",{style:t.fields,className:"flexbox-fix"},nc().createElement("div",{style:t.field},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),nc().createElement("div",{style:t.field},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),nc().createElement("div",{style:t.field},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),nc().createElement("div",{style:t.alpha},nc().createElement(Ffe,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),nc().createElement("div",{style:t.wrap,className:"flexbox-fix"},n,nc().createElement("div",{style:t.toggle},nc().createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},nc().createElement(rye.A,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(nc().Component);iye.defaultProps={view:"hex"};const aye=iye,lye=function(){var e=(0,_fe.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return nc().createElement("div",{style:e.picker})},uye=function(){var e=(0,_fe.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return nc().createElement("div",{style:e.picker})};var cye=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,o=e.rgb,i=e.hsl,a=e.hsv,l=e.hex,u=e.renderers,c=e.styles,s=void 0===c?{}:c,d=e.className,f=void 0===d?"":d,h=e.defaultView,p=(0,_fe.Ay)(zpe({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},s),{disableAlpha:r});return nc().createElement("div",{style:p.picker,className:"chrome-picker "+f},nc().createElement("div",{style:p.saturation},nc().createElement(lve,{style:p.Saturation,hsl:i,hsv:a,pointer:uye,onChange:n})),nc().createElement("div",{style:p.body},nc().createElement("div",{style:p.controls,className:"flexbox-fix"},nc().createElement("div",{style:p.color},nc().createElement("div",{style:p.swatch},nc().createElement("div",{style:p.active}),nc().createElement(Dfe,{renderers:u}))),nc().createElement("div",{style:p.toggles},nc().createElement("div",{style:p.hue},nc().createElement(Hfe,{style:p.Hue,hsl:i,pointer:lye,onChange:n})),nc().createElement("div",{style:p.alpha},nc().createElement(Afe,{style:p.Alpha,rgb:o,hsl:i,pointer:lye,renderers:u,onChange:n})))),nc().createElement(aye,{rgb:o,hsl:i,hex:l,view:h,onChange:n,disableAlpha:r})))};cye.propTypes={width:Wfe().oneOfType([Wfe().string,Wfe().number]),disableAlpha:Wfe().bool,styles:Wfe().object,defaultView:Wfe().oneOf(["hex","rgb","hsl"])},cye.defaultProps={width:225,disableAlpha:!1,styles:{}};const sye=Zve(cye),dye=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,i=e.active,a=(0,_fe.Ay)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Gve(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:i,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return nc().createElement(ome,{style:a.color,color:t,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},nc().createElement("div",{style:a.dot}))},fye=function(e){var t=e.hex,n=e.rgb,r=e.onChange,o=(0,_fe.Ay)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),i=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return nc().createElement("div",{style:o.fields,className:"flexbox-fix"},nc().createElement("div",{style:o.active}),nc().createElement(Ffe,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:t,onChange:i}),nc().createElement(Ffe,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:i}),nc().createElement(Ffe,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:i}),nc().createElement(Ffe,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:i}))};var hye=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,o=e.hex,i=e.rgb,a=e.styles,l=void 0===a?{}:a,u=e.className,c=void 0===u?"":u,s=(0,_fe.Ay)(zpe({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),d=function(e,n){e.hex?Yve(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return nc().createElement(qpe,{style:s.Compact,styles:l},nc().createElement("div",{style:s.compact,className:"compact-picker "+c},nc().createElement("div",null,vge(r,(function(e){return nc().createElement(dye,{key:e,color:e,active:e.toLowerCase()===o,onClick:d,onSwatchHover:n})})),nc().createElement("div",{style:s.clear})),nc().createElement(fye,{hex:o,rgb:i,onChange:d})))};hye.propTypes={colors:Wfe().arrayOf(Wfe().string),styles:Wfe().object},hye.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Zve(hye);const pye=(0,_fe.H8)((function(e){var t=e.hover,n=e.color,r=e.onClick,o=e.onSwatchHover,i={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},a=(0,_fe.Ay)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:i}},{hover:t});return nc().createElement("div",{style:a.swatch},nc().createElement(ome,{color:n,onClick:r,onHover:o,focusStyle:i}))}));var vye=function(e){var t=e.width,n=e.colors,r=e.onChange,o=e.onSwatchHover,i=e.triangle,a=e.styles,l=void 0===a?{}:a,u=e.className,c=void 0===u?"":u,s=(0,_fe.Ay)(zpe({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i,"bottom-left-triangle":"bottom-left"===i,"bottom-right-triangle":"bottom-right"===i}),d=function(e,t){return r({hex:e,source:"hex"},t)};return nc().createElement("div",{style:s.card,className:"github-picker "+c},nc().createElement("div",{style:s.triangleShadow}),nc().createElement("div",{style:s.triangle}),vge(n,(function(e){return nc().createElement(pye,{color:e,key:e,onClick:d,onSwatchHover:o})})))};vye.propTypes={width:Wfe().oneOfType([Wfe().string,Wfe().number]),colors:Wfe().arrayOf(Wfe().string),triangle:Wfe().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:Wfe().object},vye.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Zve(vye);var mye=Object.assign||function(e){for(var t=1;t.5});return nc().createElement("div",{style:n.picker})},wye=function(){var e=(0,_fe.Ay)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return nc().createElement("div",{style:e.pointer},nc().createElement("div",{style:e.left},nc().createElement("div",{style:e.leftInside})),nc().createElement("div",{style:e.right},nc().createElement("div",{style:e.rightInside})))},kye=function(e){var t=e.onClick,n=e.label,r=e.children,o=e.active,i=(0,_fe.Ay)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return nc().createElement("div",{style:i.button,onClick:t},n||r)},Cye=function(e){var t=e.rgb,n=e.currentColor,r=(0,_fe.Ay)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return nc().createElement("div",null,nc().createElement("div",{style:r.label},"new"),nc().createElement("div",{style:r.swatches},nc().createElement("div",{style:r.new}),nc().createElement("div",{style:r.current})),nc().createElement("div",{style:r.label},"current"))};var _ye=function(){function e(e,t){for(var n=0;n100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},o))};return nc().createElement("div",{style:a.fields,className:"flexbox-fix"},nc().createElement("div",{style:a.double},nc().createElement(Ffe,{style:{input:a.input,label:a.label},label:"hex",value:o.replace("#",""),onChange:l})),nc().createElement("div",{style:a.single},nc().createElement(Ffe,{style:{input:a.input,label:a.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),nc().createElement("div",{style:a.single},nc().createElement(Ffe,{style:{input:a.input,label:a.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),nc().createElement("div",{style:a.single},nc().createElement(Ffe,{style:{input:a.input,label:a.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),nc().createElement("div",{style:a.alpha},nc().createElement(Ffe,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))};var xye=Object.assign||function(e){for(var t=1;t0?nc().createElement(wfe,{data:l.concat().reverse(),key:"customColors",activeColors:r,theme:s,onSelect:this.onSelect}):nc().createElement("div",{className:"lake-none-custom-color"},h.noColors),nc().createElement(yS,{trigger:"click",visible:a&&f,onVisibleChange:function(e){t.setState({showPicker:e})},getPopupContainer:function(){return document.body},overlayInnerStyle:{backgroundColor:"transparent"},align:{points:["tr","tr"],offset:[256,-224]},overlayClassName:"ne-rgba-picker-tooltip ".concat(this.props.themeSelector||""),overlay:nc().createElement(Kye,{color:null===(e=this.props.activeColors)||void 0===e?void 0:e[0],position:this.state.position||void 0,onSelect:this.onCustomSelect,container:this.props.container||document.body})},nc().createElement("div",{className:"lake-more-color"},nc().createElement("div",{className:"lake-more-color-container",onClick:this.toggleRgbaPicker},nc().createElement("div",{className:"lake-more-color-preview"}),nc().createElement("span",null,h.moreColor),nc().createElement("span",{className:"lake-icon lake-icon-arrow-right"})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.show&&e.onSaveColor&&t.customColor?(e.onSaveColor(t.customColor),{showPicker:!1,customColor:null}):{}}}]),t}(nc().Component);const Qye=Xye;function Zye(e){return nc().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 256 256",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},nc().createElement("g",{id:"icon/填充色",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},nc().createElement("g",{id:"icon/背景颜色"},nc().createElement("g",{id:"编组",fill:"currentColor"},nc().createElement("g",{transform:"translate(119.502295, 137.878331) rotate(-135.000000) translate(-119.502295, -137.878331) translate(48.002295, 31.757731)",id:"矩形"},nc().createElement("path",{d:"M100.946943,60.8084699 L43.7469427,60.8084699 C37.2852111,60.8084699 32.0469427,66.0467383 32.0469427,72.5084699 L32.0469427,118.70847 C32.0469427,125.170201 37.2852111,130.40847 43.7469427,130.40847 L100.946943,130.40847 C107.408674,130.40847 112.646943,125.170201 112.646943,118.70847 L112.646943,72.5084699 C112.646943,66.0467383 107.408674,60.8084699 100.946943,60.8084699 Z M93.646,79.808 L93.646,111.408 L51.046,111.408 L51.046,79.808 L93.646,79.808 Z",fillRule:"nonzero"}),nc().createElement("path",{d:"M87.9366521,16.90916 L87.9194966,68.2000001 C87.9183543,69.4147389 86.9334998,70.399264 85.7187607,70.4 L56.9423078,70.4 C55.7272813,70.4 54.7423078,69.4150264 54.7423078,68.2 L54.7423078,39.4621057 C54.7423078,37.2523513 55.5736632,35.1234748 57.0711706,33.4985176 L76.4832996,12.4342613 C78.9534987,9.75382857 83.1289108,9.5834005 85.8093436,12.0535996 C87.1658473,13.303709 87.9372691,15.0644715 87.9366521,16.90916 Z",fillRule:"evenodd"}),nc().createElement("path",{d:"M131.3,111.241199 L11.7,111.241199 C5.23826843,111.241199 0,116.479467 0,122.941199 L0,200.541199 C0,207.002931 5.23826843,212.241199 11.7,212.241199 L131.3,212.241199 C137.761732,212.241199 143,207.002931 143,200.541199 L143,122.941199 C143,116.479467 137.761732,111.241199 131.3,111.241199 Z M124,130.241 L124,193.241 L19,193.241 L19,130.241 L124,130.241 Z",fillRule:"nonzero"}))),nc().createElement("path",{d:"M51,218 L205,218 C211.075132,218 216,222.924868 216,229 C216,235.075132 211.075132,240 205,240 L51,240 C44.9248678,240 40,235.075132 40,229 C40,222.924868 44.9248678,218 51,218 Z",id:"矩形",fill:e}))))}function ewe(e){return nc().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 256 256",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},nc().createElement("g",{id:"icon/背景颜色",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},nc().createElement("g",null,nc().createElement("path",{d:"M157.746212,50.9888527 L75.746212,50.9888527 C61.3868085,50.9888527 49.746212,62.6294492 49.746212,76.9888527 L49.746212,158.988853 C49.746212,173.348256 61.3868085,184.988853 75.746212,184.988853 L157.746212,184.988853 C172.105616,184.988853 183.746212,173.348256 183.746212,158.988853 L183.746212,76.9888527 C183.746212,62.6294492 172.105616,50.9888527 157.746212,50.9888527 Z M75.746212,70.9888527 L157.746212,70.9888527 C161.059921,70.9888527 163.746212,73.6751442 163.746212,76.9888527 L163.746212,158.988853 C163.746212,162.302561 161.059921,164.988853 157.746212,164.988853 L75.746212,164.988853 C72.4325035,164.988853 69.746212,162.302561 69.746212,158.988853 L69.746212,76.9888527 C69.746212,73.6751442 72.4325035,70.9888527 75.746212,70.9888527 Z",id:"矩形",fill:"currentColor",fillRule:"nonzero",transform:"translate(116.746212, 117.988853) rotate(45.000000) translate(-116.746212, -117.988853) "}),nc().createElement("path",{d:"M201.333333,164 C201.333333,164 188,179.781818 188,189.454545 C188,197.454545 194,204 201.333333,204 C208.666667,204 214.666667,197.454545 214.666667,189.454545 C214.666667,179.781818 201.333333,164 201.333333,164 Z",id:"Path",fill:"currentColor"}),nc().createElement("path",{d:"M50,219 L206,219 C212.075132,219 217,223.924868 217,230 C217,236.075132 212.075132,241 206,241 L50,241 C43.9248678,241 39,236.075132 39,230 C39,223.924868 43.9248678,219 50,219 Z",id:"矩形",fill:e}),nc().createElement("polygon",{id:"路径-24",fill:"currentColor",opacity:"0.349999994",points:"43 119.102921 192 119.102921 118.898066 199.102921"}),nc().createElement("g",{id:"路径-25",fill:"currentColor",fillRule:"nonzero"},nc().createElement("g",{transform:"translate(99.131915, 19.731915)",id:"路径-23"},nc().createElement("path",{d:"M-7.07106781,-7.07106781 C-3.23682931,-10.9053063 2.9363852,-10.9750197 6.85567738,-7.28020809 L7.07106781,-7.07106781 L71.0710678,56.9289322 C74.9763107,60.8341751 74.9763107,67.1658249 71.0710678,71.0710678 C67.2368293,74.9053063 61.0636148,74.9750197 57.1443226,71.2802081 L56.9289322,71.0710678 L-7.07106781,7.07106781 C-10.9763107,3.16582489 -10.9763107,-3.16582489 -7.07106781,-7.07106781 Z"}))))))}function twe(e){var t=!1,n="";if(e){var r=cn(function(e){var t=e.split(/,/g);if(t.length<=2)return t;var n=e.split(/\)\s*?,/);return n.length<2?n:[n[0]+")",n[1]]}(e),2),o=r[0],i=r[1];e=o,n=i||"",t=!!i}return nc().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 240 240",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},t&&nc().createElement("defs",null,nc().createElement("linearGradient",{id:"fontColorGradient1"},nc().createElement("stop",{stopColor:e,offset:"0%"}),nc().createElement("stop",{stopColor:n,offset:"100%"}))),nc().createElement("g",{id:"icon/字体颜色",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},nc().createElement("g",{transform:"translate(0.000000, 0.500000)"},nc().createElement("g",{transform:"translate(39.000000, 17.353553)"},nc().createElement("path",{d:"M11,201.146447 L167,201.146447 C173.075132,201.146447 178,206.071314 178,212.146447 C178,218.221579 173.075132,223.146447 167,223.146447 L11,223.146447 C4.92486775,223.146447 7.43989126e-16,218.221579 0,212.146447 C-7.43989126e-16,206.071314 4.92486775,201.146447 11,201.146447 Z",id:"矩形",fill:t?"url(#fontColorGradient1)":e,fillRule:"evenodd"}),nc().createElement("path",{d:"M72.3425855,16.8295583 C75.799482,7.50883712 86.1577877,2.75526801 95.4785089,6.21216449 C100.284516,7.99463061 104.096358,11.7387855 105.968745,16.4968188 L106.112518,16.8745422 L159.385152,161.694068 C161.291848,166.877345 158.635655,172.624903 153.452378,174.531599 C148.358469,176.405421 142.719567,173.872338 140.716873,168.864661 L140.614848,168.598825 L89.211,28.86 L37.3759214,168.623816 C35.4885354,173.712715 29.8981043,176.351047 24.7909589,174.617647 L24.5226307,174.522368 C19.4337312,172.634982 16.7953993,167.044551 18.5287999,161.937406 L18.6240786,161.669077 L72.3425855,16.8295583 Z",id:"路径-21",fill:"currentColor",fillRule:"nonzero"}),nc().createElement("path",{d:"M121,103.146447 C126.522847,103.146447 131,107.623599 131,113.146447 C131,118.575687 126.673329,122.994378 121.279905,123.142605 L121,123.146447 L55,123.146447 C49.4771525,123.146447 45,118.669294 45,113.146447 C45,107.717207 49.3266708,103.298515 54.7200952,103.150288 L55,103.146447 L121,103.146447 Z",id:"路径-22",fill:"currentColor",fillRule:"nonzero"})))))}function nwe(e,t,n){return t=Qe(t),Xe(e,rwe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rwe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rwe=function(){return!!e})()}var owe=function(e){function t(){return Ye(this,t),nwe(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){var e=Kf(this.props.className,"ne-embed-icon","ne-embed-icon-".concat(this.props.type));return nc().createElement("span",{className:e},this._getIcon())}},{key:"_getIcon",value:function(){var e=this.props,t=e.type,n=e.fill;return"t-font-color"===t?twe(n):"t-bg-color"===t?Zye(n):"t-cell-bg-color"===t?ewe(n):null}}]),t}(tc.Component);function iwe(e,t,n){return t=Qe(t),Xe(e,awe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function awe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(awe=function(){return!!e})()}Object.defineProperty(owe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{fill:"red"}});var lwe=function(e){function t(){return Ye(this,t),iwe(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.name,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var b=[];t=l.map((function(e){var t,n=Dwe(e.path,f);return n&&b.push(n),e.children&&e.children.length&&(t=tc.createElement(DA,null,e.children.map((function(e){return tc.createElement(DA.Item,{key:e.path||e.breadcrumbName},s(e,f,l,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=pn(e),o=Dwe(t,n);return o&&r.push(o),r}(b,e.path,f)))})))),tc.createElement(Nwe,{overlay:t,separator:o,key:n||e.breadcrumbName},s(e,f,l,b))}))}else u&&(t=pO(u).map((function(e,t){return e?(Sx(e.type&&(!0===e.type.__ANT_BREADCRUMB_ITEM||!0===e.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),EP(e,{separator:o,key:t})):e})));var y=uC()(g,Ja({},"".concat(g,"-rtl"),"rtl"===m),a);return tc.createElement("div",aC({className:y,style:i},h),t)};Rwe.Item=Nwe,Rwe.Separator=xwe;const Pwe=Rwe,Swe=UP;function Twe(e,t,n){return t=Qe(t),Xe(e,Awe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Awe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Awe=function(){return!!e})()}var jwe=function(e){function t(e){var n;return Ye(this,t),n=Twe(this,t,[e]),Object.defineProperty(Je(n),"state",{enumerable:!0,configurable:!0,writable:!0,value:{refreshCounter:0}}),Object.defineProperty(Je(n),"_props",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_ref",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),n._props=e.props,n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.props.cardData;t&&(this._syncClassName(),gd(this,t,"change",(function(){e._syncClassName(),e.forceUpdate()})))}},{key:"getRef",value:function(){return this._ref.current}},{key:"update",value:function(e){this._props=Object.assign(Object.assign({},this._props),e),this.forceUpdate()}},{key:"render",value:function(){var e=this.props.component;return"function"==typeof e?nc().createElement(e,Object.assign({},this._props,{ref:this._ref})):nc().createElement(e.type,Object.assign({},this._props,{ref:this._ref}),e.props.children)}},{key:"_syncClassName",value:function(){var e=this.props.cardContainerNode;if(e){var t=this.props.props.cardData.cardAlias;t?e.setAttribute("data-alias",t):e.removeAttribute("data-alias")}}}]),t}(tc.Component),Iwe=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"render",value:function(e,t,n,r){var o=null;return!r&&n.classList.contains("ne-card-container")&&(r=n),r&&kt(r.classList.contains("ne-card-container"),r.outerHTML,"framework/uilib/src/card-data-view-helper/index.tsx:35"),t.viewModel&&(t.viewModel=hh(t.viewModel,(function(){null==o||o.setState({refreshCounter:(o.state.refreshCounter||0)+1})}))),nu().render(nc().createElement(jwe,{props:t,cardContainerNode:r,component:e,ref:function(e){var n;o=e,null===(n=null==t?void 0:t.$onReady)||void 0===n||n.call(t)}}),n),{getReactRef:function(){return(null==o?void 0:o.getRef())||null},rerender:function(e){null==o||o.update(e)},destroy:function(){o=null,nu().unmountComponentAtNode(n)}}}},{key:"unmount",value:function(e){nu().unmountComponentAtNode(e)}}]),e}(),Bwe=o(1086),Mwe=o.n(Bwe),Fwe=["data-testid","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onClick","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture"];function Lwe(e){if("function"==typeof e)try{e=e()}catch(e){return null}return e||null}function Uwe(e,t){var n=t.icon,r=t.mainIcon,o=t.iconfont,i=t.mainIconfont;return e&&(r||i)?nc().createElement(tD,{type:r,iconfont:i}):nc().isValidElement(n)?n:(kt("string"==typeof n,"card menu icon is not a string","framework/uilib/src/card-menu/items/item-container/utils.tsx:67"),n||o?nc().createElement(tD,{type:n,iconfont:o}):null)}function Vwe(e,t){return Fwe.includes(t)}var Hwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&o(n,t)}),[o]),f=(0,tc.useCallback)((function(){var e,t;s.current&&(null===(t=(e=s.current).click)||void 0===t||t.call(e),null==u||u(),"function"==typeof l&&l())}),[s.current]),h=n.label,p=n.description,v=n.mainSearch,m=n.multiple,g=n.accept,b=n.disabled,y=n.iconBorder,w=Uwe(r,n);(0,tc.useEffect)((function(){if(i&&!b)return a.on("select",f),function(){return a.off("select",f)}}),[a,f,i,b]);var k=b?null:nc().createElement("input",{ref:s,multiple:m,onChange:d,type:"file",accept:String(g)||"*/*"});return nc().createElement(qwe,Object.assign({},c,{iconBorder:y,selected:i,disabled:b,icon:w,title:h,describe:Lwe(p),mainSearch:v,onMouseEnter:t,className:"ne-ui-file-item-container",onClick:f}),k)}var Ywe="icon",Gwe="normal",Jwe="two-column",Xwe="border-icon",Qwe="label",Zwe="submenu",eke=[Gwe,Jwe,Xwe,Qwe,Zwe,Ywe],tke="ne-menu-item-group";function nke(e){var t=uC()(tke,e.type||Gwe);return nc().createElement("div",{className:t},nc().createElement("div",{className:"".concat(tke,"-title")},e.title),nc().createElement("div",{className:"".concat(tke,"-content")},e.children))}var rke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o`Missing ${e} property in key`,Nke=e=>`Property 'weight' in key '${e}' must be a positive integer`,Oke=Object.prototype.hasOwnProperty;class xke{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=Eke(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Eke(e){let t=null,n=null,r=null,o=1,i=null;if(gke(e)||mke(e))r=e,t=Dke(e),n=Rke(e);else{if(!Oke.call(e,"name"))throw new Error(_ke("name"));const a=e.name;if(r=a,Oke.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(Nke(a));t=Dke(a),n=Rke(a),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Dke(e){return mke(e)?e:e.split(".")}function Rke(e){return mke(e)?e.join("."):e}const Pke={useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const o=(e,t,i)=>{if(wke(e))if(t[i]){const a=e[t[i]];if(!wke(a))return;if(i===t.length-1&&(gke(a)||bke(a)||function(e){return!0===e||!1===e||function(e){return yke(e)&&null!==e}(e)&&"[object Boolean]"==Cke(e)}(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(mke(a)){r=!0;for(let e=0,n=a.length;ee.score===t.score?e.idx{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,gke(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();gke(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(wke(o))if(mke(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(wke(r))if(gke(r)&&!kke(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else mke(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(gke(o)&&!kke(o)){let e={v:o,n:this.norm.get(o)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function jke(e,t,{getFn:n=Ske.getFn,fieldNormWeight:r=Ske.fieldNormWeight}={}){const o=new Ake({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Eke)),o.setSources(t),o.create(),o}function Ike(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=Ske.distance,ignoreLocation:i=Ske.ignoreLocation}={}){const a=t/e.length;if(i)return a;const l=Math.abs(r-n);return o?a+l/o:l?1:a}const Bke=32;function Mke(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:e,alphabet:Mke(e),startIndex:t})},s=this.pattern.length;if(s>Bke){let e=0;const t=s%Bke,n=s-t;for(;e{const{isMatch:p,score:v,indices:m}=function(e,t,n,{location:r=Ske.location,distance:o=Ske.distance,threshold:i=Ske.threshold,findAllMatches:a=Ske.findAllMatches,minMatchCharLength:l=Ske.minMatchCharLength,includeMatches:u=Ske.includeMatches,ignoreLocation:c=Ske.ignoreLocation}={}){if(t.length>Bke)throw new Error("Pattern length exceeds max of 32.");const s=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let h=i,p=f;const v=l>1||u,m=v?Array(d):[];let g;for(;(g=e.indexOf(t,p))>-1;){let e=Ike(t,{currentLocation:g,expectedLocation:f,distance:o,ignoreLocation:c});if(h=Math.min(e,h),p=g+s,v){let e=0;for(;e=u;i-=1){let a=i-1,l=n[e.charAt(a)];if(v&&(m[a]=+!!l),C[i]=(C[i+1]<<1|1)&l,r&&(C[i]|=(b[i+1]|b[i])<<1|1|b[i+1]),C[i]&k&&(y=Ike(t,{errors:r,currentLocation:a,expectedLocation:f,distance:o,ignoreLocation:c}),y<=h)){if(h=y,p=a,p<=f)break;u=Math.max(1,2*f-p)}}if(Ike(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:o,ignoreLocation:c})>h)break;b=C}const C={isMatch:p>=0,score:Math.max(.001,y)};if(v){const e=function(e=[],t=Ske.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(m,l);e.length?u&&(C.indices=e):C.isMatch=!1}return C}(e,t,f,{location:r+h,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:u});p&&(d=!0),s+=v,p&&m&&(c=[...c,...m])}));let f={isMatch:d,score:d?s/this.chunks.length:1};return d&&n&&(f.indices=c),f}}class Lke{constructor(e){this.pattern=e}static isMultiMatch(e){return Uke(e,this.multiRegex)}static isSingleMatch(e){return Uke(e,this.singleRegex)}search(){}}function Uke(e,t){const n=e.match(t);return n?n[1]:null}class Vke extends Lke{constructor(e,{location:t=Ske.location,threshold:n=Ske.threshold,distance:r=Ske.distance,includeMatches:o=Ske.includeMatches,findAllMatches:i=Ske.findAllMatches,minMatchCharLength:a=Ske.minMatchCharLength,isCaseSensitive:l=Ske.isCaseSensitive,ignoreLocation:u=Ske.ignoreLocation}={}){super(e),this._bitapSearch=new Fke(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Hke extends Lke{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const zke=[class extends Lke{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Hke,class extends Lke{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends Lke{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Lke{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends Lke{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends Lke{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Vke],Wke=zke.length,qke=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$ke=new Set([Vke.type,Hke.type]);const Kke=[];function Yke(e,t){for(let n=0,r=Kke.length;n!(!e[Gke]&&!e.$or),Qke=e=>({[Gke]:Object.keys(e).map((t=>({[t]:e[t]})))});function Zke(e,t,{auto:n=!0}={}){const r=e=>{let o=Object.keys(e);const i=(e=>!!e[Jke])(e);if(!i&&o.length>1&&!Xke(e))return r(Qke(e));if((e=>!mke(e)&&yke(e)&&!Xke(e))(e)){const r=i?e[Jke]:o[0],a=i?e.$val:e[r];if(!gke(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const l={keyId:Rke(r),pattern:a};return n&&(l.searcher=Yke(a,t)),l}let a={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];mke(n)&&n.forEach((e=>{a.children.push(r(e))}))})),a};return Xke(e)||(e=Qke(e)),r(e)}function eCe(e,t){const n=e.matches;t.matches=[],wke(n)&&n.forEach((e=>{if(!wke(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}function tCe(e,t){t.score=e.score}class nCe{constructor(e,t={},n){this.options={...Ske,...t},this.options.useExtendedSearch,this._keyStore=new xke(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ake))throw new Error("Incorrect 'index' type");this._myIndex=t||jke(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){wke(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n{let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(l,{ignoreFieldNorm:a}),o&&l.sort(i),bke(t)&&t>-1&&(l=l.slice(0,t)),function(e,t,{includeMatches:n=Ske.includeMatches,includeScore:r=Ske.includeScore}={}){const o=[];return n&&o.push(eCe),r&&o.push(tCe),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(l,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=Yke(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!wke(e))return;const{isMatch:i,score:a,indices:l}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:o,indices:l}]})})),r}_searchLogical(e){const t=Zke(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[];for(let i=0,a=e.children.length;i{if(wke(e)){let a=n(t,e,r);a.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),a.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=Yke(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!wke(e))return;let i=[];n.forEach(((n,r)=>{i.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),i.length&&o.push({idx:r,item:e,matches:i})})),o}_findMatches({key:e,value:t,searcher:n}){if(!wke(t))return[];let r=[];if(mke(t))t.forEach((({v:t,i:o,n:i})=>{if(!wke(t))return;const{isMatch:a,score:l,indices:u}=n.searchIn(t);a&&r.push({score:l,key:e,value:t,idx:o,norm:i,indices:u})}));else{const{v:o,n:i}=t,{isMatch:a,score:l,indices:u}=n.searchIn(o);a&&r.push({score:l,key:e,value:o,norm:i,indices:u})}return r}}nCe.version="6.6.2",nCe.createIndex=jke,nCe.parseIndex=function(e,{getFn:t=Ske.getFn,fieldNormWeight:n=Ske.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new Ake({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},nCe.config=Ske,nCe.parseQuery=Zke,function(...e){Kke.push(...e)}(class{constructor(e,{isCaseSensitive:t=Ske.isCaseSensitive,includeMatches:n=Ske.includeMatches,minMatchCharLength:r=Ske.minMatchCharLength,ignoreLocation:o=Ske.ignoreLocation,findAllMatches:i=Ske.findAllMatches,location:a=Ske.location,threshold:l=Ske.threshold,distance:u=Ske.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:a,threshold:l,distance:u},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(qke).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e2&&void 0!==arguments[2]&&arguments[2],o=n.props,i=o.itemElement,a=o.overlayContainer,l=o.onItemClick,u=$f((function(e){return e.type||""}),Wf("TextItem",(function(){return hke})),Wf("FileItem",(function(){return{element:Kwe,props:{onFileSelectOpen:n.props.onFileSelectOpen}}})),Wf("TableItem",(function(){return dke})),Wf("SubMenu",(function(){return{element:oke,props:{renderItems:n._renderItems}}})),qf((function(e){return console.warn("invalid card-select item type: ",e),null})));return e.map((function(e,o){var c,s,d=null,f={tooltip:t===Ywe};if(i)d=i;else{var h=u(e);h&&"element"in h?(f=h.props,d=h.element):d=h}return d?nc().createElement(d,Object.assign({},f,{themeSelector:n.props.themeSelector,showHover:n.state.showHover,trigger:n._trigger,useMainIcon:r,selected:e.name===(null===(c=n._currentWalkNode)||void 0===c?void 0:c.id)&&t===(null===(s=n._currentWalkNode)||void 0===s?void 0:s.type),isVip:e.isVip,type:t,"data-testid":"card-menu-item-".concat(e.name),overlayContainer:a,data:e,key:"".concat(e.name,"-").concat(o),onSelect:n._debouncSelect,onClick:l})):null}))}}),Object.defineProperty(Je(n),"_handleSearch",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t,r;if(n._fuse){var o=n._fuse.search(e).filter((function(e){return(e.score||-1)<=.25})).map((function(e){return e.item}));e&&n.props.customSearch&&(o=o.concat(n.props.customSearch(e,n._searchList)||[])),e?o.length?n._firstWalkNode=n._buildWalkNode([{items:o}]):n._firstWalkNode=null:n._firstWalkNode=n._buildWalkNode(n.props.config.groups),null===(r=(t=n.props).onSearchResultEmpty)||void 0===r||r.call(t,null===n._firstWalkNode),n._currentWalkNode=n._firstWalkNode,n.setState({searchValue:e,showHover:!1,inDelegate:!1,searchResult:o},n._handleScrollTo)}}}),Object.defineProperty(Je(n),"_handleUpDown",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t;if(!n._handleAixKey("updown",e)&&n._currentWalkNode){var r=function(){if(n._currentWalkNode){var t=e?n._currentWalkNode.up:n._currentWalkNode.down;t&&(n._currentWalkNode=t),n.setState({},n._handleScrollTo)}},o=Array.from(document.querySelectorAll(".ne-menu-item-group.label > .ne-menu-item-group-content > .ne-menu-item-container"));if(e&&(null===(t=n._currentWalkNode.up)||void 0===t?void 0:t.type)===Qwe&&o.length>2){var i=o[0],a=o[2];xs((function(){return{top:i.getBoundingClientRect().top,y:a.getBoundingClientRect().y}}),(function(e){var t,o=e.y,i=e.top,a=null===(t=n._currentWalkNode)||void 0===t?void 0:t.up;if(o-i>10&&(null==a?void 0:a.type)===Qwe){for(;2!==(null==a?void 0:a.index)&&(null==a?void 0:a.type)===Qwe;)a=a.right&&"type"in a.right?a.right:null;if(2===(null==a?void 0:a.index))return n._currentWalkNode=a,void n.setState({},n._handleScrollTo)}r()}))}else n._currentWalkNode.type===Qwe&&o.length>2?xs((function(){var e=o[0].getBoundingClientRect().top;return{y:o[2].getBoundingClientRect().y,top:e}}),(function(t){if(t.y-t.top>10){if(!e&&n._currentWalkNode&&n._currentWalkNode.index<2){var o=n._currentWalkNode.right;return 2!==o.index&&(o=o.right),n._currentWalkNode=o,void n.setState({},n._handleScrollTo)}if(!e&&n._currentWalkNode&&2===n._currentWalkNode.index){var i=n._currentWalkNode.left.left.down;return i&&(n._currentWalkNode=i),void n.setState({},n._handleScrollTo)}if(e&&n._currentWalkNode&&2===n._currentWalkNode.index){var a=n._currentWalkNode.left.left;return a&&(n._currentWalkNode=a),void n.setState({},n._handleScrollTo)}}r()})):r()}}}),Object.defineProperty(Je(n),"_handleLeftRight",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n._handleAixKey("leftright",e)&&n._currentWalkNode){var o=!1,i=e?n._currentWalkNode.left:n._currentWalkNode[r?"tabNext":"right"]||n._currentWalkNode.right;i&&("trigger"in i&&i.trigger&&(null===(t=i.node)||void 0===t?void 0:t.type)===Qwe?n._currentWalkNode=i.node.tabNext:"trigger"in i?(n._trigger.emit(i.trigger,i.trigger,i.triggerNode),"delegate"===i.trigger&&(o=!0),n._currentWalkNode=i.node||i):n._currentWalkNode=i),o&&n._trigger.once("tryoutTrigger",(function(){n.setState({inDelegate:!1})})),n.setState({inDelegate:o},n._handleScrollTo)}}}),Object.defineProperty(Je(n),"_handleSelect",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.state.inDelegate?n._trigger.emit("enter"):n.state.searchResult&&n._currentWalkNode&&n._trigger.emit("select")}}),Object.defineProperty(Je(n),"_handleScrollTo",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(n._contentNodeRef.current){var e=n._contentNodeRef.current,t=n._contentNodeRef.current.querySelector(".selected");t&&xs((function(){var n=e.offsetHeight===e.scrollHeight?e.parentNode:e,r=n.getBoundingClientRect(),o=n.scrollTop,i=n.scrollHeight;return{childRect:t.getBoundingClientRect(),rootRect:r,scrollTop:o,scrollHeight:i,scrollNode:n}}),(function(e){var t=e.childRect,n=e.rootRect,r=e.scrollTop,o=e.scrollHeight,i=e.scrollNode;t.top0?i.scrollTop=Math.max(r-(n.top-t.top)-40,0):t.bottom>n.bottom&&o>0&&(i.scrollTop=Math.min(o,r+(t.bottom-n.bottom)+40))}))}}}),Object.defineProperty(Je(n),"_handleDomUpdate",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(n._rootNode.current){var e=n._rootNode.current;xs((function(){return e.offsetWidth}),(function(t){var n=e.classList;t<285?n.contains("with-scroll")&&n.remove("with-scroll"):t>285&&(n.contains("with-scroll")||n.add("with-scroll"))}))}}}),Object.defineProperty(Je(n),"_debouncSelect",{enumerable:!0,configurable:!0,writable:!0,value:ig()((function(){for(var e,t,r,o=arguments.length,i=new Array(o),a=0;a0&&(r=w().map((function(e){return tc.createElement(_Ce,{prefixCls:k,key:e.value.toString(),disabled:"disabled"in e?e.disabled:s.disabled,value:e.value,checked:-1!==v.indexOf(e.value),onChange:e.onChange,className:"".concat(C,"-item"),style:e.style},e.label)})));var N={toggleOption:function(e){var t=v.indexOf(e.value),n=pn(v);-1===t?n.push(e.value):n.splice(t,1),"value"in s||m(n);var r=w();null==c||c(n.filter((function(e){return-1!==b.indexOf(e)})).sort((function(e,t){return r.findIndex((function(t){return t.value===e}))-r.findIndex((function(e){return e.value===t}))})))},value:v,disabled:s.disabled,name:s.name,registerValue:function(e){y((function(t){return[].concat(pn(t),[e])}))},cancelValue:function(e){y((function(t){return t.filter((function(t){return t!==e}))}))}},O=uC()(C,Ja({},"".concat(C,"-rtl"),"rtl"===h),l);return tc.createElement("div",aC({className:O,style:u},_,{ref:t}),tc.createElement(gCe.Provider,{value:N},r))},yCe=tc.forwardRef(bCe);const wCe=tc.memo(yCe);var kCe=function(e,t){var n,r=e.prefixCls,o=e.className,i=e.children,a=e.indeterminate,l=void 0!==a&&a,u=e.style,c=e.onMouseEnter,s=e.onMouseLeave,d=e.skipGroup,f=void 0!==d&&d,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&this.props.onSelect(this.props.data,t)}}]),t}(tc.Component);function RCe(e,t){if(Array.isArray(e[0]))return e;for(var n=Math.floor(e.length/t),r=e.length%t-1,o=[],i=0,a=0;i0}));switch(n){case"up":a>0?r=[i,a-1]:i>0&&(r=[i-1,l[i-1].length-1]);break;case"down":a0&&(r=[i-1,a])}return kt(ACe(r),"framework/uilib/src/command-menu/helper.ts:83"),r}function TCe(e,t){if(!ACe(t))return[0,0];var n=e.filter((function(e){return e.length>0})),r=cn(t,2),o=r[0],i=r[1];return o>=n.length&&(o=n.length-1),i>=n[o].length&&(i=n[o].length-1),[o,i]}function ACe(e){return Array.isArray(e)&&2===e.length&&e[0]>=0&&e[1]>=0}function jCe(e,t,n){return t=Qe(t),Xe(e,ICe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ICe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ICe=function(){return!!e})()}Object.defineProperty(DCe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onSelect:function(){}}});var BCe=[0,0],MCe=function(e){function t(){var e;return Ye(this,t),e=jCe(this,t,arguments),Object.defineProperty(Je(e),"_scrollNodeRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_eventEmitter",{enumerable:!0,configurable:!0,writable:!0,value:new ut}),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{selected:BCe,grids:[]}}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.selectEmitter;t&&(gd(this,t,"reset",(function(){e.setState({selected:BCe})})),gd(this,t,"moveDown",(function(){e._selectNextPos("down")})),gd(this,t,"moveUp",(function(){e._selectNextPos("up")})),gd(this,t,"moveLeft",(function(){e._selectNextPos("left")})),gd(this,t,"moveRight",(function(){e._selectNextPos("right")})),gd(this,t,"enter",(function(){var t=e.state,n=t.grids,r=cn(t.selected,2),o=r[0],i=r[1];e._handleSelect(n[o][i])})))}},{key:"componentWillUnmount",value:function(){this._eventEmitter.removeAllListeners()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.colNum,r=this.state.grids,o=this._renderColumns(r);return nc().createElement("div",{className:Kf("ne-ui-command-menu",t,"ne-ui-command-menu-column-".concat(n)),onMouseDown:function(e){return e.preventDefault()}},nc().createElement("div",{ref:this._scrollNodeRef,className:"ne-ui-command-menu-scrollable"},nc().createElement("div",{className:"ne-ui-command-menu-content"},o)),nc().createElement("div",{className:"ne-ui-command-menu-info"},this._renderInfo()))}},{key:"_renderInfo",value:function(){var e=this.props.colNum,t=this.state,n=t.grids,r=cn(t.selected,2),o=r[0],i=r[1],a=n[o][i],l=a.hotkey,u=a.markdown,c=a.description,s=a.disabled,d=void 0!==s&&s,f=a.remark;return d&&f?f():l&&l.text?nc().createElement(nc().Fragment,null,this._renderHotkeyInfo(l.text),e>2&&this._renderMarkdownInfo(u||["-",""])):u?this._renderMarkdownInfo(u):c||void 0}},{key:"_renderHotkeyInfo",value:function(e){var t=e.split("+");return nc().createElement("div",{className:"ne-ui-command-menu-hotkey"},gc("快捷键")+":",t.map((function(e){return nc().createElement("span",{key:e,className:"ne-ui-command-menu-hotkey-keys"},e)})))}},{key:"_renderMarkdownInfo",value:function(e){var t=cn(e,2),n=t[0],r=t[1];return nc().createElement("div",{className:"ne-ui-command-menu-md"},"Markdown:",nc().createElement("span",{className:"ne-ui-command-menu-md-keys"},n),nc().createElement("span",{className:"ne-ui-command-menu-md-trigger"},r))}},{key:"_selectNextPos",value:function(e){var t=this.state,n=t.grids,r=t.selected,o=SCe(n,r,e);PCe(o,r)||(this._scrollTo(o),this.setState({selected:o}))}},{key:"_renderColumns",value:function(e){var t=this;return e.map((function(e,n){return nc().createElement("div",{className:"ne-ui-command-menu-column",key:"column-".concat(n)},t._renderItems(e,n))}))}},{key:"_renderItems",value:function(e,t){var n=this,r=this.state.selected;return e.map((function(e,o){return nc().createElement(DCe,{className:Kf("ne-ui-command-menu-item",PCe(r,[t,o])?"ne-ui-selected":""),"data-testid":"command-item-".concat(e.name),data:e,eventEmitter:n._eventEmitter,key:"".concat(e.name,"-").concat(o),onMouseMove:function(){return n._handleMouseMove(t,o)},onSelect:n.props.onSelect})}))}},{key:"_handleMouseMove",value:function(e,t){var n=this.state.selected;e===n[0]&&t===n[1]||this.setState({selected:[e,t]})}},{key:"_handleSelect",value:function(e){e.disabled||this._eventEmitter.emit("selected",e)}},{key:"_scrollTo",value:function(e){var t=this._scrollNodeRef.current;if(t){var n=e[1];t.scrollTop=Math.max(34*n+15-83,0)}}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.commands,r=e.colNum,o=t.selected,i=RCe(n,r);return{grids:i,selected:TCe(i,o)}}}]),t}(tc.Component);Object.defineProperty(MCe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onSelect:function(){},colNum:4}});const FCe=nO,LCe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var UCe={lang:aC({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"]},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"}),timePickerLocale:aC({},LCe)};UCe.lang.ok="确 定";const VCe=UCe;var HCe="${label}不是一个有效的${type}";const zCe={locale:"zh-cn",Pagination:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},DatePicker:VCe,TimePicker:LCe,Calendar:VCe,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:HCe,method:HCe,array:HCe,object:HCe,number:HCe,date:HCe,boolean:HCe,integer:HCe,float:HCe,regexp:HCe,email:HCe,url:HCe,hex:HCe},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"}};var WCe=new RegExp("^(".concat(uS.join("|"),")(-inverse)?$")),qCe=new RegExp("^(".concat(lS.join("|"),")$")),$Ce=function(e,t){var n,r=e.prefixCls,o=e.className,i=e.style,a=e.children,l=e.icon,u=e.color,c=e.onClose,s=e.closeIcon,d=e.closable,f=void 0!==d&&d,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function T_e(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return"function"==typeof o?o(e):n.locale.format(r.locale,e,o)}function A_e(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return e&&"function"!=typeof o[0]?n.locale.parse(r.locale,e,o):null}function j_e(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var i=function(e,n,i){for(var a=n;a<=i;){var l=void 0;switch(e){case"date":if(l=o.setDate(t,a),!r(l))return!1;break;case"month":if(!j_e({cellDate:l=o.setMonth(t,a),mode:"month",generateConfig:o,disabledDate:r}))return!1;break;case"year":if(!j_e({cellDate:l=o.setYear(t,a),mode:"year",generateConfig:o,disabledDate:r}))return!1}a+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":return i("date",1,o.getDate(o.getEndDate(t)));case"quarter":var a=3*Math.floor(o.getMonth(t)/3);return i("month",a,a+2);case"year":return i("month",0,11);case"decade":var l=o.getYear(t),u=Math.floor(l/y_e)*y_e;return i("year",u,u+y_e-1)}}const I_e=function(e){if(tc.useContext(t_e).hideHeader)return null;var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.format,a="".concat(t,"-header");return tc.createElement(r_e,{prefixCls:a},o?T_e(o,{locale:r,format:i,generateConfig:n}):" ")},B_e=function(e){var t=e.prefixCls,n=e.units,r=e.onSelect,o=e.value,i=e.active,a=e.hideDisabledOptions,l="".concat(t,"-cell"),u=tc.useContext(t_e).open,c=(0,tc.useRef)(null),s=(0,tc.useRef)(new Map),d=(0,tc.useRef)();return(0,tc.useLayoutEffect)((function(){var e=s.current.get(o);e&&!1!==u&&d_e(c.current,e.offsetTop,120)}),[o]),(0,tc.useLayoutEffect)((function(){if(u){var e=s.current.get(o);e&&(d.current=function(t,n){var r;return function n(){vR(t)?d_e(c.current,e.offsetTop,0):r=t_((function(){n()}))}(),function(){t_.cancel(r)}}(e))}return function(){var e;null===(e=d.current)||void 0===e||e.call(d)}}),[u]),tc.createElement("ul",{className:uC()("".concat(t,"-column"),Ja({},"".concat(t,"-column-active"),i)),ref:c,style:{position:"relative"}},n.map((function(e){var t;return a&&e.disabled?null:tc.createElement("li",{key:e.value,ref:function(t){s.current.set(e.value,t)},className:uC()(l,(t={},Ja(t,"".concat(l,"-disabled"),e.disabled),Ja(t,"".concat(l,"-selected"),o===e.value),t)),onClick:function(){e.disabled||r(e.value)}},tc.createElement("div",{className:"".concat(l,"-inner")},e.label))})))};function M_e(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length=12,x%=12);var T=cn(tc.useMemo((function(){if(!s)return[!1,!1];var e=[!0,!0];return S.forEach((function(t){var n=t.disabled,r=t.value;n||(r>=12?e[1]=!1:e[0]=!1)})),e}),[s,S]),2),A=T[0],j=T[1],I=tc.useMemo((function(){return s?S.filter(t?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":M_e(t,2);return dC(dC({},e),{},{label:n,value:t})})):S}),[s,t,S]),B=z_e(0,59,p,b&&b(O)),M=z_e(0,59,m,y&&y(O,E));function F(e,t,n,r,o){!1!==e&&C.push({node:tc.cloneElement(t,{prefixCls:N,value:n,active:i===C.length,onSelect:o,units:r,hideDisabledOptions:w}),onSelect:o,value:n,units:r})}o.current={onUpDown:function(e){var t=C[i];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),r=t.units.length,o=1;o1&&(a=t.addDate(a,-7)),a}(o.locale,n,a),h="".concat(t,"-cell"),p=n.locale.getWeekFirstDay(o.locale),v=n.getNow(),m=[],g=o.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(o.locale):[]);r&&m.push(tc.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var b=0;b<7;b+=1)m.push(tc.createElement("th",{key:b},g[(b+p)%7]));var y=K_e({cellPrefixCls:h,today:v,value:l,generateConfig:n,rangedValue:r?null:s,hoverRangedValue:r?null:d,isSameCell:function(e,t){return E_e(n,e,t)},isInView:function(e){return x_e(n,e,a)},offsetCell:function(e,t){return n.addDate(e,t)}}),w=u?function(e){return u(e,v)}:void 0;return tc.createElement(u_e,aC({},e,{rowNum:i,colNum:7,baseDate:f,getCellNode:w,getCellText:n.getDate,getCellClassName:y,getCellDate:n.addDate,titleCell:function(e){return T_e(e,{locale:o,format:"YYYY-MM-DD",generateConfig:n})},headerCells:m}))},G_e=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,i=e.onNextMonth,a=e.onPrevMonth,l=e.onNextYear,u=e.onPrevYear,c=e.onYearClick,s=e.onMonthClick;if(tc.useContext(t_e).hideHeader)return null;var d="".concat(t,"-header"),f=r.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(r.locale):[]),h=n.getMonth(o),p=tc.createElement("button",{type:"button",key:"year",onClick:c,tabIndex:-1,className:"".concat(t,"-year-btn")},T_e(o,{locale:r,format:r.yearFormat,generateConfig:n})),v=tc.createElement("button",{type:"button",key:"month",onClick:s,tabIndex:-1,className:"".concat(t,"-month-btn")},r.monthFormat?T_e(o,{locale:r,format:r.monthFormat,generateConfig:n}):f[h]),m=r.monthBeforeYear?[v,p]:[p,v];return tc.createElement(r_e,aC({},e,{prefixCls:d,onSuperPrev:u,onPrev:a,onNext:i,onSuperNext:l}),m)},J_e=function(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,o=e.keyboardConfig,i=e.active,a=e.operationRef,l=e.generateConfig,u=e.value,c=e.viewDate,s=e.onViewDateChange,d=e.onPanelChange,f=e.onSelect,h="".concat(t,"-").concat(r,"-panel");a.current={onKeyDown:function(e){return f_e(e,dC({onLeftRight:function(e){f(l.addDate(u||c,e),"key")},onCtrlLeftRight:function(e){f(l.addYear(u||c,e),"key")},onUpDown:function(e){f(l.addDate(u||c,7*e),"key")},onPageUpDown:function(e){f(l.addMonth(u||c,e),"key")}},o))}};var p=function(e){var t=l.addYear(c,e);s(t),d(null,t)},v=function(e){var t=l.addMonth(c,e);s(t),d(null,t)};return tc.createElement("div",{className:uC()(h,Ja({},"".concat(h,"-active"),i))},tc.createElement(G_e,aC({},e,{prefixCls:t,value:u,viewDate:c,onPrevYear:function(){p(-1)},onNextYear:function(){p(1)},onPrevMonth:function(){v(-1)},onNextMonth:function(){v(1)},onMonthClick:function(){d("month",c)},onYearClick:function(){d("year",c)}})),tc.createElement(Y_e,aC({},e,{onSelect:function(e){return f(e,"mouse")},prefixCls:t,value:u,viewDate:c,rowCount:6})))};var X_e=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2])&&(ne(e),_&&_(e),W&&W(e,t),!N||R_e(l,e,te)||(null==f?void 0:f(e))||N(e))},ge=function(e){return Q.current&&Q.current.onKeyDown?([eT.LEFT,eT.RIGHT,eT.UP,eT.DOWN,eT.PAGE_UP,eT.PAGE_DOWN,eT.ENTER].includes(e.which)&&e.preventDefault(),Q.current.onKeyDown(e)):(cN(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)};H&&"right"!==G&&(H.current={onKeyDown:ge,onClose:function(){Q.current&&Q.current.onClose&&Q.current.onClose()}}),tc.useEffect((function(){u&&!Z.current&&ae(u)}),[u]),tc.useEffect((function(){Z.current=!1}),[]);var be,ye,we,ke=dC(dC({},e),{},{operationRef:Q,prefixCls:r,viewDate:ie,value:te,onViewDateChange:le,sourceMode:pe,onPanelChange:function(e,t){var n=ue(e||se);ve(se),de(n),O&&(se!==n||R_e(l,ie,ie))&&O(t,n)},disabledDate:f});switch(delete ke.onChange,delete ke.onSelect,se){case"decade":fe=tc.createElement(k_e,aC({},ke,{onSelect:function(e,t){le(e),me(e,t)}}));break;case"year":fe=tc.createElement(cNe,aC({},ke,{onSelect:function(e,t){le(e),me(e,t)}}));break;case"month":fe=tc.createElement(nNe,aC({},ke,{onSelect:function(e,t){le(e),me(e,t)}}));break;case"quarter":fe=tc.createElement(iNe,aC({},ke,{onSelect:function(e,t){le(e),me(e,t)}}));break;case"week":fe=tc.createElement(Z_e,aC({},ke,{onSelect:function(e,t){le(e),me(e,t)}}));break;case"time":delete ke.showTime,fe=tc.createElement(q_e,aC({},ke,"object"===We(y)?y:null,{onSelect:function(e,t){le(e),me(e,t)}}));break;default:fe=y?tc.createElement(Q_e,aC({},ke,{onSelect:function(e,t){le(e),me(e,t)}})):tc.createElement(J_e,aC({},ke,{onSelect:function(e,t){le(e),me(e,t)}}))}if(q||(be=sNe(r,se,k),ye=dNe({prefixCls:r,components:R,needConfirmButton:M,okDisabled:!te||f&&f(te),locale:a,showNow:b,onNow:M&&function(){var e=l.getNow(),t=function(e,t,n,r,o,i){var a=Math.floor(e/r)*r;if(a1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(u.current),t?l(e):u.current=requestAnimationFrame((function(){l(e)}))}var s=cn(gNe(a,{formatList:n,generateConfig:r,locale:o}),2)[1];function d(){c(null,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}return(0,tc.useEffect)((function(){d(!0)}),[e]),(0,tc.useEffect)((function(){return function(){return cancelAnimationFrame(u.current)}}),[]),[s,function(e){c(e)},d]}function yNe(e){var t,n=e.prefixCls,r=void 0===n?"rc-picker":n,o=e.id,i=e.tabIndex,a=e.style,l=e.className,u=e.dropdownClassName,c=e.dropdownAlign,s=e.popupStyle,d=e.transitionName,f=e.generateConfig,h=e.locale,p=e.inputReadOnly,v=e.allowClear,m=e.autoFocus,g=e.showTime,b=e.picker,y=void 0===b?"date":b,w=e.format,k=e.use12Hours,C=e.value,_=e.defaultValue,N=e.open,O=e.defaultOpen,x=e.defaultOpenValue,E=e.suffixIcon,D=e.clearIcon,R=e.disabled,P=e.disabledDate,S=e.placeholder,T=e.getPopupContainer,A=e.pickerRef,j=e.panelRender,I=e.onChange,B=e.onOpenChange,M=e.onFocus,F=e.onBlur,L=e.onMouseDown,U=e.onMouseUp,V=e.onMouseEnter,H=e.onMouseLeave,z=e.onContextMenu,W=e.onClick,q=e.onKeyDown,$=e.onSelect,K=e.direction,Y=e.autoComplete,G=void 0===Y?"off":Y,J=tc.useRef(null),X="date"===y&&!!g||"time"===y,Q=F_e(h_e(w,y,g,k)),Z=tc.useRef(null),ee=tc.useRef(null),te=tc.useRef(null),ne=cn(nS(null,{value:C,defaultValue:_}),2),re=ne[0],oe=ne[1],ie=cn(tc.useState(re),2),ae=ie[0],le=ie[1],ue=tc.useRef(null),ce=cn(nS(!1,{value:N,defaultValue:O,postState:function(e){return!R&&e},onChange:function(e){B&&B(e),!e&&ue.current&&ue.current.onClose&&ue.current.onClose()}}),2),se=ce[0],de=ce[1],fe=cn(gNe(ae,{formatList:Q,generateConfig:f,locale:h}),2),he=fe[0],pe=fe[1],ve=cn(mNe({valueTexts:he,onTextChange:function(e){var t=A_e(e,{locale:h,formatList:Q,generateConfig:f});!t||P&&P(t)||le(t)}}),3),me=ve[0],ge=ve[1],be=ve[2],ye=function(e){le(e),oe(e),I&&!R_e(f,re,e)&&I(e,e?T_e(e,{generateConfig:f,locale:h,format:Q[0]}):"")},we=function(e){R&&e||de(e)},ke=vNe({blurToCancel:X,open:se,value:me,triggerOpen:we,forwardKeyDown:function(e){return se&&ue.current&&ue.current.onKeyDown?ue.current.onKeyDown(e):(cN(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(e){return!b_e([Z.current,ee.current,te.current],e)},onSubmit:function(){return!(!ae||P&&P(ae)||(ye(ae),we(!1),be(),0))},onCancel:function(){we(!1),le(re),be()},onKeyDown:function(e,t){null==q||q(e,t)},onFocus:M,onBlur:F}),Ce=cn(ke,2),_e=Ce[0],Ne=Ce[1],Oe=Ne.focused,xe=Ne.typing;tc.useEffect((function(){se||(le(re),he.length&&""!==he[0]?pe!==me&&be():ge(""))}),[se,he]),tc.useEffect((function(){se||be()}),[y]),tc.useEffect((function(){le(re)}),[re]),A&&(A.current={focus:function(){J.current&&J.current.focus()},blur:function(){J.current&&J.current.blur()}});var Ee=cn(bNe(me,{formatList:Q,generateConfig:f,locale:h}),3),De=Ee[0],Re=Ee[1],Pe=Ee[2],Se=dC(dC({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Te=tc.createElement(fNe,aC({},Se,{generateConfig:f,className:uC()(Ja({},"".concat(r,"-panel-focused"),!xe)),value:ae,locale:h,tabIndex:-1,onSelect:function(e){null==$||$(e),le(e)},direction:K,onPanelChange:function(t,n){var r=e.onPanelChange;Pe(!0),null==r||r(t,n)}}));j&&(Te=j(Te));var Ae,je,Ie=tc.createElement("div",{className:"".concat(r,"-panel-container"),onMouseDown:function(e){e.preventDefault()}},Te);E&&(Ae=tc.createElement("span",{className:"".concat(r,"-suffix")},E)),v&&re&&!R&&(je=tc.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),ye(null),we(!1)},className:"".concat(r,"-clear"),role:"button"},D||tc.createElement("span",{className:"".concat(r,"-clear-btn")})));var Be="rtl"===K?"bottomRight":"bottomLeft";return tc.createElement(t_e.Provider,{value:{operationRef:ue,hideHeader:"time"===y,panelRef:Z,onSelect:function(e,t){("submit"===t||"key"!==t&&!X)&&(ye(e),we(!1))},open:se,defaultOpenValue:x,onDateMouseEnter:Re,onDateMouseLeave:Pe}},tc.createElement(pNe,{visible:se,popupElement:Ie,popupStyle:s,prefixCls:r,dropdownClassName:u,dropdownAlign:c,getPopupContainer:T,transitionName:d,popupPlacement:Be,direction:K},tc.createElement("div",{ref:te,className:uC()(r,l,(t={},Ja(t,"".concat(r,"-disabled"),R),Ja(t,"".concat(r,"-focused"),Oe),Ja(t,"".concat(r,"-rtl"),"rtl"===K),t)),style:a,onMouseDown:L,onMouseUp:function(){U&&U.apply(void 0,arguments),J.current&&(J.current.focus(),we(!0))},onMouseEnter:V,onMouseLeave:H,onContextMenu:z,onClick:W},tc.createElement("div",{className:uC()("".concat(r,"-input"),Ja({},"".concat(r,"-input-placeholder"),!!De)),ref:ee},tc.createElement("input",aC({id:o,tabIndex:i,disabled:R,readOnly:p||"function"==typeof Q[0]||!xe,value:De||me,onChange:function(e){ge(e.target.value)},autoFocus:m,placeholder:S,ref:J,title:me},_e,{size:p_e(y,Q[0],f)},L_e(e),{autoComplete:G})),Ae,je))))}var wNe=function(e){et(n,e);var t=fC(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),i=0;ih(s);case"month":return f(e)>f(s);case"week":return d(e)>d(s);default:return!E_e(u,e,s)&&u.isAfter(e,s)}return!1}),[a,l[1],s,t]),tc.useCallback((function(e){if(a&&a(e))return!0;if(l[0]&&c)return!E_e(u,e,s)&&u.isAfter(c,e);if(n&&c)switch(r){case"quarter":return h(e)0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;Le&&bt&&bt[0]&&bt[1]&&p.isAfter(bt[1],bt[0])&&(r=bt);var o=C;if(C&&"object"===We(C)&&C.defaultValue){var a=C.defaultValue;o=dC(dC({},C),{},{defaultValue:U_e(a,ge)||void 0})}var l=null;return A&&(l=function(e,t){return A(e,t,{range:ge?"end":"start"})}),tc.createElement($_e.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:vt||Re,hoverRangedValue:r}},tc.createElement(fNe,aC({},e,n,{dateRender:l,showTime:o,mode:Te[ge],generateConfig:p,style:void 0,direction:ne,disabledDate:0===ge?Be:Me,disabledTime:function(e){return!!T&&T(e,0===ge?"start":"end")},className:uC()(Ja({},"".concat(i,"-panel-focused"),0===ge?!jt:!Ut)),value:U_e(Re,ge),locale:v,tabIndex:-1,onPanelChange:function(e,n){var r,o;0===ge&&_t(!0),1===ge&&Et(!0),r=V_e(Te,n,ge),o=V_e(Re,e,ge),Ae(r),$&&$(o,r);var i=e;"right"===t&&Te[ge]===n&&(i=S_e(i,n,p,-1)),xe(i,ge)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:U_e(Re,0===ge?1:0)})))}var qt=0,$t=0;ge&&se.current&&fe.current&&ce.current&&(qt=se.current.offsetWidth+fe.current.offsetWidth,ce.current.offsetWidth&&qt>ce.current.offsetWidth&&($t=qt));var Kt,Yt,Gt="rtl"===ne?{right:qt}:{left:qt},Jt=tc.createElement("div",{className:uC()("".concat(i,"-range-wrapper"),"".concat(i,"-").concat(k,"-range-wrapper")),style:{minWidth:qe}},tc.createElement("div",{className:"".concat(i,"-range-arrow"),style:Gt}),function(){var e,t=sNe(i,Te[ge],z),n=dNe({prefixCls:i,components:ee,needConfirmButton:ae,okDisabled:!U_e(Re,ge)||S&&S(Re[ge]),locale:v,rangeList:zt,onOk:function(){U_e(Re,ge)&&(Je(Re,ge),Q&&Q(Re))}});if("time"===k||C)e=Wt();else{var r=Oe(ge),o=S_e(r,k,p),a=Te[ge]===k,l=Wt(!!a&&"left",{pickerValue:r,onPickerValueChange:function(e){xe(e,ge)}}),u=Wt("right",{pickerValue:o,onPickerValueChange:function(e){xe(S_e(e,k,p,-1),ge)}});e="rtl"===ne?tc.createElement(tc.Fragment,null,u,a&&l):tc.createElement(tc.Fragment,null,l,a&&u)}var c=tc.createElement(tc.Fragment,null,tc.createElement("div",{className:"".concat(i,"-panels")},e),(t||n)&&tc.createElement("div",{className:"".concat(i,"-footer")},t,n));return j&&(c=j(c)),tc.createElement("div",{className:"".concat(i,"-panel-container"),style:{marginLeft:$t},ref:ce,onMouseDown:function(e){e.preventDefault()}},c)}());F&&(Kt=tc.createElement("span",{className:"".concat(i,"-suffix")},F)),M&&(U_e(Ce,0)&&!we[0]||U_e(Ce,1)&&!we[1])&&(Yt=tc.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=Ce;we[0]||(t=V_e(t,null,0)),we[1]||(t=V_e(t,null,1)),Je(t,null),Ye(!1,ge)},className:"".concat(i,"-clear")},L||tc.createElement("span",{className:"".concat(i,"-clear-btn")})));var Xt={size:p_e(k,ve[0],p)},Qt=0,Zt=0;se.current&&de.current&&fe.current&&(0===ge?Zt=se.current.offsetWidth:(Qt=qt,Zt=de.current.offsetWidth));var en="rtl"===ne?{right:Qt}:{left:Qt};return tc.createElement(t_e.Provider,{value:{operationRef:ye,hideHeader:"time"===k,onDateMouseEnter:function(e){yt(V_e(Re,e,ge)),0===ge?Ct(e):xt(e)},onDateMouseLeave:function(){yt(V_e(Re,null,ge)),0===ge?_t():Et()},hideRanges:!0,onSelect:function(e,t){var n=V_e(Re,e,ge);"submit"===t||"key"!==t&&!ae?(Je(n,ge),0===ge?_t():Et()):Pe(n)},open:Le}},tc.createElement(pNe,{visible:Le,popupElement:Jt,popupStyle:c,prefixCls:i,dropdownClassName:s,dropdownAlign:f,getPopupContainer:h,transitionName:d,range:!0,direction:ne},tc.createElement("div",aC({ref:ue,className:uC()(i,"".concat(i,"-range"),u,(t={},Ja(t,"".concat(i,"-disabled"),we[0]&&we[1]),Ja(t,"".concat(i,"-focused"),0===ge?At:Lt),Ja(t,"".concat(i,"-rtl"),"rtl"===ne),t)),style:l,onClick:function(e){Le||he.current.contains(e.target)||pe.current.contains(e.target)||(we[0]?we[1]||Ge(1):Ge(0))},onMouseEnter:J,onMouseLeave:X,onMouseDown:function(e){!Le||!At&&!Lt||he.current.contains(e.target)||pe.current.contains(e.target)||e.preventDefault()}},L_e(e)),tc.createElement("div",{className:uC()("".concat(i,"-input"),(n={},Ja(n,"".concat(i,"-input-active"),0===ge),Ja(n,"".concat(i,"-input-placeholder"),!!kt),n)),ref:se},tc.createElement("input",aC({id:a,disabled:we[0],readOnly:V||"function"==typeof ve[0]||!jt,value:kt||lt,onChange:function(e){ut(e.target.value)},autoFocus:g,placeholder:U_e(m,0)||"",ref:he},St,Xt,{autoComplete:ie}))),tc.createElement("div",{className:"".concat(i,"-range-separator"),ref:fe},O),tc.createElement("div",{className:uC()("".concat(i,"-input"),(r={},Ja(r,"".concat(i,"-input-active"),1===ge),Ja(r,"".concat(i,"-input-placeholder"),!!Ot),r)),ref:de},tc.createElement("input",aC({disabled:we[1],readOnly:V||"function"==typeof ve[0]||!Ut,value:Ot||dt,onChange:function(e){ft(e.target.value)},placeholder:U_e(m,1)||"",ref:pe},Mt,Xt,{autoComplete:ie}))),tc.createElement("div",{className:"".concat(i,"-active-bar"),style:dC(dC({},en),{},{width:Zt,position:"absolute"})}),Kt,Yt)))}var xNe=function(e){et(n,e);var t=fC(n);function n(){var e;Ye(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0?"-".concat(c):c,g=!!d,b=uC()(v,"".concat(v,"-").concat(l),(Ja(n={},"".concat(v,"-with-text"),g),Ja(n,"".concat(v,"-with-text").concat(m),g),Ja(n,"".concat(v,"-dashed"),!!f),Ja(n,"".concat(v,"-plain"),!!h),Ja(n,"".concat(v,"-rtl"),"rtl"===o),n),s);return tc.createElement("div",aC({className:b},p,{role:"separator"}),d&&tc.createElement("span",{className:"".concat(v,"-inner-text")},d))}))},VNe=function(e){var t=e.actions;return nc().createElement("div",{className:"ne-embed-nav","data-testid":"ne-embed-nav",onMouseDown:function(e){e.preventDefault()}},nc().createElement("div",{className:"start-nav"},e.children),nc().createElement("div",{className:"end-nav"},t.map((function(e,t){return e&&[t>0&&nc().createElement(UNe,{key:t,type:"vertical",className:"ne-embed-nav-divider"}),e]}))))};function HNe(e,t,n){return t=Qe(t),Xe(e,zNe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function zNe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zNe=function(){return!!e})()}var WNe=function(e){function t(){var e;return Ye(this,t),e=HNe(this,t,arguments),Object.defineProperty(Je(e),"handleCopyMessage",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.message,n=JSON.stringify(t,null," ");n&&(vs(n)?LE.success(gc("复制成功")):LE.error(gc("复制失败")))}}),Object.defineProperty(Je(e),"renderCardIcon",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardIcon;return t?nc().createElement("div",{className:"ne-error-tips-card-icon"},t):null}}),Object.defineProperty(Je(e),"renderContent",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.children;return nc().createElement("div",{className:"ne-error-tips-content"},t)}}),Object.defineProperty(Je(e),"renderOperation",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.props.message?nc().createElement("div",{className:"ne-error-tips-operation"},nc().createElement("span",{className:"ne-error-tips-operation-slash"},"|"),nc().createElement(yS,{title:gc("复制错误信息")},nc().createElement("span",{className:"ne-error-tips-operation-icon",onClick:e.handleCopyMessage},nc().createElement(tD,{type:"exclamation",size:16})))):null}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){var e={width:this.props.block?"100%":"auto"};return nc().createElement("div",{className:"ne-error-tips",style:e},nc().createElement("div",{className:"ne-error-tips-wrap"},this.renderCardIcon(),this.renderContent(),this.renderOperation()))}}]),t}(tc.Component),qNe=tc.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),$Ne=tc.createContext({updateItemErrors:function(){}}),KNe=tc.createContext({prefixCls:""});function YNe(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function GNe(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function JNe(e,t){if(e.clientHeightt||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0}var QNe=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!YNe(e))throw new TypeError("Invalid target");for(var c,s,d=document.scrollingElement||document.documentElement,f=[],h=e;YNe(h)&&u(h);){if((h=null==(s=(c=h).parentElement)?c.getRootNode().host||null:s)===d){f.push(h);break}null!=h&&h===document.body&&JNe(h)&&!JNe(document.documentElement)||null!=h&&JNe(h,l)&&f.push(h)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,w=b.width,k=b.top,C=b.right,_=b.bottom,N=b.left,O="start"===o||"nearest"===o?k:"end"===o?_:k+y/2,x="center"===i?N+w/2:"end"===i?C:N,E=[],D=0;D=0&&N>=0&&_<=v&&C<=p&&k>=A&&_<=I&&N>=B&&C<=j)return E;var M=getComputedStyle(R),F=parseInt(M.borderLeftWidth,10),L=parseInt(M.borderTopWidth,10),U=parseInt(M.borderRightWidth,10),V=parseInt(M.borderBottomWidth,10),H=0,z=0,W="offsetWidth"in R?R.offsetWidth-R.clientWidth-F-U:0,q="offsetHeight"in R?R.offsetHeight-R.clientHeight-L-V:0,$="offsetWidth"in R?0===R.offsetWidth?0:T/R.offsetWidth:0,K="offsetHeight"in R?0===R.offsetHeight?0:S/R.offsetHeight:0;if(d===R)H="start"===o?O:"end"===o?O-v:"nearest"===o?XNe(g,g+v,v,L,V,g+O,g+O+y,y):O-v/2,z="start"===i?x:"center"===i?x-p/2:"end"===i?x-p:XNe(m,m+p,p,F,U,m+x,m+x+w,w),H=Math.max(0,H+g),z=Math.max(0,z+m);else{H="start"===o?O-A-L:"end"===o?O-I+V+q:"nearest"===o?XNe(A,I,S,L,V+q,O,O+y,y):O-(A+S/2)+q/2,z="start"===i?x-B-F:"center"===i?x-(B+T/2)+W/2:"end"===i?x-j+U+W:XNe(B,j,T,F,U+W,x,x+w,w);var Y=R.scrollLeft,G=R.scrollTop;O+=G-(H=Math.max(0,Math.min(G+H/K,R.scrollHeight-S/K+q))),x+=Y-(z=Math.max(0,Math.min(Y+z/$,R.scrollWidth-T/$+W)))}E.push({el:R,top:H,left:z})}return E};function ZNe(e){return e===Object(e)&&0!==Object.keys(e).length}function eOe(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function tOe(e,t){if(e.length){var n=e.join("_");return t?"".concat(t,"_").concat(n):n}}function nOe(e){return eOe(e).join("_")}function rOe(e){var t=cn(Nx(),1)[0],n=tc.useRef({}),r=tc.useMemo((function(){return e||aC(aC({},t),{__INTERNAL__:{itemRef:function(e){return function(t){var r=nOe(e);t?n.current[r]=t:delete n.current[r]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=tOe(eOe(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(ZNe(t)&&"function"==typeof t.behavior)return t.behavior(n?QNe(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:ZNe(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))})(QNe(e,r),r.behavior)}}(o,aC({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=nOe(e);return n.current[t]}})}),[e,t]);return[r]}var oOe=function(e,t){var n,r=tc.useContext(Lx),o=tc.useContext(fO),i=o.getPrefixCls,a=o.direction,l=o.form,u=e.prefixCls,c=e.className,s=void 0===c?"":c,d=e.size,f=void 0===d?r:d,h=e.form,p=e.colon,v=e.labelAlign,m=e.labelCol,g=e.wrapperCol,b=e.hideRequiredMark,y=e.layout,w=void 0===y?"horizontal":y,k=e.scrollToFirstError,C=e.requiredMark,_=e.onFinishFailed,N=e.name,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=1},subscribe:function(e){return cOe.size||this.register(),sOe+=1,cOe.set(sOe,e),e(dOe),sOe},unsubscribe:function(e){cOe.delete(e),cOe.size||this.unregister()},unregister:function(){var e=this;Object.keys(uOe).forEach((function(t){var n=uOe[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),cOe.clear()},register:function(){var e=this;Object.keys(uOe).forEach((function(t){var n=uOe[t],r=function(n){var r=n.matches;e.dispatch(aC(aC({},dOe),Ja({},t,r)))},o=window.matchMedia(n);o.addListener(r),e.matchHandlers[n]={mql:o,listener:r},r(o)}))}};const hOe=fOe;var pOe,vOe=function(){return TC()&&window.document.documentElement};var mOe=(PP("top","middle","bottom","stretch"),PP("start","end","center","space-around","space-between"),tc.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.justify,i=e.align,a=e.className,l=e.style,u=e.children,c=e.gutter,s=void 0===c?0:c,d=e.wrap,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?_[0]/-2:void 0,E=_[1]>0?_[1]/-2:void 0;if(x&&(O.marginLeft=x,O.marginRight=x),y){var D=cn(_,2);O.rowGap=D[1]}else E&&(O.marginTop=E,O.marginBottom=E);var R=tc.useMemo((function(){return{gutter:_,wrap:d,supportFlexGap:y}}),[_,d,y]);return tc.createElement(aOe.Provider,{value:R},tc.createElement("div",aC({},f,{className:N,style:aC(aC({},O),l),ref:t}),u))})));mOe.displayName="Row";const gOe=mOe,bOe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var yOe=function(e,t){return tc.createElement(FN,dC(dC({},e),{},{ref:t,icon:bOe}))};yOe.displayName="QuestionCircleOutlined";const wOe=tc.forwardRef(yOe);var kOe=["xs","sm","md","lg","xl","xxl"],COe=tc.forwardRef((function(e,t){var n,r=tc.useContext(fO),o=r.getPrefixCls,i=r.direction,a=tc.useContext(aOe),l=a.gutter,u=a.wrap,c=a.supportFlexGap,s=e.prefixCls,d=e.span,f=e.order,h=e.offset,p=e.push,v=e.pull,m=e.className,g=e.children,b=e.flex,y=e.style,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var O=l[0]/2;N.paddingLeft=O,N.paddingRight=O}if(l&&l[1]>0&&!c){var x=l[1]/2;N.paddingTop=x,N.paddingBottom=x}return b&&(N.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(b),"auto"!==b||!1!==u||N.minWidth||(N.minWidth=0)),tc.createElement("div",aC({},w,{style:aC(aC({},N),y),className:_,ref:t}),g)}));COe.displayName="Col";const _Oe=COe;const NOe=function(e){var t,n,r,o,i=e.prefixCls,a=e.label,l=e.htmlFor,u=e.labelCol,c=e.labelAlign,s=e.colon,d=e.required,f=e.requiredMark,h=e.tooltip,p=(t="Form",r=tc.useContext(oO),o=tc.useMemo((function(){var e=rO.Form,n=t&&r?r[t]:{};return aC(aC({},"function"==typeof e?e():e),n||{})}),[t,n,r]),[o]),v=cn(p,1)[0];return a?tc.createElement(qNe.Consumer,{key:"label"},(function(e){var t,n,r=e.vertical,o=e.labelAlign,p=e.labelCol,m=e.colon,g=u||p||{},b=c||o,y="".concat(i,"-item-label"),w=uC()(y,"left"===b&&"".concat(y,"-left"),g.className),k=a,C=!0===s||!1!==m&&!1!==s;C&&!r&&"string"==typeof a&&""!==a.trim()&&(k=a.replace(/[:|:]\s*$/,""));var _=function(e){return e?"object"!==We(e)||tc.isValidElement(e)?{title:e}:e:null}(h);if(_){var N=_.icon,O=void 0===N?tc.createElement(wOe,null):N,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:{};return n!==e&&delete r[n],Yr()(r[e],t)?r:aC(aC({},r),Ja({},e,t))}))},W=(U=tc.useContext(qNe).itemRef,V=tc.useRef({}),function(e,t){var n=t&&"object"===We(t)&&t.ref,r=e.join("_");return V.current.name===r&&V.current.originRef===n||(V.current.name=r,V.current.originRef=n,V.current.ref=gC(U(e),n)),V.current.ref});function q(t,n,o,i){var u,d;if(r&&!w)return t;var h,p=[];Object.keys(A).forEach((function(e){p=[].concat(pn(p),pn(A[e]||[]))})),null!=s?h=eOe(s):(h=o?o.errors:[],h=[].concat(pn(h),pn(p)));var v="";void 0!==f?v=f:(null==o?void 0:o.validating)?v="validating":(null===(d=null==o?void 0:o.errors)||void 0===d?void 0:d.length)||p.length?v="error":(null==o?void 0:o.touched)&&(v="success");var m=(Ja(u={},"".concat(H,"-item"),!0),Ja(u,"".concat(H,"-item-with-help"),R||!!s),Ja(u,"".concat(l),!!l),Ja(u,"".concat(H,"-item-has-feedback"),v&&c),Ja(u,"".concat(H,"-item-has-success"),"success"===v),Ja(u,"".concat(H,"-item-has-warning"),"warning"===v),Ja(u,"".concat(H,"-item-has-error"),"error"===v),Ja(u,"".concat(H,"-item-is-validating"),"validating"===v),Ja(u,"".concat(H,"-item-hidden"),w),u);return tc.createElement(gOe,aC({className:uC()(m),style:a,key:"row"},wP(k,["colon","extra","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","labelAlign","labelCol","normalize","preserve","tooltip","validateFirst","valuePropName","wrapperCol","_internalItemRender"])),tc.createElement(NOe,aC({htmlFor:n,required:i,requiredMark:x},e,{prefixCls:H})),tc.createElement(ROe,aC({},e,o,{errors:h,prefixCls:H,status:v,onDomErrorVisibleChange:M,validateStatus:v}),tc.createElement($Ne.Provider,{value:{updateItemErrors:z}},t)))}var $="function"==typeof h,K=(0,tc.useRef)(0);if(K.current+=1,!F&&!$&&!o)return q(h);var Y={};return"string"==typeof v&&(Y.label=v),m&&(Y=aC(aC({},Y),m)),tc.createElement(gx,aC({},e,{messageVariables:Y,trigger:b,validateTrigger:B,onReset:function(){M(!1)}}),(function(i,a,l){var c=a.errors,s=eOe(t).length&&a?a.name:[],f=tOe(s,O);if(r){var v=L.current.join(POe);if(L.current=pn(s),n){var m=Array.isArray(n)?n:[n];L.current=[].concat(pn(s.slice(0,-1)),pn(m))}E(L.current.join(POe),c,v)}var g=void 0!==p?p:!(!d||!d.some((function(e){if(e&&"object"===We(e)&&e.required)return!0;if("function"==typeof e){var t=e(l);return t&&t.required}return!1}))),y=aC({},i),w=null;if(Sx(!(u&&o),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(h)&&F)Sx(!1,"Form.Item","`children` is array of render props cannot have `name`."),w=h;else if($&&(!u&&!o||F))Sx(!(!u&&!o),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Sx(!F,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(!o||$||F)if(xP(h)){Sx(void 0===h.props.defaultValue,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var k=aC(aC({},h.props),y);k.id||(k.id=f),bC(h)&&(k.ref=W(s,h)),new Set([].concat(pn(eOe(b)),pn(eOe(B)))).forEach((function(e){k[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),u=0;u1&&void 0!==arguments[1]?arguments[1]:{},n=yN(e,t);n&&mN(t).removeChild(n)}(t),{width:f,height:h}}()),WOe.width)}const KOe=function(e){if(!e)return{};var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).element,n=void 0===t?document.body:t,r={},o=Object.keys(e);return o.forEach((function(e){r[e]=n.style[e]})),o.forEach((function(t){n.style[t]=e[t]})),r};var YOe={};const GOe=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return KOe(YOe),YOe={},void(document.body.className=r.replace(n,"").trim())}var o=$Oe();if(o&&(YOe=KOe({position:"relative",width:"calc(100% - ".concat(o,"px)")}),!n.test(r))){var i="".concat(r," ").concat(t);document.body.className=i.trim()}}};var JOe=0,XOe=[],QOe="ant-scrolling-effect",ZOe=new RegExp("".concat(QOe),"g"),exe=new Map,txe=Ke((function e(t){var n=this;Ye(this,e),Ja(this,"lockTarget",void 0),Ja(this,"options",void 0),Ja(this,"getContainer",(function(){var e;return null===(e=n.options)||void 0===e?void 0:e.container})),Ja(this,"reLock",(function(e){var t=XOe.find((function(e){return e.target===n.lockTarget}));t&&n.unLock(),n.options=e,t&&(t.options=e,n.lock())})),Ja(this,"lock",(function(){var e;if(!XOe.some((function(e){return e.target===n.lockTarget})))if(XOe.some((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})))XOe=[].concat(pn(XOe),[{target:n.lockTarget,options:n.options}]);else{var t=0,r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&"hidden"!==getComputedStyle(r).overflow&&(t=$Oe());var o=r.className;if(0===XOe.filter((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})).length&&exe.set(r,KOe({width:0!==t?"calc(100% - ".concat(t,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!ZOe.test(o)){var i="".concat(o," ").concat(QOe);r.className=i.trim()}XOe=[].concat(pn(XOe),[{target:n.lockTarget,options:n.options}])}})),Ja(this,"unLock",(function(){var e,t=XOe.find((function(e){return e.target===n.lockTarget}));if(XOe=XOe.filter((function(e){return e.target!==n.lockTarget})),t&&!XOe.some((function(e){var n,r=e.options;return(null==r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)}))){var r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body,o=r.className;ZOe.test(o)&&(KOe(exe.get(r),{element:r}),exe.delete(r),r.className=r.className.replace(ZOe,"").trim())}})),this.lockTarget=JOe++,this.options=t})),nxe=0,rxe=TC(),oxe={},ixe=function(e){if(!rxe)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===We(e)&&e instanceof window.HTMLElement)return e}return document.body},axe=function(e){et(n,e);var t=fC(n);function n(e){var r;return Ye(this,n),Ja(Je(r=t.call(this,e)),"container",void 0),Ja(Je(r),"componentRef",tc.createRef()),Ja(Je(r),"rafId",void 0),Ja(Je(r),"scrollLocker",void 0),Ja(Je(r),"renderComponent",void 0),Ja(Je(r),"updateScrollLocker",(function(e){var t=(e||{}).visible,n=r.props,o=n.getContainer,i=n.visible;i&&i!==t&&rxe&&ixe(o)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:ixe(o)})})),Ja(Je(r),"updateOpenCount",(function(e){var t=e||{},n=t.visible,o=t.getContainer,i=r.props,a=i.visible,l=i.getContainer;a!==n&&rxe&&ixe(l)===document.body&&(a&&!n?nxe+=1:e&&(nxe-=1)),("function"==typeof l&&"function"==typeof o?l.toString()!==o.toString():l!==o)&&r.removeCurrentContainer()})),Ja(Je(r),"attachToParent",(function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||r.container&&!r.container.parentNode){var e=ixe(r.props.getContainer);return!!e&&(e.appendChild(r.container),!0)}return!0})),Ja(Je(r),"getContainer",(function(){return rxe?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null})),Ja(Je(r),"setWrapperClassName",(function(){var e=r.props.wrapperClassName;r.container&&e&&e!==r.container.className&&(r.container.className=e)})),Ja(Je(r),"removeCurrentContainer",(function(){var e;null===(e=r.container)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(r.container)})),Ja(Je(r),"switchScrollingEffect",(function(){1!==nxe||Object.keys(oxe).length?nxe||(KOe(oxe),oxe={},GOe(!0)):(GOe(),oxe=KOe({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))})),r.scrollLocker=new txe({container:ixe(e.getContainer)}),r}return Ke(n,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=t_((function(){e.forceUpdate()})))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;rxe&&ixe(n)===document.body&&(nxe=t&&nxe?nxe-1:nxe),this.removeCurrentContainer(),t_.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.forceRender,r=e.visible,o=null,i={getOpenCount:function(){return nxe},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(n||r||this.componentRef.current)&&(o=tc.createElement(aD,{getContainer:this.getContainer,ref:this.componentRef},t(i))),o}}]),n}(tc.Component);const lxe=axe;var uxe="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),cxe="aria-",sxe="data-";function dxe(e,t){return 0===e.indexOf(t)}function fxe(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:dC({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||dxe(n,cxe))||t.data&&dxe(n,sxe)||t.attr&&uxe.includes(n))&&(r[n]=e[n])})),r}function hxe(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName;return tc.createElement(m_,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e){var r=e.className,i=e.style;return tc.createElement("div",aC({style:dC(dC({},i),n),className:uC()("".concat(t,"-mask"),r)},o))}))}function pxe(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}var vxe=-1;function mxe(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const gxe=tc.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var bxe={width:0,height:0,overflow:"hidden",outline:"none"},yxe=tc.forwardRef((function(e,t){var n=e.closable,r=e.prefixCls,o=e.width,i=e.height,a=e.footer,l=e.title,u=e.closeIcon,c=e.style,s=e.className,d=e.visible,f=e.forceRender,h=e.bodyStyle,p=e.bodyProps,v=e.children,m=e.destroyOnClose,g=e.modalRender,b=e.motionName,y=e.ariaId,w=e.onClose,k=e.onVisibleChanged,C=e.onMouseDown,_=e.onMouseUp,N=e.mousePosition,O=(0,tc.useRef)(),x=(0,tc.useRef)(),E=(0,tc.useRef)();tc.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=O.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===x.current?O.current.focus():e||t!==O.current||x.current.focus()}}}));var D,R,P,S=cn(tc.useState(),2),T=S[0],A=S[1],j={};function I(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=mxe(o),n.top+=mxe(o,!0),n}(E.current);A(N?"".concat(N.x-e.left,"px ").concat(N.y-e.top,"px"):"")}void 0!==o&&(j.width=o),void 0!==i&&(j.height=i),T&&(j.transformOrigin=T),a&&(D=tc.createElement("div",{className:"".concat(r,"-footer")},a)),l&&(R=tc.createElement("div",{className:"".concat(r,"-header")},tc.createElement("div",{className:"".concat(r,"-title"),id:y},l))),n&&(P=tc.createElement("button",{type:"button",onClick:w,"aria-label":"Close",className:"".concat(r,"-close")},u||tc.createElement("span",{className:"".concat(r,"-close-x")})));var B=tc.createElement("div",{className:"".concat(r,"-content")},P,R,tc.createElement("div",aC({className:"".concat(r,"-body"),style:h},p),v),D);return tc.createElement(m_,{visible:d,onVisibleChanged:k,onAppearPrepare:I,onEnterPrepare:I,forceRender:f,motionName:b,removeOnLeave:m,ref:E},(function(e,t){var n=e.className,o=e.style;return tc.createElement("div",{key:"dialog-element",role:"document",ref:t,style:dC(dC(dC({},o),c),j),className:uC()(r,s,n),onMouseDown:C,onMouseUp:_},tc.createElement("div",{tabIndex:0,ref:O,style:bxe,"aria-hidden":"true"}),tc.createElement(gxe,{shouldUpdate:d||f},g?g(B):B),tc.createElement("div",{tabIndex:0,ref:x,style:bxe,"aria-hidden":"true"}))}))}));yxe.displayName="Content";const wxe=yxe;function kxe(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,a=e.keyboard,l=void 0===a||a,u=e.focusTriggerAfterClose,c=void 0===u||u,s=e.scrollLocker,d=e.title,f=e.wrapStyle,h=e.wrapClassName,p=e.wrapProps,v=e.onClose,m=e.afterClose,g=e.transitionName,b=e.animation,y=e.closable,w=void 0===y||y,k=e.mask,C=void 0===k||k,_=e.maskTransitionName,N=e.maskAnimation,O=e.maskClosable,x=void 0===O||O,E=e.maskStyle,D=e.maskProps,R=(0,tc.useRef)(),P=(0,tc.useRef)(),S=(0,tc.useRef)(),T=cn(tc.useState(i),2),A=T[0],j=T[1],I=(0,tc.useRef)();function B(e){null==v||v(e)}I.current||(I.current="rcDialogTitle".concat(vxe+=1));var M=(0,tc.useRef)(!1),F=(0,tc.useRef)(),L=null;return x&&(L=function(e){M.current?M.current=!1:P.current===e.target&&B(e)}),(0,tc.useEffect)((function(){return i&&j(!0),function(){}}),[i]),(0,tc.useEffect)((function(){return function(){clearTimeout(F.current)}}),[]),(0,tc.useEffect)((function(){return A?(null==s||s.lock(),null==s?void 0:s.unLock):function(){}}),[A,s]),tc.createElement("div",aC({className:"".concat(n,"-root")},fxe(e,{data:!0})),tc.createElement(hxe,{prefixCls:n,visible:C&&i,motionName:pxe(n,_,N),style:dC({zIndex:r},E),maskProps:D}),tc.createElement("div",aC({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===eT.ESC)return e.stopPropagation(),void B(e);i&&e.keyCode===eT.TAB&&S.current.changeActive(!e.shiftKey)},className:uC()("".concat(n,"-wrap"),h),ref:P,onClick:L,role:"dialog","aria-labelledby":d?I.current:null,style:dC(dC({zIndex:r},f),{},{display:A?null:"none"})},p),tc.createElement(wxe,aC({},e,{onMouseDown:function(){clearTimeout(F.current),M.current=!0},onMouseUp:function(){F.current=setTimeout((function(){M.current=!1}))},ref:S,closable:w,ariaId:I.current,prefixCls:n,visible:i,onClose:B,onVisibleChanged:function(e){if(e){var t;sN(P.current,document.activeElement)||(R.current=document.activeElement,null===(t=S.current)||void 0===t||t.focus())}else{if(j(!1),C&&R.current&&c){try{R.current.focus({preventScroll:!0})}catch(e){}R.current=null}A&&(null==m||m())}},motionName:pxe(n,g,b)}))))}var Cxe=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,l=cn(tc.useState(t),2),u=l[0],c=l[1];return tc.useEffect((function(){t&&c(!0)}),[t]),!1===n?tc.createElement(kxe,aC({},e,{getOpenCount:function(){return 2}})):r||!i||u?tc.createElement(lxe,{visible:t,forceRender:r,getContainer:n},(function(t){return tc.createElement(kxe,aC({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),c(!1)}},t))})):null};Cxe.displayName="Dialog";const _xe=Cxe,Nxe=function(e){var t=tc.useRef(!1),n=tc.useRef(),r=cn(tc.useState(!1),2),o=r[0],i=r[1];tc.useEffect((function(){var t;if(e.autoFocus){var r=n.current;t=setTimeout((function(){return r.focus()}))}return function(){t&&clearTimeout(t)}}),[]);var a=e.type,l=e.children,u=e.prefixCls,c=e.buttonProps;return tc.createElement(UP,aC({},MP(a),{onClick:function(){var n=e.actionFn,r=e.closeModal;if(!t.current)if(t.current=!0,n){var o;if(n.length)o=n(r),t.current=!1;else if(!(o=n()))return void r();!function(n){var r=e.closeModal;n&&n.then&&(i(!0),n.then((function(){r.apply(void 0,arguments)}),(function(e){console.error(e),i(!1),t.current=!1})))}(o)}else r()},loading:o,prefixCls:u},c,{ref:n}),l)},Oxe=function(e){var t=e.icon,n=e.onCancel,r=e.onOk,o=e.close,i=e.zIndex,a=e.afterClose,l=e.visible,u=e.keyboard,c=e.centered,s=e.getContainer,d=e.maskStyle,f=e.okText,h=e.okButtonProps,p=e.cancelText,v=e.cancelButtonProps,m=e.direction,g=e.prefixCls,b=e.rootPrefixCls,y=e.bodyStyle,w=e.closable,k=void 0!==w&&w,C=e.closeIcon,_=e.modalRender,N=e.focusTriggerAfterClose;Sx(!("string"==typeof t&&t.length>2),"Modal","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(t,"` at https://ant.design/components/icon"));var O=e.okType||"primary",x="".concat(g,"-confirm"),E=!("okCancel"in e)||e.okCancel,D=e.width||416,R=e.style||{},P=void 0===e.mask||e.mask,S=void 0!==e.maskClosable&&e.maskClosable,T=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),A=uC()(x,"".concat(x,"-").concat(e.type),Ja({},"".concat(x,"-rtl"),"rtl"===m),e.className),j=E&&tc.createElement(Nxe,{actionFn:n,closeModal:o,autoFocus:"cancel"===T,buttonProps:v,prefixCls:"".concat(b,"-btn")},p);return tc.createElement(Vxe,{prefixCls:g,className:A,wrapClassName:uC()(Ja({},"".concat(x,"-centered"),!!e.centered)),onCancel:function(){return o({triggerCancel:!0})},visible:l,title:"",footer:"",transitionName:hS(b,"zoom",e.transitionName),maskTransitionName:hS(b,"fade",e.maskTransitionName),mask:P,maskClosable:S,maskStyle:d,style:R,width:D,zIndex:i,afterClose:a,keyboard:u,centered:c,getContainer:s,closable:k,closeIcon:C,modalRender:_,focusTriggerAfterClose:N},tc.createElement("div",{className:"".concat(x,"-body-wrapper")},tc.createElement(CE,{prefixCls:b},tc.createElement("div",{className:"".concat(x,"-body"),style:y},t,void 0===e.title?null:tc.createElement("span",{className:"".concat(x,"-title")},e.title),tc.createElement("div",{className:"".concat(x,"-content")},e.content))),tc.createElement("div",{className:"".concat(x,"-btns")},j,tc.createElement(Nxe,{type:O,actionFn:r,closeModal:o,autoFocus:"ok"===T,buttonProps:h,prefixCls:"".concat(b,"-btn")},f))))};var xxe=function(e,t){var n=e.afterClose,r=e.config,o=cn(tc.useState(!0),2),i=o[0],a=o[1],l=cn(tc.useState(r),2),u=l[0],c=l[1],s=tc.useContext(fO),d=s.direction,f=s.getPrefixCls,h=f("modal"),p=f();function v(){a(!1);for(var e=arguments.length,t=new Array(e),n=0;n=n.length-1?0:e.state.selectedIndex+1,e.setState({selectedIndex:t},(function(){var t=document.querySelector(".ne-ui-link-mode-item-selected");e.scrollToItem(t)})))}}),Object.defineProperty(Je(e),"getSelected",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t,n=e.state.selectedIndex,r=null===(t=e.props.data)||void 0===t?void 0:t[n];return r?{item:r,index:n}:null}}),e}return et(t,e),Ke(t,[{key:"scrollToItem",value:function(e){if(e){var t=e.parentNode,n=t.getBoundingClientRect(),r=e.getBoundingClientRect();r.bottom>n.bottom?t.scrollTop=t.scrollTop+(r.bottom-n.bottom)+50:r.top1&&void 0!==arguments[1]&&arguments[1],i=e<0&&o.current.top||e>0&&o.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};var oEe=20;function iEe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,oEe),Math.floor(t)}var aEe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],lEe=[],uEe={overflowY:"auto",overflowAnchor:"none"};function cEe(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,u=void 0===l||l,c=e.style,s=e.data,d=e.children,f=e.itemKey,h=e.virtual,p=e.direction,v=e.scrollWidth,m=e.component,g=void 0===m?"div":m,b=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,k=e.innerProps,C=e.extraRender,_=e.styles,N=cC(e,aEe),O=!(!1===h||!i||!a),x=O&&s&&(a*s.length>i||!!v),E="rtl"===p,D=uC()(r,Ja({},"".concat(r,"-rtl"),E),o),R=s||lEe,P=(0,tc.useRef)(),S=(0,tc.useRef)(),T=cn((0,tc.useState)(0),2),A=T[0],j=T[1],I=cn((0,tc.useState)(0),2),B=I[0],M=I[1],F=cn((0,tc.useState)(!1),2),L=F[0],U=F[1],V=function(){U(!0)},H=function(){U(!1)},z=tc.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),W={getKey:z};function q(e){j((function(t){var n=function(e){var t=e;return Number.isNaN(pe.current)||(t=Math.min(t,pe.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return P.current.scrollTop=n,n}))}var $=(0,tc.useRef)({start:0,end:R.length}),K=(0,tc.useRef)(),Y=cn(function(e,t,n){var r=cn(tc.useState(e),2),o=r[0],i=r[1],a=cn(tc.useState(null),2),l=a[0],u=a[1];return tc.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=hC(e),r=n.offsetHeight;l.current.get(t)!==r&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():u.current=t_(t)}return(0,tc.useEffect)((function(){return c}),[]),[function(t,n){var r=e(t);a.current.get(r);n?(a.current.set(r,n),s()):a.current.delete(r)},s,l.current,o]}(z),J=cn(G,4),X=J[0],Q=J[1],Z=J[2],ee=J[3],te=tc.useMemo((function(){if(!O)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};var e;if(!x)return{scrollHeight:(null===(e=S.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:R.length-1,offset:void 0};for(var t,n,r,o=0,l=R.length,u=0;u=A&&void 0===t&&(t=u,n=o),f>A+i&&void 0===r&&(r=u),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(i/a)),void 0===r&&(r=R.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,R.length-1),offset:n}}),[x,O,A,R,ee,i]),ne=te.scrollHeight,re=te.start,oe=te.end,ie=te.offset;$.current.start=re,$.current.end=oe;var ae=cn(tc.useState({width:0,height:i}),2),le=ae[0],ue=ae[1],ce=(0,tc.useRef)(),se=(0,tc.useRef)(),de=tc.useMemo((function(){return iEe(le.width,v)}),[le.width,v]),fe=tc.useMemo((function(){return iEe(le.height,ne)}),[le.height,ne]),he=ne-i,pe=(0,tc.useRef)(he);pe.current=he;var ve=A<=0,me=A>=he,ge=rEe(ve,me),be=function(){return{x:E?-B:B,y:A}},ye=(0,tc.useRef)(be()),we=eS((function(){if(y){var e=be();ye.current.x===e.x&&ye.current.y===e.y||(y(e),ye.current=e)}}));function ke(e,t){var n=e;t?((0,tu.flushSync)((function(){M(n)})),we()):q(n)}var Ce=function(e){var t=e,n=v-le.width;return t=Math.max(t,0),Math.min(t,n)},_e=eS((function(e,t){t?((0,tu.flushSync)((function(){M((function(t){return Ce(t+(E?-e:e))}))})),we()):q((function(t){return t+e}))})),Ne=cn(function(e,t,n,r,o){var i=(0,tc.useRef)(0),a=(0,tc.useRef)(null),l=(0,tc.useRef)(null),u=(0,tc.useRef)(!1),c=rEe(t,n),s=(0,tc.useRef)(null),d=(0,tc.useRef)(null);return[function(t){if(e){t_.cancel(d.current),d.current=t_((function(){s.current=null}),2);var n=t.deltaX,f=t.deltaY,h=t.shiftKey,p=n,v=f;("sx"===s.current||!s.current&&h&&f&&!n)&&(p=f,v=0,s.current="sx");var m=Math.abs(p),g=Math.abs(v);null===s.current&&(s.current=r&&m>g?"x":"y"),"y"===s.current?function(e,t){t_.cancel(a.current),i.current+=t,l.current=t,c(t)||(nEe||e.preventDefault(),a.current=t_((function(){var e=u.current?10:1;o(i.current*e),i.current=0})))}(t,v):function(e,t){o(t,!0),nEe||e.preventDefault()}(t,p)}},function(t){e&&(u.current=t.detail===l.current)}]}(O,ve,me,!!v,_e),2),Oe=Ne[0],xe=Ne[1];!function(e,t,n){var r,o=(0,tc.useRef)(!1),i=(0,tc.useRef)(0),a=(0,tc.useRef)(null),l=(0,tc.useRef)(null),u=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(l.current)}),16)}},c=function(){o.current=!1,r()},s=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",u),a.current.addEventListener("touchend",c))};r=function(){a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",c))},yR((function(){return e&&t.current.addEventListener("touchstart",s),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",s),r(),clearInterval(l.current)}}),[e])}(O,P,(function(e,t){return!ge(e,t)&&(Oe({preventDefault:function(){},deltaY:e}),!0)})),yR((function(){function e(e){O&&e.preventDefault()}var t=P.current;return t.addEventListener("wheel",Oe),t.addEventListener("DOMMouseScroll",xe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Oe),t.removeEventListener("DOMMouseScroll",xe),t.removeEventListener("MozMousePixelScroll",e)}}),[O]),yR((function(){v&&M((function(e){return Ce(e)}))}),[le.width,v]);var Ee=function(){var e,t;null===(e=ce.current)||void 0===e||e.delayHidden(),null===(t=se.current)||void 0===t||t.delayHidden()},De=function(e,t,n,r,o,i,a,l){var u=tc.useRef(),c=cn(tc.useState(null),2),s=c[0],d=c[1];return yR((function(){if(s&&s.times<10){if(!e.current)return void d((function(e){return dC({},e)}));i();var l=s.targetAlign,u=s.originAlign,c=s.index,f=s.offset,h=e.current.clientHeight,p=!1,v=l,m=null;if(h){for(var g=l||u,b=0,y=0,w=0,k=Math.min(t.length-1,c),C=0;C<=k;C+=1){var _=o(t[C]);y=b;var N=n.get(_);b=w=y+(void 0===N?r:N)}for(var O="top"===g?f:h-f,x=k;x>=0;x-=1){var E=o(t[x]),D=n.get(E);if(void 0===D){p=!0;break}if((O-=D)<=0)break}switch(g){case"top":m=y-f;break;case"bottom":m=w-h+f;break;default:var R=e.current.scrollTop;yR+h&&(v="bottom")}null!==m&&a(m),m!==s.lastTop&&(p=!0)}p&&d(dC(dC({},s),{},{times:s.times+1,targetAlign:v,lastTop:m}))}}),[s,e.current]),function(e){if(null!=e){if(t_.cancel(u.current),"number"==typeof e)a(e);else if(e&&"object"===We(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var i=e.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else l()}}(P,R,Z,a,z,(function(){return Q(!0)}),q,Ee);tc.useImperativeHandle(t,(function(){return{getScrollInfo:be,scrollTo:function(e){var t;(t=e)&&"object"===We(t)&&("left"in t||"top"in t)?(void 0!==e.left&&M(Ce(e.left)),De(e.top)):De(e)}}})),yR((function(){if(w){var e=R.slice(re,oe+1);w(e,R)}}),[re,oe,R]);var Re=function(e,t,n,r){var o=cn(tc.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,u=i.get(o),c=i.get(l);if(void 0===u||void 0===c)for(var s=e.length,d=a.length;di&&tc.createElement(Qxe,{ref:ce,prefixCls:r,scrollOffset:A,scrollRange:ne,rtl:E,onScroll:ke,onStartMove:V,onStopMove:H,spinSize:fe,containerSize:le.height,style:null==_?void 0:_.verticalScrollBar,thumbStyle:null==_?void 0:_.verticalScrollBarThumb}),x&&v>le.width&&tc.createElement(Qxe,{ref:se,prefixCls:r,scrollOffset:B,scrollRange:v,rtl:E,onScroll:ke,onStartMove:V,onStopMove:H,spinSize:de,containerSize:le.width,horizontal:!0,style:null==_?void 0:_.horizontalScrollBar,thumbStyle:null==_?void 0:_.horizontalScrollBarThumb}))}var sEe=tc.forwardRef(cEe);sEe.displayName="List";const dEe=sEe,fEe=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,l=e.children;return t="function"==typeof r?r(o):r,tc.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:tc.createElement("span",{className:uC()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},l))};var hEe=function(e,t){var n=e.prefixCls,r=e.id,o=e.flattenOptions,i=e.childrenAsData,a=e.values,l=e.searchValue,u=e.multiple,c=e.defaultActiveFirstOption,s=e.height,d=e.itemHeight,f=e.notFoundContent,h=e.open,p=e.menuItemSelectedIcon,v=e.virtual,m=e.onSelect,g=e.onToggleOpen,b=e.onActiveValue,y=e.onScroll,w=e.onMouseEnter,k="".concat(n,"-item"),C=vC((function(){return o}),[h,o],(function(e,t){return t[0]&&e[1]!==t[1]})),_=tc.useRef(null),N=function(e){e.preventDefault()},O=function(e){_.current&&_.current.scrollTo({index:e})},x=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=C.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];R(e);var n={source:t?"keyboard":"mouse"},r=C[e];r?b(r.data.value,e,n):b(null,-1,n)};tc.useEffect((function(){P(!1!==c?x(0):-1)}),[C.length,l]),tc.useEffect((function(){var e,t=setTimeout((function(){if(!u&&h&&1===a.size){var e=Array.from(a)[0],t=C.findIndex((function(t){return t.data.value===e}));P(t),O(t)}}));return h&&(null===(e=_.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[h]);var S=function(e){void 0!==e&&m(e,{selected:!a.has(e)}),u||g(!1)};if(tc.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case eT.UP:case eT.DOWN:var n=0;if(t===eT.UP?n=-1:t===eT.DOWN&&(n=1),0!==n){var r=x(D+n,n);O(r),P(r,!0)}break;case eT.ENTER:var o=C[D];o&&!o.data.disabled?S(o.data.value):S(void 0),h&&e.preventDefault();break;case eT.ESC:g(!1),h&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){O(e)}}})),0===C.length)return tc.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(k,"-empty"),onMouseDown:N},f);function T(e){var t=C[e];if(!t)return null;var n=t.data||{},o=n.value,l=n.label,u=n.children,c=fxe(n,!0),s=i?u:l;return t?tc.createElement("div",aC({"aria-label":"string"==typeof s?s:null},c,{key:e,role:"option",id:"".concat(r,"_list_").concat(e),"aria-selected":a.has(o)}),o):null}return tc.createElement(tc.Fragment,null,tc.createElement("div",{role:"listbox",id:"".concat(r,"_list"),style:{height:0,width:0,overflow:"hidden"}},T(D-1),T(D),T(D+1)),tc.createElement(dEe,{itemKey:"key",ref:_,data:C,height:s,itemHeight:d,fullHeight:!1,onMouseDown:N,onScroll:y,virtual:v,onMouseEnter:w},(function(e,t){var n,r=e.group,o=e.groupOption,l=e.data,u=l.label,c=l.key;if(r)return tc.createElement("div",{className:uC()(k,"".concat(k,"-group"))},void 0!==u?u:c);var s=l.disabled,d=l.value,f=l.title,h=l.children,v=l.style,m=l.className,g=cC(l,["disabled","value","title","children","style","className"]),b=a.has(d),y="".concat(k,"-option"),w=uC()(k,y,m,(Ja(n={},"".concat(y,"-grouped"),o),Ja(n,"".concat(y,"-active"),D===t&&!s),Ja(n,"".concat(y,"-disabled"),s),Ja(n,"".concat(y,"-selected"),b),n)),C=!p||"function"==typeof p||b,_=(i?h:u)||d,N="string"==typeof _||"number"==typeof _?_.toString():void 0;return void 0!==f&&(N=f),tc.createElement("div",aC({},g,{"aria-selected":b,className:w,title:N,onMouseMove:function(){D===t||s||P(t)},onClick:function(){s||S(d)},style:v}),tc.createElement("div",{className:"".concat(y,"-content")},_),tc.isValidElement(p)||b,C&&tc.createElement(fEe,{className:"".concat(k,"-option-state"),customizeIcon:p,customizeIconProps:{isSelected:b}},b?"✓":null))})))},pEe=tc.forwardRef(hEe);pEe.displayName="OptionList";const vEe=pEe;var mEe=function(){return null};mEe.isSelectOption=!0;const gEe=mEe;var bEe=function(){return null};bEe.isSelectOptGroup=!0;const yEe=bEe;function wEe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return pO(e).map((function(e,n){if(!tc.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,l=cC(i,["children"]);return t||!r?function(e){var t=e.key,n=e.props,r=n.children,o=n.value;return dC({key:t,value:void 0!==o?o:t,children:r},cC(n,["children","value"]))}(e):dC(dC({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},l),{},{options:wEe(a)})})).filter((function(e){return e}))}function kEe(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var CEe="undefined"!=typeof window&&window.document&&window.document.documentElement,_Ee=0;function NEe(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function OEe(e){var t=dC({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return cN(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function xEe(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).prevValueOptions,r=void 0===n?[]:n,o=new Map;return t.forEach((function(e){if(!e.group){var t=e.data;o.set(t.value,t)}})),e.map((function(e){var t=o.get(e);return t||(t=dC({},r.find((function(t){return t._INTERNAL_OPTION_VALUE_===e})))),OEe(t)}))}function EEe(e){return kEe(e).join("")}var DEe=function(e,t){var n,r,o=e.prefixCls,i=e.id,a=e.inputElement,l=e.disabled,u=e.tabIndex,c=e.autoFocus,s=e.autoComplete,d=e.editable,f=e.accessibilityIndex,h=e.value,p=e.maxLength,v=e.onKeyDown,m=e.onMouseDown,g=e.onChange,b=e.onPaste,y=e.onCompositionStart,w=e.onCompositionEnd,k=e.open,C=e.attrs,_=a||tc.createElement("input",null),N=_,O=N.ref,x=N.props,E=x.onKeyDown,D=x.onChange,R=x.onMouseDown,P=x.onCompositionStart,S=x.onCompositionEnd,T=x.style;return tc.cloneElement(_,dC(dC({id:i,ref:gC(t,O),disabled:l,tabIndex:u,autoComplete:s||"off",type:"search",autoFocus:c,className:uC()("".concat(o,"-selection-search-input"),null===(n=_)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),style:dC(dC({},T),{},{opacity:d?null:0}),role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":"".concat(i,"_list_").concat(f)},C),{},{value:d?h:"",maxLength:p,readOnly:!d,unselectable:d?null:"on",onKeyDown:function(e){v(e),E&&E(e)},onMouseDown:function(e){m(e),R&&R(e)},onChange:function(e){g(e),D&&D(e)},onCompositionStart:function(e){y(e),P&&P(e)},onCompositionEnd:function(e){w(e),S&&S(e)},onPaste:b}))},REe=tc.forwardRef(DEe);REe.displayName="Input";const PEe=REe;function SEe(e,t){CEe?tc.useLayoutEffect(e,t):tc.useEffect(e,t)}var TEe=function(e){e.preventDefault(),e.stopPropagation()};const AEe=function(e){var t=e.id,n=e.prefixCls,r=e.values,o=e.open,i=e.searchValue,a=e.inputRef,l=e.placeholder,u=e.disabled,c=e.mode,s=e.showSearch,d=e.autoFocus,f=e.autoComplete,h=e.accessibilityIndex,p=e.tabIndex,v=e.removeIcon,m=e.maxTagCount,g=e.maxTagTextLength,b=e.maxTagPlaceholder,y=void 0===b?function(e){return"+ ".concat(e.length," ...")}:b,w=e.tagRender,k=e.onToggleOpen,C=e.onSelect,_=e.onInputChange,N=e.onInputPaste,O=e.onInputKeyDown,x=e.onInputMouseDown,E=e.onInputCompositionStart,D=e.onInputCompositionEnd,R=tc.useRef(null),P=cn((0,tc.useState)(0),2),S=P[0],T=P[1],A=cn((0,tc.useState)(!1),2),j=A[0],I=A[1],B="".concat(n,"-selection"),M=o||"tags"===c?i:"",F="tags"===c||s&&(o||j);function L(e,t,n,r){return tc.createElement("span",{className:uC()("".concat(B,"-item"),Ja({},"".concat(B,"-item-disabled"),t))},tc.createElement("span",{className:"".concat(B,"-item-content")},e),n&&tc.createElement(fEe,{className:"".concat(B,"-item-remove"),onMouseDown:TEe,onClick:r,customizeIcon:v},"×"))}SEe((function(){T(R.current.scrollWidth)}),[M]);var U=tc.createElement("div",{className:"".concat(B,"-search"),style:{width:S},onFocus:function(){I(!0)},onBlur:function(){I(!1)}},tc.createElement(PEe,{ref:a,open:o,prefixCls:n,id:t,inputElement:null,disabled:u,autoFocus:d,autoComplete:f,editable:F,accessibilityIndex:h,value:M,onKeyDown:O,onMouseDown:x,onChange:_,onPaste:N,onCompositionStart:E,onCompositionEnd:D,tabIndex:p,attrs:fxe(e,!0)}),tc.createElement("span",{ref:R,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},M," ")),V=tc.createElement(QS,{prefixCls:"".concat(B,"-overflow"),data:r,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,i=!u&&!t,a=n;if("number"==typeof g&&("string"==typeof n||"number"==typeof n)){var l=String(a);l.length>g&&(a="".concat(l.slice(0,g),"..."))}var c=function(e){e&&e.stopPropagation(),C(r,{selected:!1})};return"function"==typeof w?function(e,t,n,r,i){return tc.createElement("span",{onMouseDown:function(e){TEe(e),k(!o)}},w({label:t,value:e,disabled:n,closable:r,onClose:i}))}(r,a,t,i,c):L(a,t,i,c)},renderRest:function(e){return L("function"==typeof y?y(e):y,!1)},suffix:U,itemKey:"key",maxCount:m});return tc.createElement(tc.Fragment,null,V,!r.length&&!M&&tc.createElement("span",{className:"".concat(B,"-placeholder")},l))},jEe=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,u=e.accessibilityIndex,c=e.mode,s=e.open,d=e.values,f=e.placeholder,h=e.tabIndex,p=e.showSearch,v=e.searchValue,m=e.activeValue,g=e.maxLength,b=e.onInputKeyDown,y=e.onInputMouseDown,w=e.onInputChange,k=e.onInputPaste,C=e.onInputCompositionStart,_=e.onInputCompositionEnd,N=cn(tc.useState(!1),2),O=N[0],x=N[1],E="combobox"===c,D=E||p,R=d[0],P=v||"";E&&m&&!O&&(P=m),tc.useEffect((function(){E&&x(!1)}),[E,m]);var S=!("combobox"!==c&&!s||!P),T=!R||"string"!=typeof R.label&&"number"!=typeof R.label?void 0:R.label.toString();return tc.createElement(tc.Fragment,null,tc.createElement("span",{className:"".concat(n,"-selection-search")},tc.createElement(PEe,{ref:o,prefixCls:n,id:r,open:s,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:D,accessibilityIndex:u,value:P,onKeyDown:b,onMouseDown:y,onChange:function(e){x(!0),w(e)},onPaste:k,onCompositionStart:C,onCompositionEnd:_,tabIndex:h,attrs:fxe(e,!0),maxLength:E?g:void 0})),!E&&R&&!S&&tc.createElement("span",{className:"".concat(n,"-selection-item"),title:T},R.label),!R&&!S&&tc.createElement("span",{className:"".concat(n,"-selection-placeholder")},f))};function IEe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=tc.useRef(null),n=tc.useRef(null);return tc.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var BEe=function(e,t){var n=(0,tc.useRef)(null),r=(0,tc.useRef)(!1),o=e.prefixCls,i=e.multiple,a=e.open,l=e.mode,u=e.showSearch,c=e.tokenWithEnter,s=e.onSearch,d=e.onSearchSubmit,f=e.onToggleOpen,h=e.onInputKeyDown,p=e.domRef;tc.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var v=cn(IEe(0),2),m=v[0],g=v[1],b=(0,tc.useRef)(null),y=function(e){!1!==s(e,!0,r.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(e){var t=e.which;t!==eT.UP&&t!==eT.DOWN||e.preventDefault(),h&&h(e),t!==eT.ENTER||"tags"!==l||r.current||a||d(e.target.value),[eT.SHIFT,eT.TAB,eT.BACKSPACE,eT.ESC].includes(t)||f(!0)},onInputMouseDown:function(){g(!0)},onInputChange:function(e){var t=e.target.value;if(c&&b.current&&/[\r\n]/.test(b.current)){var n=b.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,b.current)}b.current=null,y(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");b.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&y(e.target.value)}},k=i?tc.createElement(AEe,aC({},e,w)):tc.createElement(jEe,aC({},e,w));return tc.createElement("div",{ref:p,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=m();e.target===n.current||t||e.preventDefault(),("combobox"===l||u&&t)&&a||(a&&s("",!0,!1),f())}},k)},MEe=tc.forwardRef(BEe);MEe.displayName="Selector";const FEe=MEe;var LEe=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,i=e.popupElement,a=e.containerWidth,l=e.animation,u=e.transitionName,c=e.dropdownStyle,s=e.dropdownClassName,d=e.direction,f=void 0===d?"ltr":d,h=e.dropdownMatchSelectWidth,p=void 0===h||h,v=e.dropdownRender,m=e.dropdownAlign,g=e.getPopupContainer,b=e.empty,y=e.getTriggerDOMNode,w=e.onPopupVisibleChange,k=cC(e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange"]),C="".concat(n,"-dropdown"),_=i;v&&(_=v(i));var N=tc.useMemo((function(){return function(e){var t="number"!=typeof e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(p)}),[p]),O=l?"".concat(C,"-").concat(l):u,x=tc.useRef(null);tc.useImperativeHandle(t,(function(){return{getPopupElement:function(){return x.current}}}));var E=dC({minWidth:a},c);return"number"==typeof p?E.width=p:p&&(E.width=a),tc.createElement(iP,aC({},k,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:"rtl"===f?"bottomRight":"bottomLeft",builtinPlacements:N,prefixCls:C,popupTransitionName:O,popup:tc.createElement("div",{ref:x},_),popupAlign:m,popupVisible:r,getPopupContainer:g,popupClassName:uC()(s,Ja({},"".concat(C,"-empty"),b)),popupStyle:E,getTriggerDOMNode:y,onPopupVisibleChange:w}),o)},UEe=tc.forwardRef(LEe);UEe.displayName="SelectTrigger";const VEe=UEe;var HEe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","tabIndex"];var zEe=function(e){var t=e.prefixCls,n=e.components.optionList,r=e.convertChildrenToData,o=e.flattenOptions,i=e.getLabeledValue,a=e.filterOptions,l=e.isValueDisabled,u=e.findValueOption,c=e.fillOptionsWithMissingValue,s=e.omitDOMProps;function d(e,d){var f,h=e.prefixCls,p=void 0===h?t:h,v=e.className,m=e.id,g=e.open,b=e.defaultOpen,y=e.options,w=e.children,k=e.mode,C=e.value,_=e.defaultValue,N=e.labelInValue,O=e.showSearch,x=e.inputValue,E=e.searchValue,D=e.filterOption,R=e.filterSort,P=e.optionFilterProp,S=void 0===P?"value":P,T=e.autoClearSearchValue,A=void 0===T||T,j=e.onSearch,I=e.allowClear,B=e.clearIcon,M=e.showArrow,F=e.inputIcon,L=e.menuItemSelectedIcon,U=e.disabled,V=e.loading,H=e.defaultActiveFirstOption,z=e.notFoundContent,W=void 0===z?"Not Found":z,q=e.optionLabelProp,$=e.backfill,K=(e.tabIndex,e.getInputElement),Y=e.getRawInputElement,G=e.getPopupContainer,J=e.listHeight,X=void 0===J?200:J,Q=e.listItemHeight,Z=void 0===Q?20:Q,ee=e.animation,te=e.transitionName,ne=e.virtual,re=e.dropdownStyle,oe=e.dropdownClassName,ie=e.dropdownMatchSelectWidth,ae=e.dropdownRender,le=e.dropdownAlign,ue=e.showAction,ce=void 0===ue?[]:ue,se=e.direction,de=e.tokenSeparators,fe=e.tagRender,he=e.onPopupScroll,pe=e.onDropdownVisibleChange,ve=e.onFocus,me=e.onBlur,ge=e.onKeyUp,be=e.onKeyDown,ye=e.onMouseDown,we=e.onChange,ke=e.onSelect,Ce=e.onDeselect,_e=e.onClear,Ne=e.internalProps,Oe=void 0===Ne?{}:Ne,xe=cC(e,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","tabIndex","getInputElement","getRawInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),Ee="RC_SELECT_INTERNAL_PROPS_MARK"===Oe.mark,De=s?s(xe):xe;HEe.forEach((function(e){delete De[e]}));var Re=(0,tc.useRef)(null),Pe=(0,tc.useRef)(null),Se=(0,tc.useRef)(null),Te=(0,tc.useRef)(null),Ae=(0,tc.useMemo)((function(){return(de||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[de]),je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=cn(tc.useState(!1),2),n=t[0],r=t[1],o=tc.useRef(null),i=function(){window.clearTimeout(o.current)};return tc.useEffect((function(){return i}),[]),[n,function(t,n){i(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),Ie=cn(je,3),Be=Ie[0],Me=Ie[1],Fe=Ie[2],Le=cn((0,tc.useState)(),2),Ue=Le[0],Ve=Le[1];(0,tc.useEffect)((function(){var e;Ve("rc_select_".concat((CEe?(e=_Ee,_Ee+=1):e="TEST_OR_SSR",e)))}),[]);var He=m||Ue,ze=q;void 0===ze&&(ze=y?"label":"children");var We="combobox"!==k&&N,qe="tags"===k||"multiple"===k,$e=void 0!==O?O:qe||"combobox"===k,Ke=cn((0,tc.useState)(!1),2),Ye=Ke[0],Ge=Ke[1];(0,tc.useEffect)((function(){Ge(uD())}),[]);var Je=(0,tc.useRef)(null);tc.useImperativeHandle(d,(function(){var e,t,n;return{focus:null===(e=Se.current)||void 0===e?void 0:e.focus,blur:null===(t=Se.current)||void 0===t?void 0:t.blur,scrollTo:null===(n=Te.current)||void 0===n?void 0:n.scrollTo}}));var Xe=cn(nS(_,{value:C}),2),Qe=Xe[0],Ze=Xe[1],et=(0,tc.useMemo)((function(){return function(e,t){var n=t.labelInValue,r=t.combobox,o=new Map;if(void 0===e||""===e&&r)return[[],o];var i=Array.isArray(e)?e:[e],a=i;return n&&(a=i.filter((function(e){return null!==e})).map((function(e){var t=e.key,n=e.value,r=void 0!==n?n:t;return o.set(r,e),r}))),[a,o]}(Qe,{labelInValue:We,combobox:"combobox"===k})}),[Qe,We]),tt=cn(et,2),nt=tt[0],rt=tt[1],ot=(0,tc.useMemo)((function(){return new Set(nt)}),[nt]),it=cn((0,tc.useState)(null),2),at=it[0],lt=it[1],ut=cn((0,tc.useState)(""),2),ct=ut[0],st=ut[1],dt=ct;"combobox"===k&&void 0!==Qe?dt=Qe:void 0!==E?dt=E:x&&(dt=x);var ft=(0,tc.useMemo)((function(){var e=y;return void 0===e&&(e=r(w)),"tags"===k&&c&&(e=c(e,Qe,ze,N)),e||[]}),[y,w,k,Qe]),ht=(0,tc.useMemo)((function(){return o(ft,e)}),[ft]),pt=function(e){var t=tc.useRef(null),n=tc.useMemo((function(){var t=new Map;return e.forEach((function(e){var n=e.data.value;t.set(n,e)})),t}),[e]);return t.current=n,function(e){return e.map((function(e){return t.current.get(e)})).filter(Boolean)}}(ht),vt=(0,tc.useMemo)((function(){if(!dt||!$e)return pn(ft);var e=a(dt,ft,{optionFilterProp:S,filterOption:"combobox"===k&&void 0===D?function(){return!0}:D});return"tags"===k&&e.every((function(e){return e[S]!==dt}))&&e.unshift({value:dt,label:dt,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),R&&Array.isArray(e)?pn(e).sort(R):e}),[ft,dt,k,$e,R]),mt=(0,tc.useMemo)((function(){return o(vt,e)}),[vt]);(0,tc.useEffect)((function(){Te.current&&Te.current.scrollTo&&Te.current.scrollTo(0)}),[dt]);var gt,bt,yt=(0,tc.useMemo)((function(){var e=nt.map((function(e){var t=pt([e]);return dC(dC({},i(e,{options:t,prevValueMap:rt,labelInValue:We,optionLabelProp:ze})),{},{disabled:l(e,t)})}));return k||1!==e.length||null!==e[0].value||null!==e[0].label?e:[]}),[Qe,ft,k]);gt=yt,bt=tc.useRef(gt),yt=tc.useMemo((function(){var e=new Map;bt.current.forEach((function(t){var n=t.value,r=t.label;n!==r&&e.set(n,r)}));var t=gt.map((function(t){var n=e.get(t.value);return t.isCacheable&&n?dC(dC({},t),{},{label:n}):t}));return bt.current=t,t}),[gt]);var wt=function(e,t,n){var r=pt([e]),o=u([e],r)[0];if(!Oe.skipTriggerSelect){var a=We?i(e,{options:r,prevValueMap:rt,labelInValue:We,optionLabelProp:ze}):e;t&&ke?ke(a,o):!t&&Ce&&Ce(a,o)}Ee&&(t&&Oe.onRawSelect?Oe.onRawSelect(e,o,n):!t&&Oe.onRawDeselect&&Oe.onRawDeselect(e,o,n))},kt=cn((0,tc.useState)([]),2),Ct=kt[0],_t=kt[1],Nt=function(e){if(!Ee||!Oe.skipTriggerChange){var t=pt(e),n=function(e,t){var n=t.optionLabelProp,r=t.labelInValue,o=t.prevValueMap,i=t.options,a=t.getLabeledValue,l=e;return r&&(l=l.map((function(e){return a(e,{options:i,prevValueMap:o,labelInValue:r,optionLabelProp:n})}))),l}(Array.from(e),{labelInValue:We,options:t,getLabeledValue:i,prevValueMap:rt,optionLabelProp:ze}),r=qe?n:n[0];if(we&&(0!==nt.length||0!==n.length)){var o=u(e,t,{prevValueOptions:Ct});_t(o.map((function(t,n){var r=dC({},t);return Object.defineProperty(r,"_INTERNAL_OPTION_VALUE_",{get:function(){return e[n]}}),r}))),we(r,qe?o:o[0])}Ze(r)}},Ot=function(e,t){var n,r=t.selected,o=t.source;U||(qe?(n=new Set(nt),r?n.add(e):n.delete(e)):(n=new Set).add(e),(qe||!qe&&Array.from(nt)[0]!==e)&&Nt(Array.from(n)),wt(e,!qe||r,o),"combobox"===k?(st(String(e)),lt("")):qe&&!A||(st(""),lt("")))},xt="combobox"===k&&"function"==typeof K&&K()||null,Et="function"==typeof Y&&Y(),Dt=cn(nS(void 0,{defaultValue:b,value:g}),2),Rt=Dt[0],Pt=Dt[1],St=Rt,Tt=!W&&!vt.length;(U||Tt&&St&&"combobox"===k)&&(St=!1);var At,jt=!Tt&&St,It=function(e){var t=void 0!==e?e:!St;Rt===t||U||(Pt(t),pe&&pe(t))};Et&&(At=function(e){It(e)}),function(e,t,n){var r=tc.useRef(null);r.current={open:t,triggerOpen:n},tc.useEffect((function(){function e(e){var t,n=e.target;n.shadowRoot&&e.composed&&(n=e.composedPath()[0]||n),r.current.open&&[Re.current,null===(t=Pe.current)||void 0===t?void 0:t.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(n)&&e!==n}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,jt,It);var Bt=function(e,t,n){var r=!0,o=e;lt(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=$O(r),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce((function(t,n){return[].concat(pn(t),pn(e(n,a)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,de),a=i;if("combobox"===k)t&&Nt([o]);else if(i){o="","tags"!==k&&(a=i.map((function(e){var t=ht.find((function(t){return t.data[ze]===e}));return t?t.data.value:null})).filter((function(e){return null!==e})));var l=Array.from(new Set([].concat(pn(nt),pn(a))));Nt(l),l.forEach((function(e){wt(e,!0,"input")})),It(!1),r=!1}return st(o),j&&dt!==o&&j(o),r};(0,tc.useEffect)((function(){Rt&&U&&Pt(!1)}),[U]),(0,tc.useEffect)((function(){St||qe||"combobox"===k||Bt("",!1,!1)}),[St]);var Mt=cn(IEe(),2),Ft=Mt[0],Lt=Mt[1],Ut=(0,tc.useRef)(!1),Vt=[];(0,tc.useEffect)((function(){return function(){Vt.forEach((function(e){return clearTimeout(e)})),Vt.splice(0,Vt.length)}}),[]);var Ht=cn((0,tc.useState)(0),2),zt=Ht[0],Wt=Ht[1],qt=void 0!==H?H:"combobox"!==k,$t=cn((0,tc.useState)(null),2),Kt=$t[0],Yt=$t[1],Gt=cn((0,tc.useState)({}),2)[1];SEe((function(){if(jt){var e,t=Math.ceil(null===(e=Re.current)||void 0===e?void 0:e.offsetWidth);Kt===t||Number.isNaN(t)||Yt(t)}}),[jt]);var Jt,Xt=tc.createElement(n,{ref:Te,prefixCls:p,id:He,open:St,childrenAsData:!y,options:vt,flattenOptions:mt,multiple:qe,values:ot,height:X,itemHeight:Z,onSelect:function(e,t){Ot(e,dC(dC({},t),{},{source:"option"}))},onToggleOpen:It,onActiveValue:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Wt(t),$&&"combobox"===k&&null!==e&&"keyboard"===r&<(String(e))},defaultActiveFirstOption:qt,notFoundContent:W,onScroll:he,searchValue:dt,menuItemSelectedIcon:L,virtual:!1!==ne&&!1!==ie,onMouseEnter:function(){Gt({})}});!U&&I&&(nt.length||dt)&&(Jt=tc.createElement(fEe,{className:"".concat(p,"-clear"),onMouseDown:function(){Ee&&Oe.onClear&&Oe.onClear(),_e&&_e(),Nt([]),Bt("",!1,!1)},customizeIcon:B},"×"));var Qt,Zt=void 0!==M?M:V||!qe&&"combobox"!==k;Zt&&(Qt=tc.createElement(fEe,{className:uC()("".concat(p,"-arrow"),Ja({},"".concat(p,"-arrow-loading"),V)),customizeIcon:F,customizeIconProps:{loading:V,searchValue:dt,open:St,focused:Be,showSearch:$e}}));var en=uC()(p,v,(Ja(f={},"".concat(p,"-focused"),Be),Ja(f,"".concat(p,"-multiple"),qe),Ja(f,"".concat(p,"-single"),!qe),Ja(f,"".concat(p,"-allow-clear"),I),Ja(f,"".concat(p,"-show-arrow"),Zt),Ja(f,"".concat(p,"-disabled"),U),Ja(f,"".concat(p,"-loading"),V),Ja(f,"".concat(p,"-open"),St),Ja(f,"".concat(p,"-customize-input"),xt),Ja(f,"".concat(p,"-show-search"),$e),f)),tn=tc.createElement(VEe,{ref:Pe,disabled:U,prefixCls:p,visible:jt,popupElement:Xt,containerWidth:Kt,animation:ee,transitionName:te,dropdownStyle:re,dropdownClassName:oe,direction:se,dropdownMatchSelectWidth:ie,dropdownRender:ae,dropdownAlign:le,getPopupContainer:G,empty:!ft.length,getTriggerDOMNode:function(){return Je.current},onPopupVisibleChange:At},Et?tc.cloneElement(Et,{ref:gC(Je,Et.props.ref)}):tc.createElement(FEe,aC({},e,{domRef:Je,prefixCls:p,inputElement:xt,ref:Se,id:He,showSearch:$e,mode:k,accessibilityIndex:zt,multiple:qe,tagRender:fe,values:yt,open:St,onToggleOpen:It,searchValue:dt,activeValue:at,onSearch:Bt,onSearchSubmit:function(e){if(e&&e.trim()){var t=Array.from(new Set([].concat(pn(nt),[e])));Nt(t),t.forEach((function(e){wt(e,!0,"input")})),st("")}},onSelect:function(e,t){Ot(e,dC(dC({},t),{},{source:"selection"}))},tokenWithEnter:Ae})));return Et?tn:tc.createElement("div",aC({className:en},De,{ref:Re,onMouseDown:function(e){var t,n=e.target,r=null===(t=Pe.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Vt.indexOf(o);-1!==t&&Vt.splice(t,1),Fe(),Ye||r.contains(document.activeElement)||null===(e=Se.current)||void 0===e||e.focus()}));Vt.push(o)}if(ye){for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0&&e[n].disabled;n-=1);var o=null;return-1!==n&&(o=r[n],r.splice(n,1)),{values:r,removedValue:o}}(yt,nt);null!==o.removedValue&&(Nt(o.values),wt(o.removedValue,!1,"input"))}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l1?t-1:0),r=1;r0){var N="button"===d?"".concat(k,"-button"):k;_=s.map((function(e){return"string"==typeof e?tc.createElement(kDe,{key:e,prefixCls:N,disabled:p,value:e,checked:l===e},e):tc.createElement(kDe,{key:"radio-group-value-options-".concat(e.value),prefixCls:N,disabled:e.disabled||p,value:e.value,checked:l===e.value,style:e.style},e.label)}))}var O=m||i,x=uC()(C,"".concat(C,"-").concat(h),(Ja(n={},"".concat(C,"-").concat(O),O),Ja(n,"".concat(C,"-rtl"),"rtl"===o),n),c);return tc.createElement("div",aC({},function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n]),t}),{})}(e),{className:x,style:g,onMouseEnter:y,onMouseLeave:w,id:b,ref:t}),_)}())}));const _De=tc.memo(CDe);var NDe=function(e,t){var n=tc.useContext(bDe),r=tc.useContext(fO).getPrefixCls,o=e.prefixCls,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ot?"left":"right"})})),2),S=P[0],T=P[1],A=cn(QDe(0,(function(e,t){!R&&w&&w({direction:e>t?"top":"bottom"})})),2),j=A[0],I=A[1],B=cn((0,tc.useState)(0),2),M=B[0],F=B[1],L=cn((0,tc.useState)(0),2),U=L[0],V=L[1],H=cn((0,tc.useState)(0),2),z=H[0],W=H[1],q=cn((0,tc.useState)(0),2),$=q[0],K=q[1],Y=cn((0,tc.useState)(null),2),G=Y[0],J=Y[1],X=cn((0,tc.useState)(null),2),Q=X[0],Z=X[1],ee=cn((0,tc.useState)(0),2),te=ee[0],ne=ee[1],re=cn((0,tc.useState)(0),2),oe=re[0],ie=re[1],ae=function(e){var t=(0,tc.useRef)([]),n=cn((0,tc.useState)({}),2)[1],r=(0,tc.useRef)("function"==typeof e?e():e),o=VDe((function(){var e=r.current;t.current.forEach((function(t){e=t(e)})),t.current=[],r.current=e,n({})}));return[r.current,function(e){t.current.push(e),o()}]}(new Map),le=cn(ae,2),ue=le[0],ce=le[1],se=function(e,t,n){return(0,tc.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||WDe,i=o.left+o.width,a=0;ahe?he:e}R?f?(fe=0,he=Math.max(0,M-G)):(fe=Math.min(0,G-M),he=0):(fe=Math.min(0,Q-U),he=0);var ve=(0,tc.useRef)(),me=cn((0,tc.useState)(),2),ge=me[0],be=me[1];function ye(){be(Date.now())}function we(){window.clearTimeout(ve.current)}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=se.get(e)||{width:0,height:0,left:0,right:0,top:0};if(R){var n=S;f?t.rightS+G&&(n=t.right+t.width-G):t.left<-S?n=-t.left:t.left+t.width>-S+G&&(n=-(t.left+t.width-G)),I(0),T(pe(n))}else{var r=j;t.top<-j?r=-t.top:t.top+t.height>-j+Q&&(r=-(t.top+t.height-Q)),T(0),I(pe(r))}}!function(e,t){var n=cn((0,tc.useState)(),2),r=n[0],o=n[1],i=cn((0,tc.useState)(0),2),a=i[0],l=i[1],u=cn((0,tc.useState)(0),2),c=u[0],s=u[1],d=cn((0,tc.useState)(),2),f=d[0],h=d[1],p=(0,tc.useRef)(),v=(0,tc.useRef)(),m=(0,tc.useRef)(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(p.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],i=n.screenX,u=n.screenY;o({x:i,y:u});var c=i-r.x,d=u-r.y;t(c,d);var f=Date.now();l(f),s(f-a),h({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),h(null),f)){var e=f.x/c,n=f.y/c,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var l=e,u=n;p.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(u)<.01?window.clearInterval(p.current):t(20*(l*=XDe),20*(u*=XDe))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===v.current?n:r:i>a?(o=n,v.current="x"):(o=r,v.current="y"),t(-o,-o)&&e.preventDefault()}},tc.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(k,(function(e,t){function n(e,t){e((function(e){return pe(e+t)}))}if(R){if(G>=M)return!1;n(T,e)}else{if(Q>=U)return!1;n(I,t)}return we(),ye(),!0})),(0,tc.useEffect)((function(){return we(),ge&&(ve.current=window.setTimeout((function(){be(0)}),100)),we}),[ge]);var Ce=function(e,t,n,r,o){var i,a,l,u=o.tabs,c=o.tabPosition,s=o.rtl;["top","bottom"].includes(c)?(i="width",a=s?"right":"left",l=Math.abs(t.left)):(i="height",a="top",l=-t.top);var d=t[i],f=r[i],h=d;return n[i]+f>d&&(h=d-f),(0,tc.useMemo)((function(){if(!u.length)return[0,0];for(var t=u.length,n=t,r=0;rl+h){n=r-1;break}}for(var c=0,s=t-1;s>=0;s-=1)if((e.get(u[s].key)||qDe)[a]0,Me=S+Ge.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"#F00",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#ff0";Ye(this,e),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"activeColor",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"normalColor",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"drawer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_beforeRanges",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_activeIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"activeNodesIds",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rangeRects",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.drawer=t.createDrawer({hPadding:0}),kc(this,t.domRootNode,"scroll",ig()((function(e){e.target&&"NE-TABLE-INNER-WRAP"===e.target.tagName&&n.refresh()})),!0),jc(this,t,"activeNodesChange",ig()((function(e){n.activeNodesIds=e,n._beforeRanges&&n.drawRanges(n._beforeRanges)})))}return Ke(e,[{key:"virtualRendering",get:function(){return!!this.renderer.option.virtualRendering}},{key:"rootNode",get:function(){return this.renderer.domRootNode}},{key:"getPointRange",value:function(e,t){var n,r=this.renderer.domRootNode.getBoundingClientRect(),o=e-r.x,i=t-r.y,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return vRe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vRe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.rangeRects);try{for(a.s();!(n=a.n()).done;){var l=cn(n.value,2),u=l[0],c=l[1];if(o>=u.x&&o<=u.width+u.x&&i>=u.y&&i<=u.y+u.height)return{rect:new DOMRect(u.x+r.x,u.y+r.y,u.width,u.height),range:c}}}catch(e){a.e(e)}finally{a.f()}return null}},{key:"isNodeActive",value:function(e){var t;if(!e)return!1;if(e.isConnected)return!0;if(!this.virtualRendering)return!0;if(null===this.activeNodesIds)return!0;var n=null===(t=e.closest('[ne-role="render-unit"]'))||void 0===t?void 0:t.getAttribute("id");return this.activeNodesIds.has(n||"")}},{key:"getActiveRange",value:function(){return this._activeIndex&&this._beforeRanges&&this._beforeRanges[this._activeIndex]||null}},{key:"getActiveIndex",value:function(){return this._activeIndex}},{key:"getAllRanges",value:function(){return this._beforeRanges}},{key:"setActive",value:function(e){return"number"!=typeof e?(this._activeIndex=null,this):(kt(this._beforeRanges,"没有可被激活的选区","framework/uilib/src/range-highlighter/index.ts:125"),kt(e>=0&&e1&&void 0!==arguments[1]?arguments[1]:this.rootNode.getBoundingClientRect(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.normalColor,o=this.rootNode.querySelector('[id="'.concat(e.start.node.id,'"]')),i=this.rootNode.querySelector('[id="'.concat(e.end.node.id,'"]'));if(this.isNodeActive(o)&&this.isNodeActive(i)){var a=null==o?void 0:o.firstChild,l=null==i?void 0:i.firstChild;if(a&&l)try{var u=Hp({startContainer:a,startOffset:e.start.offset,endContainer:l,endOffset:e.end.offset});3===u.length&&Math.abs(u[1].height-u[0].height)>u[0].height/2&&u.splice(1,1);var c=u.map((function(r){var o={x:r.x-n.x,y:r.y-n.y,width:r.width,height:r.height};return t.rangeRects.set(o,e),o})).filter((function(e){return e.width>0&&e.height>0}));if(c.length<=0)return;this.drawer.drawRects(c,{fill:r})}catch(e){return}}}},{key:"refresh",value:function(){return this._beforeRanges&&this.drawRanges(this._beforeRanges),this}},{key:"jumpTo",value:function(e,t){var n;if("number"==typeof e){var r=null===(n=this._beforeRanges)||void 0===n?void 0:n[e];if(r)return this._activeIndex=e,this.renderer.execCommand("headingUnfold",r.start.node.id),this.renderer.execCommand("tryUnfoldCollapse",r.start.node.id),t||this.renderer.scrollByNodeId(r.start.node.id),r}}},{key:"jumpNext",value:function(e){var t;if(this._beforeRanges)return this._activeIndex?(t=this._activeIndex+1)>=this._beforeRanges.length&&(t=0):t=0,this.jumpTo(t,e)}},{key:"jumpPrevious",value:function(e){var t;if(this._beforeRanges)return this._activeIndex?(t=this._activeIndex-1)<0&&(t=this._beforeRanges.length-1):t=this._beforeRanges.length-1,this.jumpTo(t,e)}},{key:"destroy",value:function(){this._activeIndex=null,this._beforeRanges=null,this.activeNodesIds=null,this.rangeRects.clear(),this.drawer.destroy()}}]),e}();function gRe(e){var t=e.item,n=e.current,r=(0,tc.useCallback)((function(e){t.onClick&&t.onClick(e)}),[t]);return nc().createElement("div",{className:"ne-color-selector"},uB.map((function(e){var t=e===n;return nc().createElement("span",{key:e,onClick:function(){return r(e)},className:"color-box color-".concat(e)},t&&nc().createElement(tD,{type:"check"}))})))}var bRe={onAfterEditorPluginInit:function(e){var t=e.renderer;t.registerBoxUI("alert",{factory:function(n,r){var o=n.getMainDOMNode(),i=r.id,a=aI.generateToolbarItems([{name:"colorSelect",type:"react",onClick:function(t){e.execCommand("alertType",i,t),aI.updateCardToolbar(o,e.overlayContainer,e.editorNode,a,{})},render:function(t,n){return nc().createElement(gRe,{key:n,current:e.queryCommandValue("alertType",i),item:t})}}]),l=[t.onPluginEvent("alertClick",(function(t){var n=t.alertId;i===n&&aI.updateCardToolbar(o,e.overlayContainer,e.editorNode,a,{})})),t.onPluginEvent("alertFocus",(function(t){var n=t.alertId;i===n&&aI.updateCardToolbar(o,e.overlayContainer,e.editorNode,a,{})})),t.onPluginEvent("alertBlur",(function(e){var t=e.alertId;i===t&&aI.destroyCardToolbar(o)}))];return{destroy:function(){l.forEach((function(e){return e()})),l.length=0}}}})}},yRe=o(8970),wRe=o.n(yRe),kRe="info",CRe="warning",_Re="danger",NRe="success",ORe="tips",xRe=function(){return[{name:"alignmentLeft",icon:"t-alignment-left",keys:["shift","cmd","L"],text:gc("左对齐"),value:"left",keywords:["左对齐","alignleft","zuoduiqi","left","zdq"]},{name:"alignmentRight",icon:"t-alignment-right",keys:["shift","cmd","R"],text:gc("右对齐"),value:"right",keywords:["右对齐","alignright","youduiqi","right","ydq"]},{name:"alignmentCenter",icon:"t-alignment-center",keys:["shift","cmd","C"],text:gc("居中对齐"),value:"center",keywords:["居中对齐","aligncenter","juzhongduiqi","center","jzdq"]},{name:"alignmentJustify",icon:"t-alignment-justify",keys:["shift","cmd","J"],text:gc("两端对齐"),value:"justify",keywords:["居中对齐","aligncenter","juzhongduiqi","center","jzdq"]},{name:"bold",keys:["cmd","B"],text:gc("粗体"),markdown:["**x**","Space"],keywords:["cuti","ct"]},{name:"italic",keys:["cmd","I"],text:gc("斜体"),markdown:["_x_","Space"],keywords:["xieti","xt"]},{name:"underline",keys:["cmd","U"],text:gc("下划线"),markdown:["++x++","Space"],keywords:["xiahuaxian","xhx"]},{name:"strikethrough",keys:["shift","cmd","X"],text:gc("删除线"),markdown:["~~x~~","Space"],keywords:["shanchuxian","scx"]},{name:"bgColor",keys:["opt","cmd","H"],text:gc("背景颜色"),markdown:["==x==","Space"],keywords:["beijinyanse","bjys"]},{name:"breakLine",keys:["ENTER"],text:gc("换行"),keywords:["huanghang","hh"]},{name:"clearFormat",keys:["cmd","\\"],text:gc("清除格式"),keywords:["qingchugeshi","qcgs"]},{name:"math",text:gc("公式"),markdown:["$x$","Space"],keywords:["sxgs","gs","gongshi","formula","math","latex"]},{name:"code",keys:["cmd","E"],text:gc("行内代码"),markdown:["`x`","Space"],keywords:["hangneidaima","hndm"]},{name:"codeblock",text:gc("代码块"),markdown:["```","Enter"],keywords:["daimakuai","dmk"]},{name:"alert",text:gc("高亮块"),keywords:[kRe,NRe,CRe,_Re,ORe,"alert","gl","glk","高亮","gaoliang","xinxitishi","xxts"],markdown:[":::","Enter"]},{name:kRe,text:gc("信息提示框"),keywords:[kRe,"alert","gl","高亮","gaoliang","xinxitishi","xxts"],markdown:[":::info","Enter"],icon:!1},{name:NRe,text:gc("成功提示框"),keywords:[NRe,"alert","gl","高亮","gaoliang","xxts"],markdown:[":::success","Enter"],icon:!1},{name:CRe,text:gc("告警提示框"),keywords:[CRe,"alert","gl","高亮","gaoliang","xxts"],markdown:[":::warning","Enter"],icon:!1},{name:_Re,text:gc("危险提示框"),keywords:[_Re,"alert","gl","高亮","gaoliang","xxts"],markdown:[":::danger","Enter"],icon:!1},{name:ORe,text:gc("高亮提示框"),keywords:[ORe,"alert","gl","高亮","gaoliang","xxts"],markdown:[":::tips","Enter"],icon:!1},{name:"undo",keys:["cmd","Z"],text:gc("撤销"),keywords:["chexiao","cx"]},{name:"redo",keys:["shift","cmd","Z"],text:gc("重做"),keywords:["chongzuo","cz"]},{name:"paste",keys:["cmd","V"],text:gc("粘贴"),keywords:["zhantie","zt"]},{name:"pasteText",keys:["shift","cmd","V"],text:gc("纯文本粘贴"),keywords:["chunwenbenzhantie","cwbzt"]},{name:"color",keys:["opt","cmd","C"],text:gc("字体颜色"),keywords:["zitiyanse","ztys"]},{name:"fontsizeIncrease",keys:["opt","cmd",187],text:gc("字号加大")},{name:"fontsizeDecrease",keys:["opt","cmd",189],text:gc("字号减小")},{name:"fontsize",keys:["opt","cmd","+ / -"],text:gc("字号调整"),keywords:["zihaotiaozheng","zhtz"]},{name:"formatPainter",keys:["shift","cmd","S"],text:gc("格式刷"),keywords:["geshishua","gss"]},{name:"fullscreen",keys:["shift","cmd","O"],text:gc("全屏")},{name:"paragraph",keys:["opt","cmd",0],text:gc("正文")},{name:"h1",keys:["opt","cmd",1],text:gc("标题1"),keywords:["标题1","heading1","h1","biaoti1","bt1"],markdown:["#","Space"]},{name:"h2",keys:["opt","cmd",2],text:gc("标题2"),keywords:["标题2","heading2","h2","biaoti2","bt2"],markdown:["##","Space"]},{name:"h3",keys:["opt","cmd",3],text:gc("标题3"),keywords:["标题3","heading3","h3","biaoti3","bt3"],markdown:["###","Space"]},{name:"h4",keys:["opt","cmd",4],text:gc("标题4"),keywords:["标题4","heading4","h4","biaoti4","bt4"],markdown:["####","Space"]},{name:"h5",keys:["opt","cmd",5],text:gc("标题5"),markdown:["#####","Space"]},{name:"h6",keys:["opt","cmd",6],text:gc("标题6"),markdown:["######","Space"]},{name:"hr",keys:["opt","cmd","S"],text:gc("插入分割线"),keywords:["分隔线","fengexian","hr","fgx","divider"],markdown:["---","Enter"]},{name:"mention",text:gc("提及某人"),markdown:["@"],keywords:["tijimouren","tjmr"]},{name:"indentForTab",keys:["TAB"],text:gc("增加缩进"),command:"indent",keywords:["zengjiasuojing","zjsj"]},{name:"outdentForTab",keys:["shift","TAB"],text:gc("减少缩进"),command:"outdent",keywords:["jianshaosuojing","jssj"]},{name:"indent",keys:["cmd","]"],text:gc("增加缩进"),command:"indent",keywords:["zengjiasuojing","zjsj"]},{name:"outdent",keys:["cmd","["],text:gc("减少缩进"),command:"outdent",keywords:["jianshaosuojing","jssj"]},{name:"newLine",keys:["shift","ENTER"],text:gc("软换行")},{name:"tab",keys:["*","TAB"],text:gc("")},{name:"lineHeight",keys:["opt","cmd","[ / ]"],text:gc("行高调整"),keywords:["hanggaotiaozheng","hgtz"]},{name:"lineHeightIncrease",keys:["opt","cmd",221],text:gc("增加行高")},{name:"lineHeightDecrease",keys:["opt","cmd",219],text:gc("减少行高")},{name:"link",keys:["cmd","K"],text:gc("链接"),description:gc("可自定义链接标题"),keywords:["lianjie","charulianjie","链接","lj","link"],markdown:["[]()","Space"]},{name:"image",text:gc("图片"),markdown:["![]()","Space"],keywords:["tupian","tp","picture"]},{name:"card",keys:["cmd","/"],text:gc("插入卡片"),markdown:["/"],keywords:["kapian","kp"]},{name:"unorderedList",keys:["shift","cmd","8"],text:gc("无序列表"),mainSearch:"/wxlb",keywords:["无序列表","wuxu","liebiao","ul","wxlb","list"],markdown:["*","Space"]},{name:"orderedList",keys:["shift","cmd","7"],text:gc("有序列表"),mainSearch:"/yxlb",keywords:["有序列表","youxu","liebiao","ol","yxlb","list"],markdown:["1.","Space"]},{name:"taskList",keys:["opt","cmd","T"],text:gc("任务列表"),mainSearch:"/rwlb",keywords:["任务列表","renwu","liebiao","checkbox","todo","rwlb","list","task"],markdown:["[]","Space"]},{name:"openLibrary",keys:["opt","cmd","R"],text:gc("素材库"),keywords:["sucaiku","sck"]},{name:"quote",keys:["shift","cmd","U"],text:gc("引用"),markdown:[">","Space"],keywords:["yingyong","yy"]},{name:"save",keys:["cmd","s"],text:gc("保存"),keywords:["baocun","bc"]},{name:"openSearchPanel",keys:["shift","cmd","F"],text:gc("查找替换"),keywords:["chazhaotihuan","czth"]},{name:"selectAll",keys:["cmd","A"],text:gc("全选")},{name:"slash",keys:["cmd","/"],text:gc("插入卡片"),keywords:["charukapian","crkp"]},{name:"sup",keys:["shift","cmd",190],text:gc("上标"),markdown:["^x^","Space"],keywords:["shangbiao","sb"]},{name:"sub",keys:["shift","cmd",188],text:gc("下标"),markdown:["~x~","Space"],keywords:["xiabiao","xb"]},{name:"toggleBorder",keys:["shift","cmd","\\"],text:gc("隐藏边框"),keywords:["yingcangbiankuang","ycbk"]},{name:"table",text:gc("插入表格"),markdown:["|x|y|","Enter"],keywords:["biaoge","bg"]},{name:"cellBgColor",keys:["opt","cmd","B"],text:gc("单元格背景色"),keywords:["danyuangebeijingse","dygbjs"]},{name:"mergeCell",keys:["shift","cmd",49],text:gc("合并单元格"),keywords:["hebingdanyuange","hbdyg"]},{name:"verticalAlignTop",keys:["opt","shift","cmd","T"],text:gc("顶部对齐"),value:"top",keywords:["dingbuduiqi","dbdq"]},{name:"verticalAlignMiddle",keys:["opt","shift","cmd","C"],text:gc("垂直居中"),value:"middle",keywords:["juzhongduiqi","jzdq"]},{name:"verticalAlignBottom",keys:["opt","shift","cmd","B"],text:gc("底部对齐"),value:"bottom",keywords:["dibuduiqi","dbdj"]},{name:"openTranslatePanel",keys:["opt","cmd","E"],text:gc("翻译"),keywords:["fanyi","fy"]}]},ERe=xRe(),DRe=wRe()(ERe,"name");function RRe(e,t,n){return t=Qe(t),Xe(e,PRe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function PRe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PRe=function(){return!!e})()}hc.on(fc.CHANGE,(function(){ERe=xRe(),DRe=wRe()(ERe,"name")}));var SRe=function(e){function t(){var e;return Ye(this,t),e=RRe(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(By);Object.defineProperty(SRe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("ISlashService")});var TRe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"editUI",get:function(){return this._option.editUI}},{key:"onAfterEditorPluginInit",get:function(){return this._option.onAfterEditorPluginInit}}]),e}();Object.defineProperty(TRe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"alert"});var ARe=function(e){return function(t){return t.transparent(e).toCSSValue()}},jRe={"alert.tips.bar.border":{light:"#BEC0BF",dark:"#505050"},"alert.tips.bar.bg":{light:"#D8DAD9",dark:"#424242"},"alert.tips.background":{light:"#EFF0F0",dark:"#292929"},"alert.tips.border":{light:"#E7E9E8",dark:"#333333"},"alert.info.bar.border":{light:"#C0DDFC",dark:"#253C56"},"alert.info.bar.bg":{ref:"alert.info.bar.border"},"alert.info.background":{ref:"alert.info.bar.border",process:ARe(.5)},"alert.info.border":{light:"#81BBF8",dark:"#1D4672"},"alert.color1.bar.border":{light:"#B5EFF2",dark:"#255356"},"alert.color1.bar.bg":{ref:"alert.color1.bar.border"},"alert.color1.background":{ref:"alert.color1.bar.border",process:ARe(.5)},"alert.color1.border":{light:"#81DFE4",dark:"#1A7074"},"alert.color2.bar.border":{light:"#C7F0DF",dark:"#255641"},"alert.color2.bar.bg":{ref:"alert.color2.bar.border"},"alert.color2.background":{ref:"alert.color2.bar.border",process:ARe(.5)},"alert.color2.border":{light:"#82EDC0",dark:"#18774F"},"alert.success.bar.border":{light:"#DBF1B7",dark:"#445625"},"alert.success.bar.bg":{ref:"alert.success.bar.border"},"alert.success.background":{ref:"alert.success.bar.border",process:ARe(.5)},"alert.success.border":{light:"#C1E77E",dark:"#557915"},"alert.warning.bar.border":{light:"#F6E1AC",dark:"#564825"},"alert.warning.bar.bg":{ref:"alert.warning.bar.border"},"alert.warning.background":{ref:"alert.warning.bar.border",process:ARe(.5)},"alert.warning.border":{light:"#F5D480",dark:"#775C18"},"alert.color3.bar.border":{light:"#F8D6B9",dark:"#5E3B1D"},"alert.color3.bar.bg":{ref:"alert.color3.bar.border"},"alert.color3.background":{ref:"alert.color3.bar.border",process:ARe(.5)},"alert.color3.border":{light:"#F8B881",dark:"#774418"},"alert.danger.bar.border":{light:"#F8CED3",dark:"#5B2027"},"alert.danger.bar.bg":{ref:"alert.danger.bar.border"},"alert.danger.background":{ref:"alert.danger.bar.border",process:ARe(.5)},"alert.danger.border":{light:"#F1A2AB",dark:"#741B25"},"alert.color4.bar.border":{light:"#F7C4E2",dark:"#5B1F42"},"alert.color4.bar.bg":{ref:"alert.color4.bar.border"},"alert.color4.background":{ref:"alert.color4.bar.border",process:ARe(.5)},"alert.color4.border":{light:"#F297CC",dark:"#701F4E"},"alert.color5.bar.border":{light:"#D9C9F8",dark:"#352259"},"alert.color5.bar.bg":{ref:"alert.color5.bar.border"},"alert.color5.background":{ref:"alert.color5.bar.border",process:ARe(.5)},"alert.color5.border":{light:"#BA9BF2",dark:"#3A1C73"}};function IRe(e,t,n){return t=Qe(t),Xe(e,BRe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BRe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BRe=function(){return!!e})()}var MRe=function(e){function t(){var e;return Ye(this,t),e=IRe(this,t,arguments),Object.defineProperty(Je(e),"_executeInsert",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t,n=OB.load()||{};null===(t=e.renderer)||void 0===t||t.execCommand("alert",n.type)}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n,r=this.option.editUI;r&&t.registerBoxUI(Ja({},Kde.node,{factory:function(t){return e.createBoxUIByClazz(r,t)}})),e.onPluginEvent("insertCardByUI:".concat(Kde.node),this._executeInsert),null===(n=e.getService(SRe.ID))||void 0===n||n.registerCardSelect(Kde.cardSelect,Object.assign(Object.assign({},DRe[Kde.cardSelect]),{type:"TextItem",icon:"editor-main-highlight-block",label:gc("高亮块"),description:gc("用彩色背景来高亮提示"),mainSearch:"/glk",name:Kde.cardSelect}))}},{key:"afterInit",value:function(){this.option.onAfterEditorPluginInit&&this.option.onAfterEditorPluginInit(this.editor)}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(Wh);function FRe(e,t,n){return t=Qe(t),Xe(e,LRe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function LRe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LRe=function(){return!!e})()}Object.defineProperty(MRe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Kde.pluginName}),Object.defineProperty(MRe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:TRe}),Object.defineProperty(MRe,"UI_NAME",{enumerable:!0,configurable:!0,writable:!0,value:Kde.node}),Object.defineProperty(MRe,"Colors",{enumerable:!0,configurable:!0,writable:!0,value:jRe});var URe=function(e){function t(){var e;return Ye(this,t),e=FRe(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(By);function VRe(e,t,n){return t=Qe(t),Xe(e,HRe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function HRe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HRe=function(){return!!e})()}Object.defineProperty(URe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(Vde.service.IToolbarEditorService)});var zRe=function(e){function t(e,n,r){var o;return Ye(this,t),o=VRe(this,t),Object.defineProperty(Je(o),"editor",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"_name",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(Je(o),"_ready",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(o),"pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(o),"toolbarNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),o.pluginContext=r||{},o}return et(t,e),Ke(t,[{key:"disabled",get:function(){return this._disabled}},{key:"init",value:function(){}},{key:"disable",value:function(){this._disabled=!0,this.refresh()}},{key:"enable",value:function(){this._disabled=!1,this.refresh()}},{key:"name",get:function(){return this._name}},{key:"uiLayer",get:function(){return this.editor.uiLayer}},{key:"isReady",value:function(){return this._ready}},{key:"refresh",value:function(){this._ready=!0,this.emit("statechange")}},{key:"destroy",value:function(){this.removeAllListeners()}},{key:"close",value:function(){}}],[{key:"getTooltip",value:function(e,t,n){var r=e.renderer;if(n&&r.hasExtendMethod("getHotKeyByName")){var o=r.getHotKeyByName(n);if(o)return[t,o.text]}return[t]}}]),t}(ut);function WRe(e,t,n){return t=Qe(t),Xe(e,qRe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qRe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qRe=function(){return!!e})()}Object.defineProperty(zRe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"none"});var $Re=function(e){function t(){return Ye(this,t),WRe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t){kt("file"===e,"plugins/image/src/editor/image-toolbar-descriptor.ts:13"),this.editor.emitPluginEvent("insertCardByUI",{item:{type:"FileItem",name:"image"},args:[[t]]})}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,accept:this.pluginContext.getAccept(),className:"ne-ui-toolbar-image",tooltip:zRe.getTooltip(this.editor,gc("图片")),icon:"card-image"}}},{key:"getUIState",value:function(){var e=this.editor;return{disabled:this.disabled||!e.queryCommandEnabled("image")}}}]),t}(zRe);function KRe(e,t,n){return t=Qe(t),Xe(e,YRe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function YRe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YRe=function(){return!!e})()}Object.defineProperty($Re,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"FileButton"});var GRe=function(e){function t(){return Ye(this,t),KRe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){var t,n,r;return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function o(){var i,a;return Sc().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("click"!==e){o.next=7;break}return o.next=3,null===(r=null===(t=this.pluginContext)||void 0===t?void 0:(n=t.option).customFileSelector)||void 0===r?void 0:r.call(n);case 3:i=o.sent,(a=new File([],"image.png")).path=i,this.editor.emitPluginEvent("insertCardByUI",{item:{type:"FileItem",name:"image"},args:[[a]]});case 7:case"end":return o.stop()}}),o,this)})))}}]),t}($Re);function JRe(e,t,n){return t=Qe(t),Xe(e,XRe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function XRe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XRe=function(){return!!e})()}Object.defineProperty(GRe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});var QRe=function(e){function t(){return Ye(this,t),JRe(this,t,arguments)}return et(t,e),Ke(t,[{key:"getInitUIState",value:function(){return{disabled:this.disabled,icon:"note-image-black",accept:this.pluginContext.getAccept(),className:"ne-ui-toolbar-image",tooltip:zRe.getTooltip(this.editor,gc("图片"))}}}]),t}($Re);function ZRe(e,t,n){return t=Qe(t),Xe(e,ePe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ePe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ePe=function(){return!!e})()}var tPe=function(e){function t(){return Ye(this,t),ZRe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){var t,n,r;return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function o(){var i,a;return Sc().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("click"!==e){o.next=7;break}return o.next=3,null===(r=null===(t=this.pluginContext)||void 0===t?void 0:(n=t.option).customFileSelector)||void 0===r?void 0:r.call(n);case 3:i=o.sent,(a=new File([],"image.png")).path=i,this.editor.emitPluginEvent("insertCardByUI",{item:{type:"FileItem",name:"image"},args:[[a]]});case 7:case"end":return o.stop()}}),o,this)})))}}]),t}(QRe);function nPe(e,t,n){return t=Qe(t),Xe(e,rPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rPe=function(){return!!e})()}Object.defineProperty(tPe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});var oPe=function(e){function t(){return Ye(this,t),nPe(this,t,arguments)}return et(t,e),Ke(t,[{key:"getInitUIState",value:function(){return{disabled:this.disabled,icon:"note-image",accept:this.pluginContext.getAccept(),className:"ne-ui-toolbar-image",tooltip:zRe.getTooltip(this.editor,gc("图片"))}}}]),t}($Re);function iPe(e,t,n){return t=Qe(t),Xe(e,aPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aPe=function(){return!!e})()}var lPe=function(e){function t(){return Ye(this,t),iPe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){var t,n,r;return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function o(){var i,a;return Sc().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("click"!==e){o.next=7;break}return o.next=3,null===(r=null===(t=this.pluginContext)||void 0===t?void 0:(n=t.option).customFileSelector)||void 0===r?void 0:r.call(n);case 3:i=o.sent,(a=new File([],"image.png")).path=i,this.editor.emitPluginEvent("insertCardByUI",{item:{type:"FileItem",name:"image"},args:[[a]]});case 7:case"end":return o.stop()}}),o,this)})))}}]),t}(oPe);function uPe(e,t,n){return t=Qe(t),Xe(e,cPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function cPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cPe=function(){return!!e})()}Object.defineProperty(lPe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});var sPe=function(e){function t(){var e;return Ye(this,t),e=uPe(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(By);function dPe(e,t,n){return t=Qe(t),Xe(e,fPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function fPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fPe=function(){return!!e})()}Object.defineProperty(sPe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(Wde.service.IUploadEditorService)});var hPe="file",pPe="url",vPe="base64",mPe=function(e){function t(){var e;return Ye(this,t),e=dPe(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(By);function gPe(e,t,n){return t=Qe(t),Xe(e,bPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bPe=function(){return!!e})()}Object.defineProperty(mPe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IImageEditorService")});var yPe=function(e){function t(){var e;return Ye(this,t),e=gPe(this,t,arguments),Object.defineProperty(Je(e),"_uploadDataMap",{enumerable:!0,configurable:!0,writable:!0,value:new WeakMap}),Object.defineProperty(Je(e),"putImageUploadData",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){e._uploadDataMap.set(t,n)}}),Object.defineProperty(Je(e),"getImageUploadData",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return e._uploadDataMap.get(t)||null}}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){delete this._uploadDataMapl}}]),t}(mPe),wPe=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"_rotation",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_crop",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,1,1]}),Object.defineProperty(this,"_originWidth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_scale",{enumerable:!0,configurable:!0,writable:!0,value:1}),this._originWidth=t,this._originHeight=n}return Ke(e,[{key:"originWidth",get:function(){return this._originWidth}},{key:"originHeight",get:function(){return this._originHeight}},{key:"rotation",get:function(){return this._rotation}},{key:"scale",get:function(){return this._scale}},{key:"crop",get:function(){return this._crop}},{key:"normalizeCrop",get:function(){return this._crop.map((function(e){return+e.toFixed(4)}))}},{key:"viewCrop",get:function(){return kPe(this._rotation,this._crop)}},{key:"viewWidth",get:function(){return Math.round(this.opWidth*this.scale)}},{key:"viewHeight",get:function(){return Math.round(this.opHeight*this.scale)}},{key:"scaleWidth",get:function(){return this.scale*this.originWidth}},{key:"scaleHeight",get:function(){return this.scale*this.originHeight}},{key:"scaleRotationWidth",get:function(){return this.scale*this.rotationOriginWidth}},{key:"scaleRotationHeight",get:function(){return this.scale*this.rotationOriginHeight}},{key:"rotationOriginHeight",get:function(){return this._rotation%180==0?this._originHeight:this._originWidth}},{key:"rotationOriginWidth",get:function(){return this._rotation%180==0?this._originWidth:this._originHeight}},{key:"cropLeft",get:function(){return this.originWidth*this.crop[0]}},{key:"cropTop",get:function(){return this.originHeight*this.crop[1]}},{key:"cropHeight",get:function(){return this._originHeight*(this.crop[3]-this.crop[1])}},{key:"cropWidth",get:function(){return this._originWidth*(this.crop[2]-this.crop[0])}},{key:"opHeight",get:function(){return this._rotation%180==0?this.cropHeight:this.cropWidth}},{key:"opWidth",get:function(){return this._rotation%180==0?this.cropWidth:this.cropHeight}},{key:"setRotation",value:function(e){return this._rotation=e%360,this}},{key:"setCrop",value:function(e){return this._crop=e,this}},{key:"setScale",value:function(e){return this._scale=e,this}},{key:"setViewWidth",value:function(e){return this._scale=e/this.opWidth,this}},{key:"setViewCrop",value:function(e){return this._crop=function(e,t){return kPe(360-e,t)}(this.rotation,e),this}},{key:"toTranslate",value:function(){var e=this.crop,t=this.rotation,n=this.originHeight,r=this.originWidth/n,o=(e[2]+e[0])/2,i=(e[3]+e[1])/2;return t%180==0?[-e[0],-e[1],1/(e[2]-e[0]),1/(e[3]-e[1])]:[(e[3]-e[1])/r/2-o,r*(e[2]-e[0])/2-i,r/(e[3]-e[1]),1/r/(e[2]-e[0])]}},{key:"toTranslateStyle",value:function(){var e=this.crop,t=this.rotation,n=cn(this.toTranslate(),4),r=n[0],o=n[1],i=n[2],a=n[3];return{maxWidth:"".concat(100*i,"%"),width:"".concat(100*i,"%"),height:"".concat(100*a,"%"),transformOrigin:"".concat(50*(e[2]+e[0]),"% ").concat(50*(e[3]+e[1]),"%"),transform:"translate(".concat(100*r,"%, ").concat(100*o,"%) rotate(").concat(360-t,"deg)")}}}],[{key:"equalCrop",value:function(e,t){return e.every((function(e,n){return Math.abs(e-t[n])<1e-6}))}},{key:"toDivInlineStyle",value:function(e){var t=e.getCrop(),n=e.getRotation(),r=e.getDisplayWidth(),o=e.getDisplayHeight(),i=e.getPreviewSrc(),a=n%180==0?"100%":"".concat(o/r*100,"%"),l=n%180==0?"100%":"".concat(r/o*100,"%"),u=1/(t[2]-t[0])*100,c=1/(t[3]-t[1])*100,s=t[0]/(t[0]+1-t[2])*100||0,d=t[1]/(t[1]+1-t[3])*100||0,f=o/r,h=cn(n%180==0?[0,0]:[(1-f)/2/f,(1-1/f)/2/(1/f)],2),p=h[0],v=h[1];return"width: ".concat(a,";height: ").concat(l,";transform-origin: center;transform: translate(").concat(100*p,"%, ").concat(100*v,"%) rotate(").concat(360-n,"deg);background-image:url(").concat(i,");background-size:").concat(u,"% ").concat(c,"%;background-position:").concat(s,"% ").concat(d,"%;cursor: -webkit-grab;cursor:-moz-grab;cursor: grab;")}}]),e}();function kPe(e,t){return 90===e?[t[1],1-t[2],t[3],1-t[0]]:180===e?[1-t[2],1-t[3],1-t[0],1-t[1]]:270===e?[1-t[3],t[0],1-t[1],t[2]]:t.slice(0)}var CPe=100;function _Pe(e,t,n){return t=Qe(t),Xe(e,NPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NPe=function(){return!!e})()}var OPe=function(e){function t(){var e;return Ye(this,t),e=_Pe(this,t,arguments),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{loadError:!1}}),Object.defineProperty(Je(e),"_imageRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),e}return et(t,e),Ke(t,[{key:"shouldComponentUpdate",value:function(e,t){return t.loadError!==this.state.loadError}},{key:"render",value:function(){if(this.props.url&&!this.state.loadError)return this.renderByURL();var e=this.props,t=e.width,n=e.height;return t=isNaN(t)?CPe:t,n=isNaN(n)?60:n,nc().createElement(nc().Fragment,null,nc().createElement("div",{ref:this._imageRef,className:"ne-mock-image",style:{width:t+"px"}},nc().createElement("div",{className:"ne-mock-image-inner",style:{paddingBottom:Math.round(n/t*1e8)/1e6+"%"}})))}},{key:"renderByURL",value:function(){var e=this,t=this.props,n=t.width,r=t.url,o=t.className;return nc().createElement("img",{ref:this._imageRef,width:n,className:Kf("ne-local-image",o),src:xh.sanitizeUrl(r),onError:function(){e.setState({loadError:!0})}})}}]),t}(tc.Component);function xPe(e,t,n){return t=Qe(t),Xe(e,EPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function EPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EPe=function(){return!!e})()}Object.defineProperty(OPe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{width:CPe,height:60,type:"tip"}});var DPe=function(e){function t(){return Ye(this,t),xPe(this,t,arguments)}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){this.props.onLoaded()}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height;return t=isNaN(t)?CPe:t,n=isNaN(n)?60:n,nc().createElement("div",{className:"ne-image-error"},nc().createElement(OPe,{width:t,height:n,type:"error"}),this.renderErrorImg(),this.renderTip())}},{key:"renderErrorImg",value:function(){return nc().createElement("img",{src:bh.toDataURL('\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'),width:"16",className:"ne-image-loading-icon"})}},{key:"renderTip",value:function(){var e=this.props,t=e.tip,n=e.width,r=e.height;return t?n=30&&t>=30}},{key:"allowShowUploadingTip",value:function(e,t){return e>=100&&t>=50}}]),e}();function PPe(e,t,n){return t=Qe(t),Xe(e,SPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function SPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SPe=function(){return!!e})()}var TPe=function(e){function t(e){var n;Ye(this,t),n=PPe(this,t,[e]),Object.defineProperty(Je(n),"state",{enumerable:!0,configurable:!0,writable:!0,value:{isUploadFailed:!1,loadError:!1}}),Object.defineProperty(Je(n),"_imgNodeRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"task",{enumerable:!0,configurable:!0,writable:!0,value:null});var r=e.uploadObserver,o=e.taskId,i=e.clientId;return r&&o&&i&&(n.task=r.observe(o,i)),n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this;this.task?(gd(this,this.task,"timeout",(function(){e.props.onUploadFailure("failed to upload")})),gd(this,this.task,"success",(function(t){e.props.onUploadSuccess(t)})),gd(this,this.task,"error",(function(t){e.props.onUploadFailure(t)}))):this.props.onUploadFailure("invalid upload task")}},{key:"componentWillUnmount",value:function(){this.task&&this.task.abort()}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.height,o=t.autoScale,i=this.state.loadError;if(this.state.isUploadFailed||!this.task||this.task.isError()||this.task.isAborted())return nc().createElement(DPe,{width:n,height:r,tip:gc("图片上传失败")});var a,l=this.task.getResourceURL(),u={};if(n?u.width=n+"px":o&&(u.zoom=Math.ceil(1/fd()*1e4)/100+"%"),l&&!i){var c=xh.sanitizeUrl(l);a=nc().createElement("img",{ref:this._imgNodeRef,style:u,src:c,className:"ne-image",onLoad:function(t){e.setState({loadError:!1}),n||"blob:"!==xh.getCommon(c)||e.props.onImageSizeResolved({width:t.target.naturalWidth||t.target.width,height:t.target.naturalHeight||t.target.height})},onError:function(){e.setState({loadError:!0})}})}else a=nc().createElement(OPe,{width:n,height:r,className:"ne-image"});var s=n||i?nc().createElement("div",{className:"ne-image-uploading-progress"},nc().createElement(tD,{type:"icon-loading-desk"}),RPe.allowShowUploadingTip(n,r)?gc("上传中"):null):null;return nc().createElement("div",{className:"ne-uploading-image"},a,s)}}]),t}(tc.Component);function APe(e,t,n){return t=Qe(t),Xe(e,jPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function jPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jPe=function(){return!!e})()}Object.defineProperty(TPe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onUploadSuccess:function(){},onUploadFailure:function(){},onImageSizeResolved:function(){},autoScale:!1}});var IPe=10.5,BPe=[0,0,1,1],MPe={nw:[0,-1.5,-1.5,IPe,IPe],ne:[90,-19.5,-1.5,IPe,IPe],se:[180,-19.5,-19.5,IPe,IPe],sw:[270,-1.5,-19.5,IPe,IPe],n:[0,-17,-1.5,17,1.5],s:[0,-17,-1.5,17,1.5],w:[90,-17,-34,1.5,17],e:[90,-17,-34,1.5,17]},FPe={nw:[0,1],ne:[2,1],se:[2,3],sw:[0,3],n:[-1,1],s:[-1,3],w:[0,-1],e:[2,-1]},LPe=function(e){function t(){var e;return Ye(this,t),e=APe(this,t,arguments),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{crop:e.props.defaultCrop}}),Object.defineProperty(Je(e),"_handleEmitChange",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(Je(e),"_handleMoveMouseDown",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=(e.props.crop||e.state.crop).slice(0);VPe(t,(function(t,r){e._moveByXY(n,t,r)}),e._handleEmitChange)}}),Object.defineProperty(Je(e),"_handleCornerMouseDown",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.props,r=n.width,o=n.height,i=(n.crop||e.state.crop).slice(0),a=t.target,l=a.getAttribute("face"),u=cn(MPe[l],3),c=u[1],s=u[2],d=cn(FPe[l],2),f=d[0],h=d[1],p=+a.getAttribute("x"),v=+a.getAttribute("y");VPe(t,(function(t,n){var a=i.slice(0),l=(a[2]-a[0])/(a[3]-a[1]);-1!==f&&(i[f]=HPe((p+t-c)/r),(i[2]-i[0])*r<28&&(0===f?i[0]=HPe(i[2]-28/r):i[2]=HPe(i[0]+28/r))),-1!==h&&(i[h]=HPe((v+n-s)/o),(i[3]-i[1])*o<28&&(1===h?i[1]=HPe(i[3]-28/o):i[3]=HPe(i[1]+28/o))),!e.props.shouldKeepRadio()||(i[2]-i[0])/(i[3]-i[1])===l||(function(e,t,n,r){if(-1===t){var o=(e[0]+e[2])/2,i=(e[3]-e[1])/2;e[0]=o-i*r,e[2]=o+i*r;var a=Math.max(0-e[0],e[2]-1,0);return a>0&&(e[0]+=a,e[2]-=a,1===n?e[1]+=a/r*2:e[3]-=a/r*2),e}if(-1===n){var l=(e[1]+e[3])/2,u=(e[2]-e[0])/2;e[1]=l-u/r,e[3]=l+u/r;var c=Math.max(0-e[1],e[3]-1,0);return c>0&&(e[1]+=c,e[3]-=c,0===t?e[0]+=c*r*2:e[2]-=c*r*2),e}var s=e[3]-e[1],d=e[2]-e[0];d>s*r?2===t?e[2]=e[0]+s*r:e[0]=e[2]-s*r:3===n?e[3]=e[1]+d/r:e[1]=e[3]-d/r}(i,f,h,l),function(e,t,n){return!(e[0]<0||e[1]<0||e[2]>1||e[3]>1||(e[3]-e[1])*n<28||(e[2]-e[0])*t<28)}(i,r,o))?e.props.onChange(i):a.forEach((function(e,t){i[t]=e}))}),e._handleEmitChange)}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.height,o=t.crop,i=t.className,a=t.style,l=o||this.state.crop,u=function(e){return[[e[0],e[1],"nw"],[e[0]/2+e[2]/2,e[1],"n"],[e[2],e[1],"ne"],[e[0],e[1]/2+e[3]/2,"w"],[e[2],e[1]/2+e[3]/2,"e"],[e[0],e[3],"sw"],[e[0]/2+e[2]/2,e[3],"s"],[e[2],e[3],"se"]]}(l),c=n*(l[2]-l[0])>76,s=r*(l[3]-l[1])>76;return nc().createElement(nc().Fragment,null,nc().createElement("div",{className:uC()("lake-crop-box",i),style:a},nc().createElement("svg",{width:n+8,height:r+8},nc().createElement("defs",null,nc().createElement("g",{id:"corner"},nc().createElement("path",{d:"M18.5,-0.5 C19.0522847,-0.5 19.5522847,-0.276142375 19.9142136,0.0857864376 C20.2761424,0.44771525 20.5,0.94771525 20.5,1.5 C20.5,2.05228475 20.2761424,2.55228475 19.9142136,2.91421356 C19.5522847,3.27614237 19.0522847,3.5 18.5,3.5 L18.5,3.5 L3.5,3.5 L3.5,18.5 C3.5,19.0522847 3.27614237,19.5522847 2.91421356,19.9142136 C2.55228475,20.2761424 2.05228475,20.5 1.5,20.5 C0.94771525,20.5 0.44771525,20.2761424 0.0857864376,19.9142136 C-0.276142375,19.5522847 -0.5,19.0522847 -0.5,18.5 L-0.5,18.5 L-0.5,3 C-0.5,2.07071993 -0.137819527,1.2260429 0.453035214,0.599369341 C1.05065491,-0.0344792808 1.88229773,-0.445093206 2.80972104,-0.494902783 L2.80972104,-0.494902783 Z"})),nc().createElement("g",{id:"handle"},nc().createElement("rect",{width:"34",height:"3",rx:"1.5"}))),nc().createElement("g",{transform:"translate(".concat(4,", ").concat(4,")")},nc().createElement("path",{className:"ne-crop-mask",fillRule:"nonzero",d:"M0,0 h".concat(n," v").concat(r," h").concat(-n," z\n M").concat(n*l[0],",").concat(r*l[1]," v").concat(r*(l[3]-l[1]),"\n h").concat(n*(l[2]-l[0])," v").concat(r*(l[1]-l[3])," z")}),nc().createElement("path",{className:"ne-crop-tools ne-crop-move ".concat(UPe(l)?"":"movable"),d:"M".concat(n*l[0],",").concat(r*l[1]," v").concat(r*(l[3]-l[1]),"\n h").concat(n*(l[2]-l[0])," v").concat(r*(l[1]-l[3])," z"),onMouseDown:this._handleMoveMouseDown,onTouchStart:this._handleMoveMouseDown}),u.map((function(t){var o=cn(t,3),i=o[0],a=o[1],l=o[2];if(!c&&["n","s"].includes(l))return null;if(!s&&["e","w"].includes(l))return null;var u=l.length<2?"#handle":"#corner",d=cn(MPe[l],5),f=d[0],h=d[1],p=d[2],v=d[3],m=d[4],g=n*i+h,b=r*a+p,y=nc().createElement("use",{key:l,face:l,x:g,y:b,transform:"rotate(".concat(f," ").concat(g+v," ").concat(b+m,")"),xlinkHref:u,className:"ne-crop-tools ne-crop-".concat(l),onMouseDown:e._handleCornerMouseDown,onTouchStart:e._handleCornerMouseDown});return"#corner"===u?nc().createElement(nc().Fragment,null,nc().createElement("rect",{key:"rect-"+l,className:"ne-crop-mobile-tools ne-crop-".concat(l),face:l,x:g,y:b,width:21,height:21,onMouseDown:e._handleCornerMouseDown,onTouchStart:e._handleCornerMouseDown}),y):y}))))))}},{key:"_handleCropChange",value:function(e){this.props.crop||this.setState({crop:e}),this.props.onChange(e)}},{key:"_moveByXY",value:function(e,t,n){var r=this.props,o=r.width,i=r.height,a=(r.crop||this.state.crop).slice(0),l=t/o,u=n/i;e[0]+l<0?l=-e[0]:e[2]+l>1&&(l=1-e[2]),e[1]+u<0?u=-e[1]:e[3]+u>1&&(u=1-e[3]),a[0]=e[0]+l,a[1]=e[1]+u,a[2]=e[2]+l,a[3]=e[3]+u,this.props.onChange(a)}}]),t}(tc.Component);function UPe(e){return e.every((function(e,t){return e-BPe[t]<1e-7}))}function VPe(e,t,n){e.preventDefault(),e.stopPropagation();var r=-1,o=e.clientX,i=e.clientY;e.changedTouches&&e.changedTouches[0]&&(o=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY,r=e.changedTouches[0].identifier);var a={destroy:function(){}},l=function(e){if(e.preventDefault(),e.stopPropagation(),-1===r)t(e.clientX-o,e.clientY-i);else for(var n=0;na&&(r=(n=a)*i)}return{width:n,height:r}}}]),t}(tc.Component);function $Pe(e,t,n){return t=Qe(t),Xe(e,KPe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function KPe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KPe=function(){return!!e})()}Object.defineProperty(qPe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onChange:function(){},onOk:function(){},getImageNode:function(){}}});var YPe=function(e){function t(){var e;return Ye(this,t),e=$Pe(this,t,arguments),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{loaded:!1,rotation:0,width:0,viewWidth:0,crop:[0,0,1,1],croping:!1}}),Object.defineProperty(Je(e),"_imageOp",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_imageNodeRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_croppedImageEleRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_retryTimes",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(e),"_canvas",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_img",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_handleOriginImageLoad",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.props.onLoad(t)}}),Object.defineProperty(Je(e),"_handleOriginImageError",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.props.onError(t)}}),Object.defineProperty(Je(e),"_handleSourceLoad",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.setState({editable:!0}),e.props.onEditableChange(!0)}}),Object.defineProperty(Je(e),"_handleSourceError",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(e._retryTimes>=2)return e.setState({editable:!1}),void e.props.onEditableChange(!1);e._retryTimes++;try{var t=new URL(e.props.src,window.location.href);t.searchParams.set("date",String(Date.now())),e._img.src=t.toString()}catch(t){e._img.src=e.props.src}}}),Object.defineProperty(Je(e),"getEditorImageDataUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(!e.state.editable)throw new Error("cant editable");var t=e.props.cardData;e._imageOp||(e._imageOp=new wPe(t.getOriginalWidth(),t.getOriginalHeight()));var n=e._canvas.getContext("2d");e._canvas.width=e._imageOp.opWidth,e._canvas.height=e._imageOp.opHeight;var r=e._imageOp,o=r.cropWidth,i=r.cropHeight,a=r.rotation;return n.save(),n.translate(e._canvas.width/2,e._canvas.height/2),n.rotate((360-a)*Math.PI/180),n.drawImage(e._img,e._imageOp.cropLeft,e._imageOp.cropTop,o,i,-o/2,-i/2,o,i),n.restore(),e._canvas.toDataURL()}}),e}return et(t,e),Ke(t,[{key:"naturalWidth",get:function(){var e=this._imageNodeRef.current||this._img;return e.naturalWidth||e.width}},{key:"naturalHeight",get:function(){var e=this._imageNodeRef.current||this._img;return e.naturalHeight||e.height}},{key:"imageNode",get:function(){return this._imageNodeRef.current||null}},{key:"imgEle",get:function(){return this._croppedImageEleRef.current||this._imageNodeRef.current||null}},{key:"componentDidMount",value:function(){var e=this.props,t=e.src;if(!e.readMode&&t){this._canvas=document.createElement("canvas"),this._img=new Image,this._img.crossOrigin="Anonymous",this._img.addEventListener("load",this._handleSourceLoad),this._img.addEventListener("error",this._handleSourceError);try{var n=new URL(t,window.location.href);n.searchParams.set("crossOrigin","true"),this._img.src=n.toString()}catch(e){this._img.src=t}}}},{key:"componentWillUnmount",value:function(){this._img&&(this._img.removeEventListener("load",this._handleSourceLoad),this._img.removeEventListener("error",this._handleSourceError)),this._canvas=null,this._img=null}},{key:"render",value:function(){var e=this.props,t=e.cardData,n=e.crop,r=e.croping,o=e.rotation,i=e.src,a=(e.onError,e.width),l=(e.onLoad,e.onEditableChange,e.onWidthChange,e.readMode,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0||o>0||i>0)){var a=Math.min(e.parentNode.getBoundingClientRect().width,o)/r;e.innerHTML=(n||[]).map((function(e){var t=Math.min(Math.min(e.width,e.height)*a,50),n="font-size: ".concat(t,"px; left: ").concat(e.x/r*100,"%;top: ").concat(e.y/i*100,"%;");return'
').concat(Cd.encodeHTML(e.text),"
")})).join("")}}}},{key:"render",value:function(){return nc().createElement("div",{className:"ne-ui-image-ocr-mask",ref:this._rootNodeRef})}}]),t}(tc.Component);function ZPe(e,t,n){return t=Qe(t),Xe(e,eSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function eSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eSe=function(){return!!e})()}var tSe=function(e){function t(){var e;return Ye(this,t),e=ZPe(this,t,arguments),Object.defineProperty(Je(e),"_boxRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_tlRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_trRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_brRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_blRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"originCardIndex",{enumerable:!0,configurable:!0,writable:!0,value:0}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this;if(this._tlRef.current&&!Ks.mobile){var t="mousedown";vd(this,this._tlRef.current,t,(function(t){e._handleResize(t,"tl")}),!1),vd(this,this._trRef.current,t,(function(t){e._handleResize(t,"tr")}),!1),vd(this,this._brRef.current,t,(function(t){e._handleResize(t,"br")}),!1),vd(this,this._blRef.current,t,(function(t){e._handleResize(t,"bl")}),!1)}}},{key:"render",value:function(){return nc().createElement(nc().Fragment,null,nc().createElement("div",{className:"ne-ui-image-resizer-box",ref:this._boxRef},nc().createElement("div",{className:"ne-ui-image-resizer ne-resizer-tl"}),nc().createElement("div",{className:"ne-ui-image-resizer ne-resizer-tr"}),nc().createElement("div",{className:"ne-ui-image-resizer ne-resizer-br"}),nc().createElement("div",{className:"ne-ui-image-resizer ne-resizer-bl"})),nc().createElement("div",{className:"ne-ui-image-resizer-handler ne-resizer-tl",ref:this._tlRef}),nc().createElement("div",{className:"ne-ui-image-resizer-handler ne-resizer-tr",ref:this._trRef}),nc().createElement("div",{className:"ne-ui-image-resizer-handler ne-resizer-br",ref:this._brRef}),nc().createElement("div",{className:"ne-ui-image-resizer-handler ne-resizer-bl",ref:this._blRef}))}},{key:"_getClientXFromEvent",value:function(e){try{return e.clientX}catch(e){return 0}}},{key:"_handleResize",value:function(e,t){var n=this;e.preventDefault(),e.stopPropagation(),this.props.onResizeStart();var r={destroy:function(){}},o=this.props.getImageNode();if(o){var i=o.getBoundingClientRect().width,a=!1,l=this._getClientXFromEvent(e);kc(r,document,"mousemove",(function(r){r.preventDefault(),r.stopPropagation(),a=!0,l=n._getClientXFromEvent(r),n._process(!1,t,i,l-n._getClientXFromEvent(e))}),!1),kc(r,document,"mouseup",(function(o){o.preventDefault(),o.stopPropagation(),r.destroy(),a&&n._process(!0,t,i,(n._getClientXFromEvent(o)||l)-n._getClientXFromEvent(e)),n.props.cardEle&&void 0!==n.originCardIndex&&(n.props.cardEle.style.zIndex=""+n.originCardIndex)}),!1),this.props.cardEle&&(this.originCardIndex=Number(this.props.cardEle.style.zIndex),this.props.cardEle.style.zIndex="2")}}},{key:"_process",value:function(e,t,n,r){var o=this._resizeByWidth(e,t,n,r);e&&(this._resetBox(),this.props.onChange(o))}},{key:"_resizeByWidth",value:function(e,t,n,r){var o=this._boxRef.current,i=this.props,a=i.width,l=i.height/a*n,u="0",c="0",s="0",d="0",f=function(e,t,n){if((e=Math.max(e,1))===t)return{width:t,height:n};var r=Math.round(n/t*e);return r<1&&(r=1,e=Math.round(t/n*r)),{width:e,height:r}}("tl"===t||"bl"===t?n-r:n+r,this.props.originalWidth,this.props.originalHeight),h=f.width,p=f.height;return"tl"===t?(c=n-h+"px",u=l-p+"px"):"tr"===t?(s=n-h+"px",u=l-p+"px"):"br"===t?(s=n-h+"px",d=l-p+"px"):(c=n-h+"px",d=l-p+"px"),o.style.top=u,o.style.bottom=d,o.style.right=s,o.style.left=c,o.classList.add("ne-ui-resizing"),o.setAttribute("data-size","".concat(h," x ").concat(p)),{width:h}}},{key:"_resetBox",value:function(){var e=this._boxRef.current;e.style.cssText="",e.classList.remove("ne-ui-resizing"),e.removeAttribute("data-size")}}]),t}(tc.Component);function nSe(e,t,n){return t=Qe(t),Xe(e,rSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rSe=function(){return!!e})()}Object.defineProperty(tSe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onChange:function(){},onResizeStart:function(){}}});var oSe=function(e){function t(){var e;return Ye(this,t),e=nSe(this,t,arguments),Object.defineProperty(Je(e),"_focused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_dom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_timeId",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_rafID",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(e),"domContext",{enumerable:!0,configurable:!0,writable:!0,value:{destroy:function(){}}}),Object.defineProperty(Je(e),"_checkHeight",{enumerable:!0,configurable:!0,writable:!0,value:function(){cancelAnimationFrame(e._rafID),e._rafID=requestAnimationFrame((function(){e._dom&&e._height!==e._dom.offsetHeight&&(e._height=e._dom.offsetHeight,e.props.onHeightChange())}))}}),Object.defineProperty(Je(e),"_handleContentWillChange",{enumerable:!0,configurable:!0,writable:!0,value:function(t){if(ed.isChar(t,"S")&&(Ks.macos?ed.onlyMeta(t):ed.onlyCtrl(t)))e._emitDone(t.target.textContent.trim(),""===t.target.textContent.trim());else if(t.stopPropagation(),299!==t.keyCode){var n=t.target.textContent.trim();if(ed.isEnter(t))return t.preventDefault(),void e._emitDone(n,!0,!0);if(""===n&&(ed.isBackspace(t)||ed.isDelete(t)))return t.preventDefault(),void e.props.onDel(!0);n===e.props.content&&90===t.keyCode&&(t.ctrlKey||t.metaKey)&&(e._timeId=window.setTimeout(e.props.onBack),t.preventDefault()),e._handleChange(t)}}}),Object.defineProperty(Je(e),"_handleInput",{enumerable:!0,configurable:!0,writable:!0,value:function(t){"historyUndo"===t.inputType&&clearTimeout(e._timeId),t.stopPropagation()}}),Object.defineProperty(Je(e),"_handlePaste",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.preventDefault(),t.stopPropagation();var n=(t.originalEvent||t).clipboardData.getData("text/plain");document.execCommand("insertText",!1,n.replace(/\n/g," ")),e._handleChange(t)}}),Object.defineProperty(Je(e),"_handleContentChange",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.stopPropagation(),e._handleChange(t)}}),Object.defineProperty(Je(e),"_handleFocus",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._focused=!0}}),Object.defineProperty(Je(e),"_handleBlur",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._focused=!1;var n=t.target.textContent.trim();e._emitDone(n)}}),Object.defineProperty(Je(e),"_handleTitleRef",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t&&(e.domContext.destroy(),e.domContext.destroy=function(){},e._dom=t,kc(e.domContext,t,"focus",e._handleFocus),kc(e.domContext,t,"blur",e._handleBlur),kc(e.domContext,t,"keydown",(function(t){return e._handleContentWillChange(t)})),kc(e.domContext,t,"keyup",e._handleContentChange),kc(e.domContext,t,"beforeinput",e._stopPropagation),kc(e.domContext,t,"input",e._handleInput),kc(e.domContext,t,"compositionstart",(function(t){return e._handleContentWillChange(t)})),kc(e.domContext,t,"compositionend",e._handleContentChange),kc(e.domContext,t,"copy",e._stopPropagation),kc(e.domContext,t,"cut",(function(t){return e._handleContentWillChange(t)})),kc(e.domContext,t,"paste",e._handlePaste))}}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){this._dom&&(this._dom.innerText=this.props.content,this.props.editable&&(this._checkHeight(),this._getFocus()))}},{key:"componentDidUpdate",value:function(e){this._dom&&(e.content!==this.props.content&&(this._dom.innerText=this.props.content,this.props.editable&&""===this.props.content&&this._getFocus()),e.width!==this.props.width&&(this._dom.style.width=this.props.width+"px"),this.props.editable&&this._checkHeight())}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this._rafID),this.domContext.destroy(),this._dom=null}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.editable;return nc().createElement("div",{style:{width:t},className:"ne-image-title"},nc().createElement("div",{contentEditable:n,className:"ne-image-title-content",ref:this._handleTitleRef}),this._renderPlaceholder())}},{key:"_getFocus",value:function(){var e,t;this.props.beforeAutoFocus();var n=window.getSelection();(null===(t=null===(e=null==n?void 0:n.anchorNode)||void 0===e?void 0:e.closest)||void 0===t?void 0:t.call(e,".ne-image-sidebar-box"))||(null==n||n.selectAllChildren(this._dom),null==n||n.collapseToEnd())}},{key:"_renderPlaceholder",value:function(){if(!this.props.editable)return null;var e={display:"block"};return this.props.content&&(e.display="none"),nc().createElement("div",{className:"ne-image-title-placeholder",style:e},gc("添加图片描述"))}},{key:"_stopPropagation",value:function(e){e.stopPropagation()}},{key:"_handleChange",value:function(e){var t,n,r=null===(n=null===(t=e.target)||void 0===t?void 0:t.parentNode)||void 0===n?void 0:n.querySelector(".ne-image-title-placeholder");r&&(""===e.target.textContent?r.style.display="block":r.style.display="none"),this._checkHeight()}},{key:"_emitDone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];""===e?this.props.onDel(t,n):this.props.onDone(e,t)}}]),t}(tc.Component);function iSe(e,t,n){return t=Qe(t),Xe(e,aSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aSe=function(){return!!e})()}Object.defineProperty(oSe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{width:20,content:"",editable:!1,croping:!1,onHeightChange:function(){},onDone:function(){},onDel:function(){},onBack:function(){},beforeAutoFocus:function(){}}});var lSe=function(e){},uSe=function(e){function t(){var e;return Ye(this,t),e=iSe(this,t,arguments),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{imageDisplayUrl:null,loaded:!1,loadError:!1,loadErrorOnce:!1,menuVisible:!1,naturalWidth:-1}}),Object.defineProperty(Je(e),"_imageEditRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_imageBoxRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_removeFunc",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"_unmounted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_dragIsReady",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_hasRetryOriginImage",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_hasRetryBackup",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_handleImageClick",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.props.clickToMaximize&&e._handleMaximizeClick(t)}}),Object.defineProperty(Je(e),"_handleMaximizeClick",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.stopPropagation(),t.preventDefault(),e.props.onPreviewImage()}}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.cardData,r=t.generateDisplayUrl,o=t.setDisplayUrl;setTimeout((function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!e._imageBoxRef.current){if(i<2)return void setTimeout(t,100,i+1);var a=xh.sanitizeImageSrc(r(n.getOriginDisplayWidth()||n.getOriginalWidth()));return o(a),void e.setState({imageDisplayUrl:a})}var l=e._imageBoxRef.current.getBoundingClientRect().width,u=l>0?l:n.getOriginDisplayWidth(),c=xh.sanitizeImageSrc(r(u));o(c),e.setState({imageDisplayUrl:c})})),this.props.onUIUpdate()}},{key:"componentDidUpdate",value:function(){this.props.onUIUpdate()}},{key:"componentWillUnmount",value:function(){this._unmounted=!0,this._removeFunc.forEach((function(e){return e()}))}},{key:"_finalError",value:function(){this.setState({loadError:!0,loadErrorOnce:!0})}},{key:"_imageLoadError",value:function(){var e,t=this;if(!this._unmounted){var n=!!(null===(e=this.props.failConfig)||void 0===e?void 0:e.isRetry);this._hasRetryOriginImage&&(!n||n&&this._hasRetryBackup)?this._finalError():(this.setState({loadErrorOnce:!0}),setTimeout((function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,Sc().mark((function e(){var t,r,o,i;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._hasRetryOriginImage){e.next=7;break}this._hasRetryOriginImage=!0,r=xh.sanitizeImageSrc(this._resetImageDisplayUrl(this.state.imageDisplayUrl,!0)),this.props.setDisplayUrl(r),this.setState({imageDisplayUrl:r}),e.next=16;break;case 7:if(!n||this._hasRetryBackup){e.next=16;break}if(this._hasRetryBackup=!0,"function"==typeof(o=null===(t=this.props.failConfig)||void 0===t?void 0:t.getRetryUrl)){e.next=13;break}return this._finalError(),e.abrupt("return");case 13:i=o(this.state.imageDisplayUrl),this.props.setDisplayUrl(i),this.setState({imageDisplayUrl:i});case 16:case"end":return e.stop()}}),e,this)})))}),300))}}},{key:"_resetImageDisplayUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var n=new URL(e,location.href);if(n.searchParams.set("date",String(Date.now())),t){var r=n.pathname.toLowerCase();(r.endsWith(".webp")||r.endsWith(".gif"))&&n.searchParams.delete("x-oss-process")}return n.toString()}catch(t){return e.indexOf("?")>0?"".concat(e,"&t=").concat(Date.now()):"".concat(e,"?t=").concat(Date.now())}}},{key:"_imageLoad",value:function(){var e=this;this._unmounted||(this.setState({loadErrorOnce:!1}),this.props.onLoaded(),setTimeout((function(){if(!e._unmounted){var t=e._imageEditRef.current,n=t.naturalWidth||t.width;e.setState({loaded:!0,naturalWidth:n}),e.props.cardData.getOriginalWidth()||e.props.onImageSizeResolved({width:n,height:t.naturalHeight||t.height}),e._initDrag(),e.props.onReady(t.getEditorImageDataUrl)}}),20))}},{key:"_getLocalUrl",value:function(){var e=this.props,t=e.cardData,n=e.uploadObserver;if(t.isCompleted())return null;var r,o=t.getTaskId();return o&&n?null==(r=n.observe(o,t.getClientId()))?void 0:r.getResourceURL():null}},{key:"_getBoxStyleOnLoading",value:function(){var e=this.props.cardData,t={},n=e.getDisplayWidth(),r=e.getDisplayHeight();return t.width="".concat(n,"px"),t.height="0",t.paddingBottom="".concat(Math.round(r/n*1e8)/1e6,"%"),t}},{key:"render",value:function(){var e=this.props.linkProps,t=this.state,n=t.loaded,r=t.loadError,o=t.imageDisplayUrl,i=this._getLocalUrl(),a=null,l=r,u=!n&&i&&!o;l?a=this._renderErrorImage():u&&(a=this._renderLocalImage(i));var c={},s=!l&&!u&&!n;s&&(c=this._getBoxStyleOnLoading());var d=nc().createElement("div",{className:this._getImageClassName(),"data-testid":"ne-card-image"},this._renderInnerButtons(),this._renderOCRMask(),this._renderResizer(),this._renderCrop(),nc().createElement("div",{className:Kf("ne-image-box",s?"ne-image-box-loading":""),style:c,ref:this._imageBoxRef},this._renderImage(!l&&!u),a));return e&&(d=nc().createElement("a",Object.assign({},e),d)),nc().createElement(nc().Fragment,null,d,this._renderTitle())}},{key:"_renderTitle",value:function(){var e,t=this.props,n=t.cardData,r=t.croping,o=t.active,i=t.editable,a=t.currentImageOP;if(!n.showTitle())return null;var l=n.getDisplayWidth();if(r&&(l=a.scaleRotationWidth),r&&(null===(e=this._imageEditRef.current)||void 0===e?void 0:e.imageNode)){var u=this._imageEditRef.current.imageNode;Number(u.getAttribute("width"))!==Math.round(l)&&(u.style.width=Math.round(l)+"px"),l=Math.min(u.offsetWidth,l)}return nc().createElement(oSe,{editable:i&&o,croping:r,content:n.getTitle(),width:l,onDone:this.props.onTitleCommit,onDel:this.props.onTitleRemove,onBack:this.props.onTitleHistoryBack,beforeAutoFocus:this.props.onBeforeTitleAutoFocus,onHeightChange:this.props.onTitleHeightChange})}},{key:"_renderImage",value:function(e){var t=this.props,n=t.cardData,r=t.clickToMaximize,o=t.currentImageOP,i=t.croping,a=t.editable,l=t.isIntersecting,u=this.state,c=u.imageDisplayUrl,s=u.loadErrorOnce;return c?nc().createElement(YPe,{readMode:!a,cardData:n,croping:i,rotation:i?o.rotation:n.getRotation(),crop:i?o.crop:n.getCrop(),ref:this._imageEditRef,className:Kf("ne-image",r?"ne-image-preview":"",e&&l&&!s?"":"ne-image-hide"),src:l?c:void 0,alt:n.getName()||"",onEditableChange:this.props.onEditableChange,onClick:r?this._handleImageClick:lSe,onWidthChange:this.props.onWidthChange,width:i?o.viewWidth:n.getDisplayWidth(),onLoad:this._imageLoad.bind(this),onError:this._imageLoadError.bind(this)}):null}},{key:"_renderLocalImage",value:function(e){var t=this.props.cardData,n=t.getDisplayWidth(),r=t.getDisplayHeight();return nc().createElement(OPe,{url:e,width:n,height:r,className:"ne-bg-img"})}},{key:"_renderErrorImage",value:function(){var e=this.props.cardData;return nc().createElement(DPe,{tip:gc("图片加载失败"),width:e.getDisplayWidth(),height:e.getDisplayHeight(),onLoaded:this.props.onLoaded})}},{key:"_renderInnerButtons",value:function(){var e=this;if(!this.state.loaded||Ks.mobile)return null;var t=this.props,n=t.cardData,r=t.croping,o=t.onPreviewImage,i=t.allowMaximize,a=t.innerButtonWidgets;if(!r){var l=n.getDisplayWidth();if(!(n.getDisplayHeight()<1||l<1))return nc().createElement(GPe,{className:Kf("ne-ui-image-inner-button-wrap",this.state.menuVisible?"ne-ui-image-inner-button-wrap-menu-open":""),widgets:a,onPreviewImage:o,allowMaximize:i,cardData:n,onMenuVisibleChange:function(t){e.setState({menuVisible:!!t})},themeSelector:this.props.themeSelector.bind(this)})}}},{key:"_renderResizer",value:function(){var e=this;if(Ks.mobile||!this.props.active||this.props.croping||!this.props.allowResize||!this.state.loaded)return null;var t=this.props,n=t.cardData,r=t.cardEle,o=n.getRotationCropWidth(),i=n.getRotationCropHeight();return o<1||i<1?null:nc().createElement(tSe,{onChange:function(t){e.props.onImageSizeChange(t)},onResizeStart:this.props.onResizerStart,getImageNode:function(){return e._imageEditRef.current?e._imageEditRef.current.imageNode:null},originalWidth:o,originalHeight:i,width:n.getDisplayWidth(),height:n.getDisplayHeight(),cardEle:r})}},{key:"_renderCrop",value:function(){var e=this;if(!this.props.croping||!this.props.allowResize||!this.state.loaded)return null;var t=this.props,n=t.cardData,r=t.currentImageOP,o=n.getOriginalWidth(),i=n.getOriginalHeight();return o<1||i<1?null:nc().createElement(qPe,{cardData:n,currentImageOP:r,rotation:r.rotation,getImageNode:function(){return e._imageEditRef.current?e._imageEditRef.current.imageNode:null},onOk:this.props.onCropOK,onChange:this.props.onCropChange})}},{key:"_renderOCRMask",value:function(){if(!this.state.loaded)return null;var e=this.props,t=e.cardData,n=e.ocr,r=t.getOcrLocations();return!Ks.mobile&&n&&r?nc().createElement(QPe,{ocrLocations:r,originalWidth:t.getOriginalWidth(),originalHeight:t.getOriginalHeight(),displayWidth:t.getDisplayWidth()}):null}},{key:"_initDrag",value:function(){var e,t,n=this;if(!(this._dragIsReady||this._unmounted||Ks.mobile)){this._dragIsReady=!0;var r=null===(t=null===(e=this._imageEditRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.imgEle;this.props.drag&&r&&new Wj(this.props.drag.editBox,this.props.drag.overlayContainer,this.props.drag.cardRootNode,r,this.props.drag.scrollContainer,(function(e){var t,r;null===(r=(t=n.props).onDrop)||void 0===r||r.call(t,e)}),(function(e){var t,o;if(e){var i=r.getBoundingClientRect(),a=i.width,l=i.height;e.style.width="".concat(a,"px"),e.style.height="".concat(l,"px")}null===(o=(t=n.props).onDragStart)||void 0===o||o.call(t)}),this.props.themeSelector())}}},{key:"_getImageClassName",value:function(){var e=["ne-image-wrap"];this.state.loaded&&e.push("ne-image-loaded");var t=this.props.cardData.getStyle();return t&&e.push("ne-image-style-".concat(t)),e.join(" ")}}]),t}(tc.Component);function cSe(e,t,n){return t=Qe(t),Xe(e,sSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sSe=function(){return!!e})()}Object.defineProperty(uSe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{active:!1,allowResize:!1,allowMaximize:!0,clickToMaximize:!1,ocr:!1,loading:!1,editable:!1,onTitleHistoryBack:function(){},onTitleCommit:function(){},onTitleRemove:function(){},onTitleChange:function(){},onReady:function(e){},onImageSizeResolved:function(e){},onImageSizeChange:function(e){},onResizerStart:function(){},onPreviewImage:function(){},onLoaded:function(){},onCropChange:function(){},onEditableChange:function(e){},onUIUpdate:function(){}}});var dSe=function(e){function t(){var e;return Ye(this,t),e=cSe(this,t,arguments),Object.defineProperty(Je(e),"prevImgUrl",{enumerable:!0,configurable:!0,writable:!0,value:""}),e}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this.props,t=e.cardData,n=e.uploadObserver,r=e.cardEle,o=t.getStatus();return o===tM||o===nM?nc().createElement(TPe,{onUploadFailure:this.props.onUploadFailure,onUploadSuccess:this.props.onUploadSuccess,onImageSizeResolved:this.props.onImageSizeResolved,uploadObserver:n,width:t.getDisplayWidth(),height:t.getDisplayHeight(),taskId:t.getTaskId(),clientId:t.getClientId(),autoScale:t.isFromPaste()}):t.isValid()?nc().createElement(uSe,{cardData:t,cardEle:r,uploadObserver:n,allowResize:!0,ocr:this.props.ocr,editable:!0,croping:this.props.croping,failConfig:this.props.failConfig,onReady:this.props.onReady,onCropOK:this.props.onCropOK,currentImageOP:this.props.currentImageOP,onPreviewImage:this.props.onPreviewImage,allowMaximize:this.props.allowMaximize,onImageSizeResolved:this.props.onImageSizeResolved,onImageSizeChange:this.props.onImageSizeChange,onResizerStart:this.props.onResizerStart,onTitleHeightChange:this.props.onTitleHeightChange,onTitleCommit:this.props.onTitleCommit,onTitleRemove:this.props.onTitleRemove,onTitleHistoryBack:this.props.onTitleHistoryBack,onBeforeTitleAutoFocus:this.props.onBeforeTitleAutoFocus,onEditableChange:this.props.onEditableChange,onWidthChange:this.props.onWidthChange,onUIUpdate:this.props.onUIUpdate,active:this.props.active,generateDisplayUrl:this.props.generateDisplayUrl,setDisplayUrl:this.props.setDisplayUrl,lazyLoad:this.props.lazyLoad,drag:this.props.drag,onDrop:this.props.onDrop,onDragStart:this.props.onDragStart,isIntersecting:this.props.isIntersecting,innerButtonWidgets:this.props.innerButtonWidgets,themeSelector:this.props.themeSelector}):nc().createElement(DPe,{width:t.getDisplayWidth(),height:t.getDisplayHeight(),tip:gc("图片上传失败")})}}]),t}(tc.Component);function fSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fSe=function(){return!!e})()}function hSe(e){return function(e){function t(){var e;Ye(this,t);for(var n=arguments.length,r=new Array(n),o=0;o1?r-1:0),i=1;in.bottom?e.scrollTop=e.scrollTop+o:r.top')),e}),r})).filter(Boolean):null}},{key:"moveSelectionToNext",value:function(e){if(!this.viewNode.isConnected)return null;e?this.editor.execCommand("imageTitleBreakLine",this.id):this.editor.execCommand("focusCard",this.id,BL)}},{key:"allowFocus",value:function(){return!1}},{key:"$focus",value:function(){t.cancelCloseTask&&(t.cancelCloseTask(),t.cancelCloseTask=null),Cr(Qe(t.prototype),"$focus",this).call(this)}},{key:"$blur",value:function(){Cr(Qe(t.prototype),"$blur",this).call(this)}},{key:"sync",value:function(){return this.cardData.isCompleted()}},{key:"_autoSetUserWidth",value:function(e){this.cardData.isFromPaste()&&this.cardData.isBinaryType()&&this.cardData.setDisplayWidth(e/fd())}}]),t}(Wy);function bSe(e,t,n){return t=Qe(t),Xe(e,ySe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ySe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ySe=function(){return!!e})()}Object.defineProperty(gSe,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:lM}),Object.defineProperty(gSe,"$EditableCardUI",{enumerable:!0,configurable:!0,writable:!0,value:hSe(Gh()())}),Object.defineProperty(gSe,"$NonBoundary",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(gSe,"cancelCloseTask",{enumerable:!0,configurable:!0,writable:!0,value:null});var wSe=function(e){function t(e,n){var r;return Ye(this,t),r=bSe(this,t),Object.defineProperty(Je(r),"_apiURL",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_file",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_resourceURL",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_uploadRequest",{enumerable:!0,configurable:!0,writable:!0,value:null}),r._id=mr(),r._file=sd(n),r}return et(t,e),Ke(t,[{key:"getResourceURL",value:function(){return this._resourceURL||(this._resourceURL=URL.createObjectURL(this._file)),this._resourceURL}},{key:"destroy",value:function(){this._resourceURL&&URL.revokeObjectURL(this._resourceURL)}},{key:"run",value:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function e(){var t,n,r=this;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._file,n=new FormData,this.emit(Lre.EVENT_START),n.append("file",t,"image.png"),e.abrupt("return",new Promise((function(e){r._uploadRequest=cs({method:"post",xhr:function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",(function(e){e.lengthComputable&&r.emit(Lre.EVENT_PROGRESS,Rc.toPercentage(e.loaded,e.total))}),!1),e},url:r._apiURL,data:n,dataType:"json",success:function(t){r.emit(Lre.EVENT_SUCCESS,t.data),e(t.data)},error:function(t){t=us(t),r.emit(Lre.EVENT_ERROR,t),e({error:t})},processData:!0})})));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"abort",value:function(){this._uploadRequest&&this._uploadRequest.abort()}}]),t}(Lre);function kSe(e,t,n){return t=Qe(t),Xe(e,CSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function CSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CSe=function(){return!!e})()}var _Se=function(e){function t(e,n){var r;return Ye(this,t),r=kSe(this,t),Object.defineProperty(Je(r),"_apiURL",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_file",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(r),"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_resourceURL",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_uploadRequest",{enumerable:!0,configurable:!0,writable:!0,value:null}),r._id=mr(),r}return et(t,e),Ke(t,[{key:"getFileName",value:function(){return this._file.name}},{key:"getResourceURL",value:function(){return this._resourceURL||(this._resourceURL=URL.createObjectURL(this._file)),this._resourceURL}},{key:"destroy",value:function(){this._resourceURL&&(URL.revokeObjectURL(this._resourceURL),this._resourceURL=null),Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"run",value:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function e(){var t,n,r=this;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._file,n=new FormData,this.emit(Lre.EVENT_START),n.append("file",t,t.name),e.abrupt("return",new Promise((function(e){r._uploadRequest=cs({method:"post",xhr:function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",(function(e){e.lengthComputable&&r.emit(Lre.EVENT_PROGRESS,Rc.toPercentage(e.loaded,e.total))}),!1),e},url:r._apiURL,data:n,dataType:"json",success:function(t){r.emit(Lre.EVENT_SUCCESS,t.data),e(t.data)},error:function(t){t=us(t),r.emit(Lre.EVENT_ERROR,t),e({error:t})},processData:!0})})).catch((function(e){console.error(e)})));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"abort",value:function(){this._uploadRequest&&this._uploadRequest.abort(),Cr(Qe(t.prototype),"abort",this).call(this)}}]),t}(Lre);function NSe(e,t,n){return t=Qe(t),Xe(e,OSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function OSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OSe=function(){return!!e})()}var xSe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},ESe=[".png",".bmp",".jpg",".jpeg"],DSe=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Ye(this,t),o=NSe(this,t),Object.defineProperty(Je(o),"_uploadApi",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"_crawlApi",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"_url",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(o),"_allowOriginalURL",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(Je(o),"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),o._id=mr(),o}return et(t,e),Ke(t,[{key:"getResourceURL",value:function(){return this._url}},{key:"run",value:function(){return xSe(this,void 0,void 0,Sc().mark((function e(){var t,n;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.emit(Lre.EVENT_START),e.prev=1,!this._allowUploadFromLocal()){e.next=15;break}return e.prev=3,e.next=6,this._uploadFromLocal();case 6:if(!(t=e.sent).success){e.next=10;break}return this.emit(Lre.EVENT_SUCCESS,t.result),e.abrupt("return",{result:t.result});case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),console.warn("failed to upload by file",e.t0);case 15:return e.next=17,this._uploadFromServer();case 17:return n=e.sent,this.emit(Lre.EVENT_SUCCESS,n),e.abrupt("return",{result:n});case 22:if(e.prev=22,e.t1=e.catch(1),!this._allowOriginalURL){e.next=27;break}return this.emit(Lre.EVENT_SUCCESS,{url:this._url}),e.abrupt("return",{result:{url:this._url}});case 27:return this.emit(Lre.EVENT_ERROR,{message:"picture dump failure"}),e.abrupt("return",{error:e.t1});case 29:case"end":return e.stop()}}),e,this,[[1,22],[3,12]])})))}},{key:"_uploadFromLocal",value:function(){return xSe(this,void 0,void 0,Sc().mark((function e(){var t=this;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r=new Image;r.crossOrigin="anonymous",r.onload=function(){var o=document.createElement("canvas"),i=t._getImageSize(r),a=i.width,l=i.height;o.width=a,o.height=l;var u=o.getContext("2d");try{u.drawImage(r,0,0),o.toBlob((function(r){r.name="image.png",t._uploadFile(r,a,l,e,n)}))}catch(t){console.warn("failed to upload image from local: ",t),e({success:!1,error:t})}},r.onerror=function(t){e({success:!1,error:t})},r.src=t._url})));case 1:case"end":return e.stop()}}),e)})))}},{key:"_uploadFromServer",value:function(){return xSe(this,void 0,void 0,Sc().mark((function e(){var t,n,r,o,i,a=this;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=cs({method:"post",xhr:function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",(function(e){e.lengthComputable&&a.emit(Lre.EVENT_PROGRESS,Rc.toPercentage(e.loaded,e.total))}),!1),e},url:this._crawlApi,data:{url:this._url},dataType:"json",processData:!0}),e.next=3,t.promise;case 3:if(n=e.sent,r=(null==n?void 0:n.data)||{},o=r.url){e.next=10;break}throw(i=new Error("upload error")).xhr=t.xhr,us(i),i;case 10:return e.next=12,new Promise((function(e){var t=new Image;t.onload=function(){var n=a._getImageSize(t),r=n.width,i=n.height;e({url:o,width:r,height:i})},t.onerror=function(){e({url:o})},t.src=o}));case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)})))}},{key:"_allowUploadFromLocal",value:function(){try{var e=new URL(this._url,location.href).pathname.toLowerCase().split(".");return 1!==e.length&&ESe.includes("."+e.pop())}catch(e){}return!1}},{key:"_uploadFile",value:function(e,t,n,r,o){var i=this,a=new FormData;a.append("file",e,e.name),cs({method:"post",xhr:function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",(function(e){e.lengthComputable&&i.emit(Lre.EVENT_PROGRESS,Rc.toPercentage(e.loaded,e.total))}),!1),e},url:this._uploadApi,data:a,dataType:"json",success:function(e){r({success:!0,result:Object.assign(Object.assign({},e.data),{width:t,height:n})})},error:function(e){o(e)},processData:!0})||o("ajax对象创建失败,检查ajax全局代理")}},{key:"_getImageSize",value:function(e){return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}}}]),t}(Lre),RSe={link:{name:"link",title:gc("链接"),icon:nc().createElement(tD,{type:"t-link"}),enable:function(e){return!!e.cardData.getLink()},execute:function(e){var t=xh.sanitizeUrl(e.cardData.getLink());t&&e.editor.emitEvent("visitLink",t,!0)}},delete:{name:"delete",title:gc("删除"),enable:!0,icon:nc().createElement(tD,{type:"icon-delete"}),execute:function(e){e.editor.execCommand("deleteCard",e.id),e.editor.execCommand("focus",{preventScroll:!0})}},copy:{name:"copy",title:gc("复制"),icon:nc().createElement(tD,{type:"action-copy"}),enable:!0,execute:function(e){var t=document.createRange();t.selectNode(e.cardRootNode.parentNode),e.editor.execCommand("copy",t)?FE.success(gc("复制成功")):FE.error(gc("复制失败"))}}},PSe={link:{name:"link",title:gc("链接"),icon:nc().createElement(tD,{type:"t-link"}),enable:function(e){return!!e.cardData.getLink()},execute:function(e){var t=e.cardData.isOpenLinkInSelf(),n=e.cardData.getLink();n&&e.viewer.emitEvent("visitLink",n,!t)}}};function SSe(e,t,n){return t=Qe(t),Xe(e,TSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function TSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(TSe=function(){return!!e})()}var ASe=function(e){function t(e,n,r){var o;return Ye(this,t),o=SSe(this,t),Object.defineProperty(Je(o),"upload",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"type",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"data",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(o),"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(o),"_resourceURL",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(o),"_file",{enumerable:!0,configurable:!0,writable:!0,value:null}),o._id=mr(),"url"===n?o._resourceURL=r:"file"===n?o._file=r:"base64"===n&&(o._file=sd(r)),o}return et(t,e),Ke(t,[{key:"getResourceURL",value:function(){return!this._resourceURL&&this._file&&(this._resourceURL=URL.createObjectURL(this._file)),this._resourceURL}},{key:"destroy",value:function(){this._resourceURL&&URL.revokeObjectURL(this._resourceURL)}},{key:"run",value:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function e(){var t=this;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.emit(Lre.EVENT_START),e.next=3,this.upload({type:this.type,data:this.data}).then((function(e){return t.emit(Lre.EVENT_SUCCESS,e),e}),(function(e){t.emit(Lre.EVENT_ERROR,e)}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"abort",value:function(){}}]),t}(Lre);function jSe(e,t,n){return t=Qe(t),Xe(e,ISe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ISe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ISe=function(){return!!e})()}var BSe={createUploadTask:null,createUploadPromise:null,uploadFileURL:null,crawlURL:null,ratio:1,ocr:!1,capturePatterns:[/[\s\S]*?/],excludeCapturePatterns:[],isCaptureImageURL:function(e,t,n){return!n.some((function(t){return USe(e,t)}))&&!!t.some((function(t){return USe(e,t)}))},onBeforeRenderImage:function(e){return e},accept:null,enableAccept:!0,resizeHostWhiteList:void 0,resizeThreshold:131072,lazyLoad:!1,allowClickToMaximize:!0,needAverageHue:!1,supportImgOCR:!0,showMiniToolbarWhen:"hover",innerButtonWidgets:[],useOriginSrc:function(){return!1}},MSe=Object.assign(Object.assign({},BSe),{innerButtonWidgets:[RSe.link,RSe.delete,RSe.copy]}),FSe=Object.assign(Object.assign({},BSe),{innerButtonWidgets:[PSe.link]}),LSe=function(e){function t(e){var n;return Ye(this,t),n=jSe(this,t),Object.defineProperty(Je(n),"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"toolbarOffset",{enumerable:!0,configurable:!0,writable:!0,value:4}),n._option=Object.assign({},MSe,e),n}return et(t,e),Ke(t,[{key:"ratio",get:function(){return this._option.ratio||1}},{key:"resizeThreshold",get:function(){return this._option.resizeThreshold}},{key:"resizeHostWhiteList",get:function(){return this._option.resizeHostWhiteList}},{key:"customFileSelector",get:function(){return this._option.customFileSelector}},{key:"lazyLoad",get:function(){return this._option.lazyLoad}},{key:"allowClickToMaximize",get:function(){return this._option.allowClickToMaximize}},{key:"showMiniToolbarWhen",get:function(){return this._option.showMiniToolbarWhen}},{key:"needAverageHue",get:function(){return!!this._option.needAverageHue}},{key:"needInterlace",get:function(){return!!this._option.needInterlace}},{key:"supportImgOCR",get:function(){return!!this._option.supportImgOCR}},{key:"failConfig",get:function(){return this._option.failConfig}},{key:"editUI",get:function(){return this._option.editUI}},{key:"viewerUI",get:function(){return this._option.viewerUI}},{key:"innerButtonWidgets",get:function(){return this._option.innerButtonWidgets}},{key:"useOriginSrc",value:function(e){return!!this._option.useOriginSrc(e)}},{key:"isEnableAccept",value:function(){return this._option.enableAccept}},{key:"createUploadTask",value:function(e,t){var n=this._option,r=n.uploadFileURL,o=n.crawlURL,i=n.createUploadTask,a=n.createUploadPromise;if(kt(r||i||a,"plugins/image/src/common/image-option.ts:165"),a)return new ASe(a,e,t);for(var l=arguments.length,u=new Array(l>2?l-2:0),c=2;c1&&void 0!==arguments[1]&&arguments[1];return this._option.onBeforeRenderImage(e,t)}},{key:"accept",get:function(){return this._option.accept}}]),t}(ut);function USe(e,t){return"function"==typeof t?t(e):t.test(e)}Object.defineProperty(LSe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"image"});var VSe=function(e){function t(e,n){var r;return Ye(this,t),r=jSe(this,t,[e]),Object.defineProperty(Je(r),"kernelOption",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(r),"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._option=Object.assign({},FSe,e),r}return et(t,e),Ke(t)}(LSe);function HSe(e,t,n){return t=Qe(t),Xe(e,zSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function zSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zSe=function(){return!!e})()}Object.defineProperty(VSe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"image"});var WSe=function(e){function t(e){var n;return Ye(this,t),n=HSe(this,t),Object.defineProperty(Je(n),"_url",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._id=mr(),n}return et(t,e),Ke(t,[{key:"getResourceURL",value:function(){return this._url}},{key:"run",value:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function e(){return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.emit(Lre.EVENT_SUCCESS,{url:this._url});case 1:case"end":return e.stop()}}),e,this)})))}}]),t}(Lre),qSe=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"uploadImageByFile",value:function(e,t){var n=e.option.image,r=e.requireService(mPe.ID),o=e.requireService(sPe.ID);return t.map((function(e){var t=n.createUploadTask("file",e);return r.putImageUploadData(t,{type:hPe,file:e}),o.uploadManager.addTask(t),t}))}},{key:"uploadImageByBase64",value:function(e,t){var n=e.option.image.createUploadTask("base64",t),r=e.requireService(mPe.ID),o=e.requireService(sPe.ID);return r.putImageUploadData(n,{type:vPe,content:t}),o.uploadManager.addTask(n),n}},{key:"uploadImageByURL",value:function(e,t,n){var r=e.option.image.createUploadTask("url",t,n),o=e.requireService(mPe.ID),i=e.requireService(sPe.ID);return o.putImageUploadData(r,{type:pPe,url:t}),i.uploadManager.addTask(r),r}},{key:"emptyTask",value:function(e,t){var n=new WSe(t),r=e.requireService(mPe.ID),o=e.requireService(sPe.ID);return r.putImageUploadData(n,{type:pPe,url:t}),o.uploadManager.addTask(n),n}}]),e}(),$Se=Ke((function e(){Ye(this,e)}));function KSe(e,t,n){return t=Qe(t),Xe(e,YSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function YSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YSe=function(){return!!e})()}var GSe=function(e){function t(e){var n;return Ye(this,t),n=KSe(this,t),Object.defineProperty(Je(n),"editor",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"preReadFile",value:function(e,t,n){if((null==n?void 0:n.from)!==ZB||"image"===(null==n?void 0:n.category)){if(!e.checkFileSize(LL.image,t.file.size))return!1;var r=cn(qSe.uploadImageByFile(this.editor,[t.file]),1)[0];return t._$neUploadTaskId=r.id,!1}}}]),t}($Se);function JSe(e,t,n){return t=Qe(t),Xe(e,XSe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function XSe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XSe=function(){return!!e})()}var QSe=function(e){function t(e){var n;return Ye(this,t),n=JSe(this,t),Object.defineProperty(Je(n),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._plugin=e,n}return et(t,e),Ke(t,[{key:"readNode",value:function(e,t){var n=(t.attrs||{}).src,r=this._plugin.uploadImageByURL(n);r&&(r.taskId?t.attrs=Object.assign(Object.assign({},t.attrs),{_$neUploadTaskId:r.taskId}):(kt(r.url,"plugins/image/src/editor/pre-readers/image-pre-html-node-reader.ts:33"),t.attrs=Object.assign(Object.assign({},t.attrs),{_$neImageSrc:r.url})))}}]),t}(b2);Object.defineProperty(QSe,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:["img"]});var ZSe=function(){function e(){Ye(this,e)}return Ke(e,[{key:"read",value:function(e,t){return!0}}]),e}();function eTe(e,t,n){return t=Qe(t),Xe(e,tTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tTe=function(){return!!e})()}var nTe=function(e){function t(e){var n;return Ye(this,t),n=eTe(this,t),Object.defineProperty(Je(n),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t){var n,r,o;if(e.from===XB){var i=((null===(n=t.attrs)||void 0===n?void 0:n.value)||{}).src,a=this._plugin.uploadImageByURL(i,!0);if(!a)return!1;if(t.attrs||(t.attrs={}),a.taskId)return t.attrs.value.taskId=a.taskId,t.attrs.value.status=$B.UPLOADING,t.attrs.value.clientId=this._plugin.kernel.id,void(null===(o=null===(r=t.attrs)||void 0===r?void 0:r.value)||void 0===o||delete o.src);kt(a.url,"plugins/image/src/editor/pre-readers/inode-image-card-pre-reader.ts:50"),t.attrs.value.src=a.url}}}]),t}(ZSe);function rTe(e,t,n){return t=Qe(t),Xe(e,oTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oTe=function(){return!!e})()}Object.defineProperty(nTe,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:"image"});var iTe=function(e){function t(e){var n;return Ye(this,t),n=rTe(this,t),Object.defineProperty(Je(n),"_plugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"read",value:function(e,t,n){if(e.from===XB){var r=(n||{}).src,o=this._plugin.uploadImageByURL(r,!0);if(!o)return!1;if(o.taskId)return n.taskId=o.taskId,n.clientId=this._plugin.kernel.id,n.status=nM,void delete n.src;kt(o.url,"plugins/image/src/editor/pre-readers/lake-image-card-pre-reader.ts:39"),n.src=o.url}}}]),t}(Xee);function aTe(e,t,n){return t=Qe(t),Xe(e,lTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lTe=function(){return!!e})()}Object.defineProperty(iTe,"CardName",{enumerable:!0,configurable:!0,writable:!0,value:"image"});var uTe=function(e){function t(){var e;return Ye(this,t),e=aTe(this,t,arguments),Object.defineProperty(Je(e),"_intersectionObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"fileService",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n,r=this;this.fileService=e.kernel.requireService(fF.ID),t.registerInlineCard(this,fM.cardName,{factory:function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]&&arguments[1];return e?this.option.useOriginSrc(e)?{taskId:qSe.emptyTask(this.editor,e).id}:xh.isBase64ImageURL(e)?{taskId:qSe.uploadImageByBase64(this.editor,e).id}:xh.isFullHttpURL(e)?this.option.isCaptureImageURL(e)?{taskId:qSe.uploadImageByURL(this.editor,e,t).id}:{url:e}:null:null}},{key:"sync",value:function(){return 0===this.cardNodes.filter((function(e){return!1===e.sync()})).length}}]),t}(Wh);function cTe(e,t,n){return t=Qe(t),Xe(e,sTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sTe=function(){return!!e})()}Object.defineProperty(uTe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:fM.pluginName}),Object.defineProperty(uTe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:LSe}),Object.defineProperty(uTe,"Service",{enumerable:!0,configurable:!0,writable:!0,value:yPe});var dTe={left:"t-alignment-left",center:"t-alignment-center",right:"t-alignment-right",justify:"t-alignment-justify"};function fTe(e){return[DRe.alignmentLeft,DRe.alignmentCenter,DRe.alignmentRight,DRe.alignmentJustify].map((function(t){return Object.assign(Object.assign({},t),{icon:dTe[t.value],tooltip:zRe.getTooltip(e,t.text,t.name)})}))}var hTe=function(e){function t(){return Ye(this,t),cTe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t){kt("select"===e,"plugins/alignment/src/editor/alignment-toolbar-descriptor.ts:35"),this.editor.execCommand(TF.command.alignment,t)}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,value:"left",icon:"t-alignment-left",className:"ne-ui-toolbar-h-align",dropdownClassName:"ne-ui-toolbar-h-align-dropdown ".concat(this.editor.theme.getThemeSelector()),items:fTe(this.editor),tooltip:zRe.getTooltip(this.editor,gc("对齐方式"))}}},{key:"getUIState",value:function(){var e=this.editor;if(this.disabled||e.queryCommandState(TF.command.alignment)===ht)return{disabled:!0};var t=e.queryCommandValue(TF.command.alignment),n=null;return t&&0!==t.length?1===t.length&&(n=t[0]||"left"):n="left",{disabled:!1,value:n,icon:dTe[n],dropdownClassName:"ne-ui-toolbar-h-align-dropdown ".concat(this.editor.theme.getThemeSelector())}}}]),t}(zRe);function pTe(e,t,n){return t=Qe(t),Xe(e,vTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vTe=function(){return!!e})()}Object.defineProperty(hTe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"InlineContentDropdownButton"});var mTe=function(e){function t(){return Ye(this,t),pTe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=e.getService(URe.ID);null==t||t.registerToolbarWidget(TF.toolbar.alignment,hTe)}}]),t}(Wh);function gTe(e,t,n){return t=Qe(t),Xe(e,bTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bTe=function(){return!!e})()}Object.defineProperty(mTe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:TF.pluginName});var yTe=function(e){function t(){return Ye(this,t),gTe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){kt("change"===e,"plugins/basic-text-style/src/editor/basic-text-style-toolbar-descriptor.ts:9"),this.editor.execCommand(this.name)}},{key:"getInitUIState",value:function(){var e={bold:gc("粗体"),italic:gc("斜体"),underline:gc("下划线"),strikethrough:gc("删除线")};return{disabled:this.disabled,checked:!1,icon:"t-".concat(this.name),tooltip:zRe.getTooltip(this.editor,e[this.name],this.name)}}},{key:"getUIState",value:function(){var e=this.editor,t=this.name;return{disabled:this.disabled||!e.queryCommandEnabled(t),checked:1===e.queryCommandState(t)}}}]),t}(zRe);function wTe(e,t,n){return t=Qe(t),Xe(e,kTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kTe=function(){return!!e})()}Object.defineProperty(yTe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"StatusButton"});var CTe=function(e){function t(){return Ye(this,t),wTe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=e.getService(URe.ID);null==t||t.registerToolbarWidget(Ja(Ja(Ja(Ja({},tL.toolbar.bold,yTe),tL.toolbar.strikethrough,yTe),tL.toolbar.italic,yTe),tL.toolbar.underline,yTe))}}]),t}(Wh);function _Te(e,t,n){return t=Qe(t),Xe(e,NTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NTe=function(){return!!e})()}Object.defineProperty(CTe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:tL.pluginName});var OTe=function(e){function t(){var e;return Ye(this,t),e=_Te(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(tw);Object.defineProperty(OTe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IHotKeyRendererService")});var xTe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:t})}return Ke(e,[{key:"getColor",value:function(){return this.color}},{key:"setColor",value:function(e){this.color=e}}]),e}();function ETe(e,t,n){return t=Qe(t),Xe(e,DTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function DTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DTe=function(){return!!e})()}var RTe="transparent",PTe=function(e){function t(){return Ye(this,t),ETe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t){var n=this.editor.theme.toPersistentValue(t);switch(e){case"select":this.pluginContext.setColor(n),n!==RTe&&n&&n!==this.editor.kernel.queryCommandValue(hU.command.bgColor)?this.editor.kernel.execCommand(hU.command.bgColor,n):this.editor.kernel.execCommand(hU.command.clearBgColor);break;case"saveColor":this.editor.hasExtendMethod("updateUserColor")&&this.editor.updateUserColor(n);break;default:kt(!1,"plugins/bg-color/src/editor/bg-color-toolbar-descriptor.ts:50")}}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,className:"ne-ui-toolbar-bg-color",defaultColor:RTe,themeName:this.editor.theme.getSchemeName(),color:this.editor.theme.toVisualValue(this.pluginContext.getColor()),userColors:[],icon:"t-bg-color",tooltip:zRe.getTooltip(this.editor,gc("背景颜色"),this.name)}}},{key:"getUIState",value:function(){var e=this.editor,t=this.name,n=[];this.editor.hasExtendMethod("getUserColors")&&(n=this.editor.getUserColors().map((function(t){return e.theme.toVisualValue(t)})));var r=e.queryCommandValue(hU.command.bgColor),o=e.theme.toVisualValue(this.pluginContext.getColor());return{disabled:this.disabled||!e.queryCommandEnabled(t),userColors:n,themeName:e.theme.getSchemeName(),activeColors:r?[this.editor.theme.toVisualValue(r)]:[],color:o}}}]),t}(zRe);function STe(e,t,n){return t=Qe(t),Xe(e,TTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function TTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(TTe=function(){return!!e})()}Object.defineProperty(PTe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"ColorPickerButton"});var ATe=function(e){function t(){var e;return Ye(this,t),e=STe(this,t,arguments),Object.defineProperty(Je(e),"_pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this,n=e.theme.getColorByToken("editor.bgColor.default");this._pluginContext=new xTe(e.theme.toPersistentValue(n));var r=e.getService(URe.ID);null==r||r.registerToolbarWidget(hU.toolbar.bgColor,{clazz:PTe,pluginContext:this._pluginContext});var o=this.renderer,i=this.kernel,a=o.getService(OTe.ID);a&&a.registerHotKey(DRe.bgColor.name,DRe.bgColor.keys,(function(e){e.stop(),i.queryCommandValue(hU.command.bgColor)?i.execCommand(hU.command.clearBgColor,null):i.execCommand(hU.command.bgColor,t._pluginContext.getColor())}))}}]),t}(Wh);function jTe(e,t,n){return t=Qe(t),Xe(e,ITe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ITe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ITe=function(){return!!e})()}Object.defineProperty(ATe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:hU.pluginName}),Object.defineProperty(ATe,"Colors",{enumerable:!0,configurable:!0,writable:!0,value:{"editor.bgColor.default":{light:"#FBDE28",dark:"#C2AC19"}}});var BTe=function(e){function t(){return Ye(this,t),jTe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t){kt("click"===e,"plugins/clear-format/src/editor/clear-format-toolbar-descriptor.ts:15"),this.editor.execCommand(mV.command.clearFormat)}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,icon:"editor-clear-format",className:"ne-ui-toolbar-clear-format",tooltip:zRe.getTooltip(this.editor,gc("清除格式"),this.name)}}},{key:"getUIState",value:function(){var e=this.editor;return{disabled:this.disabled||!e.queryCommandEnabled(mV.command.clearFormat)}}}]),t}(zRe);function MTe(e,t,n){return t=Qe(t),Xe(e,FTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function FTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FTe=function(){return!!e})()}Object.defineProperty(BTe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});var LTe=function(e){function t(){return Ye(this,t),MTe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t,n){var r=e.getService(URe.ID);null==r||r.registerToolbarWidget(mV.toolbar.clearFormat,BTe)}}]),t}(Wh);function UTe(e,t,n){return t=Qe(t),Xe(e,VTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function VTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VTe=function(){return!!e})()}Object.defineProperty(LTe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:mV.pluginName});var HTe=function(e){function t(){return Ye(this,t),UTe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t,n){var r;e.onPluginEvent("insertCardByUI:".concat(HV.cardName),(function(){t.execCommand("code")})),null===(r=e.getService(SRe.ID))||void 0===r||r.registerCardSelect(HV.cardSelect,Object.assign(Object.assign({},DRe.code),{label:DRe.code.text,type:"TextItem",icon:"t-code",mainIcon:"editor-main-inline-code",mainSearch:"/hndm"}))}}]),t}(Wh);Object.defineProperty(HTe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:HV.pluginName});var zTe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:t})}return Ke(e,[{key:"getColor",value:function(){return this.color}},{key:"setColor",value:function(e){this.color=e}}]),e}();function WTe(e,t,n){return t=Qe(t),Xe(e,qTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qTe=function(){return!!e})()}var $Te=function(e){function t(){return Ye(this,t),WTe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t){var n=az(t,this.editor.theme),r=this._getDefaultVisualColor();switch(e){case"select":(function(e){return void 0!==oz(e)[1]})(t)&&this.editor.emitEvent("userAction",{type:"cardToolbar",name:"gradient",source:"color-".concat(n)}),this.pluginContext.setColor(n),t===r?this.editor.execCommand("clearColor"):this.editor.execCommand("color",n);break;case"saveColor":this.editor.hasExtendMethod("updateUserColor")&&this.editor.updateUserColor(n);break;default:kt(!1,"plugins/color/src/editor/color-toolbar-descriptor.ts:48")}}},{key:"getInitUIState",value:function(){var e=this._getDefaultVisualColor();return{disabled:this.disabled,className:"ne-ui-toolbar-color",icon:"t-font-color",defaultColor:this._getDefaultVisualColor(),userColors:[],color:iz(this.pluginContext.getColor(),this.editor.theme)||e,themeName:this.editor.theme.getSchemeName(),themeSelector:this.editor.theme.getThemeSelector(),tooltip:zRe.getTooltip(this.editor,gc("字体颜色"),this.name)}}},{key:"getUIState",value:function(){var e=this.editor,t=this.name,n=this._getDefaultVisualColor(),r=[];this.editor.hasExtendMethod("getUserColors")&&(r=this.editor.getUserColors().map((function(t){return e.theme.toVisualValue(t)})));var o=iz(e.queryCommandValue("color"),this.editor.theme)||n,i=iz(this.pluginContext.getColor(),this.editor.theme)||n;return{disabled:this.disabled||!e.queryCommandEnabled(t),themeName:this.editor.theme.getSchemeName(),themeSelector:this.editor.theme.getThemeSelector(),defaultColor:n,userColors:r,activeColors:[o],color:i}}},{key:"_getDefaultVisualColor",value:function(){return this.editor.theme.getColorByToken("editor.text.color")}}]),t}(zRe);function KTe(e,t,n){return t=Qe(t),Xe(e,YTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function YTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YTe=function(){return!!e})()}Object.defineProperty($Te,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"ColorPickerButton"});var GTe=function(e){function t(){var e;return Ye(this,t),e=KTe(this,t,arguments),Object.defineProperty(Je(e),"_pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t,n=this,r=e.getService(URe.ID);if(r){var o=e.theme.getColorByToken("editor.color.default");this._pluginContext=new zTe(e.theme.toPersistentValue(o)),null==r||r.registerToolbarWidget(zH.toolbar.color,{clazz:$Te,pluginContext:this._pluginContext})}null===(t=e.renderer.getService(OTe.ID))||void 0===t||t.registerHotKey(DRe.color.name,DRe.color.keys,(function(t){t.stop(),e.kernel.execCommand(zH.command.color,n._pluginContext.getColor())}))}}]),t}(Wh);Object.defineProperty(GTe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:zH.pluginName}),Object.defineProperty(GTe,"Colors",{enumerable:!0,configurable:!0,writable:!0,value:{"editor.color.default":{light:"#DF2A3F",dark:"#CA3F4F"}}});var JTe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var n={mainTipHTML:gc("该卡片暂时无法显示"),subTipHTML:gc("请刷新页面后再试")};this._option=Object.assign(Object.assign({},n),t)}return Ke(e,[{key:"getMainTip",value:function(){return this._option.mainTipHTML||""}},{key:"getSubTip",value:function(){return this._option.subTipHTML||""}}]),e}();function XTe(e,t,n){return t=Qe(t),Xe(e,QTe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function QTe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QTe=function(){return!!e})()}Object.defineProperty(JTe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"fallbackCard"});var ZTe=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i\n
\n \n
\n
').concat(this.pluginOption.getMainTip(),'
\n
').concat(this.pluginOption.getSubTip(),"
\n
\n
\n \n ")}}]),t}(qy);function eAe(e,t,n){return t=Qe(t),Xe(e,tAe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tAe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tAe=function(){return!!e})()}Object.defineProperty(ZTe,"imgResource",{enumerable:!0,configurable:!0,writable:!0,value:"https://gw.alipayobjects.com/zos/bmw-prod/dc01c10b-e433-4bb3-bf7e-8b679725b823.svg"});var nAe=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i\n
\n \n
\n
').concat(this.pluginOption.getMainTip(),'
\n
\n
').concat(this.pluginOption.getSubTip(),"
\n
\n
\n
\n \n ").replace(/\s*\n+\s*/g,"")}}]),t}(Wy);function rAe(e,t,n){return t=Qe(t),Xe(e,oAe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oAe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oAe=function(){return!!e})()}Object.defineProperty(nAe,"imgResource",{enumerable:!0,configurable:!0,writable:!0,value:"https://gw.alipayobjects.com/zos/bmw-prod/1a587ec9-10ac-4204-96f4-f259c5f6c2c7.svg"});var iAe=function(e){function t(){return Ye(this,t),rAe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t,n){t.registerBlockCard(this,"block",{factory:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i0&&e._refresh(r)}}))})),this._observer.observe(this._containerNode)}}},{key:"recalculate",value:function(){if(this._contentNode.isConnected){var e=this._containerNode.getBoundingClientRect().width;this._widgets=this._getWidgetSize(),e>0&&this._refresh(e)}}},{key:"destroy",value:function(){var e;null===(e=this._observer)||void 0===e||e.disconnect(),this._containerNode=null,this._contentNode=null,this._callback=null,this._widgets=null}},{key:"_getWidgetSize",value:function(){var e=[],t=this._contentNode.getBoundingClientRect().x;return Array.from(this._contentNode.children).forEach((function(n){if(n.classList.contains("ne-toolbar-widget")){var r=n.getBoundingClientRect();e.push({width:r.width,offset:r.x-t,isDivider:n.classList.contains("ne-ui-divider"),node:n})}})),e}},{key:"_refresh",value:function(e){for(var t=this._widgets,n=-1,r=t.length-1;r>=0;r--){var o=t[r];if(o.offset+o.width<=e){n=r+1;break}}(n=this._checkMoreButton(e,n))>=1&&(n=this._checkDivider(n)),this._callback(n)}},{key:"_checkMoreButton",value:function(e,t){var n=this._widgets;if(t===n.length)return t;for(var r=t;r>=0;r--)if(n[r].offset+50<=e)return r;kt(!1,"plugins/toolbar/src/editor/toolbar-monitor.ts:135")}},{key:"_checkDivider",value:function(e){return kt(e>=1,"plugins/toolbar/src/editor/toolbar-monitor.ts:140"),this._widgets[e-1].isDivider?e-1:e}}]),e}();function qje(e,t,n){return t=Qe(t),Xe(e,$je()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($je=function(){return!!e})()}var Kje=function(e){function t(){var e;return Ye(this,t),e=qje(this,t,arguments),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{open:!1}}),Object.defineProperty(Je(e),"_clickHandler",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.setState({open:!e.state.open})}}),e}return et(t,e),Ke(t,[{key:"close",value:function(){this.setState({open:!1})}},{key:"componentDidUpdate",value:function(e,t,n){t.open!==this.state.open&&this.props.onMoreOpenToggle&&this.props.onMoreOpenToggle(this.state.open)}},{key:"render",value:function(){var e=wS(gc("更多"),nc().createElement("span",{className:"ne-ui-toolbar-more"},nc().createElement(lwe,{className:Kf("ne-ui-toolbar-button","ne-ui-toolbar-more-button",this.props.className,this.state.open?"checked":""),onClick:this._clickHandler},nc().createElement(tD,{type:"more-horizontal",size:16}))));return nc().createElement(Fj,{visible:this.state.open,overlayClassName:"ne-ui-toolbar-more-overlay",placement:"bottomRight",content:this.props.widgets,getPopupContainer:this.props.getPopupContainer},e)}}]),t}(tc.Component);function Yje(e,t,n){return t=Qe(t),Xe(e,Gje()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Gje(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gje=function(){return!!e})()}var Jje=function(e){function t(){var e;return Ye(this,t),e=Yje(this,t,arguments),Object.defineProperty(Je(e),"_contentBoxRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_moreBtnRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_toolbarMonitor",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{main:null,sub:null}}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this._contentBoxRef.current;t&&(vd(this,document,"animationend",(function(n){n.target instanceof HTMLElement&&n.target.contains(t)&&e.setState({main:e.props.widgets,sub:[]},(function(){var t;null===(t=e._toolbarMonitor)||void 0===t||t.recalculate()}))})),this._toolbarMonitor=new Wje(t,(function(t){e.setState({main:e.props.widgets.slice(0,t),sub:e.props.widgets.slice(t)})})))}},{key:"componentWillUnmount",value:function(){this._toolbarMonitor.destroy()}},{key:"closeMoreButton",value:function(){this._moreBtnRef.current&&this._moreBtnRef.current.close()}},{key:"render",value:function(){var e={main:this.props.widgets,sub:[]};return this.state.main&&(e=this.state),nc().createElement("div",{className:"ne-ui-inner-toolbar"},nc().createElement("div",{className:"ne-ui-toolbar-content",ref:this._contentBoxRef},e.main,this._renderMoreButton(e.sub)))}},{key:"_renderMoreButton",value:function(e){var t=this;return e.length?nc().createElement(Kje,{className:"ne-toolbar-widget",ref:this._moreBtnRef,widgets:e,getPopupContainer:function(){return t.props.overlayContainer},onMoreOpenToggle:this.props.onMoreOpenToggle}):null}}]),t}(tc.Component),Xje="|";function Qje(e,t,n){return t=Qe(t),Xe(e,Zje()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Zje(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zje=function(){return!!e})()}var eIe=function(e){function t(e){var n;return Ye(this,t),n=Qje(this,t,[e]),Object.defineProperty(Je(n),"state",{enumerable:!0,configurable:!0,writable:!0,value:{disabled:!1,className:"",icon:null,iconfont:null}}),n.state=e.descriptor.getInitUIState()||n.state,n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.descriptor;t.isReady()&&this.setState(Object.assign({},t.getUIState())),t.on("statechange",(function(){var n=t.getUIState();Nf(n,e.state)&&e.setState(Object.assign({},n))}))}},{key:"render",value:function(){var e=this.props,t=e.descriptor,n=e.className;return nc().createElement("div",{className:n},t.render(this.state))}}]),t}(tc.Component);function tIe(e,t,n){return t=Qe(t),Xe(e,nIe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function nIe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nIe=function(){return!!e})()}var rIe=function(e){function t(){return Ye(this,t),tIe(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){var e=Kf(this.props.className,"ne-ui-divider");return nc().createElement("div",{className:e})}}]),t}(tc.Component);function oIe(e,t,n){return t=Qe(t),Xe(e,iIe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function iIe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iIe=function(){return!!e})()}var aIe=function(e){function t(e){var n;return Ye(this,t),n=oIe(this,t,[e]),Object.defineProperty(Je(n),"_cancelTask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_focused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(n),"_inputRef",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"state",{enumerable:!0,configurable:!0,writable:!0,value:{disabled:!1,className:"",themeSelector:"",isMenuOpen:!1,search:function(){return null}}}),Object.defineProperty(Je(n),"_btnRef",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_overlay",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_hasFileSelect",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(n),"_closeTask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_positionHandle",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=n._btnRef.current.getBoundingClientRect();t.left+292+10<=window.innerWidth?e.style.left=t.left+"px":e.style.left=window.innerWidth-292-10+"px";var r=Math.min(window.innerHeight-(t.bottom+5+10),600),o=Math.min(600,t.top-5-10);r>=o?(e.classList.remove("lock-height"),e.style.height=r+"px",e.style.top=t.bottom+5+"px"):(e.classList.add("lock-height"),e.style.height=o+"px",e.style.top=t.top-5-o+"px")}}),Object.defineProperty(Je(n),"_handleInputRef",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n._inputRef=e}}),Object.defineProperty(Je(n),"_handleFileSelectOpen",{enumerable:!0,configurable:!0,writable:!0,value:function(){n._hasFileSelect=!0}}),Object.defineProperty(Je(n),"_handleCarMenuMouseHover",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e;n._closeTask&&(null===(e=n._closeTask)||void 0===e||e.call(Je(n)))}}),Object.defineProperty(Je(n),"_handleMouseLeave",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e;n._cancelTask&&(null===(e=n._cancelTask)||void 0===e||e.call(Je(n))),n._hasFileSelect||n._focused||(n._closeTask=dd((function(){!n.state.isMenuOpen||n._focused||n.setState({isMenuOpen:!1},(function(){return n._overlay&&n._overlay.cancel()}))}),100))}}),Object.defineProperty(Je(n),"_openMenuByHover",{enumerable:!0,configurable:!0,writable:!0,value:function(){n._cancelTask=dd((function(){n._cancelTask=null,n.state.isMenuOpen||n._openMenu(!1)}),100)}}),Object.defineProperty(Je(n),"_openMenuAutoFocus",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n._openMenu(e,!0)}}),Object.defineProperty(Je(n),"_openMenu",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.state.isMenuOpen){if(n._focused)return void n.setState({isMenuOpen:!1},(function(){return n._overlay&&n._overlay.cancel()}));if(n._inputRef)return null===(r=(t=n._inputRef).focus)||void 0===r||r.call(t),void(n._focused=!0);n._overlay&&n._overlay.cancel()}var i=n.props,a=i.descriptor,l=i.overlayContainer;n._hasFileSelect=!1,n.setState({isMenuOpen:!0}),n._overlay=xj.open({containerNode:l||document.body,targetNode:n._btnRef.current,autoClose:!1,reactComponent:nc().createElement(Cj,{closeExclude:n._btnRef.current,targetNode:n._btnRef.current,boundaryNode:document.body,visible:!0,offset:5,className:"ne-card-toolbar-select-popover ".concat(n.state.themeSelector||""),positionHandle:Ks.mobile?void 0:n._positionHandle,placement:Ks.mobile?HE:[qE,HE]},nc().createElement(pCe,{autoFocus:o,onInputRef:n._handleInputRef,onFocus:function(){n._focused=!0},onBlur:function(){n._focused=!1},onSelect:function(e){n._overlay&&n._overlay.cancel();for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o'),this._enterFullScreenBox=yc('
'),e.editorNode.appendChild(this._exitFullScreenBox),e.editorNode.appendChild(this._enterFullScreenBox),e.kernel.once("document.ready",(function(){t.render()})),kc(this,this._exitFullScreenBox,"mousedown",(function(e){e.preventDefault()})),kc(this,this._exitFullScreenBox,"click",(function(){t.service.exitFullscreen()})),kc(this,this._enterFullScreenBox,"mousedown",(function(e){e.preventDefault()})),kc(this,this._enterFullScreenBox,"click",(function(){t.service.enterFullscreen()}))}},{key:"render",value:function(){var e=this.renderer.requireService(OTe.ID).getHotKeyByName("fullscreen").text;nu().render(wS(e,nc().createElement(tD,{type:"t-fullscreen"})),this._enterFullScreenBox),nu().render(wS(e,nc().createElement(tD,{type:"t-exit-fullscreen"})),this._exitFullScreenBox)}},{key:"isFullscreen",value:function(){return this._isFullscreen}},{key:"enterFullscreen",value:function(){var e=this.editor;this._isFullscreen||(e.editorNode.parentNode.classList.add("ne-ui-fullscreen"),this._isFullscreen=!0,e.emit("enterFullscreen"),e.emitEvent("fullscreenStatusChange",!0))}},{key:"exitFullscreen",value:function(){var e=this.editor;this._isFullscreen&&(e.editorNode.parentNode.classList.remove("ne-ui-fullscreen"),this._isFullscreen=!1,e.emit("exitFullscreen"),e.emitEvent("fullscreenStatusChange",!1))}}]),t}(Wh);Object.defineProperty(sBe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"fullscreen"}),Object.defineProperty(sBe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Fje}),Object.defineProperty(sBe,"Service",{enumerable:!0,configurable:!0,writable:!0,value:Bje});var dBe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"editUI",get:function(){return this._option.editUI}},{key:"onAfterEditorPluginInit",get:function(){return this._option.onAfterEditorPluginInit}}]),e}();function fBe(e,t,n){return t=Qe(t),Xe(e,hBe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hBe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hBe=function(){return!!e})()}Object.defineProperty(dBe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"heading"});var pBe=function(){return[{menuItem:nc().createElement("div",{className:"ne-ui-select-content"},nc().createElement("span",{className:"ne-ui-item-content"},gc("正文")),nc().createElement("span",{className:"ne-ui-command-style"},ff(["opt","cmd","0"]))),value:"p",label:gc("正文")},{menuItem:nc().createElement("div",{className:"ne-ui-select-content"},nc().createElement("span",{className:"ne-ui-item-heading1"},gc("标题1")),nc().createElement("span",{className:"ne-ui-command-style"},ff(["opt","cmd","1"]))),value:"h1",label:gc("标题1")},{menuItem:nc().createElement("div",{className:"ne-ui-select-content"},nc().createElement("span",{className:"ne-ui-item-heading2"},gc("标题2")),nc().createElement("span",{className:"ne-ui-command-style"},ff(["opt","cmd","2"]))),value:"h2",label:gc("标题2")},{menuItem:nc().createElement("div",{className:"ne-ui-select-content"},nc().createElement("span",{className:"ne-ui-item-heading3"},gc("标题3")),nc().createElement("span",{className:"ne-ui-command-style"},ff(["opt","cmd","3"]))),value:"h3",label:gc("标题3")},{menuItem:nc().createElement("div",{className:"ne-ui-select-content"},nc().createElement("span",{className:"ne-ui-item-heading4"},gc("标题4")),nc().createElement("span",{className:"ne-ui-command-style"},ff(["opt","cmd","4"]))),value:"h4",label:gc("标题4")},{menuItem:nc().createElement("div",{className:"ne-ui-select-content"},nc().createElement("span",{className:"ne-ui-item-heading5"},gc("标题5")),nc().createElement("span",{className:"ne-ui-command-style"},ff(["opt","cmd","5"]))),value:"h5",label:gc("标题5")},{menuItem:nc().createElement("div",{className:"ne-ui-select-content"},nc().createElement("span",{className:"ne-ui-item-heading5"},gc("标题6")),nc().createElement("span",{className:"ne-ui-command-style"},ff(["opt","cmd","6"]))),value:"h6",label:gc("标题6")}]},vBe=pBe();hc.on(fc.CHANGE,(function(){vBe=pBe()}));var mBe=function(e){function t(){return Ye(this,t),fBe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t){kt("select"===e,"plugins/heading/src/editor/style-toolbar-descriptor.tsx:115"),this.editor.execCommand("style",t)}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,value:null,className:"ne-ui-toolbar-format",dropdownClassName:"ne-ui-toolbar-format-dropdown ".concat(this.editor.theme.getThemeSelector()),options:vBe,tooltip:gc("正文与标题"),Property:{placement:"bottomLeft"}}}},{key:"getUIState",value:function(){var e=this.editor,t=this.name,n=e.queryCommandValue(t),r=n&&"mixed"!==n?n:null;return{disabled:this.disabled||!e.queryCommandEnabled(t),value:r,options:vBe,dropdownClassName:"ne-ui-toolbar-format-dropdown ".concat(this.editor.theme.getThemeSelector())}}}]),t}(zRe);function gBe(e,t,n){return t=Qe(t),Xe(e,bBe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bBe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bBe=function(){return!!e})()}Object.defineProperty(mBe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"Select"});var yBe=["h1","h2","h3","h4","h5","h6"],wBe=[1,2,3,4,5,6],kBe=wBe.map((function(e){return"h".concat(e)})),CBe=function(e){function t(){return Ye(this,t),gBe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n,r=this;if(this.option.editUI){var o={factory:function(t){return e.createBoxUIByClazz(r.option.editUI,t)}};t.registerBoxUI(yBe.reduce((function(e,t){return e[t]=o,e}),{}))}t.onPluginEvent("headingCollapseChange",(function(){var t=[];e.inCollapsedNodes.forEach((function(e){var n,r;e.isInCollapsed||(null===(r=null===(n=Gy(e.viewNode))||void 0===n?void 0:n.$unCollapsed)||void 0===r||r.call(n),t.push(e))})),e.removeInCollapsedNodes(t)})),e.onPluginEvent("tocPositionChange",(function(e){t.execCommand("headingUnfold",e)}));var i=e.getService(URe.ID);null==i||i.registerToolbarWidget(JK.toolbar.style,mBe),null===(n=e.getService(SRe.ID))||void 0===n||n.registerCardSelect(Object.keys(JK.cardSelect).reduce((function(e,t,n){var r=n+1;return e[t]={type:"TextItem",mainIcon:"editor-main-title-".concat(r),icon:"card-h".concat(r),iconSize:16,label:gc("标题{headingNo}",{headingNo:r}),mainSearch:"/h".concat(r),keywords:"标题".concat(r,", h").concat(r,", /h").concat(r,", heading, heading").concat(r)},e}),{})),e.onPluginEvent("insertCardByUI",(function(e){var n=e.name;kBe.includes(n)&&(n===t.queryCommandValue("style")?r.editor.execCommand("style","p"):r.editor.execCommand("style",n))})),this.option.onAfterEditorPluginInit&&this.option.onAfterEditorPluginInit(this.editor,wBe)}}]),t}(Wh);function _Be(e,t,n){return t=Qe(t),Xe(e,NBe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NBe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NBe=function(){return!!e})()}Object.defineProperty(CBe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:JK.pluginName}),Object.defineProperty(CBe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:dBe});var OBe=function(e){function t(e,n){var r;return Ye(this,t),r=_Be(this,t,[e,n]),Object.defineProperty(Je(r),"_name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._name=n,r}return et(t,e),Ke(t,[{key:"name",get:function(){return this._name}},{key:"onEvent",value:function(e){kt("click"===e,"plugins/history/src/editor/history-toolbar-descriptor.ts:27"),this.editor.execCommand(this.name)}},{key:"getInitUIState",value:function(){var e={undo:gc("撤销"),redo:gc("重做")};return{disabled:this.disabled,icon:"editor-".concat(this.name),tooltip:zRe.getTooltip(this.editor,e[this.name],this.name)}}},{key:"getUIState",value:function(){var e=this.editor,t=this.name;return{disabled:this.disabled||e.queryCommandState(t)===ht}}}]),t}(zRe);function xBe(e,t,n){return t=Qe(t),Xe(e,EBe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function EBe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EBe=function(){return!!e})()}Object.defineProperty(OBe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});var DBe=function(e){function t(){return Ye(this,t),xBe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=e.getService(URe.ID);null==t||t.registerToolbarWidget(Ja(Ja({},_Y.toolbar.undo,OBe),_Y.toolbar.redo,OBe))}}]),t}(Wh);Object.defineProperty(DBe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:_Y.pluginName});var RBe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"editUI",get:function(){return this._option.editUI}}]),e}();function PBe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PBe=function(){return!!e})()}function SBe(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,PBe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){this.containerNode.innerHTML='
'}}]),t}(e)}Object.defineProperty(RBe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"hr"});var TBe=SBe;function ABe(e,t,n){return t=Qe(t),Xe(e,jBe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function jBe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jBe=function(){return!!e})()}var IBe=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},XBe=function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":We(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},QBe=function(){function e(t,n){var r=this;Ye(this,e),Object.defineProperty(this,"cardData",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"option",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"isFocus",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"overlayContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onLabelChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){r.setLabel(e)}}),Object.defineProperty(this,"getMemoLabels",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e,t,n=null===(t=null===(e=r.option)||void 0===e?void 0:e.getMemoLabels)||void 0===t?void 0:t.call(e,r.cardData.getCardValue());return n?Array.from(n):null}}),Object.defineProperty(this,"onColorIndexChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){r.setColorIndex(e)}}),Object.defineProperty(this,"onClose",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e,t;null===(t=null===(e=r.option)||void 0===e?void 0:e.onClose)||void 0===t||t.call(e)}}),Object.defineProperty(this,"getColorIndex",{enumerable:!0,configurable:!0,writable:!0,value:function(){return r.cardData.getColorIndex()}}),Object.defineProperty(this,"getStyle",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return r.cardData.getStyle(e)}}),Object.defineProperty(this,"getLabel",{enumerable:!0,configurable:!0,writable:!0,value:function(){return r.cardData.getLabel()}}),this.isFocus=(null==n?void 0:n.focus)||!1,this.overlayContainer=null==n?void 0:n.overlayContainer}return Ke(e,[{key:"setColorIndex",value:function(e){this.cardData.setColorIndex(e)}},{key:"setLabel",value:function(e){this.cardData.setLabel(e)}}]),e}();function ZBe(e,t,n){return t=Qe(t),Xe(e,eMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function eMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eMe=function(){return!!e})()}JBe([fh,XBe("design:type",Function),XBe("design:paramtypes",[Number]),XBe("design:returntype",void 0)],QBe.prototype,"setColorIndex",null),JBe([fh,XBe("design:type",Function),XBe("design:paramtypes",[String]),XBe("design:returntype",void 0)],QBe.prototype,"setLabel",null);var tMe=function(e){function t(){var e;return Ye(this,t),e=ZBe(this,t,arguments),Object.defineProperty(Je(e),"_onItemClick",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.colorIndex,r=t.label;e.props.viewModel.onColorIndexChange(n),e.props.viewModel.onLabelChange(r)}}),e}return et(t,e),Ke(t,[{key:"shouldComponentUpdate",value:function(e){return!this.props.panelShow&&e.panelShow}},{key:"render",value:function(){var e=this,t=this.props.viewModel.getMemoLabels();if(!t)return null;var n=t.map((function(e){var t=e.match(/([0-9]+)(-)(.+)/);return t&&t.length?{colorIndex:+t[1],label:t[3]}:null})).filter((function(e){return!!e}));return n.length?nc().createElement("div",{className:"ne-card-label-memos"},n.reverse().map((function(t,n){var r=t.colorIndex,o=t.label;return nc().createElement("div",{className:"ne-card-label-memos-item",key:"".concat(r,"-").concat(o),tabIndex:-1,"data-type":"label","data-label":"".concat(r,"-").concat(o),"data-tab-level":"label-tab-level-".concat(e.props.tabLevel),onFocus:e.props.onFocus,onKeyDown:e.props.onKeyDown,"data-tab-id":"label-tab-".concat(e.props.tabIndexStart+n),style:e.props.viewModel.getStyle({colorIndex:r,label:o}),onClick:e._onItemClick.bind(e,{colorIndex:r,label:o})},o)}))):null}}]),t}(tc.Component);function nMe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return rMe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rMe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function rMe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2?o-2:0),a=2;a=l+2*o+i?"-XXL":n>=l+o+i?"-XL":n>=l+o+a?"-L":"-M")}function _Me(e,t,n){return t=Qe(t),Xe(e,NMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NMe=function(){return!!e})()}Object.defineProperty(kMe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Yde.pluginName}),Object.defineProperty(kMe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:hMe}),Object.defineProperty(kMe,"Colors",{enumerable:!0,configurable:!0,writable:!0,value:MX});var OMe="ne-viewport-size-",xMe=function(e){function t(){return Ye(this,t),_Me(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this,n=e.kernel;e.editorNode.classList.add("ne-layout-mode-".concat(this.option.layout));var r=this.kernel.requireService(lQ.ID);n.on("document.create",(function(){var n=r.getLayout();!window.DISABLE_SHOW_HEADING&&e.option.showHeadingIcon&&(e.editorNode.classList.add("ne-typography-show-heading"),Ks.desktop&&e.editorNode.classList.add("ne-typography-desktop")),e.editorNode.classList.remove("ne-layout-mode-adapt","ne-layout-mode-fixed"),e.editorNode.classList.add("ne-layout-mode-".concat(n)),t._toggleToolbarSetting(n)})),n.onPluginEvent("layoutChange",(function(n){var r=n.current,o=n.prev;t._toggleToolbarSetting(r),e.editorNode.classList.remove("ne-layout-mode-".concat(o)),e.editorNode.classList.add("ne-layout-mode-".concat(r)),e.emit("layoutChange",{current:r,prev:o})})),e.on("maxViewChange",(function(t){var n=r.getLayout();t?e.editorNode.classList.remove("ne-layout-mode-".concat(n)):e.editorNode.classList.add("ne-layout-mode-".concat(n))})),e.on("enterMaxView",(function(){var t=r.getLayout();e.editorNode.classList.remove("ne-layout-mode-".concat(t))})),e.on("leaveMaxView",(function(){var t=r.getLayout();e.editorNode.classList.add("ne-layout-mode-".concat(t))})),e.onPluginEvent("viewSizeChange",(function(e){var n=e.curr;t._update(n.width)})),this._update(e.editorNode.getBoundingClientRect().width)}},{key:"destroy",value:function(){this.editor.editorNode.classList.remove("ne-layout-mode-".concat(eQ),"ne-layout-mode-".concat(tQ)),Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"_update",value:function(e){var t,n,r=this.editor,o=r.editorNode,i=r.scrollbarIsVisible,a=function(e){var t=e.prefix,n=e.totalWidth,r=e.sidebarWidth,o=e.tocWidth,i=e.space,a=e.standardContentWidth,l=e.minContentWidth,u=[CMe("".concat(t,"sidebar"),{totalWidth:n,space:i,targetWidth:r,standardContentWidth:a,minContentWidth:l}),CMe("".concat(t,"toc"),{totalWidth:n,space:i,targetWidth:o,standardContentWidth:a,minContentWidth:l})];return n>=a+2*i&&u.push("".concat(t,"standard")),u}({prefix:OMe,totalWidth:i?e-15:e,sidebarWidth:305,tocWidth:280,space:40,standardContentWidth:750,minContentWidth:500}),l=Array.from(o.classList).filter((function(e){return e.startsWith(OMe)})).filter((function(e){return!a.includes(e)}));l.length&&(t=o.classList).remove.apply(t,pn(l)),a.length&&(n=o.classList).add.apply(n,pn(a))}},{key:"_toggleToolbarSetting",value:function(e){var t=this.editor.getService(fI.ID);t&&(e===tQ||Ks.mobile?t.addDisabledMiniToolbarItems("widthMode"):t.removeDisabledMiniToolbarItems("widthMode"))}}]),t}(Wh);function EMe(e,t,n){return t=Qe(t),Xe(e,DMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function DMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DMe=function(){return!!e})()}Object.defineProperty(xMe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:dQ.pluginName}),Object.defineProperty(xMe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:gQ});var RMe="default",PMe=function(e){function t(){return Ye(this,t),EMe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t){kt("select"===e,"plugins/line-height/src/editor/line-height-toolbar-descriptor.ts:13"),t===RMe?this.editor.execCommand("lineHeight",null):this.editor.execCommand("lineHeight",parseFloat(t))}},{key:"getInitUIState",value:function(){var e=[{label:gc("默认"),value:RMe},{label:"1",value:1},{label:"1.15",value:1.15},{label:"1.5",value:1.5},{label:"2",value:2},{label:"2.5",value:2.5},{label:"3",value:3}];return{disabled:this.disabled,value:"default",icon:"editor-lineHeight",className:"ne-ui-toolbar-line-height",dropdownClassName:"ne-ui-toolbar-line-height-dropdown",items:e,tooltip:[DRe.lineHeight.text,ff(DRe.lineHeight.keys)]}}},{key:"getUIState",value:function(){var e=this.editor,t=e.queryCommandValue("lineHeight")||"default";return{disabled:this.disabled||!e.queryCommandEnabled("lineHeight"),label:t,value:t}}}]),t}(zRe);Object.defineProperty(PMe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"DropdownButton"});var SMe=[1,1.15,1.5,"default",2,2.5,3];function TMe(e,t,n){return t=Qe(t),Xe(e,AMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function AMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AMe=function(){return!!e})()}var jMe=function(e){function t(){return Ye(this,t),TMe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=e.getService(URe.ID);null==t||t.registerToolbarWidget(_Q.toolbar,PMe);var n=e.renderer.getService(OTe.ID);n&&[DRe.lineHeightIncrease,DRe.lineHeightDecrease].forEach((function(t){n.registerHotKey(t.name,t.keys,(function(n){n.stop();var r=e.queryCommandValue("lineHeight",!1)||"default";if(SMe.includes(r)){var o=SMe.indexOf(r),i="lineHeightIncrease"===t.name?o+1:o-1;SMe[i]&&e.execCommand("lineHeight",RQ[SMe[i]])}}))}))}}]),t}(Wh);function IMe(e,t,n){return t=Qe(t),Xe(e,BMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BMe=function(){return!!e})()}Object.defineProperty(jMe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:_Q.pluginName});var MMe=function(e){function t(){var e;return Ye(this,t),e=IMe(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(tw);function FMe(e,t,n){return t=Qe(t),Xe(e,LMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function LMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LMe=function(){return!!e})()}Object.defineProperty(MMe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("ILinkRenderService")});var UMe=function(e){function t(){return Ye(this,t),FMe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t){var n;kt("click"===e,"plugins/link/src/editor/link-toolbar-descriptor.ts:11"),null===(n=this.editor.renderer.getService(MMe.ID))||void 0===n||n.insertLink()}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,icon:"t-link",className:"ne-ui-toolbar-link",tooltip:zRe.getTooltip(this.editor,gc("插入链接"),"link")}}},{key:"getUIState",value:function(){var e=this.editor;return{disabled:this.disabled||!e.queryCommandEnabled(tZ.command.link)&&!e.queryCommandEnabled(tZ.command.insertLink)}}}]),t}(zRe);function VMe(e,t,n){return t=Qe(t),Xe(e,HMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function HMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HMe=function(){return!!e})()}Object.defineProperty(UMe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});var zMe=function(e){function t(){return Ye(this,t),VMe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t,n){var r,o=e.getService(URe.ID);null==o||o.registerToolbarWidget(tZ.toolbar,UMe);var i=t.requireService(MMe.ID);e.onPluginEvent("insertCardByUI:".concat(tZ.node),(function(){i.insertLink()})),null===(r=e.getService(SRe.ID))||void 0===r||r.registerCardSelect(tZ.cardSelect,Object.assign(Object.assign({},DRe.link),{description:gc("可自定义链接标题"),label:DRe[tZ.cardSelect].text,type:"TextItem",mainIcon:"editor-main-link",icon:"t-link",mainSearch:"/lj"}))}}]),t}(Wh);Object.defineProperty(zMe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:tZ.pluginName});var WMe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"editUI",get:function(){return this._option.editUI}},{key:"onAfterEditorPluginInit",get:function(){return this._option.onAfterEditorPluginInit}}]),e}();function qMe(e,t,n){return t=Qe(t),Xe(e,$Me()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $Me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($Me=function(){return!!e})()}Object.defineProperty(WMe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"list"});var KMe=Ja(Ja(Ja({},JZ.toolbar.orderedList,"t-order-list"),JZ.toolbar.unorderedList,"t-unorder-list"),JZ.toolbar.taskList,"t-task-list"),YMe=function(e){function t(){return Ye(this,t),qMe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){kt("change"===e,"plugins/list/src/editor/list-toolbar-descriptor.ts:27"),this.editor.execCommand(this.name)}},{key:"getInitUIState",value:function(){var e=this.name,t=Ja(Ja(Ja({},JZ.toolbar.orderedList,gc("有序列表")),JZ.toolbar.unorderedList,gc("无序列表")),JZ.toolbar.taskList,gc("任务列表"));return{disabled:this.disabled,checked:!1,className:"ne-ui-toolbar-list",icon:KMe[e],tooltip:zRe.getTooltip(this.editor,t[e],e)}}},{key:"getUIState",value:function(){var e=this.editor,t=this.name;return{disabled:this.disabled||!e.queryCommandEnabled(t),checked:1===e.queryCommandState(t)}}}]),t}(zRe);function GMe(e,t,n){return t=Qe(t),Xe(e,JMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function JMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(JMe=function(){return!!e})()}Object.defineProperty(YMe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"StatusButton"});var XMe=function(e){function t(){return Ye(this,t),GMe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){kt("change"===e,"plugins/list/src/editor/note-list-black-toolbar-descriptor.ts:18"),this.editor.execCommand("taskList")}},{key:"getInitUIState",value:function(){var e=this.name;return{disabled:!1,checked:!1,className:"ne-ui-toolbar-list",icon:"note-checkbox-black",tooltip:zRe.getTooltip(this.editor,gc("任务列表"),e)}}},{key:"getUIState",value:function(){var e=this.editor,t=e.kernel.queryCommandValue("selection");return{disabled:!t||Di.isUnbreakable(t),checked:1===e.queryCommandState("taskList")}}}]),t}(zRe);function QMe(e,t,n){return t=Qe(t),Xe(e,ZMe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ZMe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ZMe=function(){return!!e})()}Object.defineProperty(XMe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"StatusButton"});var eFe=function(e){function t(){return Ye(this,t),QMe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){kt("change"===e,"plugins/list/src/editor/note-list-toolbar-descriptor.ts:18"),this.editor.execCommand("taskList")}},{key:"getInitUIState",value:function(){var e=this.name;return{disabled:!1,className:"ne-ui-toolbar-list",icon:"note-checkbox",tooltip:zRe.getTooltip(this.editor,gc("任务列表"),e),checked:!1}}},{key:"getUIState",value:function(){var e=this.editor,t=e.kernel.queryCommandValue("selection");return{disabled:!t||Di.isUnbreakable(t),checked:1===e.queryCommandState("taskList")}}}]),t}(zRe);function tFe(e){var t=(0,tc.useCallback)((function(t){e.onSelect&&e.onSelect(t),e.closeOverlay&&e.closeOverlay()}),[]);return e.forHeading?nc().createElement("div",{className:"index-type-selector","data-event-boundary":"overlay"},[2,1,0].map((function(n){return nc().createElement("ul",{key:n,className:uC()({active:e.currentType===n}),onClick:function(){return t(n)}},nc().createElement("li",null,nc().createElement("span",{"data-level":"0","data-type":n,className:"ne-list-symbol"},g1(0,0,[],n)),nc().createElement("span",{className:"content","data-level":"0"})),nc().createElement("li",null,nc().createElement("span",{className:"content"})),nc().createElement("li",null,nc().createElement("span",{className:"content",style:{width:49}})),nc().createElement("li",null,nc().createElement("span",{"data-level":"1","data-type":n,className:"ne-list-symbol"},g1(0,1,[0],n)),nc().createElement("span",{className:"content","data-level":"1"})),nc().createElement("li",null,nc().createElement("span",{className:"content"})),nc().createElement("li",null,nc().createElement("span",{"data-level":"2","data-type":n,className:"ne-list-symbol"},g1(0,2,[0,0],n)),nc().createElement("span",{className:"content","data-level":"2"})))}))):nc().createElement("div",{className:"list-type-selector","data-event-boundary":"overlay"},[0,1,2].map((function(n){return nc().createElement("ul",{key:n,className:uC()({active:e.currentType===n}),onClick:function(){return t(n)}},nc().createElement("li",null,nc().createElement("span",{"data-level":"0","data-type":n,className:"ne-list-symbol"},g1(0,0,[],n)),nc().createElement("span",{className:"content"})),nc().createElement("li",null,nc().createElement("span",{"data-level":"1","data-type":n,className:"ne-list-symbol"},g1(0,1,[0],n)),nc().createElement("span",{className:"content"})),nc().createElement("li",null,nc().createElement("span",{"data-level":"1","data-type":n,className:"ne-list-symbol"},g1(1,1,[0],n)),nc().createElement("span",{className:"content"})),nc().createElement("li",null,nc().createElement("span",{"data-level":"2","data-type":n,className:"ne-list-symbol"},g1(0,2,[0,1],n)),nc().createElement("span",{className:"content"})),nc().createElement("li",null,nc().createElement("span",{"data-level":"0","data-type":n,className:"ne-list-symbol"},g1(1,0,[],n)),nc().createElement("span",{className:"content"})))})))}function nFe(e,t,n){return t=Qe(t),Xe(e,rFe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rFe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rFe=function(){return!!e})()}Object.defineProperty(eFe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"StatusButton"});var oFe=function(e){function t(){var e;return Ye(this,t),e=nFe(this,t,arguments),Object.defineProperty(Je(e),"_indexType",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(e),"_handleSelect",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._indexType=t,e.onEvent("requestIndexType")}}),e}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){this.editor.queryCommandState("indexType")===pt?this.editor.execCommand("indexType","requestIndexType"===e?this._indexType:void 0):this.editor.execCommand(this.name,this._indexType)}},{key:"getInitUIState",value:function(){var e=this.name;return{disabled:this.disabled,checked:!1,className:"ne-ui-toolbar-list",icon:"t-order-list",overlay:nc().createElement(tFe,{currentType:0,onSelect:this._handleSelect,forHeading:!0}),tooltip:zRe.getTooltip(this.editor,gc("有序列表"),e)}}},{key:"getUIState",value:function(){var e=this.editor,t=this.name,n=e.queryCommandValue("orderedListIndexType")||0,r=e.queryCommandState("indexType")===pt;return{disabled:this.disabled||!e.queryCommandEnabled(t),checked:r?null!==e.queryCommandValue("indexType"):1===e.queryCommandState(t),overlay:nc().createElement(tFe,{currentType:n,forHeading:r,onSelect:this._handleSelect}),tooltip:zRe.getTooltip(e,gc(r?"标题序号":"有序列表"),t)}}}]),t}(zRe);Object.defineProperty(oFe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"StatusDropdownButton"});var iFe=function(){};function aFe(e){var t=cn((0,tc.useState)(!1),2),n=t[0],r=t[1],o=(0,tc.useCallback)((function(e){r(e)}),[r]),i=(0,tc.useCallback)((function(){e.targetNode.classList.remove("select-active"),e.onClose()}),[]),a=(0,tc.useCallback)((function(){e.targetNode.classList.remove("select-active"),e.onClose()}),[]);if((0,tc.useEffect)((function(){e.targetNode.classList.add("select-active")}),[]),e.forHeading)return nc().createElement(Cj,{targetNode:e.targetNode,visible:!0,offset:4,placement:["bottomLeft","topLeft"],onClose:i,onCancel:a,allowClose:!0},nc().createElement("div",{className:"order-list-index-menu-panel heading"},nc().createElement(tFe,{forHeading:!0,currentType:e.value,onSelect:e.onChangeIndexType})));var l=[{title:gc("重新编号"),key:"reindex",onClick:e.onReIndex},{title:gc("继续编号"),key:"cindex",onClick:e.onContinueIndex},{title:gc("修改样式"),key:"modifyStyle"}];return nc().createElement(Cj,{targetNode:e.targetNode,visible:!0,placement:["bottomLeft","topLeft"],onClose:i,onCancel:a,allowClose:!0},nc().createElement("div",{className:uC()("order-list-index-menu-panel",mc.getLanguage())},l.map((function(t,r){return"modifyStyle"===t.key?nc().createElement(Bj,{key:t.key,placement:"rightTop",getPopupContainer:function(){return e.containerNode},onVisibleChange:o,overlayClassName:"order-list-index-menu-popover ".concat(e.themeSelector),content:nc().createElement(tFe,{currentType:e.values[r],onSelect:e.onChangeIndexType})},nc().createElement("div",{className:uC()("order-list-index-menu-item",{active:n})},nc().createElement("span",null,t.title),nc().createElement(tD,{type:"arrow-right"}))):nc().createElement("div",{className:uC()("order-list-index-menu-item",{disabled:!e.values[r]}),key:t.key,onClick:e.values[r]?t.onClick:iFe},t.title)}))))}function lFe(e,t,n){return t=Qe(t),Xe(e,uFe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function uFe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uFe=function(){return!!e})()}var cFe=function(e){function t(){var e;return Ye(this,t),e=lFe(this,t,arguments),Object.defineProperty(Je(e),"_overlay",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_handleClosePopover",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._overlay&&(e._overlay.cancel(),e._overlay=null)}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this;if(this.option.editUI){var r={factory:function(t){return e.createBoxUIByClazz(n.option.editUI,t)}};t.registerBoxUI(t0.reduce((function(e,t){return e[t]=r,e}),{}))}var o=e.getService(URe.ID);null==o||o.registerToolbarWidget(Ja(Ja(Ja(Ja(Ja({},JZ.toolbar.orderedList,oFe),JZ.toolbar.unorderedList,YMe),JZ.toolbar.taskList,YMe),JZ.toolbar.notetaskList,eFe),JZ.toolbar["note-taskList-black"],XMe)),e.onPluginEvent("insertCardByUI",(function(t){var n=t.name;switch(n){case DRe.taskList.name:case DRe.unorderedList.name:case DRe.orderedList.name:e.execCommand(n)}})),t.onPluginEvent("orderListClickIndex",(function(t){t.event;var r=t.dom,o=t.nodeId;n._overlay&&n._overlay.cancel();var i=e.queryCommandValue("orderedListIndexQuery",o);null!==i&&(n._overlay=xj.open({containerNode:e.innerOverlayContainer,targetNode:r,overlayClassName:"ne-ui-file-mode-overlay",reactComponent:nc().createElement(aFe,{forHeading:!1,targetNode:r,values:i,onClose:n._handleClosePopover,containerNode:e.innerOverlayContainer,themeSelector:e.theme.getThemeSelector(),onReIndex:function(){e.execCommand("orderedListIndexQuery",o,!0),n._handleClosePopover(),r.classList.remove("select-active")},onContinueIndex:function(){e.execCommand("orderedListIndexQuery",o,!1),n._handleClosePopover(),r.classList.remove("select-active")},onChangeIndexType:function(t){e.execCommand("orderedListIndexType",o,t),n._handleClosePopover(),r.classList.remove("select-active")}}),autoClose:!1}))})),t.onPluginEvent("headingClickIndex",(function(t){t.event;var r=t.dom,o=t.nodeId;n._overlay&&n._overlay.cancel();var i=e.queryCommandValue("indexType",o);null!==i&&(n._overlay=xj.open({containerNode:e.innerOverlayContainer,targetNode:r,overlayClassName:"ne-ui-file-mode-overlay",reactComponent:nc().createElement(aFe,{forHeading:!0,targetNode:r,containerNode:e.innerOverlayContainer,themeSelector:e.theme.getThemeSelector(),value:i,onClose:n._handleClosePopover,onChangeIndexType:function(t){i!==t&&e.execCommand("indexType",t,o),n._handleClosePopover(),r.classList.remove("select-active")}}),autoClose:!1}))}));var i=e.getService(SRe.ID);i&&[JZ.cardSelect.orderedList,JZ.cardSelect.unorderedList,JZ.cardSelect.taskList].forEach((function(e){var t=DRe[e],n=n0[t.name];i.registerCardSelect(t.name,Object.assign(Object.assign({},t),{type:"TextItem",label:t.text,icon:r0[n].icon,mainIcon:r0[n].mainIcon}))}))}},{key:"afterInit",value:function(){this.option.onAfterEditorPluginInit&&this.option.onAfterEditorPluginInit(this.editor)}}]),t}(Wh);function sFe(e,t,n){return t=Qe(t),Xe(e,dFe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function dFe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dFe=function(){return!!e})()}Object.defineProperty(cFe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:JZ.pluginName}),Object.defineProperty(cFe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:WMe});var fFe=function(e){function t(){var e;return Ye(this,t),e=sFe(this,t),Object.defineProperty(Je(e),"_disabledItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"_filters",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"getDisabledMiniToolbarItems",{enumerable:!0,configurable:!0,writable:!0,value:function(){return pn(e._disabledItems)}}),Object.defineProperty(Je(e),"registerFilterMiniToolbarItems",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._filters.push(t)}}),Object.defineProperty(Je(e),"getFilterMiniToolbarItems",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){var r=[];return e._filters.some((function(e){var o=e(t,n);return!1===o||(r.push.apply(r,pn(o)),!1)})),r}}),Object.defineProperty(Je(e),"destroy",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._disabledItems=void 0,e._filters=void 0}}),e.setDisabledMiniToolbarItems=e.setDisabledMiniToolbarItems.bind(Je(e)),e.addDisabledMiniToolbarItems=e.addDisabledMiniToolbarItems.bind(Je(e)),e.removeDisabledMiniToolbarItems=e.removeDisabledMiniToolbarItems.bind(Je(e)),e}return et(t,e),Ke(t,[{key:"setDisabledMiniToolbarItems",value:function(e){this._disabledItems=e?pn(e):[]}},{key:"addDisabledMiniToolbarItems",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:"slash";return this.filterOptions(this._plugin.option.getParsedConfig(this._getContextType(),e))}},{key:"setDefaultContextType",value:function(e){this._plugin.option.hasType(e)?this._defaultContextType=e:this._defaultContextType=lLe}},{key:"getDisplayConfigForNode",value:function(e){return this._plugin.option.getParsedConfig(this._getContextTypeByNodeId(e),"cardSelect")}},{key:"getRecentSelectItems",value:function(){var e=this._getContextType(),t=this._plugin.option.getParsedConfig(e).recordSelectedItemConfig;if(t){var n=t.enable,r=void 0!==n&&n,o=t.title,i=t.type,a=t.maxNum;if(r){var l=this._filterRecentSelectItems(this._getRecentSelectItems(),e);if(l&&l.length)return{title:gc(o),type:i,items:l.splice(0,a)}}}}},{key:"_filterRecentSelectItems",value:function(e,t){if(!e||!e.length)return[];var n=this._plugin.option.getParsedConfig(t);return n=this.filterOptions(n),e.filter((function(e){var t,r;return null===(r=null===(t=n.groups)||void 0===t?void 0:t.find)||void 0===r?void 0:r.call(t,(function(t){var n,r;return null===(r=null===(n=t.items)||void 0===n?void 0:n.find)||void 0===r?void 0:r.call(n,(function(t){var n;return!t.disabled&&(t.name===e.name||(null===(n=t.childMenus)||void 0===n?void 0:n.find((function(t){return t.name===e.name}))))}))}))}))}},{key:"_getRecentSelectItems",value:function(){var e=this._plugin.getSelectCardNames();if(!e.length)return[];var t=this._plugin.option.definitions,n=[];return e.forEach((function(e){n.push(Object.assign(Object.assign({},t[e]),{name:e}))})),n}},{key:"_getContextType",value:function(){var e=this._plugin.kernel.queryCommandValue("selection").firstRange.commonAncestorContainer;return zt.closest(e,ze.Table)?uLe:zt.closest(e,[jt,xr])?cLe:this._defaultContextType}},{key:"_getContextTypeByNodeId",value:function(e){var t=this._plugin.kernel.model.document.getNodeById(e);return this._getContextTypeForNode(t)}},{key:"_getContextTypeForNode",value:function(e){return e?zt.closest(e,ze.Table)?uLe:zt.closest(e,[jt,xr])?cLe:this._defaultContextType:this._defaultContextType}}]),e}();function vLe(e,t,n){return t=Qe(t),Xe(e,mLe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mLe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mLe=function(){return!!e})()}var gLe=600,bLe=292,yLe=10,wLe=function(e){function t(){var e;return Ye(this,t),e=vLe(this,t,arguments),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{config:null,visible:!1}}),Object.defineProperty(Je(e),"_readWriteCalculateOffset",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.props.boundaryNode.getBoundingClientRect(),r=Object.assign(Object.assign({},n),{top:94,bottom:n.height}),o=e.props.overlayContainer.getBoundingClientRect(),i=e.props.targetNode.getBoundingClientRect();i.left+bLe+yLe<=window.innerWidth?t.style.left=i.left-o.left+"px":t.style.left=window.innerWidth-bLe-yLe-o.left+"px";var a=Math.min(gLe,window.innerHeight-(i.bottom+5+yLe)),l=Math.min(gLe,i.top-5-yLe-r.top);t.classList.remove("lock-to-bottom"),a<360&&l>a?(t.classList.add("lock-to-bottom"),t.style.height=l+"px",t.style.top=i.top-5-l-o.top+"px"):(t.style.height=a+"px",t.style.top=i.bottom+5-o.top+"px")}}),Object.defineProperty(Je(e),"_innerCalculateOffset",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.props.boundaryNode.getBoundingClientRect(),r=e.props.overlayContainer.getBoundingClientRect(),o=e.props.targetNode.getBoundingClientRect();o.left+bLe+yLe<=window.innerWidth?t.style.left=o.left-r.left+"px":t.style.left=window.innerWidth-bLe-yLe-r.left+"px";var i=Math.min(gLe,window.innerHeight-(o.bottom+5+yLe)),a=Math.min(gLe,o.top-5-yLe-n.top);t.classList.remove("lock-to-bottom"),i<360&&a>i?(t.classList.add("lock-to-bottom"),t.style.height=a+"px",t.style.top=o.top-5-a-r.top+"px"):(t.style.height=i+"px",t.style.top=o.bottom+5-r.top+"px")}}),Object.defineProperty(Je(e),"_bodyCalculateOffset",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.props.overlayContainer.getBoundingClientRect(),r=e.props.targetNode.getBoundingClientRect();r.left+bLe+yLe<=window.innerWidth?t.style.left=r.left-n.left+"px":t.style.left=window.innerWidth-bLe-yLe-n.left+"px";var o=Math.min(gLe,window.innerHeight-(r.bottom+5+yLe)),i=Math.min(gLe,r.top-5-yLe);t.classList.remove("lock-to-bottom"),o<360&&i>o?(t.classList.add("lock-to-bottom"),t.style.height=i+"px",t.style.top=r.top-5-i-n.top+"px"):(t.style.height=o+"px",t.style.top=r.bottom+5-n.top+"px")}}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){this.setState({visible:!0})}},{key:"render",value:function(){var e=!!this.props.isGeneralType,t=!!this.props.isEditMode;return nc().createElement(Cj,{targetNode:this.props.targetNode,uiEmitter:this.props.uiEmitter,boundaryNode:document.body,visible:this.state.visible,allowClose:!1,offset:5,placement:["bottomLeft","bottomRight","topLeft","topRight"],onClose:this.props.onClose,onCancel:this.props.onCancel,positionHandle:e?t?this._readWriteCalculateOffset:this._innerCalculateOffset:this._bodyCalculateOffset},this._renderMenu())}},{key:"_renderMenu",value:function(){return nc().createElement(pCe,{showHover:!1,onSelect:this.props.onSelect,emptyTipText:gc("无可用卡片"),selectEmitter:this.props.selectEmitter,disableSearch:!0,onSearchResultEmpty:this.props.onSearchResultEmpty,config:this.props.getCardMenuItemConfig(),overlayContainer:this.props.overlayContainer,className:"ne-ui-slash-card-select-menu",customSearch:this.props.customSearch})}}]),t}(tc.Component);function kLe(e,t,n){return t=Qe(t),Xe(e,CLe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function CLe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CLe=function(){return!!e})()}Object.defineProperty(wLe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onSelect:function(){},onCancel:function(){},onSearchResultEmpty:function(){}}});var _Le=/[\u0100-\uffff]/g,NLe=function(e){function t(){var e;return Ye(this,t),e=kLe(this,t,arguments),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{userInput:""}}),Object.defineProperty(Je(e),"_rootRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_inputRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_selectEmitter",{enumerable:!0,configurable:!0,writable:!0,value:new ut}),Object.defineProperty(Je(e),"_overlay",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_isCompositing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_resultEmpty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_currentEmptyTimes",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(e),"_getCardMenuItemConfig",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.displayCommands,n=t.groups,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=4?(null===(r=(n=e.props).onTriggerClose)||void 0===r||r.call(n,t),!0):!(e._isCompositing||!e.props.onTriggerClose||!(t.includes(" ")||(a=t,(a&&"string"==typeof a?a.replace(_Le,"aa").length:0)>15))||(null===(i=(o=e.props).onTriggerClose)||void 0===i||i.call(o,t),0))}}),Object.defineProperty(Je(e),"_changeHandler",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.target.value;e._checkEnd(n)||(e.setState({userInput:n}),e._isCompositing||e._selectEmitter.emit("search",n))}}),e}return et(t,e),Ke(t,[{key:"componentWillUnmount",value:function(){this._overlay&&this._overlay.cancel()}},{key:"render",value:function(){return nc().createElement("div",{ref:this._rootRef,className:"ne-ui-slash-command-view"},nc().createElement("span",null,this.props.originData||"/"),nc().createElement("div",{className:"ne-ui-slash-command-input-wrap"},nc().createElement("span",{className:"ne-ui-slash-command-hidden"},this.state.userInput||""),nc().createElement("input",{placeholder:"",ref:this._inputRef,onCompositionStart:this._handleCompositionStart,onCompositionEnd:this._handleCompositionEnd,onKeyDown:this._keyDownHandler,onChange:this._changeHandler,className:"ne-ui-slash-command-input"})))}},{key:"getUserInput",value:function(){return this._inputRef.current?this._inputRef.current.value:null}},{key:"focus",value:function(){var e=this;this.openOverlay(),this._inputRef.current?this._inputRef.current.focus():setTimeout((function(){e._inputRef.current&&e._inputRef.current.focus()}))}},{key:"openOverlay",value:function(){var e=this;this._overlay&&this._overlay.cancel(),this._overlay=xj.open({containerNode:this.props.overlayContainer,targetNode:this._rootRef.current,reactComponent:nc().createElement(wLe,{overlayContainer:this.props.overlayContainer,uiEmitter:this.props.uiEmitter,onSearchResultEmpty:this._handleEmpty,getCardMenuItemConfig:this._getCardMenuItemConfig,boundaryNode:this.props.boundaryNode,selectEmitter:this._selectEmitter,isGeneralType:this.props.isGeneralType,isEditMode:this.props.isEditMode,onSelect:function(){var t;e._overlay&&e._overlay.cancel(),(t=e.props).onSelect.apply(t,arguments)},onCancel:this.props.onCancel,targetNode:this._rootRef.current,customSearch:this.props.customSearch}),overlayClassName:"ne-slash-overlay",autoClose:!1})}}]),t}(tc.Component);function OLe(e,t,n){return t=Qe(t),Xe(e,xLe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function xLe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xLe=function(){return!!e})()}Object.defineProperty(NLe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onSelect:function(){},onCancel:function(){},getRecentSelectItems:function(){}}});var ELe=function(e){function t(){var e;return Ye(this,t),e=OLe(this,t,arguments),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var n=this,r=e.displayConfig,o=e.getRecentSelectItems,i=e.isGeneralType,a=e.originData,l=e.search;Cr(Qe(t.prototype),"init",this).call(this);var u=this.editor.editorNode.classList.contains("layout-read-write");this.uiViewProxy=Iwe.render(NLe,{originData:a,displayCommands:r,getRecentSelectItems:o,isGeneralType:i,onTriggerClose:function(e){n.emit("useInput",e)},onCancel:function(e){n.emit("cancel",e)},onSelect:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?i-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"slash";kt(hLe(e),"plugins/slash/src/editor/slash-option.ts:95");var n=this._useForParsedConfig[t];return n[e]||(n[e]=this._transformConfig(this._option.cardSelect[e],!0,t)),n[e]}},{key:"_transformConfig",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"slash",o=this._cardSelectDefinitions,i=function e(r){var i;if(i="string"==typeof r?{name:r}:Object.assign({},r),!o[i.name])return null;if(!n&&o[i.name].disabled)return null;var a=Object.assign(Object.assign({},o[i.name]),i);return a.childMenus&&(a.childMenus=a.childMenus.map(e)),t._option.afterParsed?t._option.afterParsed(a):a};return Object.assign(Object.assign({},e),{groups:e.groups.map((function(e){if(e.show&&e.show!==r)return null;var t=e.items.map(i).filter(Boolean);return t.length?Object.assign(Object.assign({},e),{items:t}):null})).filter((function(e){return null!==e}))})}}]),e}();function jLe(e){return Array.isArray(e.accept)&&0===e.accept.length&&(e.disabled=!0),e&&"string"==typeof e.keywords?Object.assign(Object.assign({},e),{keywords:e.keywords.split(",")}):e}function ILe(e,t,n){return t=Qe(t),Xe(e,BLe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BLe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BLe=function(){return!!e})()}Object.defineProperty(ALe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"slash"});var MLe=function(e){function t(){var e;return Ye(this,t),e=ILe(this,t,arguments),Object.defineProperty(Je(e),"handleCancel",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.editor&&e.editor.execCommand("focus")}}),e}return et(t,e),Ke(t,[{key:"onEvent",value:function(e,t,n){kt("select"===e,"plugins/slash/src/editor/descriptors/insert-card-toolbar-descriptor.ts:15");var r=this.editor;DLe.insert(r,t,n),this.editor.emitEvent("userAction",{type:"insertCard",name:t.label,source:"toolbar"})}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,value:null,icon:"t-insert-card",iconSize:18,className:"ne-ui-toolbar-insert-card",dropdownClassName:"ne-ui-toolbar-insert-card-dropdown",themeSelector:this.editor.theme.getThemeSelector(),tooltip:zRe.getTooltip(this.editor,gc("插入特色卡片"),"slash"),search:this.pluginContext.search}}},{key:"getOverlayContainer",value:function(){return this.editor.overlayContainer}},{key:"getUIState",value:function(){var e=this.editor;return{disabled:this.disabled||!e.queryCommandEnabled("insertSlash"),themeSelector:this.editor.theme.getThemeSelector()}}},{key:"getConfig",value:function(){return this.pluginContext.getConfig("cardSelect")}},{key:"getRecentSelectItems",value:function(){return this.pluginContext.getRecentSelectItems()}}]),t}(zRe);function FLe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.searchFunctions);try{for(o.s();!(n=o.n()).done;){var i=(0,n.value)(e,t);i&&(r=r?r.concat(i):i)}}catch(e){o.e(e)}finally{o.f()}return r}},{key:"getDisplayConfigForNode",value:function(e){return e?this.plugin.pluginContext.getDisplayConfigForNode(e):{groups:[]}}},{key:"executeSlashCommand",value:function(e,t,n){DLe.execute(e,t,n,"")}},{key:"destroy",value:function(){}}]),t}(SRe);function HLe(e,t,n){return t=Qe(t),Xe(e,zLe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function zLe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zLe=function(){return!!e})()}var WLe="ne_larkx_recent_selected_item_record",qLe=function(e){function t(){var e;return Ye(this,t),e=HLe(this,t,arguments),Object.defineProperty(Je(e),"_selectors",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(Je(e),"pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this,r=new pLe(this);this.pluginContext=r;var o=e.getService(URe.ID);if(null==o||o.registerToolbarWidget(F4.toolbar.cardSelect,{clazz:MLe,pluginContext:r}),t.onPluginEvent("uiSwitched",(function(e){var t=e.type;r.setDefaultContextType(t)})),!this.option.disableQuickInput){t.registerInlineCard(this,F4.node.slash,{factory:function(){for(var t=arguments.length,r=new Array(t),o=0;o10&&i.pop(),localStorage.setItem(WLe,JSON.stringify(i))}}},{key:"handleGetSelectCardNames",value:function(){var e=localStorage.getItem(WLe);return e?JSON.parse(e):[]}}]),t}(Wh);Object.defineProperty(qLe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:F4.pluginName}),Object.defineProperty(qLe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:ALe}),Object.defineProperty(qLe,"Service",{enumerable:!0,configurable:!0,writable:!0,value:VLe});var $Le=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"editUI",get:function(){return this._option.editUI}},{key:"onEditorPluginInit",get:function(){return this._option.onEditorPluginInit}},{key:"forceToolbar",get:function(){return!!this._option.forceToolbar}}]),e}();function KLe(e){return e.closest(ze.Table)&&!e.hasCategory(ze.Table)?["widthMode"]:[]}function YLe(e,t,n){return t=Qe(t),Xe(e,GLe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function GLe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(GLe=function(){return!!e})()}Object.defineProperty($Le,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"table"});var JLe=function(e){function t(){return Ye(this,t),YLe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this,t=this.editor.renderer.getService(OTe.ID);t&&t.registerHotKey(DRe.toggleBorder.name,DRe.toggleBorder.keys,(function(t){t.stop(),e.editor.execCommand("tableBorderVisible")}))}},{key:"onEvent",value:function(e){kt("change"===e,"plugins/table/src/editor/descriptors/border-visible-toolbar-descriptor.ts:29"),this.editor.execCommand("tableBorderVisible")}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,checked:!1,icon:"t-border-visible",tooltip:zRe.getTooltip(this.editor,gc("隐藏边框"),DRe.toggleBorder.name)}}},{key:"getUIState",value:function(){var e=this.editor;return{disabled:this.disabled||!e.queryCommandEnabled("tableBorderVisible"),checked:e.queryCommandState("tableBorderVisible")===vt}}}]),t}(zRe);Object.defineProperty(JLe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"StatusButton"});var XLe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.color=t}return Ke(e,[{key:"getColor",value:function(){return this.color}},{key:"setColor",value:function(e){this.color=e}}]),e}();function QLe(e,t,n){return t=Qe(t),Xe(e,ZLe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ZLe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ZLe=function(){return!!e})()}var eUe="transparent",tUe=function(e){function t(){return Ye(this,t),QLe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this,t=this.editor.renderer.getService(OTe.ID);t&&t.registerHotKey(DRe.cellBgColor.name,DRe.cellBgColor.keys,(function(t){t.stop(),e.editor.execCommand("tableCellBgColor",e.pluginContext.getColor())}))}},{key:"onEvent",value:function(e,t){var n=this.editor.theme.toPersistentValue(t);switch(e){case"select":if(this.pluginContext.setColor(n),t===eUe)return this.editor.execCommand("tableCellBgColor");this.editor.execCommand("tableCellBgColor",n);break;case"saveColor":this.editor.hasExtendMethod("updateUserColor")&&this.editor.updateUserColor(n);break;default:kt(!1,"plugins/table/src/editor/descriptors/cell-bg-color-toolbar-descriptor.ts:57")}}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,className:"ne-ui-toolbar-cell-bg-color",defaultColor:eUe,color:this.editor.theme.toVisualValue(this.pluginContext.getColor()),themeName:this.editor.theme.getSchemeName(),icon:"t-cell-bg-color",userColors:[],tooltip:zRe.getTooltip(this.editor,gc("单元格背景色"),DRe.cellBgColor.name)}}},{key:"getUIState",value:function(){var e=this.editor,t=this.name,n=[];e.hasExtendMethod("getUserColors")&&(n=e.getUserColors().map((function(t){return e.theme.toVisualValue(t)})));var r=e.theme.toVisualValue(e.queryCommandValue("tableCellBgColor"))||eUe,o=e.theme.toVisualValue(this.pluginContext.getColor())||eUe;return{disabled:this.disabled||!e.queryCommandEnabled(t)||e.queryCommandState(t)===ht,userColors:n,themeName:this.editor.theme.getSchemeName(),activeColors:[r],color:o}}}]),t}(zRe);function nUe(e,t,n){return t=Qe(t),Xe(e,rUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rUe=function(){return!!e})()}Object.defineProperty(tUe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"ColorPickerButton"});var oUe=function(e){function t(){return Ye(this,t),nUe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this,t=this.editor.renderer.getService(OTe.ID);t&&t.registerHotKey(DRe.mergeCell.name,DRe.mergeCell.keys,(function(t){t.stop();var n=e.editor.queryCommandState("tableMergeCell");n===pt?e.editor.execCommand("tableMergeCell"):n===vt&&e.editor.execCommand("tableUnmergeCell")}))}},{key:"onEvent",value:function(e,t){kt("change"===e,"plugins/table/src/editor/descriptors/cell-merge-toolbar-descriptor.ts:39"),t?this.editor.execCommand("tableMergeCell"):this.editor.execCommand("tableUnmergeCell")}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,checked:!1,icon:"t-table-cell-merge",tooltip:zRe.getTooltip(this.editor,gc("合并单元格"),DRe.mergeCell.name)}}},{key:"getUIState",value:function(){var e=this.editor;return{disabled:this.disabled||!e.queryCommandEnabled("tableMergeCell")&&!e.queryCommandEnabled("tableUnmergeCell"),checked:e.queryCommandState("tableMergeCell")===vt,tooltip:e.queryCommandState("tableMergeCell")===vt?zRe.getTooltip(this.editor,gc("拆分单元格"),DRe.mergeCell.name):zRe.getTooltip(this.editor,gc("合并单元格"),DRe.mergeCell.name)}}}]),t}(zRe);function iUe(e,t,n){return t=Qe(t),Xe(e,aUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aUe=function(){return!!e})()}function lUe(e){return[DRe.verticalAlignTop,DRe.verticalAlignMiddle,DRe.verticalAlignBottom].map((function(t){return Object.assign(Object.assign({},t),{label:t.text,icon:"t-".concat(t.value,"-align"),tooltip:zRe.getTooltip(e,t.text,t.name)})}))}Object.defineProperty(oUe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"StatusButton"});var uUe=function(e){function t(){return Ye(this,t),iUe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this,t=this.editor.renderer.getService(OTe.ID);t&&lUe(this.editor).forEach((function(n){t.registerHotKey(n.name,n.keys,(function(t){t.stop(),e.editor.execCommand("tableVerticalAlign",n.value)}))}))}},{key:"onEvent",value:function(e,t){kt("select"===e,"plugins/table/src/editor/descriptors/table-vertical-align-toolbar-descriptor.ts:43"),this.editor.execCommand("tableVerticalAlign",t)}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,items:lUe(this.editor),icon:"t-middle-align",iconSize:14,value:"top",className:"ne-ui-toolbar-vertical-align",dropdownClassName:"ne-ui-toolbar-vertical-align-dropdown",tooltip:gc("垂直对齐")}}},{key:"getUIState",value:function(){var e=this.editor;return{disabled:this.disabled||!e.queryCommandEnabled("tableVerticalAlign")||-1===e.queryCommandState("tableVerticalAlign"),value:e.queryCommandValue("tableVerticalAlign")}}}]),t}(zRe);Object.defineProperty(uUe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"DropdownButton"});var cUe={default:{bg:vu["editor.background.secondary"].light,text:vu["editor.text.color"].light},green:{bg:vu["editor.color.peaGreen1"].light,text:vu["editor.color.peaGreen9"].light},blue:{bg:vu["editor.color.blue1"].light,text:vu["editor.color.blue9"].light},red:{bg:vu["editor.color.red1"].light,text:vu["editor.color.red9"].light},inverseGreen:{bg:vu["editor.color.peaGreen8"].light,text:vu["editor.color.peaGreen1"].light},inverseBlue:{bg:vu["editor.color.blue8"].light,text:vu["editor.color.blue1"].light}},sUe="ne-table-head-bg-color",dUe=function(e){var t=e.color,n=e.selected,r=e.editor,o=e.onClick,i=void 0===o?function(){}:o;return nc().createElement("div",{onClick:i,className:"table-head-color-icon ".concat(n?"table-head-color-icon-selected":""," ").concat("string"==typeof t?"table-head-color-icon-".concat(t):""),style:function(){if("object"!==We(t))return{};var e=cn(oz(t.text),2),n=e[0],o=e[1];return o?{backgroundColor:iz(t.bg,r.theme),backgroundImage:"linear-gradient(90deg, ".concat(n,", ").concat(o,")"),backgroundClip:"text"}:{backgroundColor:iz(t.bg,r.theme),color:iz(n,r.theme)}}()},"A")},fUe=function(e){var t=e.editor,n=e.color,r=e.textButton,o=e.bgButton,i=e.onSelectType;return nc().createElement("div",{className:"table-head-color-popup ".concat(t.theme.getThemeSelector())},nc().createElement("div",{className:"table-head-color-popup-buttons"},Object.keys(cUe).map((function(e){return nc().createElement(dUe,{onClick:function(){i(e)},editor:t,key:e,color:e,selected:"string"==typeof n&&n===e})}))),nc().createElement("div",{className:"table-head-color-popup-custom"},gc("自定义")),nc().createElement("div",{className:"table-head-color-popup-actions"},nc().createElement(dUe,{editor:t,color:n,selected:"string"!=typeof n}),nc().createElement("div",{className:"table-head-color-popup-divider"}),r,o))},hUe=function(e){var t=e.getColHead,n=e.getRowHead,r=e.getInitColor,o=e.ColorButton,i=e.editor,a=(0,tc.useState)((null==r?void 0:r())||function(){var e=Tf.getItem(sUe);if(e){if(e in cUe)return e}else Tf.setItem(sUe,"default");try{var t=JSON.parse(Tf.getItem(sUe));if("string"!=typeof t.text||"string"!=typeof t.bg)throw new Error("color parsed error");return t}catch(e){return"default"}}()),l=cn(a,2),u=l[0],c=l[1],s=cn((0,tc.useState)(!1),2),d=s[0],f=s[1],h=cn((0,tc.useState)(null==n?void 0:n()),2),p=h[0],v=h[1],m=cn((0,tc.useState)(null==t?void 0:t()),2),g=m[0],b=m[1],y=(0,tc.useRef)(null);(0,tc.useEffect)((function(){var e=function(e){e.target&&e.target instanceof Node&&y.current&&y.current.contains(e.target)||f(!1)};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}),[]);var w=function(e){var t="string"==typeof e?cUe[e]:e;return Object.assign({},t)},k=function(e,t){var n=w(u);"bg"===t?n.bg=az(e,i.theme):n.text=az(e,i.theme),c(n),Tf.setItem(sUe,JSON.stringify(n)),C(n)},C=function(r){(null==n?void 0:n())&&e.toggleRowHead(!0,w(r)),(null==t?void 0:t())&&e.toggleColHead(!0,w(r))};return nc().createElement("div",{className:"table-head-overlay ant-dropdown-menu",ref:y},nc().createElement("div",{className:"menu-item",onClick:function(){e.toggleRowHead(!p,w(u)),(null==t?void 0:t())&&e.toggleColHead(!0,w(u)),v(!p)}},nc().createElement(tD,{type:"col-head"}),nc().createElement("span",null,gc("标题行")),nc().createElement(Hj,{size:"small",checked:p})),nc().createElement("div",{className:"menu-item",onClick:function(){e.toggleColHead(!g,w(u)),(null==n?void 0:n())&&e.toggleRowHead(!0,w(u)),b(!g)}},nc().createElement(tD,{type:"row-head"}),nc().createElement("span",null,gc("标题列")),nc().createElement(Hj,{checked:g,size:"small"})),!!o&&nc().createElement(Fj,{placement:"rightBottom",visible:d,getPopupContainer:function(e){return e.parentElement||y.current||document.body},overlayClassName:d?"table-head-custom-open":"",content:nc().createElement(fUe,{editor:i,color:u,onSelectType:function(e){c(e),Tf.setItem(sUe,e),C(e)},textButton:nc().createElement(o,{className:"table-head-bg-color-button",disabled:!1,type:"t-font-color",onSelect:function(e){return k(e,"text")},onSaveColor:function(){},color:iz("string"==typeof u?cUe[u].text:u.text,i.theme),defaultColor:iz("string"==typeof u?cUe[u].text:u.text,i.theme),popupContainer:y.current,onClear:function(){}}),bgButton:nc().createElement(o,{className:"table-head-bg-color-button",disabled:!1,type:"t-cell-bg-color",onSelect:function(e){return k(e,"bg")},onSaveColor:function(){},color:iz("string"==typeof u?cUe[u].bg:u.bg,i.theme),defaultColor:iz("string"==typeof u?cUe[u].bg:u.bg,i.theme),popupContainer:y.current,onClear:function(){}})})},nc().createElement("div",{className:"menu-item",onClick:function(){f(!d)}},nc().createElement(tD,{type:"brush"}),nc().createElement("span",null,gc("配色方案")),nc().createElement(dUe,{color:u,editor:i}))))};function pUe(e,t,n){return t=Qe(t),Xe(e,vUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vUe=function(){return!!e})()}var mUe=function(e){function t(){var e;return Ye(this,t),e=pUe(this,t,arguments),Object.defineProperty(Je(e),"_pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n,r=this;this.option.editUI&&t.registerBoxUI(Ja({},b5.node.table,{factory:function(t){var n=e.createBoxUIByClazz(r.option.editUI,t);return n.setTableEditorPlugin(r),n}})),t.onPluginEvent("userAction",(function(t){var n=t.type,r=t.name,o=t.source;"table"===o&&e.emitEvent("userAction",{type:n,name:r,source:o})}));var o=e.getService(URe.ID);o&&(this._pluginContext=new XLe(e.theme.toPersistentValue(e.theme.getColorByToken("editor.table.cellBgColor.default"))),null==o||o.registerToolbarWidget(Ja(Ja(Ja(Ja({},b5.toolbar.tableCellBgColor,{clazz:tUe,pluginContext:this._pluginContext}),b5.toolbar.tableMergeCell,oUe),b5.toolbar.tableVerticalAlign,uUe),b5.toolbar.tableBorderVisible,JLe)));var i=e.getService(fI.ID);if(null==i||i.registerFilterMiniToolbarItems(KLe),e.onPluginEvent("insertCardByUI:".concat(b5.node.table),(function(t){var n=t.args,o=r._getEditingAreaWidth(),i=n[0]||{};i.widthMode=Bl,e.execCommand("table",Object.assign({width:o},i))})),o){var a=o.registerToolbar("table");t.onPluginEvent("afterTableSelectionChanged",(function(e){e.tableNode?a.open():a&&a.close()}))}null===(n=e.getService(SRe.ID))||void 0===n||n.registerCardSelect(Ja({},b5.cardSelect,{type:"TableItem",icon:"editor-main-table",label:gc("表格"),keywords:"表格,bg,biaoge,table",mainSearch:"/bg"})),t.onPluginEvent("tableFocus",(function(e){var t=e.tableId,n=e.wrapDOMNode,o=e.tableUI,i=e.tableNode;r._refreshToolbar(n,t,o,i)})),t.onPluginEvent("tableHover",(function(e){var t=e.tableId,n=e.wrapDOMNode,o=e.tableUI,i=e.tableNode;r._refreshToolbar(n,t,o,i)})),t.onPluginEvent("stableSelectionChange",(function(e){var t=e.tableId,n=e.wrapDOMNode,o=e.tableUI,i=e.tableNode;setTimeout((function(){r._refreshToolbar(n,t,o,i)}),0)})),t.onPluginEvent("tableBlur",(function(e){var t=e.tableNode;r._destroyToolbar(t)})),t.onPluginEvent("tableDestroy",(function(e){var t=e.wrapDOMNode;r._destroyToolbar(t)})),t.onPluginEvent("tableMaximize",(function(t){var n=t.tableId,o=t.wrapDOMNode,i=t.tableUI,a=t.tableNode;a._isMaxView?e.exitMaxView():r._executeMaximize(n,o,i,a)})),this.option.onEditorPluginInit&&this.option.onEditorPluginInit(this.editor)}},{key:"_getEditingAreaWidth",value:function(){var e=this.renderer,t=document.createElement("div");e.domRootNode.appendChild(t);var n=t.getBoundingClientRect();return t.remove(),n.width}},{key:"_getTableCardToolbar",value:function(e,t,n,r){var o=this;if(Ks.mobile)return[];var i,a=function(e){if(!e.isTableSelection)return!1;var t=e.firstRange,n=e.lastRange,r=t.start.node.parentNode.parentNode;return t.start.node===r.firstChild.firstChild&&n.start.node===r.lastChild.lastChild}(this.editor.engine.getViewSelection()),l=this.editor.queryCommandState("tableMergeCell"),u=this.editor.queryCommandState("tableBorderVisible"),c=[].concat(pn(this._generateEquallyColumnToolbarItem(e,t,n,r)),[{name:"widthMode",cardData:{getWidthMode:function(){return o.editor.queryCommandValue("tableToggleWidthMode",e)}},onClick:function(){o._toggleWidthMode(e),o._refreshCardToolbar(t,e,n,r)}},{name:"maximize",onClick:function(){requestAnimationFrame((function(){o._executeMaximize(e,t,n,r)}))}}]);u!==vt&&u!==pt||c.push({type:"item",icon:"t-border-visible",text:gc(u===vt?"显示边框":"隐藏边框"),name:"borderVisible",selected:u===vt,onClick:function(){o.editor.execCommand("tableBorderVisible")}}),l!==vt&&l!==pt||c.push("|",{type:"item",icon:"t-table-cell-merge",text:gc(l===vt?"拆分单元格":"合并单元格"),name:"cellMerge",selected:l===vt,onClick:function(){l===vt?o.editor.execCommand("tableUnmergeCell"):o.editor.execCommand("tableMergeCell")}});try{var s=this.editor.option.toolbar.getCustomComponent("colorButton");"function"==typeof s&&(i=s)}catch(e){console.warn("没有读取到toolbar配置的色板")}c.push("|",{name:"tableHead",text:gc("标题行列"),icon:"table-head",onClick:function(){},type:"dropdown",overlay:hUe,overlayProps:{ColorButton:i,editor:this.editor,getRowHead:function(){return n.viewNode.attrs.rowHead},getColHead:function(){return n.viewNode.attrs.colHead},getInitColor:function(){var e=n.viewNode.attrs.rowHead||n.viewNode.attrs.colHead;if("string"==typeof e){var t=cn(e.split(";"),2);return{bg:t[0],text:t[1]}}},toggleRowHead:function(e,t){o.editor.execCommand("tableRowHead",n.viewNode.id,!!e&&t)},toggleColHead:function(e,t){o.editor.execCommand("tableColHead",n.viewNode.id,!!e&&t)}}}),a&&c.unshift({name:"copy",onClick:function(){!function(e,t){var n=document.createRange();n.selectNode(t),e.execCommand("copy",n)?LE.success(gc("复制成功")):LE.error(gc("复制失败"))}(o.editor,t)}},{name:"delete",onClick:function(){o.editor.execCommand("deleteTable",e),o.editor.execCommand("focus",{preventScroll:!0})}},"|"),c=this._filterWidthMode(c,t,r);var d=this.editor.getService(fI.ID);return d&&(c=aI.filter(c,d.getDisabledMiniToolbarItems())),this._injectUserActionEvent(c,"mini"),aI.generateToolbarItems(c)}},{key:"_filterWidthMode",value:function(e,t,n){return Math.min(t.offsetWidth,750)>=n.offsetWidth&&(e=e.filter((function(e){return"widthMode"!==e.name}))),e}},{key:"_injectUserActionEvent",value:function(e,t){var n=this;e.forEach((function(e){var r=e.onClick;r&&(e.onClick=function(){r.apply(void 0,arguments),n.editor.emitEvent("userAction",{type:"cardToolbar",name:e.name,source:"table|".concat(t)})})}))}},{key:"_generateEquallyColumnToolbarItem",value:function(e,t,n,r){var o=this,i=n.viewNode.attrs,a=i.colWidths,l=i.fitWidth,u=$O(a),c=u[0],s=u.slice(1),d=s.pop();if(!c||!d)return[];var f=[];window.ResizeObserver&&f.push({type:"item",icon:"column-adaptation",text:gc(l?"取消自适应":"开启自适应"),title:gc("自适应宽度"),name:"columnAdaptation",selected:l,onClick:function(){o.editor.execCommand("tableColumnAdaptation",e),o._refreshCardToolbar(t,e,n,r)}});var h=d-c;return s.every((function(e){return e===c}))&&h>=0&&h0&&f.push("|"),f):(f.unshift({name:"equallyColumn",icon:"t-equally-column",title:gc("列等宽"),text:gc("根据宽度等分列宽"),onClick:function(){o.editor.execCommand("tableEquallyColumn",e,o._getEditingAreaWidth()),o._refreshCardToolbar(t,e,n,r)}}),f.length>0&&f.push("|"),f)}},{key:"_executeMaximize",value:function(e,t,n,r){var o=this,i=this.editor;aI.destroyContainerToolbar(r),aI.destroyCardToolbar(r),function(e,t){var n=e.engine.getViewSelection().firstRange.start.node.closest(ze.Table),r=Yy(t._wrapNode);if(n&&n===r)return!1;var o=Gy(r.firstChild.firstChild).getContentDOMNode(),i=[e.engine.transformDOMRange(Ad.createRange({startContainer:o,startOffset:0,endContainer:o,endOffset:0}))];e.kernel.execCommand("selection",{focus:"start",anchor:"start",ranges:i})}(i,r),i.enterMaxView(t,{sidebar:!1},null,(function(){n.leaveMaxView(),Promise.resolve().then((function(){o._refreshCardToolbar(t,e,n,r)})),i.execCommand("focus",{preventScroll:!0})})),n.enterMaxView(),i.execCommand("focus",{preventScroll:!0})}},{key:"_toggleWidthMode",value:function(e){this.editor.execCommand("tableToggleWidthMode",e)}},{key:"_refreshToolbar",value:function(e,t,n,r){this._refreshCardToolbar(e,t,n,r)}},{key:"_refreshCardToolbar",value:function(e,t,n,r){var o,i,a;if(e.isConnected){if(this.editor.isMaxView)return aI.destroyCardToolbar(e);if(!(null===(i=(o=this.editor).isMiniEditor)||void 0===i?void 0:i.call(o))||(null===(a=this.editor.getService(Aje.ID))||void 0===a?void 0:a.isFullscreen())){var l=this.editor,u=l.scrollNode,c=l.innerOverlayContainer;aI.updateCardToolbar(e,c,u,this._getTableCardToolbar(t,e,n,r),{offset:0,shouldCancel:function(){return!document.querySelector(".table-head-custom-open")}})}}}},{key:"_destroyToolbar",value:function(e){aI.destroyContainerToolbar(e),aI.destroyCardToolbar(e)}}]),t}(Wh);Object.defineProperty(mUe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:b5.pluginName}),Object.defineProperty(mUe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:$Le}),Object.defineProperty(mUe,"Colors",{enumerable:!0,configurable:!0,writable:!0,value:{"editor.table.cellBgColor.default":{light:"#F4F5F5",dark:"#1F1F1F"}}});var gUe={bottomDistance:0,minFrame:25,triggerCommands:["breakLine","insertCard"]},bUe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},gUe,t)}return Ke(e,[{key:"bottomDistance",get:function(){return this._option.bottomDistance}},{key:"minFrame",get:function(){return this._option.minFrame}},{key:"triggerCommands",get:function(){return this._option.triggerCommands}}]),e}();function yUe(e,t,n){return t=Qe(t),Xe(e,wUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wUe=function(){return!!e})()}Object.defineProperty(bUe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"typeWriter"});var kUe=function(e){function t(){var e;return Ye(this,t),e=yUe(this,t,arguments),Object.defineProperty(Je(e),"_bottomDistance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this;this._bottomDistance=this.option.bottomDistance,!this._bottomDistance||this._bottomDistance<=0||(this.kernel.editing.on("afterExecCommand",(function(e){var t=e.commandName;n.option.triggerCommands.includes(t)&&n._processTypeWriter()})),t.onRootNode("keydown",(function(e){(ed.isArrowDown(e)||ed.isArrowUp(e))&&gs((function(){n._processTypeWriter()}))}),!1))}},{key:"_processTypeWriterForReadWrite",value:function(){var e=document.getSelection().getRangeAt(0),t=Ad.getRangeRect(e);if(t){var n=t.bottom,r=t.top,o=this.editor.scrollNode,i=function(e){var t=e.getBoundingClientRect();return Object.assign(Object.assign({},t),{top:0,left:0,bottom:t.height,right:t.width})}(o),a=i.bottom-n,l=this._bottomDistance-a;l>=this.option.minFrame?o.scrollTop+=l:r<94&&(o.scrollTop-=94-r+t.height)}}},{key:"_processTypeWriter",value:function(){var e=document.getSelection();if(!(e.rangeCount<1)&&this.renderer.isFocus()){if(this.editor.scrollNode===document.documentElement)return this._processTypeWriterForReadWrite();var t=e.getRangeAt(0),n=Ad.getRangeRect(t);if(n){var r=n.bottom,o=this.editor.scrollNode,i=o.getBoundingClientRect().bottom-r,a=this._bottomDistance-i;a>=this.option.minFrame&&(o.scrollTop+=a)}}}}]),t}(Wh);Object.defineProperty(kUe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Hde.pluginName}),Object.defineProperty(kUe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:bUe});var CUe={default:null},_Ue=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Object.assign(Object.assign({},CUe),t)}return Ke(e,[{key:"default",get:function(){return this._option.default}}]),e}();Object.defineProperty(_Ue,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"uiSwitch"});var NUe="preferences",OUe="maximize",xUe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"editor",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"UI_TYPE",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"EDITOR_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"MINI_TOOLBAR_BLACKLIST",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"MINI_TOOLBAR_FULLSCREEN_BLACKLIST",{enumerable:!0,configurable:!0,writable:!0,value:[OUe]}),Object.defineProperty(this,"OVERLAY_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"_isFullscreen",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toolbarAgent",{enumerable:!0,configurable:!0,writable:!0,value:null});var n=t.kernel;this._kernel=n,this.initEvent()}return Ke(e,[{key:"isFullscreen",get:function(){return this._isFullscreen}},{key:"toolbarType",get:function(){var e=this;return this.UI_TYPE&&Object.keys(cfe).find((function(t){return cfe[t]===e.UI_TYPE}))?this.UI_TYPE:"default"}},{key:"initEvent",value:function(){var e=this,t=this.editor;this._kernel.once("document.ready",(function(){var n=t.getService(URe.ID);n&&(e._toolbarAgent=n.registerToolbar(e.toolbarType)),e._resetMiniToolbar(),e.show(!0)})),t.on("enterFullscreen",(function(){e._enterFullscreen(),e.hide()})),t.on("exitFullscreen",(function(){e._exitFullscreen(),e.show()}))}},{key:"show",value:function(e){var t=this.editor,n=t.renderer;t.editorNode.classList.add(this.EDITOR_CLASSNAME),n.globalOverlayNode.classList.add(this.OVERLAY_CLASSNAME),n.emitPluginEvent("uiSwitched",{type:this.UI_TYPE,isInitSwitch:e}),this._toolbarAgent&&this._toolbarAgent.open()}},{key:"hide",value:function(){var e=this.editor,t=e.renderer;e.editorNode.classList.remove(this.EDITOR_CLASSNAME),t.globalOverlayNode.classList.remove(this.OVERLAY_CLASSNAME),t.emitPluginEvent("uiSwitched",{type:null}),this._toolbarAgent&&this._toolbarAgent.close()}},{key:"_enterFullscreen",value:function(){this._isFullscreen=!0;var e=this.editor.getService(fI.ID);null==e||e.removeDisabledMiniToolbarItems.apply(e,pn(this.MINI_TOOLBAR_BLACKLIST)),null==e||e.addDisabledMiniToolbarItems.apply(e,pn(this.MINI_TOOLBAR_FULLSCREEN_BLACKLIST))}},{key:"_resetMiniToolbar",value:function(){var e,t;null===(t=this.editor.getService(fI.ID))||void 0===t||(e=t).addDisabledMiniToolbarItems.apply(e,pn(this.MINI_TOOLBAR_BLACKLIST))}},{key:"_exitFullscreen",value:function(){var e,t,n,r;this._isFullscreen=!1,null===(n=this.editor.getService(fI.ID))||void 0===n||(e=n).removeDisabledMiniToolbarItems.apply(e,pn(this.MINI_TOOLBAR_FULLSCREEN_BLACKLIST)),null===(r=this.editor.getService(fI.ID))||void 0===r||(t=r).addDisabledMiniToolbarItems.apply(t,pn(this.MINI_TOOLBAR_BLACKLIST))}}]),e}();function EUe(e,t,n){return t=Qe(t),Xe(e,DUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function DUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DUe=function(){return!!e})()}var RUe=function(e){function t(){var e;return Ye(this,t),e=EUe(this,t,arguments),Object.defineProperty(Je(e),"UI_TYPE",{enumerable:!0,configurable:!0,writable:!0,value:YL.NOTE}),Object.defineProperty(Je(e),"EDITOR_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:"ne-note-ui"}),Object.defineProperty(Je(e),"MINI_TOOLBAR_BLACKLIST",{enumerable:!0,configurable:!0,writable:!0,value:[OUe,NUe]}),Object.defineProperty(Je(e),"MINI_TOOLBAR_FULLSCREEN_BLACKLIST",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"OVERLAY_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:"ne-overlay-with-note-ui"}),e}return et(t,e),Ke(t)}(xUe);function PUe(e,t,n){return t=Qe(t),Xe(e,SUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function SUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SUe=function(){return!!e})()}var TUe=function(e){function t(){var e;return Ye(this,t),e=PUe(this,t,arguments),Object.defineProperty(Je(e),"UI_TYPE",{enumerable:!0,configurable:!0,writable:!0,value:YL.SIMPLE}),Object.defineProperty(Je(e),"EDITOR_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:"ne-simple-ui"}),Object.defineProperty(Je(e),"MINI_TOOLBAR_BLACKLIST",{enumerable:!0,configurable:!0,writable:!0,value:[OUe,NUe]}),Object.defineProperty(Je(e),"MINI_TOOLBAR_FULLSCREEN_BLACKLIST",{enumerable:!0,configurable:!0,writable:!0,value:[OUe]}),Object.defineProperty(Je(e),"OVERLAY_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:"ne-overlay-with-simple-ui"}),e}return et(t,e),Ke(t)}(xUe);function AUe(e,t,n){return t=Qe(t),Xe(e,jUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function jUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jUe=function(){return!!e})()}var IUe=function(e){function t(e){var n;return Ye(this,t),n=AUe(this,t,[e]),Object.defineProperty(Je(n),"UI_TYPE",{enumerable:!0,configurable:!0,writable:!0,value:YL.SMALL}),Object.defineProperty(Je(n),"EDITOR_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:"ne-small-ui"}),Object.defineProperty(Je(n),"OVERLAY_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:"ne-overlay-with-small-ui"}),n}return et(t,e),Ke(t)}(xUe);function BUe(e,t,n){return t=Qe(t),Xe(e,MUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function MUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MUe=function(){return!!e})()}var FUe=function(e){function t(){var e;return Ye(this,t),e=BUe(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(By);function LUe(e,t,n){return t=Qe(t),Xe(e,UUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function UUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UUe=function(){return!!e})()}Object.defineProperty(FUe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(zde.service.IUiSwitchEditorService)});var VUe=function(e){function t(){return Ye(this,t),LUe(this,t,arguments)}return et(t,e),Ke(t,[{key:"getType",value:function(){return this.plugin.option.default}},{key:"destroy",value:function(){}}]),t}(FUe);function HUe(e,t,n){return t=Qe(t),Xe(e,zUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function zUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zUe=function(){return!!e})()}var WUe=function(e){function t(){var e;return Ye(this,t),e=HUe(this,t,arguments),Object.defineProperty(Je(e),"_kernel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_handlers",{enumerable:!0,configurable:!0,writable:!0,value:Ja(Ja(Ja({},YL.SIMPLE,TUe),YL.NOTE,RUe),YL.SMALL,IUe)}),Object.defineProperty(Je(e),"_handler",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.option.default&&this._handlers[this.option.default]&&(this._handler=new this._handlers[this.option.default](e)),e.extendMethods({isMiniEditor:function(){return t.option.default===qL||t.option.default===$L},isNoteMiniEditor:function(){var e;return t.option.default===$L&&!(null===(e=t._handler)||void 0===e?void 0:e.isFullscreen)},getUIInjector:function(e){return function(){var n;return(null===(n=Nh.get(e))||void 0===n?void 0:n({isMiniEditor:t.option.default===qL||t.option.default===$L}))||null}}})}}]),t}(Wh);function qUe(e,t,n){return t=Qe(t),Xe(e,$Ue()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $Ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($Ue=function(){return!!e})()}Object.defineProperty(WUe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:zde.pluginName}),Object.defineProperty(WUe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:_Ue}),Object.defineProperty(WUe,"Service",{enumerable:!0,configurable:!0,writable:!0,value:VUe});var KUe=function(e){function t(){var e;return Ye(this,t),e=qUe(this,t,arguments),Object.defineProperty(Je(e),"_aliveCheckers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),e}return et(t,e),Ke(t,[{key:"uploadManager",get:function(){return this.plugin._uploadManager}},{key:"uploadObserver",get:function(){return this.plugin._uploadObserver}},{key:"addAliveChecker",value:function(e){this._aliveCheckers.push(e)}},{key:"checkAlive",value:function(e){if(0===this._aliveCheckers.length)return!1;try{this._aliveCheckers.forEach((function(t){if(t(e))throw"上传任务端仍在"}))}catch(e){return!0}return!1}},{key:"destroy",value:function(){}}]),t}(sPe);function YUe(e,t,n){return t=Qe(t),Xe(e,GUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function GUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(GUe=function(){return!!e})()}var JUe=function(e){function t(){var e;return Ye(this,t),e=YUe(this,t,arguments),Object.defineProperty(Je(e),"_uploadManager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_uploadObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this,n=this.kernel;this._uploadManager=new $re,this._uploadObserver=new Jre(this._uploadManager,(function(e){return!!t.service.checkAlive(e)})),n.model.on("document.create",(function(e){t._uploadManager.reset(e.id)}))}},{key:"destroy",value:function(){this._uploadManager.destroy(),this._uploadObserver.destroy(),this._uploadManager=null,this._uploadObserver=null,Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(Wh);function XUe(e,t,n){return t=Qe(t),Xe(e,QUe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function QUe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QUe=function(){return!!e})()}Object.defineProperty(JUe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Wde.pluginName}),Object.defineProperty(JUe,"Service",{enumerable:!0,configurable:!0,writable:!0,value:KUe});var ZUe=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return Ye(this,t),n=XUe(this,t),Object.defineProperty(Je(n),"_viewNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_wait",{enumerable:!0,configurable:!0,writable:!0,value:200}),Object.defineProperty(Je(n),"_prevRect",{enumerable:!0,configurable:!0,writable:!0,value:null}),n._viewNode=e,n._wait=r,n._initResizeObserver(),n}return et(t,e),Ke(t,[{key:"_initResizeObserver",value:function(){var e=this;this._resizeObserver=new ResizeObserver(Cfe()((function(t){requestAnimationFrame((function(){var n;if(e._resizeObserver){kt(1===t.length,"plugins/view-resize-observer/src/common/view-resize-observer.ts:34");var r=t[0],o=r.target.getBoundingClientRect();(null===(n=e._prevRect)||void 0===n?void 0:n.width)!==o.width&&(e.emit("viewSizeChange",{prev:e._prevRect,curr:{width:o.width}},r),e._prevRect={width:o.width})}}))}),this._wait)),this._resizeObserver.observe(this._viewNode)}},{key:"destroy",value:function(){var e;this._prevRect=null,this._viewNode=null,null===(e=this._resizeObserver)||void 0===e||e.disconnect(),this._resizeObserver=null}}]),t}(ut);function eVe(e,t,n){return t=Qe(t),Xe(e,tVe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function tVe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tVe=function(){return!!e})()}var nVe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ye(this,e),Object.defineProperty(this,"_enable",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._enable=t}return Ke(e,[{key:"enable",get:function(){return this._enable}}]),e}();Object.defineProperty(nVe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"viewResizeObserver"});var rVe=function(e){function t(e,n){var r;return Ye(this,t),r=eVe(this,t,[e]),Object.defineProperty(Je(r),"kernelOption",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return et(t,e),Ke(t)}(nVe);function oVe(e,t,n){return t=Qe(t),Xe(e,iVe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function iVe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iVe=function(){return!!e})()}Object.defineProperty(rVe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"viewResizeObserver"});var aVe=function(e){function t(){var e;return Ye(this,t),e=oVe(this,t,arguments),Object.defineProperty(Je(e),"_viewResizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._viewResizeObserver=new ZUe(e.editorNode),this._viewResizeObserver.on("viewSizeChange",(function(){for(var t=arguments.length,n=new Array(t),r=0;rRVe||e>RVe&&t0?n.scrollTop=Math.max(o-(r.top-t.top)-40,0):t.bottom>r.bottom&&a>0&&(n.scrollTop=Math.min(a,o+(t.bottom-r.bottom)+40))}}}}}));return function(){return cancelAnimationFrame(e)}}}),[n,i]);var s,d=(s=!!e.isDark,[{name:"mode",label:gc("代码语言"),getValue:function(e){return e.cardData.mode},onChange:function(e,t){var n;return null===(n=t.onModeChange)||void 0===n?void 0:n.call(t,e)},onlySmallMode:!0,showCheck:!0,showSearch:!0,fuse:new nCe(dVe.map((function(e){return{label:e.name,value:e.value,active:function(t){return t===e.value}}})),{includeMatches:!0,includeScore:!0,distance:12,keys:["value","label"]}),children:pn(dVe.map((function(e){return{label:e.name,value:e.value,active:function(t){return t===e.value}}})))},"-",{name:"theme",label:gc("代码主题"),getValue:function(e){return e.cardData.theme},onlySmallMode:!0,showCheck:!0,onChange:function(e,t){var n;return null===(n=t.onThemeChange)||void 0===n?void 0:n.call(t,e)},children:(s?kVe:_Ve).map((function(e){return{label:e.name,value:e.value,active:function(t){return t===e.value}}}))},"-",{name:"indentWithTab",label:gc("缩进模式"),getValue:function(e){return e.cardData.indentWithTab},showCheck:!0,onChange:function(e,t){var n;return null===(n=t.onIndentWithTabsChange)||void 0===n?void 0:n.call(t,"Tab"===e)},children:[{value:"Tab",label:"Tab",active:function(e){return e}},{value:"Space",label:"Space",active:function(e){return!e}}]},{name:"tabSize",label:gc("缩进宽度"),getValue:function(e){return Number(e.tabSize)},showCheck:!0,onChange:function(e,t){var n;return null===(n=t.onIndentUnitChange)||void 0===n?void 0:n.call(t,e)},children:[{value:"2",label:"2",active:function(e){return 2===e}},{value:"4",label:"4",active:function(e){return 4===e}},{value:"8",label:"8",active:function(e){return 8===e}}]},"-",{name:"autoWrap",label:gc("自动换行"),testId:"ne-codeblock-auto-wrap-switch",getValue:function(e){return e.cardData.autoWrap},onChange:function(e,t){var n;return null===(n=t.onAutoWrapChange)||void 0===n?void 0:n.call(t,e)},isChecked:function(e){return e}},{name:"lineNumbers",label:gc("行号"),testId:"ne-codeblock-line-number-switch",getValue:function(e){return e.cardData.lineNumbers},onChange:function(e,t){var n;return null===(n=t.onLineNumbersShowChange)||void 0===n?void 0:n.call(t,e)},isChecked:function(e){return e}},"-",{name:"format",label:gc("自动缩进"),rightLabel:Ks.macos?"⇧+⌘+F":"Ctrl+Shift+F",getValue:function(e){return null},onClick:function(e){var t;return null===(t=e.onFormatLange)||void 0===t?void 0:t.call(e)}}]);return nc().createElement(RA,{"data-theme":e.theme,selectedKeys:[],openKeys:i,onClick:function(t){var n,r,o,i=t.keyPath,a=t.domEvent,l=(null===(r=null===(n=a.currentTarget)||void 0===n?void 0:n.dataset)||void 0===r?void 0:r.keyPath)?a.currentTarget.dataset.keyPath.split(/\//g):i.slice(0),u=l.shift(),c=d.find((function(e){return"-"!==e&&e.name===u}));if(c&&"-"!==c&&c.isChecked)return!1;if(c&&"-"!==c){if(c.onClick)return c.onClick(e);if(c.onChange&&c.children){var s=l.shift(),f=null===(o=c.children.find((function(e){return e.label===s})))||void 0===o?void 0:o.value;return c.onChange(f,e)}}},onOpenChange:c,className:uC()("codeblock-pop-menu","codeblock-pop-menu-"+e.theme.replace(/\s+/g,"")),onMouseDown:l},d.filter((function(t){return e.smallMode||"-"===t||!t.onlySmallMode})).reduce((function(e,t){return e.length||"-"!==t?(e.push(t),e):e}),[]).map((function(t,r){if("-"===t)return nc().createElement(RA.Divider,{key:r});var o=t.getValue(e);return t.isChecked?nc().createElement(RA.Item,{key:t.name,className:"right-contains"},t.label,nc().createElement("span",{className:"right-slot","data-testid":t.testId},nc().createElement(Hj,{checked:t.isChecked(o),onChange:function(n){var r;return null===(r=t.onChange)||void 0===r?void 0:r.call(t,n,e)},size:"small"}))):t.children?nc().createElement(RA.SubMenu,{key:t.name,popupOffset:[16,0],title:t.label,popupClassName:uC()("codeblock-pop-menu","codeblock-pop-menu-"+e.theme.replace(/\s+/g,""),t.name,{showSearch:t.showSearch})},t.showSearch&&nc().createElement("div",{"data-id":e.randomID,className:"codeblock-search",onMouseDown:TVe,onMouseUp:TVe,onKeyDown:TVe,onClick:TVe},nc().createElement(hj,{placeholder:"搜索语言",value:n,onChange:u,onFocus:function(e){return e.preventDefault()}})),(n&&t.fuse?t.fuse.search(n).filter((function(e){return Number(e.score||0)<=.25})).map((function(e){return e.item})):t.children).map((function(e){return nc().createElement(RA.Item,{onMouseDown:l,key:e.label,"data-key-path":t.name+"/"+e.label},t.showCheck&&nc().createElement("span",{className:"check-space"},e.active(o)&&nc().createElement(tD,{type:"check"})),e.label)}))):t.rightLabel?nc().createElement(RA.Item,{key:t.name,className:"flexable"},t.label,nc().createElement("span",{className:"right-slot label"},t.rightLabel)):nc().createElement(RA.Item,{key:t.name},t.label)})))}function jVe(){}function IVe(e,t){var n=cn((0,tc.useState)(-1),2),r=n[0],o=n[1];return(0,tc.useEffect)((function(){if(!t)return jVe;var n=-1;if(-1===r&&(n=requestAnimationFrame((function(){var e=t.getBoundingClientRect();r!==e.width&&o(e.width)}))),window.ResizeObserver){var i=new ResizeObserver((function(t){n=requestAnimationFrame((function(){if(t[0]){var n=t[0].contentRect;n.width!==r&&e(r,n.width)&&o(n.width)}}))}));return i.observe(t),function(){i.disconnect(),n>0&&cancelAnimationFrame(n)}}var a=setInterval((function(){n=requestAnimationFrame((function(){var n=t.getBoundingClientRect();n.width!==r&&e(r,n.width)&&o(n.width)}))}),1e3);return function(){clearInterval(a),n>0&&cancelAnimationFrame(n)}}),[t,r,e]),r}const BVe=function(e){var t=e.mode,n=e.theme,r=e.getPopupContainer,o=e.onSelect,i=cn((0,tc.useState)(!1),2),a=i[0],l=i[1],u=(0,tc.useCallback)((function(e,t){e=e.toLowerCase();var n=t.key||"",r=t.name||"";return r=r.toLowerCase(),n.includes(e)||r.includes(e)}),[]),c=(0,tc.useCallback)((function(e){e?l(!0):setTimeout(l,100,!1)}),[]);return nc().createElement(tDe,{"data-testid":"ne-codeblock-mode-selector",className:"ne-codeblock-header-select",dropdownClassName:Kf("ne-code-popup","ne-code-popup-"+n.replace(/\s/g,"")),size:"small",showSearch:!0,dropdownMatchSelectWidth:!1,style:{width:a?140:"auto"},defaultValue:t,value:t,getPopupContainer:r,onSelect:o,filterOption:u,virtual:!1,onDropdownVisibleChange:c},dVe.map((function(e){return nc().createElement(nDe,{name:e.name,value:e.value,key:e.value,"data-mode-name":e.name},e.name)})))},MVe=function(e){var t=e.theme,n=e.getPopupContainer,r=e.onSelect,o=e.isDark;return nc().createElement(tDe,{"data-testid":"ne-codeblock-theme-selector",className:"ne-codeblock-header-select",dropdownClassName:Kf("ne-code-popup","ne-code-popup-"+t.replace(/\s/g,"")),size:"small",dropdownMatchSelectWidth:!1,style:{width:"auto"},defaultValue:t,value:t,getPopupContainer:n,onSelect:r,virtual:!1},(o?kVe:_Ve).map((function(e){var t=e.name,n=e.value;return nc().createElement(nDe,{name:t,value:n,key:n,"data-mode-name":n},t)})))};function FVe(e){var t=(0,tc.useRef)(Math.random().toString(16).slice(2)),n=cn((0,tc.useState)(e.focus),2),r=n[0],o=n[1],i=cn((0,tc.useState)(!1),1)[0],a=cn((0,tc.useState)(!!e.isCollapsed),2),l=a[0],u=a[1],c=cn((0,tc.useState)(null),2),s=c[0],d=c[1],f=IVe(PVe,s)<=RVe;(0,tc.useEffect)((function(){if(!e.focus){var n=requestAnimationFrame((function(){var e,n,r=null===(e=document.getSelection())||void 0===e?void 0:e.focusNode;r&&(null===(n=r.closest)||void 0===n?void 0:n.call(r,'[data-id="'.concat(t.current,'"]')))||o(!1)}));return function(){return cancelAnimationFrame(n)}}o(!0)}),[e.focus]);var h=(0,tc.useCallback)((function(e){!e&&s?d(null):e&&e.parentElement!==s&&d(e.parentElement)}),[s]),p=(0,tc.useCallback)((function(){var t;u(!l),null===(t=e.onCollapsedHeader)||void 0===t||t.call(e,!l)}),[l]),v=(0,tc.useCallback)((function(){return e.overlayContainer}),[e.overlayContainer]);return nc().createElement("div",{className:uC()("codeblock-menu",{collapsed:l,focused:r}),ref:h},nc().createElement("div",{className:"start-nav"},e.children),r&&nc().createElement("div",{className:"end-nav"},!f&&nc().createElement(nc().Fragment,null,e.showDetect&&nc().createElement("div",{className:"detect-language",onClick:e.onDetectLang},nc().createElement(tD,{type:"detect"})),nc().createElement(BVe,{key:"lang-select",mode:e.mode,theme:e.theme,onSelect:e.onModeChange,getPopupContainer:v}),nc().createElement(UNe,{type:"vertical",className:"ne-embed-nav-divider"})),!f&&nc().createElement(nc().Fragment,null,nc().createElement(MVe,{key:"theme-select",isDark:e.isDark,theme:e.theme,onSelect:e.onThemeChange,getPopupContainer:v}),nc().createElement(UNe,{type:"vertical",className:"ne-embed-nav-divider"})),nc().createElement(Fj,{className:"ne-codeblock-more-panel",overlayClassName:Kf("ne-codeblock-overlay","ne-codeblock-overlay-"+e.theme.replace(/\s+/g,"")),trigger:"click",getPopupContainer:v,noArrow:!0,offset:2,content:nc().createElement(AVe,{theme:e.theme,isDark:e.isDark,showDetect:e.showDetect,smallMode:f,randomID:t.current,tabSize:e.tabSize,cardData:e.cardData,onThemeChange:e.onThemeChange,onModeChange:e.onModeChange,onIndentWithTabsChange:e.onIndentWithTabsChange,onIndentUnitChange:e.onIndentUnitChange,onAutoWrapChange:e.onAutoWrapChange,onLineNumbersShowChange:e.onLineNumbersShowChange,onDetectLang:e.onDetectLang,onFormatLange:e.onFormatLange}),placement:"bottomRight"},nc().createElement("div",{onMouseDown:SVe,className:"ne-codeblock-more-button ".concat(i?"ne-codeblock-more-active":""),"data-testid":"ne-codeblock-more-button"},nc().createElement(tD,{type:"more-horizontal"})))),nc().createElement(yS,{title:gc(l?"显示标题栏":"隐藏标题栏"),destroyTooltipOnHide:!0},nc().createElement("div",{className:"collapsed-btn",onClick:p})))}function LVe(e,t,n){return t=Qe(t),Xe(e,UVe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function UVe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UVe=function(){return!!e})()}var VVe=uVe()("ne:codeblock:editor"),HVe=function(e){function t(e){var n;Ye(this,t),n=LVe(this,t,[e]),Object.defineProperty(Je(n),"state",{enumerable:!0,configurable:!0,writable:!0,value:{visible:!1,loading:!1,width:void 0}}),Object.defineProperty(Je(n),"_isMounted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(n),"_needShow",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(n),"codeMirror",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"cmRootRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"rootRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"loadingRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"collapseIconRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"_clearTask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"setCursorPosition",{enumerable:!0,configurable:!0,writable:!0,value:function(e){e!==IL?e!==BL||n.codeMirror.setSelectionToEnd():n.codeMirror.setSelectionToStart()}}),Object.defineProperty(Je(n),"syncCardDataToViewState",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e,t,r=n.props.cardData,o=r.mode,i=r.code,a=r.autoWrap,l=r.theme;i!==(null===(e=n.codeMirror)||void 0===e?void 0:e.getValue())&&(null===(t=n.codeMirror)||void 0===t||t.setValue(i)),n.state.mode!==o&&n.updateMode(o),n.state.autoWrap!==a&&n.updateAutoWrap(a),n.state.theme!==l&&n.updateTheme(l)}}),Object.defineProperty(Je(n),"getViewState",{enumerable:!0,configurable:!0,writable:!0,value:function(){return{code:n.codeMirror?n.codeMirror.getValue():n.props.cardData.code,mode:n.state.mode,autoWrap:n.state.autoWrap,theme:n.state.theme}}}),Object.defineProperty(Je(n),"toggleCollapse",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=!n.state.collapsed;n.setState({collapsed:e}),n.props.onCollapsedChange(e)}}),Object.defineProperty(Je(n),"onAISelect",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({loading:!0}),e.run(n.codeMirror.getValue()).then((function(e){var t;n.setState({loading:!1}),e&&(null===(t=n.codeMirror)||void 0===t||t.setValue(e))}),(function(){return n.setState({loading:!1})}))}}),Object.defineProperty(Je(n),"onNameChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({name:e}),n.props.onNameChange(e)}}),Object.defineProperty(Je(n),"loadLineNumberWidth",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.cardData.lineNumbers,t=mVe.calcMarginLeft(n.codeMirror.lineCount(),e);t!==n.state.iconMgLeft&&n.setState({iconMgLeft:t})}}),Object.defineProperty(Je(n),"onCodeChange",{enumerable:!0,configurable:!0,writable:!0,value:ig()((function(e,t){"setValue"!==(null==t?void 0:t.origin)&&n.props.onChange({code:n.codeMirror.getValue()})}),3e3)}),Object.defineProperty(Je(n),"onGutterChange",{enumerable:!0,configurable:!0,writable:!0,value:ig()((function(e,t){if("setValue"!==(null==t?void 0:t.origin)){var r=n.codeMirror.foldLines(),o=n.codeMirror.lightLines();n.props.onChange({foldLines:r,lightLines:o})}}),100)}),Object.defineProperty(Je(n),"focusToCodeEditor",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e,t;null===(t=null===(e=n.codeMirror)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}),Object.defineProperty(Je(n),"blurEditor",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e,t;n.codeMirror&&(null===(t=null===(e=n.codeMirror)||void 0===e?void 0:e.blur)||void 0===t||t.call(e))}});var r=e.cardData;return n.state={width:void 0,mode:r.mode,autoWrap:r.autoWrap,lineNumbers:!1!==r.lineNumbers,theme:r.theme,tabSize:r.tabSize||mVe.getCodeMirrorTabSizeByMode({mode:r.mode}),collapsed:r.collapsed,indentWithTab:r.indentWithTab,name:r.name,hideToolbar:!1!==r.hideToolbar,iconMgLeft:pVe},n}return et(t,e),Ke(t,[{key:"showCode",value:function(){this._needShow=!0,this._createCodeMirror(),this.cmRootRef.current&&(this.cmRootRef.current.style.height="initial")}},{key:"refresh",value:function(){this.codeMirror.refresh()}},{key:"componentWillUnmount",value:function(){var e,t,n,r,o,i;this.codeMirror&&((null===(e=this.codeMirror)||void 0===e?void 0:e.destroy)?null===(n=null===(t=this.codeMirror)||void 0===t?void 0:t.destroy)||void 0===n||n.call(t):null===(o=null===(r=this.codeMirror)||void 0===r?void 0:r.destory)||void 0===o||o.call(r)),null===(i=this._clearTask)||void 0===i||i.call(this)}},{key:"componentDidMount",value:function(){bVe(this.props.codeMirrorURL).catch((function(){})),this._isMounted=!0,this._createCodeMirror()}},{key:"_createCodeMirror",value:function(){if(this._needShow&&this._isMounted&&!this.state.collapsed){var e=this.state.tabSize,t=this.props.cardData,n=t.mode,r=t.code,o=t.autoWrap,i=t.theme,a=t.indentWithTab,l=this.props.isDark,u=r;try{u=(u||"").replace(/\u00a0/g," ")}catch(e){}this.createCodeEditor(n,u||"",{autoWrap:o,theme:CVe(i,l),tabSize:e,indentWithTab:a,indentUnit:e,lineNumbers:this.state.lineNumbers,history:this.props.historyObj,customStyle:this.props.cardData.customStyle})}}},{key:"componentDidUpdate",value:function(e,t){!e.focus&&this.props.focus&&this.focusToCodeEditor(),e.focus&&!this.props.focus&&this.blurEditor(),e.isDark!==this.props.isDark&&this.codeMirror&&this.codeMirror.setOption("theme",CVe(this.props.cardData.theme,this.props.isDark)),!this.state.collapsed&&t.collapsed&&this._createCodeMirror()}},{key:"updateHeight",value:function(){var e=this;this.forceUpdate((function(){e._clearTask=dd((function(){var t,n;null===(n=null===(t=e.codeMirror)||void 0===t?void 0:t.refresh)||void 0===n||n.call(t)}),300)}))}},{key:"expand",value:function(){this.props.onCollapsedChange(!1),this.setState({collapsed:!1})}},{key:"onModeChange",value:function(e){this.updateMode(e),this.props.onModeChange(e)}},{key:"updateMode",value:function(e){var t,n;VVe("change mode to",e);var r=mVe.getCodeMirrorTabSizeByMode({mode:e});this.setState({mode:e,tabSize:r}),null===(t=this.codeMirror)||void 0===t||t.setOption("mode",mVe.adaptModeToCodeMirrorLanguageMode(e)),this.updateTabSize(r),null===(n=this.codeMirror)||void 0===n||n.refresh()}},{key:"onIndentWithTabChange",value:function(e){this.setState({indentWithTab:e}),this.updateIndentWithTab(e),this.focusToCodeEditor(),this.props.onIndentWithTabChange(e)}},{key:"updateIndentWithTab",value:function(e){var t;null===(t=this.codeMirror)||void 0===t||t.setOption("indentWithTabs",e),this.updateTabSize(this.state.tabSize)}},{key:"onTabSizeChange",value:function(e){this.setState({tabSize:e}),this.updateTabSize(e),this.focusToCodeEditor(),this.props.onTabSizeChange(e)}},{key:"updateTabSize",value:function(e){this.codeMirror&&(this.codeMirror.setOption("tabSize",e),this.codeMirror.formatAll())}},{key:"onAutoWrapChange",value:function(e){this.updateAutoWrap(e),this.props.onAutoWrapChange(e)}},{key:"onLineNumberChange",value:function(e){this.codeMirror&&(this.codeMirror.setOption("lineNumbers",e),this.props.onLineNumberChange(e),this.setState({lineNumbers:e}),this.loadLineNumberWidth())}},{key:"onHideToolbar",value:function(e){this.setState({hideToolbar:e}),this.props.onChange({hideToolbar:e})}},{key:"updateAutoWrap",value:function(e){var t=this;e=!!e,this.codeMirror&&(this._clearTask=dd((function(){var n;null===(n=t.codeMirror)||void 0===n||n.setOption("lineWrapping",e)}),16)),this.setState({autoWrap:e})}},{key:"onThemeChange",value:function(e){this.updateTheme(e),this.props.onThemeChange(e)}},{key:"updateTheme",value:function(e){var t,n,r,o=this;this.codeMirror&&(null===(r=null===(n=null===(t=this.cmRootRef.current)||void 0===t?void 0:t.classList)||void 0===n?void 0:n.add)||void 0===r||r.call(n,"ne-codeblock-theme-updating"),this._clearTask=dd((function(){var t,n,r,i;null===(t=o.codeMirror)||void 0===t||t.setOption("theme",e),null===(i=null===(r=null===(n=o.cmRootRef.current)||void 0===n?void 0:n.classList)||void 0===r?void 0:r.remove)||void 0===i||i.call(r,"ne-codeblock-theme-updating")}),16)),this.setState({theme:e})}},{key:"handleDetectLange",value:function(){var e=this;this.codeMirror&&function(e){return gVe(this,void 0,void 0,Sc().mark((function e(){return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","");case 1:case"end":return e.stop()}}),e)})))}(this.codeMirror.getValue()).then((function(t){t&&e.onModeChange(t)}),(function(e){return console.error(e)}))}},{key:"handleFormat",value:function(){var e,t;null===(t=null===(e=this.codeMirror)||void 0===e?void 0:e.formatAll)||void 0===t||t.call(e),LE.success(gc("自动缩进成功"))}},{key:"createCodeEditor",value:function(e,t,n){var r,o;return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function i(){var a,l,u,c,s,d=this;return Sc().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!this.codeMirror&&this.cmRootRef.current){i.next=2;break}return i.abrupt("return");case 2:if(window.CodeMirror&&(!Ks.desktop||Array.isArray(null===(o=null===(r=window.CodeMirror)||void 0===r?void 0:r.default)||void 0===o?void 0:o.Instances))){i.next=9;break}return i.next=6,yVe(this.cmRootRef.current,e,this.props.codeMirrorURL,t,!1,n);case 6:this.codeMirror=i.sent,i.next=10;break;case 9:this.codeMirror=wVe(this.cmRootRef.current,e,t,!1,n);case 10:a=this.props.cardData,l=a.lightLines,u=a.foldLines,c=a.lineNumbers,(null==l?void 0:l.length)&&this.codeMirror.lightLines(l),(null==u?void 0:u.length)&&this.codeMirror.foldLines(u),this.props.focus&&this.focusToCodeEditor(),this.setState({iconMgLeft:mVe.calcMarginLeft(this.codeMirror.lineCount(),c)}),this.collapseIconRef.current&&(this.collapseIconRef.current.style.marginLeft=this.state.iconMgLeft+"px"),this.codeMirror.on("change",(function(){cancelAnimationFrame(s),s=requestAnimationFrame(d.loadLineNumberWidth)})),this.props.onReady({scrollNode:this.cmRootRef.current.querySelector(".cm-scroller"),containerNode:this.cmRootRef.current,codeMirror:this.codeMirror}),this.codeMirror.on("focus",(function(){VVe("focus"),d.props.onFocus()})),this.codeMirror.on("blur",(function(){VVe("blur"),d.onCodeChange.cancel(),d.onGutterChange.cancel();var e=d.codeMirror.foldLines(),t=d.codeMirror.lightLines();d.props.onBlur({code:d.codeMirror.getValue(),foldLines:e,lightLines:t})})),this.codeMirror.on("change",this.onCodeChange),this.codeMirror.on("change",this.onGutterChange),this.codeMirror.on("fold",this.onGutterChange),this.codeMirror.on("unfold",this.onGutterChange),this.codeMirror.on("lightLine",this.onGutterChange),this.codeMirror.on("unLightLine",this.onGutterChange),this.codeMirror.on("rightOut",(function(){d.props.onExitCardByKeyboard(BL)})),this.codeMirror.on("leftOut",(function(){d.props.onExitCardByKeyboard(IL)})),this.codeMirror.on("undoOut",(function(){d.props.onUndo(d.codeMirror.getHistory())}));case 29:case"end":return i.stop()}}),i,this)})))}},{key:"calcCodeHeight",value:function(){return this.props.cardData.code?Math.floor(20.3*this.props.cardData.code.split(/\n/g).length)+"px":"initial"}},{key:"render",value:function(){var e=this,t=this.state,n=t.mode,r=t.theme,o=t.iconMgLeft,i=t.tabSize,a=t.name,l=t.hideToolbar,u=this.props,c=u.focus,s=u.cardData,d=u.isDark,f=s.collapsed,h=CVe(r,d),p=c||a?nc().createElement(xVe,{name:a,collapsed:f,onCollapsedChange:this.toggleCollapse,onNameChange:this.onNameChange}):null;return nc().createElement("div",{className:"ne-codeblock ".concat(s.isHeightLimit()?"ne-codeblock-height-limit":""," ").concat(f?"ne-codeblock-collapsed":""," ").concat(l?"hide-toolbar":""),theme:h,ref:this.rootRef},nc().createElement(FVe,{cardData:s,focus:c,isDark:d,mode:n,theme:h,tabSize:i,isCollapsed:this.state.hideToolbar,overlayContainer:this.props.overlayContainer,onAISelect:function(t){return e.onAISelect(t)},onModeChange:function(t){return e.onModeChange(t)},onThemeChange:function(t){return e.onThemeChange(t)},onIndentWithTabsChange:function(t){return e.onIndentWithTabChange(t)},onIndentUnitChange:function(t){return e.onTabSizeChange(t)},onAutoWrapChange:function(t){return e.onAutoWrapChange(t)},onLineNumbersShowChange:function(t){return e.onLineNumberChange(t)},onCollapsedHeader:function(t){return e.onHideToolbar(t)},onDetectLang:function(){return e.handleDetectLange()},onFormatLange:function(){return e.handleFormat()},key:"new-more-menu"},nc().createElement(DVe,{onClick:this.toggleCollapse,collapsed:f,marginLeft:f?pVe:o,ref:this.collapseIconRef}),p),nc().createElement("div",{className:"ne-codeblock-content ne-code",style:{display:f?"none":"block",height:this._needShow?"initial":this.calcCodeHeight()},ref:this.cmRootRef,"data-codeblock-mode":n}),!window.CodeMirror&&!f&&nc().createElement("div",{ref:this.loadingRef,className:"ne-codeblock-loading"},nc().createElement(tD,{type:"icon-loading-desk",style:{fontSize:"24px"}})),this.state.loading&&nc().createElement("div",{ref:this.loadingRef,className:"ne-codeblock-loading",style:{zIndex:9999,top:30,bottom:0,background:"rgba(255,255,255, 0.5)",width:"100%",height:"100%",left:0}},nc().createElement(tD,{type:"icon-loading-desk",style:{fontSize:"24px",animation:"antRotate 1.2s infinite linear"}})))}}]),t}(tc.PureComponent);Object.defineProperty(HVe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onReady:function(){},onFocus:function(){},onBlur:function(){},onExitCardByKeyboard:function(){},onSelect:function(){},onModeChange:function(){},onAutoWrapChange:function(){},onThemeChange:function(){},onChange:function(){},onCollapsedChange:function(){},onTabSizeChange:function(){},onIndentWithTabChange:function(){},onNameChange:function(){},onUndo:function(){}}});const zVe=HVe;function WVe(e,t){return t}function qVe(e,t,n){return t=Qe(t),Xe(e,$Ve()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $Ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($Ve=function(){return!!e})()}var KVe=uVe()("ne:codeblock:ui"),YVe=new(sVe())(10),GVe=WVe(0,(function(e){return function(e){function t(){var e;return Ye(this,t),e=qVe(this,t,arguments),Object.defineProperty(Je(e),"_codeMirrorScrollNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_codeMirrorContainerNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_focusAuto",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_hasInit",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_hasAppear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_codeMirror",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"syncCardDataToViewState",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n,r;t||null===(r=null===(n=e.uiViewProxy)||void 0===n?void 0:n.getReactRef())||void 0===r||r.syncCardDataToViewState()}}),Object.defineProperty(Je(e),"syncViewStateToCardData",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(e.uiViewProxy){var t=e.uiViewProxy.getReactRef().getViewState(),n=t.code,r=t.mode;n===e.cardData.code&&r===e.cardData.mode||(e.cardData.update({code:n,mode:r}),e.cardData.sync(!0))}}}),Object.defineProperty(Je(e),"_explainCodeClose",{enumerable:!0,configurable:!0,writable:!0,value:[]}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){try{this.containerNode&&Iwe.unmount(this.containerNode),this._explainCodeClose.forEach((function(e){return e()})),this._explainCodeClose.length=0}catch(e){console.error(e)}finally{Cr(Qe(t.prototype),"destroy",this).call(this)}}},{key:"init",value:function(){var e=this;if(this._hasInit=!0,this._cardRootNode){var t=this._cardRootNode.closest("ne-card");(null==t?void 0:t.dataset)&&(t.dataset.noEditing="true")}KVe("init use",this.cardData),this.cardNode.registerUIEventCallback("appear",this.appear),this.cardData.on("change",this.syncCardDataToViewState),this.uiViewProxy=Iwe.render(zVe,{codeMirrorURL:this.pluginOption.codemirrorURL,cardData:this.cardData,focus:this.isFocused,overlayContainer:this.editor.innerOverlayContainer,historyObj:YVe.get(this.cardNode.id),isDark:this.editor.theme.isDark(),onFocus:function(){},onUndo:function(t){YVe.set(e.cardNode.id,t),e.editor.execCommand("undo")},$onReady:function(){var t,n;e._hasAppear&&(null===(n=null===(t=e.uiViewProxy)||void 0===t?void 0:t.getReactRef())||void 0===n||n.showCode())},onReady:function(t){var n=t.scrollNode,r=t.containerNode,o=t.codeMirror;e._codeMirrorScrollNode=n,e._codeMirrorContainerNode=r,e._codeMirror=o,jc(e,o,"focus",(function(){e.emit("focus")})),jc(e,o,"blur",(function(){e.emit("blur")})),jc(e,o,"customStyle",(function(){e.cardData.update({customStyle:o.getCustomStyle()})})),e.handleReady()},onCollapsedChange:function(t){e.cardData.update({collapsed:t}),e.cardData.sync(!0),e.handleCollapsedChange()},onChange:function(t){e.cardData.update(t),e.cardData.sync(!0),p7.save(e.cardData)},onBlur:function(t){e._focusAuto=!1,e.cardData.update(t),e.cardData.sync(!1)},onExitCardByKeyboard:function(t){e.focusCardTo(t)},onAutoWrapChange:function(t){e.cardData.update({autoWrap:t}),e.cardData.sync(!1),p7.save(e.cardData)},onModeChange:function(t){e.cardData.update({mode:t}),e.cardData.sync(!1),p7.save(e.cardData)},onLineNumberChange:function(t){e.cardData.update({lineNumbers:t}),e.cardData.sync(!1),p7.save(e.cardData)},onThemeChange:function(t){e.cardData.update({theme:t}),e.cardData.sync(!1),p7.save(e.cardData)},onTabSizeChange:function(t){e.cardData.update({tabSize:t}),e.cardData.sync(!1)},onIndentWithTabChange:function(t){e.cardData.update({indentWithTab:t}),e.cardData.sync(!1),p7.save(e.cardData)},onNameChange:function(t){e.cardData.update({name:t}),e.cardData.sync(!0)}},this.containerNode),jc(this,this.editor.theme,"themeChange",(function(){var t;e.destroyed||null===(t=e.uiViewProxy)||void 0===t||t.rerender({isDark:e.editor.theme.isDark()})}))}},{key:"expand",value:function(){var e,t;null===(t=null===(e=this.uiViewProxy)||void 0===e?void 0:e.getReactRef())||void 0===t||t.expand()}},{key:"appear",value:function(e,t){var n,r,o,i;this._hasAppear=!0,e?null===(r=null===(n=this.uiViewProxy)||void 0===n?void 0:n.getReactRef())||void 0===r||r.showCode():t&&(null===(i=null===(o=this.uiViewProxy)||void 0===o?void 0:o.getReactRef())||void 0===i||i.refresh())}},{key:"replaceAll",value:function(e,t,n,r){var o,i=this.cardData.code||"",a=On.replaceAll(i,t,n,r);a!==i&&(this._cardData._cardValue.code=a,null===(o=this._codeMirror)||void 0===o||o.setValue(a),this._cardData.sync(!0,e))}},{key:"focus",value:function(){var e,t,n,r,o;this.uiViewProxy&&((((null===(e=document.getSelection())||void 0===e?void 0:e.rangeCount)||-1)<=0||!(null===(o=null===(r=null===(n=null===(t=document.getSelection())||void 0===t?void 0:t.getRangeAt(0))||void 0===n?void 0:n.commonAncestorContainer)||void 0===r?void 0:r.closest)||void 0===o?void 0:o.call(r,".CodeMirror-code-name ")))&&(this._focusAuto=!0,this.uiViewProxy.rerender({focus:!0})),this.focusByKeyboard&&this.uiViewProxy.getReactRef().setCursorPosition(this.focusByKeyboard))}},{key:"blur",value:function(){this.uiViewProxy&&(KVe("blur"),this._focusAuto=!1,this.uiViewProxy.rerender({focus:!1}),this._explainCodeClose.forEach((function(e){return e()})),this._explainCodeClose.length=0)}},{key:"handleReady",value:function(){}},{key:"handleCollapsedChange",value:function(){}}]),t}(e)}));function JVe(e,t,n){return t=Qe(t),Xe(e,XVe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function XVe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XVe=function(){return!!e})()}var QVe=function(e){function t(){var e;return Ye(this,t),e=JVe(this,t,arguments),Object.defineProperty(Je(e),"resizeTarget",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e._codeMirrorScrollNode}}),e}return et(t,e),Ke(t,[{key:"getResizerConfig",value:function(){return this._codeMirrorScrollNode?this.cardData.collapsed?null:{min:30}:null}},{key:"handleReady",value:function(){Cr(Qe(t.prototype),"handleReady",this).call(this),this.refreshResizer()}},{key:"handleCollapsedChange",value:function(){Cr(Qe(t.prototype),"handleCollapsedChange",this).call(this),this.refreshResizer()}},{key:"leave",value:function(){Cr(Qe(t.prototype),"leave",this).call(this),this.hideResizer()}},{key:"hover",value:function(){Cr(Qe(t.prototype),"hover",this).call(this),this.showResizer()}}]),t}(Yh.extend(GVe,fp,ap));function ZVe(e,t,n){return t=Qe(t),Xe(e,eHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function eHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eHe=function(){return!!e})()}var tHe=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i-1&&i.currentIndex0&&(this._first=!1,this.ranges=this.codeMirror.search(this.text,!n.isIgnoreCase))}return Ke(e,[{key:"isConnected",get:function(){var e,t,n;return null===(n=null===(t=null===(e=this.cardNode)||void 0===e?void 0:e._ui)||void 0===t?void 0:t.cardRootNode)||void 0===n?void 0:n.isConnected}},{key:"cardNode",get:function(){var e=this;return this.plugin.cardNodes.find((function(t){return t.viewNode.id===e.node.id}))}},{key:"ui",get:function(){var e;return null===(e=this.cardNode)||void 0===e?void 0:e._ui}},{key:"codeMirror",get:function(){var e;return null===(e=this.ui)||void 0===e?void 0:e._codeMirror}},{key:"code",get:function(){return this.node.attrs.value.code||""}},{key:"jumpTo",value:function(e,t){var n,r;(null===(n=this.cardNode)||void 0===n?void 0:n.cardData.collapsed)&&(null===(r=this.ui)||void 0===r||r.expand()),this.currentIndex=e,t||this.isConnected||this.ctx.scrollToViewNodeId(this.node.id),this.codeMirror&&ethis.ranges.length)){var n=this.ranges[e];if(this.codeMirror)this.codeMirror.replaceSearchRange(n,t);else if(this.code){var r=On.replaceRange(this.code,n,t);this.ctx.execCommand("setCardValue",this.node.id,Object.assign(Object.assign({},this.node.attrs.value),{code:r}))}}}},{key:"replaceAll",value:function(e,t){var n;this.ui?(this.ui.replaceAll(e,this.text,t,this.ctx.isIgnoreCase),null===(n=this.codeMirror)||void 0===n||n.closeSearch()):this.code&&this.ctx.setCardValue(e,this.node.id,{code:On.replaceAll(this.code,this.text,t,this.ctx.isIgnoreCase)})}},{key:"leave",value:function(){this.currentIndex=-1,this.codeMirror&&this.codeMirror.jumpToSearch(null,!1)}},{key:"destroy",value:function(){this.codeMirror&&this.codeMirror.closeSearch()}}]),e}(),cHe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"plugin",{enumerable:!0,configurable:!0,writable:!0,value:t})}return Ke(e,[{key:"onSearch",value:function(e,t,n){return new uHe(this.plugin,e,t,n)}}]),e}();function sHe(e,t,n){return t=Qe(t),Xe(e,dHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function dHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dHe=function(){return!!e})()}var fHe=function(e){function t(){return Ye(this,t),sHe(this,t,arguments)}return et(t,e),Ke(t,[{key:"onEvent",value:function(e){kt("change"===e,"plugins/codeblock/src/editor/basic-text-style-toolbar-descriptor.ts:15"),this.pluginContext.codeMirror.customStyle(Ja({},this.pluginContext.name,!0))}},{key:"getInitUIState",value:function(){var e=this;jc(this,this.pluginContext.codeMirror,"selection",ig()((function(){e.pluginContext.codeMirror&&e.refresh()})));var t={clear:{name:gc("清除格式"),icon:"editor-clear-format"},bold:{name:gc("粗体"),icon:"t-bold"},italic:{name:gc("斜体"),icon:"t-italic"},underline:{name:gc("下划线"),icon:"t-underline"},strikethrough:{name:gc("删除线"),icon:"t-strikethrough"}};return{disabled:!1,checked:!1,icon:t[this.pluginContext.name].icon,tooltip:zRe.getTooltip(this.editor,t[this.pluginContext.name].name,this.pluginContext.name)}}},{key:"getUIState",value:function(){var e=this.pluginContext,t=e.codeMirror,n=e.name;return t?{disabled:!1,checked:!!t.getSelectionCustomStyle()[n]}:{disabled:!0,checked:!1}}}]),t}(zRe);function hHe(e,t,n){return t=Qe(t),Xe(e,pHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function pHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pHe=function(){return!!e})()}Object.defineProperty(fHe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"StatusButton"});var vHe="transparent",mHe="ne-codeblock-used-colors",gHe=function(e){function t(){var e;return Ye(this,t),e=hHe(this,t,arguments),Object.defineProperty(Je(e),"colors",{enumerable:!0,configurable:!0,writable:!0,value:{color:vHe,background:vHe}}),Object.defineProperty(Je(e),"userColors",{enumerable:!0,configurable:!0,writable:!0,value:{color:[],background:[]}}),e}return et(t,e),Ke(t,[{key:"init",value:function(){try{var e=Tf.getItem(mHe);e&&(this.userColors=JSON.parse(e))}catch(e){}}},{key:"saveUserColors",value:function(e){try{var t=this.pluginContext.name;this.userColors[t].unshift(e),this.userColors[t]=this.userColors[t].slice(0,10),Tf.setItem(mHe,JSON.stringify(this.userColors))}catch(e){}}},{key:"onEvent",value:function(e,t){switch(e){case"select":this.colors[this.pluginContext.name]=t,this.pluginContext.codeMirror.customStyle(Ja({},this.pluginContext.name,t));break;case"saveColor":this.saveUserColors(t)}}},{key:"getInitUIState",value:function(){var e=this.pluginContext.name;return{disabled:this.disabled,className:"ne-ui-toolbar-bg-color",defaultColor:vHe,themeName:this.editor.theme.getSchemeName(),color:this.colors[e],userColors:[],icon:"background"===e?"t-bg-color":"t-font-color",tooltip:zRe.getTooltip(this.editor,gc("background"===e?"背景颜色":"字体颜色"))}}},{key:"getUIState",value:function(){var e=this.editor,t=this.pluginContext.name;return{disabled:!1,userColors:this.userColors[t].slice(0,10),themeName:e.theme.getSchemeName(),activeColors:[],color:this.colors[t]}}}]),t}(zRe);function bHe(e,t,n){return t=Qe(t),Xe(e,yHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yHe=function(){return!!e})()}Object.defineProperty(gHe,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"ColorPickerButton"});var wHe=function(e){function t(){var e;return Ye(this,t),e=bHe(this,t,arguments),Object.defineProperty(Je(e),"_intersectionObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_codeMirror",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n,r,o=this;t.registerBlockCard(this,$de.cardName,{factory:function(){for(var t=arguments.length,n=new Array(t),r=0;r=o.length||n.isValidSelectIndex(r-1)&&n.setState({selectIndex:r-1}))})),e.on("moveRight",(function(e){var t=n.state,r=t.selectIndex,o=t.tabs;"number"==typeof r&&(e.preventDefault(),r+1>=o.length||n.isValidSelectIndex(r+1)&&n.setState({selectIndex:r+1}))})),e.on("enter",(function(){var e=n.state,t=e.selectIndex,r=e.tabs,o=n.getDisplayItems();"number"==typeof t&&(t=0}}),Object.defineProperty(Je(n),"derivedStateFromItems",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){var r=mr();n.derivePromiseId=r;var o=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(Je(n),void 0,void 0,Sc().mark((function n(){var o;return Sc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=Object.assign(Object.assign({},this.state),{items:[]}),!Array.isArray(e)){n.next=5;break}o.items=e.map((function(e){return Object.assign(Object.assign({},e),{tab:"users"})})),n.next=10;break;case 5:return n.next=7,e();case 7:e=n.sent,Array.isArray(e)?o.items=e.map((function(e){return Object.assign(Object.assign({},e),{tab:"users"})})):o.items=[].concat(pn((e.docs||[]).map((function(e){return Object.assign(Object.assign({},e),{tab:"docs"})}))),pn((e.users||[]).map((function(e){return Object.assign(Object.assign({},e),{tab:"users"})})))),e[o.curTab]||(o.curTab=void 0);case 10:return this.props.multiTypes&&o.items.length>0?o.selectIndex=2:!this.props.multiTypes&&o.items.length>0&&(o.selectIndex=0),t&&(o.curTab=t),n.abrupt("return",{state:Object.assign(Object.assign({},o),{loading:!1}),id:r});case 13:case"end":return n.stop()}}),n,this)})));o.then((function(e){e.id===n.derivePromiseId&&n.setState(e.state,(function(){var e;null===(e=n.popRef.current)||void 0===e||e.updatePos()}))}))}}),Object.defineProperty(Je(n),"onTabSelected",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({curTab:e}),"function"==typeof n.props.onTabClick&&n.props.onTabClick(e)}}),Object.defineProperty(Je(n),"getDisplayItems",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.state,t=e.items,r=e.curTab,o=e.tabs;if(!o.length)return t;if(r)return t.filter((function(e){return e.tab===r}));var i=[];return o.map((function(e){return i.push.apply(i,pn(t.filter((function(t){return t.tab===e.tab})).slice(0,e.defaultCount)))})),i}}),Object.defineProperty(Je(n),"renderItem",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){var r=n.state,o=r.selectIndex,i=r.tabs;switch(e.tab){case"users":return nc().createElement(DHe,{avatarOrigin:n.props.avatarOrigin,data:e,key:e.login,selected:o-i.length===t,onMouseEnter:function(){return n.setState({selectIndex:t+i.length})},multiTypes:n.props.multiTypes,onSelect:n.props.onSelect,ref:function(e){return n.itemsRef.current[t+i.length]=e}});case"docs":return nc().createElement(OHe,{ref:function(e){return n.itemsRef.current[t+i.length]=e},data:e,key:e.id,selected:o-i.length===t,onMouseEnter:function(){return n.setState({selectIndex:t+i.length})},onSelect:n.props.onSelect});default:return null}}}),Object.defineProperty(Je(n),"positionHandle",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t,r,o){var i=n.props,a=i.targetNode,l=i.getEditWrapRect,u=i.popupOverflow?{bottom:window.innerHeight,top:0}:l(),c=e.getBoundingClientRect(),s=e.parentElement,d=null==s?void 0:s.getBoundingClientRect(),f=null==a?void 0:a.getBoundingClientRect();if(u&&c&&d&&f)if("bottomLeft"!==t||"number"!=typeof r.top||"number"!=typeof r.left)o(e,r);else{var h=u.bottom-f.bottom;if(f.top-u.top>h){var p=f.top-u.top-5;Math.min(p,c.height),e.style.left=r.left+"px",e.style.bottom=d.bottom-f.top+5+"px",e.firstChild&&(e.firstChild.style.maxHeight=p+"px")}else{var v=u.bottom-f.bottom-5;Math.min(v,c.height),e.style.left=r.left+"px",e.style.top=r.top+"px",e.firstChild&&(e.firstChild.style.maxHeight=v+"px")}}else o(e,r)}}),n.itemsRef=nc().createRef(),n.itemsRef.current=[],n.listRef=nc().createRef(),n.popRef=nc().createRef(),e.multiTypes&&(n.state.tabs=n._defaultTabs),n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){this.derivedStateFromItems(this.props.initItems),this.listenKeyEvent()}},{key:"componentWillUnmount",value:function(){this.derivePromiseId=void 0}},{key:"update",value:function(e,t){var n;this.derivedStateFromItems(e,t),this.forceUpdate(),null===(n=this.popRef.current)||void 0===n||n.updatePos()}},{key:"_renderHeader",value:function(){var e=this,t=this.state,n=t.selectIndex,r=t.curTab,o=t.tabs;return this.props.multiTypes?nc().createElement("div",{className:"ne-ui-mention-header"},nc().createElement("div",null,gc("提及人或内容")),nc().createElement("div",{className:"ne-ui-mention-tabs"},o.map((function(t,i){return nc().createElement(tc.Fragment,{key:t.tab},nc().createElement("div",{onClickCapture:e.onTabSelected.bind(null,t.tab),onMouseEnter:function(){return e.setState({selectIndex:i})},className:"ne-ui-mention-tab ".concat(n===i||r===t.tab?"ne-ui-mention-tab-selected":"")},nc().createElement(tD,{type:t.icon}),nc().createElement("span",null,t.label)),i!==o.length-1&&nc().createElement("div",{className:"ne-ui-mention-tab-divider"}))})))):nc().createElement("div",{className:"ne-ui-mention-header"},gc("提及人"))}},{key:"_renderMenu",value:function(){var e=this,t=this.getDisplayItems();return(null==t?void 0:t.length)||this.state.loading?nc().createElement("div",{className:"ne-ui-mention-menu-list"},t.map((function(n,r){var o;return nc().createElement(tc.Fragment,{key:r},e.renderItem(n,r),(null===(o=t[r+1])||void 0===o?void 0:o.tab)&&n.tab!==t[r+1].tab&&nc().createElement("div",{className:"doc-user-divider"}))}))):nc().createElement("div",{className:"ne-ui-mention-menu-empty"},nc().createElement("img",{src:"https://gw.alipayobjects.com/mdn/prod_resou/afts/img/A*wPMVTriBo40AAAAAAAAAAAAAARQnAQ"}),nc().createElement("span",null,gc("无匹配内容,请重新输入")))}},{key:"renderContent",value:function(){var e=this.props.mentionPopContent;return e?nc().createElement(e,{onSelect:this.props.onSelect,items:this.state.items,loading:this.state.loading,tabs:this.state.tabs,curTab:this.state.curTab}):nc().createElement("div",{className:"ne-ui-mention-menu ".concat(this.props.multiTypes?"":"ne-ui-mention-menu-mini"),ref:this.listRef},this._renderHeader(),this._renderMenu())}},{key:"render",value:function(){return nc().createElement(Cj,{targetNode:this.props.targetNode,uiEmitter:this.props.uiEmitter,boundaryNode:this.props.boundaryNode||document.body,visible:!0,allowClose:!1,offset:5,placement:"bottomLeft",positionHandle:this.positionHandle,ref:this.popRef},this.renderContent())}}]),t}(tc.Component);function THe(e,t,n){return t=Qe(t),Xe(e,AHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function AHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AHe=function(){return!!e})()}var jHe=function(e){function t(){return Ye(this,t),THe(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this,t=this.props.cardData.getUserInfo();if(!t)return this.renderError();var n=this.props.generateMentionInfo(t),r=n.text,o=n.url,i=n.externalOpen;return o?nc().createElement("div",{className:"ne-ui-mention-link"},nc().createElement("a",{onClick:function(t){if("function"==typeof e.props.onOpenLink){var n=Ks.macos?t.metaKey:t.ctrlKey;t.preventDefault(),e.props.onOpenLink(n)}},href:xh.sanitizeUrl(o),target:i?"_blank":""},"@",r)):nc().createElement("div",{className:"ne-ui-mention-link"},"@",r)}},{key:"renderError",value:function(){return nc().createElement("div",{className:"ne-ui-mention-link ne-ui-mention-error"},"无效数据")}}]),t}(tc.Component);function IHe(e,t,n){return t=Qe(t),Xe(e,BHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BHe=function(){return!!e})()}var MHe=function(e){function t(){var e;return Ye(this,t),e=IHe(this,t,arguments),Object.defineProperty(Je(e),"searchTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{userInput:"",tab:null}}),Object.defineProperty(Je(e),"_selectEmitter",{enumerable:!0,configurable:!0,writable:!0,value:new ut}),Object.defineProperty(Je(e),"_rootRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_inputRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_cardSelectMenuRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"_overlay",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_completed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_tabClicked",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"isComposition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_keyDownHandler",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.key;if(("Backspace"===n||"Delete"===n)&&""===t.target.value)return t.preventDefault(),void e._cancel();if(" "!==n||""!==t.target.value&&!t.target.value.endsWith(" "))if("Escape"!==n){if("ArrowDown"===n)return t.preventDefault(),void e._selectEmitter.emit("moveDown");if("ArrowUp"===n)return t.preventDefault(),void e._selectEmitter.emit("moveUp");if("ArrowLeft"!==n)if("ArrowRight"!==n){if("Enter"===n){if(e.isComposition)return;t.preventDefault(),e._selectEmitter.emit("enter")}}else e._selectEmitter.emit("moveRight",t);else e._selectEmitter.emit("moveLeft",t)}else e._cancel();else e._cancel()}}),Object.defineProperty(Je(e),"_changeHandler",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.setState({userInput:t}),e.searchTimer&&(clearTimeout(e.searchTimer),e.searchTimer=null),e.searchTimer=setTimeout((function(){e.props.onSearch(t,e.state.tab),e.searchTimer=null}),500)}}),Object.defineProperty(Je(e),"_focus",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._tabClicked?e._tabClicked=!1:e.openOverlay()}}),Object.defineProperty(Je(e),"_blur",{enumerable:!0,configurable:!0,writable:!0,value:function(){setTimeout((function(){var t;e._tabClicked?null===(t=e._inputRef.current)||void 0===t||t.focus():e._cancel()}),500)}}),Object.defineProperty(Je(e),"_cancel",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(!e._completed){e._overlay&&(e._overlay.cancel(),e._overlay=null),e._completed=!0;var t=e._inputRef.current?e._inputRef.current.value:"";e.props.onCancel(t)}}}),e}return et(t,e),Ke(t,[{key:"componentWillUnmount",value:function(){this._overlay&&this._overlay.cancel()}},{key:"updateItems",value:function(e,t){this._cardSelectMenuRef.current&&this._cardSelectMenuRef.current.update(e,t)}},{key:"render",value:function(){var e=this,t=this.props.cardData.getUserInfo();return t.name||t.login?nc().createElement(jHe,{cardData:this.props.cardData,onOpenLink:this.props.onOpenLink,generateMentionInfo:this.props.generateMentionInfo}):nc().createElement("div",{ref:this._rootRef,className:"ne-ui-card-select-view"},nc().createElement("span",null,"@"),nc().createElement("div",{className:"ne-ui-card-select-input-wrap"},nc().createElement("span",{className:"ne-ui-card-select-hidden"},(this.state.userInput||"用户名").replace(/ /g," ")),nc().createElement("input",{placeholder:gc("提及"),ref:this._inputRef,onFocus:this._focus,onBlur:this._blur,onCompositionStart:function(){e.isComposition=!0},onCompositionEnd:function(){e.isComposition=!1},onKeyDown:this._keyDownHandler,onChange:function(t){return e._changeHandler(t.target.value)},className:"ne-ui-card-select-input"})))}},{key:"focus",value:function(){var e=this,t=this.props.cardData.getUserInfo();t.login||t.name||setTimeout((function(){e._inputRef.current&&e._inputRef.current.focus()}))}},{key:"openOverlay",value:function(){var e=this;this._overlay&&this._overlay.cancel();var t="function"==typeof this.props.overlayContainer?this.props.overlayContainer():this.props.overlayContainer;this._overlay=xj.open({containerNode:t,targetNode:this._rootRef.current,reactComponent:nc().createElement(SHe,{popupOverflow:this.props.popupOverflow,avatarOrigin:this.props.avatarOrigin,ref:this._cardSelectMenuRef,boundaryNode:this.props.boundaryNode,selectEmitter:this._selectEmitter,initItems:this.props.items,onSelect:function(){var t;e._overlay&&(e._overlay.cancel(),e._overlay=null),e._completed=!0,(t=e.props).onSelect.apply(t,arguments)},onTabClick:function(t){e._tabClicked=!0,e.setState({tab:t}),e.props.onSearch(e.state.userInput,t)},targetNode:this._rootRef.current,multiTypes:this.props.multiTypes,mentionPopContent:this.props.mentionPopContent,overlayContainer:this.props.overlayContainer,getEditWrapRect:this.props.getEditWrapRect}),autoClose:!1})}}]),t}(tc.Component);Object.defineProperty(MHe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onCancel:function(){},onSelect:function(){},onOpenLink:function(){},onSearch:function(){}}});var FHe=Ke((function e(t){Ye(this,e),Object.defineProperty(this,"UI_TYPE",{enumerable:!0,configurable:!0,writable:!0,value:qL}),Object.defineProperty(this,"EDITOR_CLASSNAME",{enumerable:!0,configurable:!0,writable:!0,value:"ne-simple-ui"}),t.domRootNode.classList.add(this.EDITOR_CLASSNAME)}));function LHe(e,t,n){return t=Qe(t),Xe(e,UHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function UHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UHe=function(){return!!e})()}var VHe=function(e){function t(){var e;return Ye(this,t),e=LHe(this,t,arguments),Object.defineProperty(Je(e),"_handlers",{enumerable:!0,configurable:!0,writable:!0,value:Ja({},qL,FHe)}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this.option.default&&this._handlers[this.option.default]&&new this._handlers[this.option.default](e)}}]),t}(Lw);function HHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HHe=function(){return!!e})()}Object.defineProperty(VHe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:zde.pluginName}),Object.defineProperty(VHe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(_Ue)});var zHe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))};function WHe(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,HHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e,t,n,r=this;this.uiViewProxy=Iwe.render(MHe,{getEditWrapRect:this.editor.getEditWrapRect.bind(this.editor),mentionPopContent:this.pluginOption.mentionPopContent,popupOverflow:!!(null===(t=(e=this.editor).isMiniEditor)||void 0===t?void 0:t.call(e))||(null===(n=this.editor.getService(FUe.ID))||void 0===n?void 0:n.getType())===KL,avatarOrigin:this.pluginOption.avatarOrigin,cardData:this.cardData,uiEmitter:this.editor.uiEmitter,generateMentionInfo:this.pluginOption.generateMentionInfo,items:this.pluginOption.getDefaultList(),overlayContainer:this.pluginOption.popupContainer||this.editor.innerOverlayContainer,boundaryNode:this.editor.editorWrapNode,multiTypes:this.pluginOption.multiTypes,onSearch:function(e,t){return zHe(r,void 0,void 0,Sc().mark((function n(){var r,o,i;return Sc().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.uiViewProxy){n.next=2;break}return n.abrupt("return");case 2:if(e.trim()||t){n.next=5;break}return null===(r=this.uiViewProxy.getReactRef())||void 0===r||r.updateItems(this.pluginOption.getDefaultList(),t),n.abrupt("return");case 5:i=null,n.prev=6,i=this.pluginOption.onMentionSearch.bind(this.pluginOption,e,t),n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(6),n.abrupt("return");case 13:if(!this.destroyed){n.next=15;break}return n.abrupt("return");case 15:null===(o=this.uiViewProxy.getReactRef())||void 0===o||o.updateItems(i,t);case 16:case"end":return n.stop()}}),n,this,[[6,10]])})))},onCancel:function(e){r.uiViewProxy&&r.emit("cancel",e)},onSelect:function(e){if(!(null==e?void 0:e.tab))return r.emit("cancel","");switch(e.tab){case"users":return r.cardData.setUserInfo({login:e.login,nickName:e.nickName,name:e.name,userid:e.id}),r.cardData.sync(!0),r.pluginOption.recordMentionUser(e.id),r.emit("completed");case"docs":return r.editor.execCommand("insertYuqueInlineDoc",{src:"".concat(location.origin).concat(e.url),url:"".concat(location.origin).concat(e.url),isGroup:!1}),r.emit("cancel","");default:return r.emit("cancel","")}},onOpenLink:function(){var e=r.pluginOption.generateMentionInfo(r.cardData.getUserInfo()),t=e.url,n=e.externalOpen;t&&r.editor.emitEvent("openMentionLink",t,n)}},this.containerNode)}},{key:"focus",value:function(){var e=this.uiViewProxy.getReactRef();e&&e.focus()}},{key:"destroy",value:function(){this.uiViewProxy=null,nu().unmountComponentAtNode(this.containerNode),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}var qHe=WHe;function $He(e,t,n){return t=Qe(t),Xe(e,KHe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function KHe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KHe=function(){return!!e})()}var YHe=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};null===(t=e._uiViewProxy)||void 0===t||t.rerender(n)}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t;this._updateObserver=e,this._uiViewProxy=Iwe.render(pze,{cardData:this.cardData,uploadObserver:this._updateObserver,getVideoUrl:this.getVideoUrl,getVideoCover:this.getVideoCover,onUploadStart:this.onUploadStart,onUploadProgress:this.onUploadProgress,onUploadSuccess:this.onUploadSuccess,onUploadError:this.onUploadError,withPip:!!(null===(t=this.pluginOption._option)||void 0===t?void 0:t.withPip)},this.containerNode)}},{key:"destroy",value:function(){var e;null===(e=this._uiViewProxy)||void 0===e||e.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}var gze=mze;function bze(e,t,n){return t=Qe(t),Xe(e,yze()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yze(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yze=function(){return!!e})()}var wze=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i]+>|<\/span>/g,pWe=/\\(begin|end)\{\W*?align[^}]*?\}/g;function vWe(e){return pWe.test(e)&&(e=e.replace(pWe,"\\$1{aligned}")),e}var mWe=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"load",value:function(e){return fWe(this,void 0,void 0,Sc().mark((function t(){return Sc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,dWe(e);case 2:case"end":return t.stop()}}),t)})))}},{key:"renderToHTML",value:function(e,t,n){return fWe(this,void 0,void 0,Sc().mark((function r(){var o;return Sc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,dWe(t);case 2:return o=r.sent,n=n||{},r.abrupt("return",o.renderToString(vWe(e),Object.assign(Object.assign({throwOnError:!0,displayMode:!0},n),{output:"html",trust:eWe})));case 5:case"end":return r.stop()}}),r)})))}},{key:"renderToMathML",value:function(e,t,n){return fWe(this,void 0,void 0,Sc().mark((function r(){var o;return Sc().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,dWe(t);case 2:return o=r.sent,n=n||{},r.abrupt("return",o.renderToString(vWe(e),Object.assign(Object.assign({throwOnError:!0,displayMode:!0},n),{output:"mathml",trust:eWe})).replace(hWe,""));case 5:case"end":return r.stop()}}),r)})))}}]),e}(),gWe=400;function bWe(e){var t=(0,tc.useRef)(null),n=cn((0,tc.useState)({width:e.width,height:e.height}),2),r=n[0],o=n[1];(0,tc.useLayoutEffect)((function(){var n=t.current;if(n){var r=n.closest(".ant-popover"),i=!1;return function t(){i||(r.style.left||r.style.right?xs((function(){return[n.getBoundingClientRect(),e.targetNode.getBoundingClientRect(),document.body.clientWidth]}),(function(t){var n=cn(t,3),r=n[0],i=n[1],a=n[2];r.right+20>a?o({width:Math.max(gWe,a-i.left-20),height:e.height}):r.left<20&&o({width:Math.max(gWe,i.right-20),height:e.height})})):Ns(t))}(),function(){i=!0}}}),[]);var i=(0,tc.useCallback)((function(e){var t=r.width,n=r.height,i=function(e,r){o({width:Math.max(gWe,t+e),height:Math.max(84,n-r)})};Zd(e,i,i)}),[r,o]),a=(0,tc.useCallback)((function(e){var t=r.width,n=r.height,i=function(e,r){o({width:Math.max(gWe,t+e),height:Math.max(84,n+r)})};Zd(e,i,i)}),[r,o]);return nc().createElement("div",{ref:t,className:"ne-math-resize",style:{width:r.width,height:r.height}},e.children,nc().createElement("div",{className:"ne-math-resizer-top",onMouseDown:i}),nc().createElement("div",{className:"ne-math-resizer-bottom",onMouseDown:a}))}var yWe=uVe()("ne:math:editor");const wWe=function(e){var t=e.cursorFrom,n=e.onExitCardByKeyboard,r=(0,tc.useRef)(null);return(0,tc.useEffect)((function(){var e=r.current.querySelector("textarea"),n=null;return n=Ns((function r(){e&&e.isConnected&&(e.getBoundingClientRect().y<0?n=Ns(r):Os((function(){return function(e,t){if(yWe("focus to math input"),e.setSelectionRange){var n=t===BL?e.value.length:0;e.setSelectionRange(n,n),e.focus()}}(e,t)})))})),function(){return null==n?void 0:n.dispose()}}),[t]),nc().createElement("span",{ref:r},nc().createElement(bWe,{width:750,height:110,targetNode:e.targetNode},nc().createElement(hj.TextArea,{className:"ne-math-input",spellCheck:"false",autoComplete:"off",defaultValue:e.code,onChange:e.onChange,onKeyDown:function(e){var t=r.current.querySelector("textarea"),o=t.selectionStart;return(ed.isArrowLeft(e)||ed.isArrowUp(e))&&0===o?(e.preventDefault(),void n(IL)):(ed.isArrowRight(e)||ed.isArrowDown(e))&&o===t.value.length?(e.preventDefault(),void n(BL)):void 0}})))};function kWe(e,t,n){return t=Qe(t),Xe(e,CWe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function CWe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CWe=function(){return!!e})()}var _We=function(e){function t(){var e;return Ye(this,t),e=kWe(this,t,arguments),Object.defineProperty(Je(e),"domRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"lastInnerHTML",{enumerable:!0,configurable:!0,writable:!0,value:"\ufeff"}),e}return et(t,e),Ke(t,[{key:"doUpdate",value:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,Sc().mark((function e(){return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,mWe.renderToHTML(this.props.code,this.props.katexURL);case 3:this.lastInnerHTML=e.sent,e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),this.lastInnerHTML="\ufeff",this.props.onError(e.t0.message);case 10:this.domRef.current&&(this.domRef.current.innerHTML=this.lastInnerHTML);case 11:case"end":return e.stop()}}),e,this,[[0,6]])})))}},{key:"componentDidMount",value:function(){this.domRef.current&&this.props.code&&this.doUpdate()}},{key:"componentDidUpdate",value:function(){this.domRef.current&&this.props.code&&this.doUpdate()}},{key:"render",value:function(){return nc().createElement("div",{ref:this.domRef,style:{pointerEvents:"none"},"data-testid":"ne-math-preview-image"},"")}}]),t}(tc.PureComponent);function NWe(e,t,n){return t=Qe(t),Xe(e,OWe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function OWe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OWe=function(){return!!e})()}Object.defineProperty(_We,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onError:function(){}}}),Object.defineProperty(_We,"observer",{enumerable:!0,configurable:!0,writable:!0,value:null});var xWe=uVe()("ne:math:editor"),EWe=new mf(["cmd","enter"]),DWe=new mf(["escape"]),RWe=function(e){function t(e){var n;Ye(this,t),n=NWe(this,t,[e]),Object.defineProperty(Je(n),"cardUINodeRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"mathEditorDOM",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"syncValue",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.setState({code:n.props.cardData.code,url:n.props.cardData.url})}}),Object.defineProperty(Je(n),"setCursorPosition",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({cursorFrom:e})}}),Object.defineProperty(Je(n),"mathEditorHotKeyHandle",{enumerable:!0,configurable:!0,writable:!0,value:function(e){e.stopPropagation();var t=n.state.editing;if(t)return EWe.match(e)?(xWe("submit use: cmd+enter",{editing:t}),void n.exit("cmd+enter")):void(DWe.match(e)&&(xWe("esc:",{editing:t}),n.exit("esc")))}}),Object.defineProperty(Je(n),"onMathEditorRef",{enumerable:!0,configurable:!0,writable:!0,value:function(e){e?(n.mathEditorDOM=e,n.registerHotKey()):n.mathEditorDOM=null}}),Object.defineProperty(Je(n),"exit",{enumerable:!0,configurable:!0,writable:!0,value:function(e){xWe("exit editor, trigger by: ".concat(e)),n.props.onExit(),n.props.onExitCardByKeyboard(BL)}}),Object.defineProperty(Je(n),"onChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=e.target.value;n.setState({code:t,error:null}),n.props.onChange(t)}}),Object.defineProperty(Je(n),"handleError",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({error:e})}});var r=e.cardData;return n.state={code:r.code,url:r.url,editing:e.focus,cursorFrom:"end",error:null},n}return et(t,e),Ke(t,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.props.focus;n||!1===this.state.editing||this.setState({editing:!1},(function(){t.removeHotKey()})),n&&!1===e.focus&&this.setState({editing:!0})}},{key:"registerHotKey",value:function(){this.mathEditorDOM&&this.mathEditorDOM.addEventListener("keydown",this.mathEditorHotKeyHandle)}},{key:"removeHotKey",value:function(){this.mathEditorDOM&&this.mathEditorDOM.removeEventListener("keydown",this.mathEditorHotKeyHandle)}},{key:"renderEditor",value:function(){var e=this,t=this.props,n=t.cardData,r=t.onExitCardByKeyboard,o=this.state,i=o.cursorFrom,a=o.error;return nc().createElement("div",{"data-testid":"ne-math-editor",ref:this.onMathEditorRef},a?nc().createElement("div",{className:"ne-math-editor-error-top"},a):null,nc().createElement(wWe,{code:n.code,targetNode:this.cardUINodeRef.current,cursorFrom:i,onChange:this.onChange,onExitCardByKeyboard:r}),a?nc().createElement("div",{className:"ne-math-editor-error-bottom"},a):null,nc().createElement("div",{className:"ne-math-editor-toolbar"},nc().createElement("a",{href:"https://katex.org/",className:"ne-help-link","data-desktop-target":"_browser",target:"_blank",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.props.visitLink("https://katex.org/",!0)}},nc().createElement(tD,{type:"question"}),gc("查看帮助文档")),nc().createElement(yS,{title:ff(["cmd","enter"])},nc().createElement("a",{"data-testid":"ne-math-editor-submit",className:"ne-math-editor-submit",onClick:function(){e.exit("confirm")}},nc().createElement("span",{className:"text"},gc("确定"),"(",Ks.macos?"Cmd":"Ctrl"," + Enter)")))))}},{key:"renderEntry",value:function(){var e=this.state,t=e.code;return e.error?nc().createElement("span",{className:"ne-math-entry ne-math-placeholder-error"},gc("非法 TeX 公式")):t?nc().createElement("span",{className:"ne-math-entry ne-math-code"},nc().createElement(_We,{katexURL:this.props.katexURL,code:t,onError:this.handleError})):nc().createElement("span",{className:"ne-math-entry ne-math-placeholder"},gc("添加 TeX 公式"))}},{key:"render",value:function(){var e=this,t=this.props,n=t.focus,r=t.overlayContainer;return nc().createElement(Fj,{className:"ne-math-editor-panel",trigger:"click",getPopupContainer:function(){return r||e.cardUINodeRef.current},overlayClassName:"ne-math-editor-overlay",visible:n,placement:"bottomLeft",content:this.renderEditor(),noArrow:!0,destroyTooltipOnHide:!0},nc().createElement("span",{ref:this.cardUINodeRef,className:"ne-math ".concat(n?"ne-math-selected":"")},this.renderEntry()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!t.url&&e.cardData.url?{url:e.cardData.url}:null}}]),t}(tc.PureComponent);const PWe=RWe;function SWe(e,t,n){return t=Qe(t),Xe(e,TWe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function TWe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(TWe=function(){return!!e})()}var AWe=uVe()("ne:math:eui"),jWe=WVe(0,(function(e){return function(e){function t(){var e;return Ye(this,t),e=SWe(this,t,arguments),Object.defineProperty(Je(e),"_changedValue",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"syncValue",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n,r;t||null===(r=null===(n=e._uiViewProxy)||void 0===n?void 0:n.getReactRef())||void 0===r||r.syncValue()}}),Object.defineProperty(Je(e),"sync",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e._changedValue&&(e.cardData.sync(!0),e._changedValue=!1),!0}}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;AWe("init",this.cardData),this.cardData.on("change",this.syncValue),mWe.load(this.pluginOption.katexURL).catch((function(){})),this.plugin.intersectionObserver&&this.containerNode&&this.plugin.intersectionObserver.observe(this.containerNode.closest("ne-card")),this._uiViewProxy=Iwe.render(PWe,{cardData:this.cardData,visitLink:function(t,n){e.editor.emitEvent("visitLink",t,n)},focus:!1,isDark:this.editor.theme.isDark(),katexURL:this.pluginOption.katexURL,onChange:function(t){e.cardData.update({code:t,url:null}),e._changedValue=!0},onExit:function(){e.blur()},onExitCardByKeyboard:function(t){e.focusCardTo(t)},overlayContainer:this.editor.innerOverlayContainer},this.containerNode),jc(this,this.editor.theme,"themeChange",(function(){var t;e.destroyed||null===(t=e._uiViewProxy)||void 0===t||t.rerender({isDark:e.editor.theme.isDark()})}))}},{key:"destroy",value:function(){var e;this.plugin.intersectionObserver&&this.containerNode&&this.plugin.intersectionObserver.unobserve(this.containerNode.closest("ne-card")),null===(e=this._uiViewProxy)||void 0===e||e.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){var e,t,n;AWe("focus"),null===(e=this._uiViewProxy)||void 0===e||e.rerender({focus:!0}),this.focusByKeyboard&&(null===(n=null===(t=this._uiViewProxy)||void 0===t?void 0:t.getReactRef())||void 0===n||n.setCursorPosition(this.focusByKeyboard))}},{key:"blur",value:function(){var e;AWe("blur"),this.cardData.sync(!1),this._changedValue=!1,null===(e=this._uiViewProxy)||void 0===e||e.rerender({focus:!1})}}]),t}(e)}));function IWe(e,t,n){return t=Qe(t),Xe(e,BWe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BWe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BWe=function(){return!!e})()}var MWe=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.target,i=r.intersectionRatio,a=r.boundingClientRect,l=a.width,u=a.height;if(o){var c=o;c.style.width?i>=.1&&(c.style.width=null,c.style.height=null,c.style.verticalAlign=null,c.style.counterIncrement=null,c.children[0].style.display=null):0===i&&(c.style.width=l+"px",c.style.verticalAlign="middle",c.style.height=u+"px",c.querySelectorAll(".eqn-num").length>0&&(c.style.counterIncrement="katexEqnNo "+c.querySelectorAll(".eqn-num").length),c.children[0].style.display="none")}}}catch(e){n.e(e)}finally{n.f()}}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n,r=this;t.registerInlineCard(this,Jde.cardName,{factory:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?r-1:0),i=1;i=t;)o=o.parent;a.parent=o,o.children.push(a)}o=a,a.parent.collapsed&&(a.collapsed=!0)})),r}(e,0,n),o=r.nodeMap,i=[],a={};if(r.children.forEach((function(e){xqe(e,i,a)})),null!==t&&o[t])if(a[t])o[t].selected=!0;else for(var l=o[t];l=l.parent;)if(a[l.id]){l.selected=!0;break}return i}function xqe(e,t,n){var r,o=e.children,i=e.collapsed;t.push(e),n[e.id]=!0,e.hasChild=!!o.length,e.hasChild||(e.collapsed=!1),0!==(null===(r=e.parent)||void 0===r?void 0:r.depth)&&(e.isChild=!0),e.hasChild&&(e.parent._needMarkIndent=!0),i||0===o.length||o.forEach((function(e){xqe(e,t,n)}))}function Eqe(e,t,n){return t=Qe(t),Xe(e,Dqe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Dqe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dqe=function(){return!!e})()}Object.defineProperty(Nqe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"toc"});var Rqe=function(e){function t(e){var n,r=e.scrollNode,o=e.contentNode,i=e.tocViewportNode,a=e.tocData,l=e.offsetTop;Ye(this,t),n=Eqe(this,t),Object.defineProperty(Je(n),"_scrollNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_tocViewportNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_tocData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_scrollTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_outsideCheckStatus",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(n),"_offsetTop",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(n),"_ignoreScrollOnce",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(n),"_checkHandler",{enumerable:!0,configurable:!0,writable:!0,value:function(){n._scrollTimer||(n._ignoreScrollOnce?n._ignoreScrollOnce=!1:n._scrollTimer=setTimeout((function(){n._scrollTimer=null,n._check()}),300))}}),n._scrollNode=r,n._contentNode=o,n._tocViewportNode=i,n._tocData=a,n._offsetTop=l;var u=r;return r===document.scrollingElement&&(u=document),kc(Je(n),u,"scroll",n._checkHandler,{passive:!0}),n}return et(t,e),Ke(t,[{key:"enableOutsideCheck",value:function(){this._outsideCheckStatus=!0}},{key:"disableOutsideCheck",value:function(){this._outsideCheckStatus=!1}},{key:"destroy",value:function(){}},{key:"reset",value:function(){this._checkHandler()}},{key:"ignoreScrollOnce",set:function(e){this._ignoreScrollOnce=e}},{key:"update",value:function(e){this._tocData=e,this._check()}},{key:"_check",value:function(){var e={};this._outsideCheckStatus?(e.outside=this._checkOutside(),e.outside||(e.current=this._checkIndex())):e.current=this._checkIndex(),this.emit("change",e)}},{key:"_getViewportRect",value:function(){if(this._scrollNode===document.scrollingElement)return{top:this._offsetTop,left:0,bottom:window.innerHeight,right:window.innerWidth,height:window.innerHeight,width:window.innerWidth};var e=this._scrollNode.getBoundingClientRect();return{top:e.top+this._offsetTop,left:e.left,bottom:e.bottom,right:e.right,height:e.height-this._offsetTop,width:e.width}}},{key:"_checkOutside",value:function(){if(this._scrollNode===document.scrollingElement){var e=this._contentNode.getBoundingClientRect(),t=this._getViewportRect();if(e.bottom<=t.top||e.top>=t.bottom)return!0}return!1}},{key:"_checkIndex",value:function(){var e,t=null===(e=this._tocData)||void 0===e?void 0:e.length;if(!t)return null;var n=this._getViewportRect(),r=Math.ceil(n.height/3),o={top:n.top,bottom:n.top+r,height:r},i=Pqe(o,this._contentNode,this._tocData,0,t-1);i=function(e,t,n,r){if(-1===r)return r;var o=r-1,i=Tqe(t,n[r].id);return i&&o>=0&&i.top-e.top>e.height/2?o:r}(o,this._contentNode,this._tocData,i);var a=this._tocData[i];return a?a.id:null}}]),t}(ut);function Pqe(e,t,n,r,o){kt(r<=o,"plugins/toc/src/common/toc-watcher.ts:188");var i=Math.ceil((o+r)/2),a=Tqe(t,n[i].id);if(!a)return-1;var l=a.top,u=a.bottom;return l>=e.top&&l=e.bottom?r-1>=0?r-1:-1:(e.top,r):l>=e.bottom?Pqe(e,t,n,r,Math.max(i-1,r)):u<=e.top?Pqe(e,t,n,Math.min(i+1,o),o):i}function Sqe(e,t,n,r){if(0===r)return r;var o=r-1,i=Tqe(t,n[o].id);return i&&i.bottom<=e.top?r:Sqe(e,t,n,o)}function Tqe(e,t){var n=e.querySelector('[id="'.concat(t,'"]'));return n?n.getBoundingClientRect():null}function Aqe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return jqe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jqe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function jqe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?this._renderToc(r):this._renderPlaceholder(r))}},{key:"_renderPlaceholder",value:function(e){return nc().createElement("div",{className:"ne-toc-placeholder"},nc().createElement("div",{className:"ne-toc-placeholder-ind"}),this._renderToc(e))}},{key:"_renderToc",value:function(e){var t=this,n=this.props.onClick,r=e.map((function(e,r){var o=e.id,i=e.text,a=e.depth,l=[e.selected?"ne-toc-selected":null,e.hasChild?"ne-toc-parent-item":null,e.isChild?"ne-toc-child-item":null];return nc().createElement("div",{key:"".concat(o,"-").concat(r),"data-id":o,className:Kf.apply(void 0,["ne-toc-item ne-toc-depth-".concat(a)].concat(l))},nc().createElement("div",{className:"ne-toc-item-inner"},t._renderCollapse(e),nc().createElement("div",{className:"ne-toc-item-text",onClick:function(e){e.preventDefault(),n(o),t._tocWatcher.ignoreScrollOnce=!0,t.setState({selected:o})},title:i},t._renderText(i,o))))}));return nc().createElement("div",{className:"ne-toc-view-inner",ref:this._scrollNodeRef},nc().createElement("div",{ref:this._tocContentRef,className:"ne-toc-content"},r))}},{key:"_renderText",value:function(e,t){var n=e;return e.includes("")&&(n=e.split("").map((function(e,t){return 0===t?nc().createElement("span",{className:"prefix",key:"prefix"},e):e}))),n&&this.props.allowShowHash?nc().createElement("a",{href:"#".concat(t)},n):n}},{key:"_renderCollapse",value:function(e){var t=this;if(!e.hasChild)return null;var n=e.collapsed?"ne-rotate-270":"";return nc().createElement("div",{className:"ne-toc-fold-btn",onClick:function(n){n.preventDefault(),t._toggleFolding(e.id)}},nc().createElement(tD,{className:n,type:"review-arrow-down",size:16}))}},{key:"_toggleAllFold",value:function(e,t){if(e)this._collapsedMap={};else{var n,r=Aqe(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;this._collapsedMap[o]||(this._collapsedMap[o]=!0)}}catch(e){r.e(e)}finally{r.f()}}this.forceUpdate()}},{key:"_toggleFolding",value:function(e){this._collapsedMap[e]?delete this._collapsedMap[e]:this._collapsedMap[e]=!0,this.forceUpdate()}},{key:"_toggleNormalViewStatus",value:function(e,t){var n,r,o,i,a=this,l="boolean"==typeof e?e:!this.state.allowNormalView,u=document.querySelector(".ne-toc-pin-tooltip");this.props.eventEmitter.emit("pinStatusChange",l),t&&localStorage.setItem(Cqe,Number(l)),l?(this.setState({allowNormalView:l}),null===(i=(o=this.props).onLayout)||void 0===i||i.call(o,{width:305})):(null===(r=null===(n=this._tocRootRef)||void 0===n?void 0:n.current)||void 0===r||r.classList.add("ne-force-hide"),null==u||u.setAttribute("ne-force-tooltip-hide","true"),setTimeout((function(){var e,t;a._tocRootRef.current&&(a._tocRootRef.current.classList.remove("ne-force-hide"),a.setState({allowNormalView:l}),null===(t=(e=a.props).onLayout)||void 0===t||t.call(e,{width:39}))}),0),setTimeout((function(){null==u||u.removeAttribute("ne-force-tooltip-hide")}),1e3))}},{key:"_reset",value:function(e){this.state.current!==e&&(e&&this._makeVisible(e),this.setState({selected:e}))}},{key:"_makeVisible",value:function(e){var t,n=null===(t=this._tocContentRef.current)||void 0===t?void 0:t.querySelector('.ne-toc-item[data-id="'.concat(e,'"]'));if(n){var r=this._scrollNodeRef.current.getBoundingClientRect(),o=n.getBoundingClientRect();(o.top<=r.top+10||o.bottom>=r.bottom-10)&&(this._scrollNodeRef.current.scrollTop+=o.top-(r.top+r.height/2))}}},{key:"_needFold",value:function(e){var t,n=Aqe(e);try{for(n.s();!(t=n.n()).done;)if(t.value.hasChild)return!0}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"_getAllNeedFoldId",value:function(e,t){var n,r,o=Aqe(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;(null===(n=i.children)||void 0===n?void 0:n.length)>0&&(this._collapsedMap[i.id]||t.push(i.id),this._getAllNeedFoldId(i.children,t))}}catch(e){o.e(e)}finally{o.f()}return t}}]),t}(tc.Component);function Fqe(e,t,n){return t=Qe(t),Xe(e,Lqe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Lqe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lqe=function(){return!!e})()}Object.defineProperty(Mqe,"TYPE_NORMAL",{enumerable:!0,configurable:!0,writable:!0,value:"normal"}),Object.defineProperty(Mqe,"TYPE_SMALL",{enumerable:!0,configurable:!0,writable:!0,value:"small"}),Object.defineProperty(Mqe,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{type:Mqe.TYPE_NORMAL,allowShowHash:!1,offsetTop:0,onClick:function(){},initNormalView:!0,onLayout:function(){}}});var Uqe=function(e){function t(e,n,r,o){var i,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];Ye(this,t),i=Fqe(this,t),Object.defineProperty(Je(i),"parentNode",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(i),"editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_mountNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(i),"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_view",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(i),"_pinStatus",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(i),"_hoverTimeout",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(i),"eventEmitter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_dispose",{enumerable:!0,configurable:!0,writable:!0,value:null}),i._option=o,i.editor=n,i.renderer=r;var l=new ut;i.eventEmitter=l,i._pinStatus=i._option.isDefaultNormalView(),n.on("layoutChange",(function(){l.emit("change")})),r.on("typographyChange",(function(){l.emit("change")}));var u=i.editor.editorNode;return l.on("pinStatusChange",(function(e){var t,r,o,a;n.emitEvent("tocViewStatusChange",e),i._pinStatus=e,e?(null===(t=i._mountNode)||void 0===t||t.classList.remove("ne-small-toc-sidebar"),null===(r=i._mountNode)||void 0===r||r.classList.add("ne-normal-toc-sidebar"),null==u||u.classList.add("ne-normal-toc")):(null===(o=i._mountNode)||void 0===o||o.classList.add("ne-small-toc-sidebar"),null===(a=i._mountNode)||void 0===a||a.classList.remove("ne-normal-toc-sidebar"),null==u||u.classList.remove("ne-normal-toc"))})),a&&i.init(e,l),i}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this,r=document.querySelector("#siteTipGuide");this._mountNode=hd("div",{className:["ne-toc-sidebar",r?" skip-bottom":""]});var o=this._mountNode;this._mountNode.addEventListener("mouseenter",(function(){o.classList.remove("skip-bottom"),n._hoverTimeout=setTimeout((function(){o.classList.add("ne-toc-sidebar-hover"),n._hoverTimeout=null}),350)})),this._mountNode.addEventListener("mouseleave",(function(){n._hoverTimeout&&(clearTimeout(n._hoverTimeout),n._hoverTimeout=null),r&&o.classList.add("skip-bottom"),o.classList.remove("ne-toc-sidebar-hover")})),e.appendChild(this._mountNode),this._view=Iwe.render(Mqe,{toc:[],allowShowHash:this._option.isAllowModifyHash(),eventEmitter:t,scrollNode:this.editor.scrollNode,contentNode:this.editor.renderer.domRootNode,onClick:function(e){n.emit("tocPositionChange",e),n._scrollTo(e)},offsetTop:40,initNormalView:this._option.isDefaultNormalView()},this._mountNode)}},{key:"destroy",value:function(){this.removeAllListeners(),this._dispose&&(this._dispose.dispose(),this._dispose=null),this._mountNode&&(this._mountNode.remove(),Iwe.unmount(this._mountNode))}},{key:"update",value:function(e){var t;null===(t=this._view)||void 0===t||t.rerender({toc:e})}},{key:"refresh",value:function(){var e,t,n;null===(n=null===(t=null===(e=this._view)||void 0===e?void 0:e.getReactRef())||void 0===t?void 0:t._tocWatcher)||void 0===n||n.reset()}},{key:"open",value:function(){var e;null===(e=this.editor.editorNode)||void 0===e||e.classList.add("ne-toc-visible")}},{key:"close",value:function(){var e;null===(e=this.editor.editorNode)||void 0===e||e.classList.remove("ne-toc-visible")}},{key:"toggle",value:function(){var e;null===(e=this.editor.editorNode)||void 0===e||e.classList.toggle("ne-toc-visible")}},{key:"getIsOpen",value:function(){var e;return!!(null===(e=this.editor.editorNode)||void 0===e?void 0:e.classList.contains("ne-toc-visible"))}},{key:"getPinStatus",value:function(){return this._pinStatus}},{key:"setNormalViewStatus",value:function(e){var t,n;null===(n=null===(t=this._view)||void 0===t?void 0:t.getReactRef())||void 0===n||n.setNormalViewStatus(e)}},{key:"toggleViewStatus",value:function(){var e,t;null===(t=null===(e=this._view)||void 0===e?void 0:e.getReactRef())||void 0===t||t.toggleViewStatus()}},{key:"_scrollTo",value:function(e){var t=this;this.renderer.scrollByNodeId(e),this._option.isAllowModifyHash()&&(location.hash=e);var n=this.renderer.domRootNode.querySelector('[id="'.concat(e,'"]'));if(n){var r=n.getBoundingClientRect(),o=this.editor.scrollNode.getBoundingClientRect();this._dispose=gs((function(){var e,i;(null===(i=null===(e=document.documentElement)||void 0===e?void 0:e.classList)||void 0===i?void 0:i.contains("layout-read-write"))?t.editor.scrollNode.scrollTop=Number(t.editor.scrollNode.scrollTop)+Number(r.top)-62-Number(n.clientHeight):t.editor.editorNode.classList.contains("layout-read-write")?t.editor.scrollNode.scrollTop+=r.top-42:t.editor.scrollNode.scrollTop+=r.top-o.top}))}}}]),t}(ut);function Vqe(e,t,n){return t=Qe(t),Xe(e,Hqe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Hqe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hqe=function(){return!!e})()}var zqe=function(e){function t(e){var n;return Ye(this,t),n=Vqe(this,t),Object.defineProperty(Je(n),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),n.plugin=e,n}return et(t,e),Ke(t,[{key:"execute",value:function(){this.plugin.toggleTocView()}}]),t}(Nu),Wqe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_tocSidebar",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_prevPinStatus",{enumerable:!0,configurable:!0,writable:!0,value:null}),t&&this.setTOCSidebar(t)}return Ke(e,[{key:"setTOCSidebar",value:function(e){this._tocSidebar=e}},{key:"check",value:function(e,t){var n=e.curr.width;if(this._tocSidebar){var r=this._tocSidebar.getPinStatus(),o=localStorage.getItem(Cqe),i=n>=905;if(o&&!t)return this._tocSidebar.setNormalViewStatus(!!Number(o));n<905&&r&&(this._prevPinStatus=!0,this._tocSidebar.setNormalViewStatus(!1)),i&&null!==this._prevPinStatus&&this._prevPinStatus&&!r&&(this._prevPinStatus=null,this._tocSidebar.setNormalViewStatus(!0))}}},{key:"checkIgnoreForce",value:function(e){this.check(e,!0)}}]),e}();function qqe(e,t,n){return t=Qe(t),Xe(e,$qe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($qe=function(){return!!e})()}var Kqe=function(e){function t(){var e;return Ye(this,t),e=qqe(this,t,arguments),Object.defineProperty(Je(e),"_tocSidebar",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_tocCollapse",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_remove",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"handleCollapseChange",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n,r;t.visible?null===(n=e._tocSidebar)||void 0===n||n.close():null===(r=e._tocSidebar)||void 0===r||r.open()}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this.option.isEnabled()&&e.registerCommand("toggleTocView",new zqe(this))}},{key:"afterInit",value:function(){var e=this;if(this.option.isEnabled()){var t=this.editor,n=this.renderer,r=[t.editorWrapNode.parentNode,t,n,this.option];this._tocSidebar=Cl(Uqe,r),this._tocCollapse=new Wqe(this._tocSidebar),this._tocSidebar.on("tocPositionChange",(function(t){e.editor.emitPluginEvent("tocPositionChange",t)})),n.once("document.create",(function(){var t;null===(t=e._tocSidebar)||void 0===t||t.open()})),t.kernel.onPluginEvent("tocChange",Cfe()((function(t){var n;null===(n=e._tocSidebar)||void 0===n||n.update(t)}),1e3)),t.onPluginEvent("sidebarVisibleChange",(function(t){var n;t||null===(n=e._tocSidebar)||void 0===n||n.refresh()})),t.on("enterMaxView",(function(){var t;null===(t=e._tocSidebar)||void 0===t||t.close()})),t.on("leaveMaxView",(function(){var t;null===(t=e._tocSidebar)||void 0===t||t.open()})),t.onPluginEvent("viewSizeChange",(function(){var t,n;null===(n=e._tocCollapse)||void 0===n||(t=n).check.apply(t,arguments)})),t.onPluginEvent("viewSizeChangeIgnoreForce",(function(){var t;null===(t=e._tocCollapse)||void 0===t||t.checkIgnoreForce(arguments.length<=0?void 0:arguments[0])}))}}},{key:"destroy",value:function(){var e,n;null===(e=this._tocSidebar)||void 0===e||e.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this),null===(n=this._remove)||void 0===n||n.call(this)}},{key:"openTocSidebar",value:function(){var e;null===(e=this._tocSidebar)||void 0===e||e.open()}},{key:"closeTocSidebar",value:function(){var e;null===(e=this._tocSidebar)||void 0===e||e.close()}},{key:"toggleTocSidebar",value:function(){var e;null===(e=this._tocSidebar)||void 0===e||e.toggle()}},{key:"toggleTocView",value:function(){var e;null===(e=this._tocSidebar)||void 0===e||e.toggleViewStatus()}},{key:"getToc",value:function(){return this.editor.kernel.requireService(xre.ID).getToc()}}]),t}(Wh);function Yqe(e,t,n){return t=Qe(t),Xe(e,Gqe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Gqe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gqe=function(){return!!e})()}Object.defineProperty(Kqe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"toc"}),Object.defineProperty(Kqe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Nqe}),Object.defineProperty(Kqe,"Service",{enumerable:!0,configurable:!0,writable:!0,value:kqe});var Jqe=function(e){function t(){return Ye(this,t),Yqe(this,t,arguments)}return et(t,e),Ke(t,[{key:"getCustomCardValue",value:function(){var e=this._cardValue,t=(e.$name,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o1?r-1:0),i=1;i1?r-1:0),i=1;i0&&(n.emit("change",{count:n._prevCtx.count,index:0}),n.emit("canReplace",n._prevCtx.jumpTo(n._index,!0)))),(null===(o=n._prevCtx)||void 0===o?void 0:o.count)||n.emit("clear")}),400)}),Object.defineProperty(Je(n),"handleSearchChange",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(n._replacing=!1,n._prevCtx){var e=n._prevCtx.count;n._index>=e&&(n._index=0),n.emit("change",{count:e,index:n._index}),n.emit("canReplace",n._prevCtx.jumpTo(n._index,!0))}}}),n}return et(t,e),Ke(t,[{key:"doSearchContext",value:function(e){return this.renderer.getService(mMe.ID).onSearch(e)}},{key:"destroy",value:function(){var e;null===(e=this._prevCtx)||void 0===e||e.destroy(),this.renderer=null,this._prevCtx=null,this.removeAllListeners()}},{key:"getSearchContext",value:function(){return this._prevCtx}},{key:"selectNext",value:function(){if(this._prevCtx){this._index++,this._index>=this._prevCtx.count&&(this._index=0);var e=this._prevCtx.jumpTo(this._index);this.emit("indexChange",this._index,e)}}},{key:"selectPrev",value:function(){if(this._prevCtx){this._index--,this._index<0&&(this._index=this._prevCtx.count-1);var e=this._prevCtx.jumpTo(this._index);this.emit("indexChange",this._index,e)}}},{key:"replace",value:function(e){var t;this._replacing||(this._replacing=!0,null===(t=this._prevCtx)||void 0===t||t.replace(this._index,e))}},{key:"replaceAll",value:function(e){var t;null===(t=this._prevCtx)||void 0===t||t.replaceAll(e)}},{key:"clear",value:function(){var e,t;null===(e=this._prevCtx)||void 0===e||e.destroy(),null===(t=this._prevCtx)||void 0===t||t.off("change",this.handleSearchChange),this._prevCtx=null,this.emit("clear")}}]),t}(ut);function C$e(e,t,n){return t=Qe(t),Xe(e,_$e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _$e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_$e=function(){return!!e})()}var N$e=function(e){function t(){var e;return Ye(this,t),e=C$e(this,t,arguments),Object.defineProperty(Je(e),"_inputRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this._inputRef.current,n=!1,r=null;this.props.autoFocus&&setTimeout((function(){var t;null===(t=e._inputRef.current)||void 0===t||t.focus()}),1),Ks.safari||vd(this,t,"keydown",(function(e){n=e.keyCode===Xs})),vd(this,t,"keydown",(function(t){"Enter"===t.key&&(t.shiftKey?e.props.onPrev():e.props.onNext())})),vd(this,t,"compositionstart",(function(){n=!0})),vd(this,t,"compositionend",(function(t){var o=t.target.value;o!==r&&(r=o,n=!1,e.props.onChange(o))})),vd(this,t,"input",(function(t){n||(r=t.target.value,e.props.onChange(r))}))}},{key:"render",value:function(){return nc().createElement("span",{className:"ant-input-affix-wrapper ne-ui-search-input"},nc().createElement("input",{placeholder:this.props.placeholder,type:"text",className:"ant-input",ref:this._inputRef,onKeyUp:this.props.onInputKeyUp,defaultValue:this.props.value}),nc().createElement("span",{className:"ne-ui-search-input-suffix"},this.props.suffix))}}]),t}(tc.Component);function O$e(e,t,n){return t=Qe(t),Xe(e,x$e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function x$e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x$e=function(){return!!e})()}Object.defineProperty(N$e,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onChange:function(e){},onPrev:function(){},onNext:function(){},onInputKeyUp:function(e){}}});var E$e=function(e){function t(e){var n;return Ye(this,t),n=O$e(this,t,[e]),Object.defineProperty(Je(n),"_isReset",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(n),"state",{enumerable:!0,configurable:!0,writable:!0,value:{selectedIndex:0,matchCount:0,canReplace:!0,searchValue:"",replaceValue:"",activeKey:"search"}}),Object.defineProperty(Je(n),"handleClose",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e,t,r,o;null===(t=(e=n.props).onClose)||void 0===t||t.call(e),null===(o=(r=n.props).afterClose)||void 0===o||o.call(r)}}),Object.defineProperty(Je(n),"_handleTabChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({activeKey:e})}}),Object.defineProperty(Je(n),"handleKeyUp",{enumerable:!0,configurable:!0,writable:!0,value:function(e){ed.isEscape(e)&&(e.stopPropagation(),e.preventDefault(),n.handleClose())}}),Object.defineProperty(Je(n),"_handleSearchChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n._isReset=!1,n.setState({searchValue:e}),n.props.onSearchTextChange(e)}}),Object.defineProperty(Je(n),"_onReplaceTextChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({replaceValue:e.target.value})}}),Object.defineProperty(Je(n),"_movePrev",{enumerable:!0,configurable:!0,writable:!0,value:function(){n._isReset?(n._isReset=!1,n.props.onSearchTextChange(n.state.searchValue)):n.props.searchContext.selectPrev()}}),Object.defineProperty(Je(n),"_moveNext",{enumerable:!0,configurable:!0,writable:!0,value:function(){n._isReset?(n._isReset=!1,n.props.onSearchTextChange(n.state.searchValue)):n.props.searchContext.selectNext()}}),Object.defineProperty(Je(n),"_handleReplaceClick",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.props.searchContext.replace(n.state.replaceValue||"")}}),Object.defineProperty(Je(n),"_handleReplaceAllClick",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.props.searchContext.replaceAll(n.state.replaceValue||"")}}),e.searchText&&(n.state.searchValue=e.searchText),n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.searchContext;gd(this,t,"change",(function(t){var n=t.count,r=t.index;e.setState({matchCount:n,selectedIndex:r})})),gd(this,t,"clear",(function(){e.setState({selectedIndex:0,matchCount:0})})),gd(this,t,"canReplace",(function(t){e.setState({canReplace:!!t})})),gd(this,t,"indexChange",(function(t,n){e.setState({selectedIndex:t,canReplace:!!n})}))}},{key:"render",value:function(){return nc().createElement("div",{className:"ne-ui-toolbar-overlay ne-ui-search-container ".concat(this.props.themeSelector),style:Object.assign({},this.props.position)},nc().createElement("div",{className:"ne-ui-search-panel"},nc().createElement("div",{className:"ne-ui-search-panel-close-btn",onClick:this.handleClose},nc().createElement(tD,{type:"close"})),nc().createElement(fRe,{activeKey:this.state.activeKey,onChange:this._handleTabChange},nc().createElement(fRe.TabPane,{tab:gc("查找"),key:"search"}),nc().createElement(fRe.TabPane,{tab:gc("替换"),key:"replace"})),nc().createElement("div",{className:"ne-ui-search-panel-content"},this.renderContent())))}},{key:"renderContent",value:function(){var e=this.state.canReplace,t="replace"===this.state.activeKey,n=t?nc().createElement("label",null,gc("替换为"),nc().createElement("span",{className:"ant-input-affix-wrapper ne-ui-replace-input"},nc().createElement("input",{onKeyUp:this.handleKeyUp,type:"text",placeholder:gc("请输入"),onChange:this._onReplaceTextChange,value:this.state.replaceValue,className:"ant-input"}))):null,r=this.state.matchCount>0;return nc().createElement("div",{className:"ne-ui-search-sub-panel"},nc().createElement("div",{className:"ne-ui-search-panel-item"},nc().createElement("label",null,gc("查找"),nc().createElement(N$e,{suffix:this._getSuffix(),onPrev:this._movePrev,onNext:this._moveNext,autoFocus:!0,placeholder:gc("请输入"),value:this.state.searchValue,onChange:this._handleSearchChange,onInputKeyUp:this.handleKeyUp})),n),nc().createElement("div",{className:"ne-ui-search-panel-item ne-ui-search-panel-btns"},t?nc().createElement(Swe,{onClick:this._handleReplaceAllClick,disabled:!r},gc("全部替换")):null,t?nc().createElement(Swe,{onClick:this._handleReplaceClick,disabled:!r||!e},gc("替换")):null,nc().createElement(Swe,{onClick:this._movePrev,disabled:0===this.state.matchCount},gc("上一个")),nc().createElement(Swe,{onClick:this._moveNext,disabled:0===this.state.matchCount},gc("下一个"))))}},{key:"_getSuffix",value:function(){return 0===this.state.matchCount?"0":"".concat(this.state.selectedIndex+1,"/").concat(this.state.matchCount)}}]),t}(tc.Component);Object.defineProperty(E$e,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onClose:function(){},onSearchTextChange:function(e){}}});var D$e=function(){function e(t,n){var r=this;Ye(this,e),Object.defineProperty(this,"editor",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"service",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_overlay",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resetCancel",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(this,"handleFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e,t;r.editor.renderer.isFocus()?null===(e=r.service)||void 0===e||e.reset():(r.resetCancel(),null===(t=r.service)||void 0===t||t.shouldIgnoreAlways())}})}return Ke(e,[{key:"_getSearchText",value:function(e){return(e.queryCommandValue("text")||"").replace(/\n/g,"")}},{key:"_getSearchPanelPosition",value:function(){return{top:120,right:20}}},{key:"openSearchPanel",value:function(e,t,n){var r=this,o=this._getSearchText(e);this._overlay=xj.open({containerNode:t,targetNode:document.body,autoClose:!1,reactComponent:nc().createElement(E$e,{searchText:o,boxNode:e.editBox,afterClose:function(){r.closeSearchPanel()},scrollNode:e.renderer.scrollNode,searchContext:n,onSearchTextChange:function(e){n.search(e)},position:this._getSearchPanelPosition(),themeSelector:e.theme.getThemeSelector()}),closeCallback:function(){e.renderer.focus({preventScroll:!0}),n.clear()}}),o&&n.search(o),e.renderer.on("focusstatuschange",this.handleFocusChange)}},{key:"closeSearchPanel",value:function(){var e=this;this._overlay&&this._overlay.cancel(),this._overlay=null,this.editor.off("focusstatuschange",this.handleFocusChange),this.resetCancel=dd((function(){var t;null===(t=e.service)||void 0===t||t.reset()}),100)}},{key:"handleSearchPanel",value:function(e,t,n){if(this._overlay)return this.closeSearchPanel();this.openSearchPanel(e,t,n)}},{key:"Overlay",get:function(){return this._overlay}}]),e}();function R$e(e,t,n){return t=Qe(t),Xe(e,P$e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function P$e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P$e=function(){return!!e})()}var S$e=function(e){function t(){var e;return Ye(this,t),e=R$e(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(tw);function T$e(e,t,n){return t=Qe(t),Xe(e,A$e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function A$e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(A$e=function(){return!!e})()}Object.defineProperty(S$e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(Ade.service.IAutoScrollService)});var j$e=function(e){function t(){var e;return Ye(this,t),e=T$e(this,t,arguments),Object.defineProperty(Je(e),"_utils",{enumerable:!0,configurable:!0,writable:!0,value:new D$e(e.editor,e.editor.renderer.getService(S$e.ID))}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e,t,n,r=this,o=this.editor.renderer.requireService(OTe.ID);o&&o.registerHotKey(DRe.openSearchPanel.name,Ks.desktop||(null===(n=null===(t=null===(e=this.editor)||void 0===e?void 0:e.renderer)||void 0===t?void 0:t.option)||void 0===n?void 0:n.virtualRendering)?["cmd","F"]:DRe.openSearchPanel.keys,(function(e){e.stop(),r._utils.handleSearchPanel(r.editor,r.editor.overlayContainer,r.pluginContext)}))}},{key:"onEvent",value:function(e){kt("click"===e,"plugins/search/src/editor/search-toolbar-descriptor.ts:47"),this._utils.handleSearchPanel(this.editor,this.editor.overlayContainer,this.pluginContext)}},{key:"getInitUIState",value:function(){return{disabled:this.disabled,icon:"t-searchreplace",className:"ne-ui-toolbar-search",tooltip:zRe.getTooltip(this.editor,DRe.openSearchPanel.text,DRe.openSearchPanel.name)}}},{key:"getUIState",value:function(){return{disabled:this.disabled||!this.editor.queryCommandEnabled("search")}}},{key:"close",value:function(){var e;null===(e=this._utils.Overlay)||void 0===e||e.cancel()}}]),t}(zRe);function I$e(e,t,n){return t=Qe(t),Xe(e,B$e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function B$e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B$e=function(){return!!e})()}Object.defineProperty(j$e,"Type",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});var M$e=function(e){function t(){var e;return Ye(this,t),e=I$e(this,t,arguments),Object.defineProperty(Je(e),"_pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._pluginContext=new k$e(this.renderer);var t=e.getService(URe.ID);null==t||t.registerToolbarWidget(ple.toolbar,{clazz:j$e,pluginContext:this._pluginContext})}},{key:"destroy",value:function(){this._pluginContext.destroy(),this._pluginContext=null,Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(Wh);function F$e(e,t,n){return t=Qe(t),Xe(e,L$e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function L$e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L$e=function(){return!!e})()}Object.defineProperty(M$e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:ple.pluginName});var U$e=function(e){function t(){var e;return Ye(this,t),e=F$e(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),Object.defineProperty(Je(e),"performance",{enumerable:!0,configurable:!0,writable:!0,value:new Rle}),e}return et(t,e),Ke(t)}(By);function V$e(e,t,n){return t=Qe(t),Xe(e,H$e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function H$e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H$e=function(){return!!e})()}Object.defineProperty(U$e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IMonitorKernelService")});var z$e=function(e){function t(){return Ye(this,t),V$e(this,t,arguments)}return et(t,e),Ke(t,[{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),i=1;i1?r-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];null==t||t.stopPropagation(),null==t||t.preventDefault();var r=oYe(e.props),o=e.ref.current.getBoundingClientRect(),i={x:0===r.indexOf("left")?o.left:o.right,y:o.top};e.props.onOpen(e.props.schedule,Object.assign(Object.assign({},i),{placement:r}),n)}}),Object.defineProperty(Je(e),"handleBeforeDrag",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.isDragging=!0;var n={x:t.pageX,y:t.pageY};setTimeout((function(){e.isDragging&&e.props.onBeforeDrag(e.props.schedule,n)}),150)}}),Object.defineProperty(Je(e),"handleClearDrag",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.isDragging=!1}}),Object.defineProperty(Je(e),"handleBeforeResize",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.props.onBeforeResize(e.props.schedule)}}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){this.props.newScheduleId===this.props.schedule.id&&this.handleOpenSchedule(void 0,!0)}},{key:"componentDidUpdate",value:function(e){var t=this;e.resizeScheduleId&&!this.props.resizeScheduleId?(this.ignoreSelectSchedule=!0,setTimeout((function(){t.ignoreSelectSchedule=!1}),0)):this.ignoreSelectSchedule=!1}},{key:"render",value:function(){var e,t,n=this.props,r=n.schedule,o=n.date,i=n.activeScheduleId,a=r.isStartDate(o),l=r.id===i,u=(t=rYe(e=this.props),e.dragScheduleId===e.schedule.id&&(t.lineStyle.opacity=0),t),c=u.lineStyle,s=u.labelStyle,d=u.leftArrowStyle,f=u.rightArrowStyle,h=u.isShowControl;return nc().createElement("div",{className:this.getClassName(),ref:this.ref,style:c,"data-id":r.id,"data-active":l,"data-is-start":a,"data-line":"true","data-schedule-line":"true","data-control":String(h),onClick:this.handleSelectSchedule,onDoubleClick:this.handleOpenSchedule},a?nc().createElement("div",{className:this.getClassName("label"),style:s}):nc().createElement("div",{className:this.getClassName("right-arrow"),style:f}),nc().createElement("div",{className:this.getClassName("title"),"data-not-title":!r.title,onMouseDown:this.handleBeforeDrag,onMouseUp:this.handleClearDrag},r.title||gc("添加日程标题")),h?nc().createElement("div",{className:this.getClassName("control"),onMouseDown:this.handleBeforeResize}):nc().createElement("div",{className:this.getClassName("left-arrow"),style:d}))}}]),t}(tc.Component);function uYe(e,t,n){return t=Qe(t),Xe(e,cYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function cYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cYe=function(){return!!e})()}var sYe=PDe.Option,dYe=function(e){function t(e){var n,r,o,i,a,l;Ye(this,t),n=uYe(this,t,[e]),Object.defineProperty(Je(n),"titleRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"debounceSyncValue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"changeValueCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"getValue",{enumerable:!0,configurable:!0,writable:!0,value:function(){return{colorIndex:n.state.colorIndex,title:n.state.title,desc:n.state.desc,start:n.state.start,end:n.state.end}}}),Object.defineProperty(Je(n),"handleClose",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.changeValue({name:"title",value:n.state.title,debounce:!1}),n.changeValue({name:"desc",value:n.state.desc,debounce:!1}),n.props.onClose()}}),Object.defineProperty(Je(n),"handleOverlayClose",{enumerable:!0,configurable:!0,writable:!0,value:function(e){!1===e&&n.props.onOverlayClose&&n.props.onOverlayClose()}}),Object.defineProperty(Je(n),"syncValue",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t,r){(0!==n.changeValueCount||"title"!==e||t)&&(n.changeValueCount+=1,n.props.onChange({id:n.props.schedule.id,name:e,value:t,sync:r}))}}),Object.defineProperty(Je(n),"changeValue",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=e.name,r=e.value,o=e.debounce;"object"===We(t)?n.setState(t):n.setState(Ja({},t,r)),o?n.debounceSyncValue(t,r,!1):n.syncValue(t,r)}}),Object.defineProperty(Je(n),"handleChangeColorIndex",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.changeValue({name:"colorIndex",value:e})}}),Object.defineProperty(Je(n),"handleChangeTitle",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return function(t){n.changeValue({name:"title",value:t.target.value,debounce:e})}}}),Object.defineProperty(Je(n),"handleChangeDesc",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return function(t){n.changeValue({name:"desc",value:t.target.value,debounce:e})}}}),Object.defineProperty(Je(n),"handleChangeDate",{enumerable:!0,configurable:!0,writable:!0,value:function(e){if(e){var t=cn(e,2),r=t[0],o=t[1];r&&o&&n.changeValue({name:{start:Que(r),startDate:r,end:Que(o),endDate:o}})}}}),Object.defineProperty(Je(n),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar-schedule-panel")}),Object.defineProperty(Je(n),"renderTitle",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.renderItem(null,nc().createElement(hj.TextArea,{className:n.getClassName("textarea","textarea-title"),"data-testid":n.getClassName("title"),ref:n.titleRef,placeholder:gc("添加日程标题"),autoSize:{minRows:1,maxRows:3},value:n.state.title||"",onPressEnter:n.handleClose,onChange:n.handleChangeTitle(!0),onBlur:n.handleChangeTitle(!1)}))}}),Object.defineProperty(Je(n),"renderColorSelect",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.theme;return n.renderItem(null,nc().createElement(PDe,{className:n.getClassName("color-select"),value:n.state.colorIndex,getPopupContainer:function(e){return n.props.popupContainer||e.parentNode},defaultActiveFirstOption:!1,dropdownClassName:n.getClassName("color-select-dropdown"),dropdownMatchSelectWidth:!1,onChange:n.handleChangeColorIndex,onDropdownVisibleChange:n.handleOverlayClose,size:"small"},oce.map((function(t,r){return nc().createElement(sYe,{key:r,value:r},nc().createElement("div",{className:n.getClassName("color-select-option")},nc().createElement("div",{className:n.getClassName("color-select-option-status"),"data-selected":n.state.colorIndex===r}),nc().createElement("div",{className:n.getClassName("color-select-option-box")},nc().createElement("div",{className:n.getClassName("color-select-option-box-content"),style:{background:e.getColorByToken(t.line)}})),nc().createElement("div",{className:n.getClassName("color-select-option-name")},t.name)))}))))}}),Object.defineProperty(Je(n),"renderDivider",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.renderItem(null,nc().createElement(UNe,{className:n.getClassName("divider")}))}}),Object.defineProperty(Je(n),"renderDatePicker",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.renderItem(nc().createElement("div",{className:n.getClassName("icon","icon-calendar","icon-calendar-e")}),nc().createElement(LNe.RangePicker,{locale:"zhCN"===mc.getLanguage()?VCe:void 0,className:n.getClassName("date-picker"),"data-testid":n.getClassName("date-picker"),getPopupContainer:function(){return n.props.popupContainer||document.body},bordered:!1,value:[n.state.startDate,n.state.endDate],onChange:n.handleChangeDate,onOpenChange:n.handleOverlayClose}))}}),Object.defineProperty(Je(n),"renderDesc",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.renderItem(nc().createElement("div",{className:n.getClassName("icon","icon-desc","icon-desc-e")}),nc().createElement(hj.TextArea,{className:n.getClassName("textarea","textarea-desc"),"data-testid":n.getClassName("desc"),placeholder:gc("添加说明"),autoSize:{minRows:1,maxRows:4},value:n.state.desc||"",onPressEnter:n.handleClose,onChange:n.handleChangeDesc(!0),onBlur:n.handleChangeDesc(!1)}))}}),Object.defineProperty(Je(n),"renderItem",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){return nc().createElement("div",{className:n.getClassName("item")},nc().createElement("div",{className:n.getClassName("item-side")},e),nc().createElement("div",{className:n.getClassName("item-content")},t))}}),Object.defineProperty(Je(n),"renderButton",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement("div",{className:n.getClassName("button-box"),"data-testid":n.getClassName("button-box")},nc().createElement(yS,{title:gc("删除")},nc().createElement("div",{className:n.getClassName("delete-btn"),onClick:n.props.onDelete},nc().createElement(tD,{type:"icon-delete"}))),nc().createElement(yS,{title:gc("关闭")},nc().createElement("div",{className:n.getClassName("close-btn"),onClick:n.handleClose},nc().createElement(tD,{type:"close"}))))}});var u=null!==(r=n.props.schedule.start)&&void 0!==r?r:null,c=null!==(o=n.props.schedule.end)&&void 0!==o?o:null;return n.state={colorIndex:null!==(i=n.props.schedule.colorIndex)&&void 0!==i?i:0,title:null!==(a=n.props.schedule.title)&&void 0!==a?a:null,desc:null!==(l=n.props.schedule.desc)&&void 0!==l?l:null,start:u,startDate:u?Zue(u):null,end:c,endDate:c?Zue(c):null},n.debounceSyncValue=ig()(n.syncValue,100),n.changeValueCount=0,n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e,t=this;(null===(e=this.titleRef)||void 0===e?void 0:e.current)&&!this.state.title&&setTimeout((function(){var e,n;null===(n=null===(e=t.titleRef.current)||void 0===e?void 0:e.focus)||void 0===n||n.call(e)}),200)}},{key:"render",value:function(){return nc().createElement("div",{className:this.getClassName()},this.renderButton(),this.renderTitle(),this.renderColorSelect(),this.renderDivider(),this.renderDatePicker(),this.renderDesc())}}]),t}(tc.Component);function fYe(e,t,n){return t=Qe(t),Xe(e,hYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hYe=function(){return!!e})()}var pYe=function(e){function t(e){var n;return Ye(this,t),n=fYe(this,t,[e]),Object.defineProperty(Je(n),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar-popover")}),Object.defineProperty(Je(n),"handleVisibleChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({isShowPopover:e}),!1===e&&(n.props.onClose(void 0,!0),n.props.onOverlayClose&&n.props.onOverlayClose())}}),n.state={isShowPopover:!0},n}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this;return nc().createElement(Fj,{className:this.getClassName(),overlayClassName:this.getClassName("overlay"),visible:this.state.isShowPopover,placement:this.props.pos.placement,getPopupContainer:function(){return e.props.popupContainer||document.body},destroyTooltipOnHide:!0,trigger:"click",onVisibleChange:this.handleVisibleChange,content:nc().createElement(dYe,{popupContainer:this.props.popupContainer,schedule:this.props.schedule,onChange:this.props.onChange,onClose:this.props.onClose,onDelete:this.props.onDelete,onOverlayClose:this.props.onOverlayClose,theme:this.props.theme})},nc().createElement("div",{className:this.getClassName("fake-line"),style:{left:this.props.pos.x,top:this.props.pos.y}}))}}]),t}(tc.Component);function vYe(e,t,n){return t=Qe(t),Xe(e,mYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mYe=function(){return!!e})()}var gYe=function(e){function t(e){var n;Ye(this,t),n=vYe(this,t,[e]),Object.defineProperty(Je(n),"ref",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar-schedule-snapshot")}),Object.defineProperty(Je(n),"moving",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.ref.current&&(n.ref.current.style.transform="translate(".concat(e.x,"px, ").concat(e.y,"px)"))}}),Object.defineProperty(Je(n),"getLines",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=e.boxInfo,r=e.scheduleId,o=t.top,i=t.left;return pn(e.boxNode.querySelectorAll('.ne-card-calendar-schedule-line[data-id="'.concat(r,'"]'))).map((function(e,t){var r=e.getBoundingClientRect();return nc().createElement("div",{className:n.getClassName("line"),key:t,style:{top:r.top-o,left:r.left-i,width:r.width,height:r.height},dangerouslySetInnerHTML:{__html:e.outerHTML}})}))}});var r=e.boxInfo,o=r.width,i=r.height,a=n.getLines(e);return n.state={lines:a,style:{width:o,height:i}},n}return et(t,e),Ke(t,[{key:"shouldComponentUpdate",value:function(e,t){return t.lines.length!==this.state.lines.length}},{key:"componentDidMount",value:function(){0===this.state.lines.length&&this.setState({lines:this.getLines(this.props)})}},{key:"render",value:function(){return nc().createElement("div",{className:this.getClassName(),ref:this.ref,style:this.state.style},this.state.lines)}}]),t}(tc.Component);function bYe(e,t,n){return t=Qe(t),Xe(e,yYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function yYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yYe=function(){return!!e})()}var wYe=function(e){function t(){var e;return Ye(this,t),e=bYe(this,t,arguments),Object.defineProperty(Je(e),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar-header")}),Object.defineProperty(Je(e),"handleGotoPrevMonth",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.stopPropagation(),e.changeCurrentDate("subtract",tce,1)}}),Object.defineProperty(Je(e),"handleGotoNextMonth",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.stopPropagation(),e.changeCurrentDate("add",tce,1)}}),Object.defineProperty(Je(e),"changeCurrentDate",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n,r){var o=Zue(e.props.cardData.getCurrentDate())[t](r,n);e.props.onCurrentDateChange(Que(o))}}),Object.defineProperty(Je(e),"handleGotoToday",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=Que(Xue());e.props.cardData.getCurrentDate()!==t&&e.props.onCurrentDateChange(t)}}),Object.defineProperty(Je(e),"handleClick",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.props.onClick(t)}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){var e=Zue(this.props.cardData.getCurrentDate());return nc().createElement("div",{className:this.getClassName(),"data-testid":this.getClassName(),onClick:this.handleClick},nc().createElement("div",{className:this.getClassName("month-selector")},nc().createElement("div",{className:this.getClassName("month-selector-prev"),"data-testid":this.getClassName("prev-month-button"),onClick:this.handleGotoPrevMonth},nc().createElement(tD,{type:"arrow-left"})),nc().createElement("div",{className:this.getClassName("month-selector-date"),"data-testid":this.getClassName("month")},e.format(gc("YYYY 年 M 月"))),nc().createElement("div",{className:this.getClassName("month-selector-next"),"data-testid":this.getClassName("next-month-button"),onClick:this.handleGotoNextMonth},nc().createElement(tD,{type:"arrow-right"}))),nc().createElement(Swe,{className:this.getClassName("today-button"),"data-testid":this.getClassName("today-button"),onClick:this.handleGotoToday},gc("今天")))}}]),t}(tc.Component);function kYe(e,t,n){return t=Qe(t),Xe(e,CYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function CYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CYe=function(){return!!e})()}var _Ye=function(e){function t(){var e;return Ye(this,t),e=kYe(this,t,arguments),Object.defineProperty(Je(e),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar-content-week-names")}),e}return et(t,e),Ke(t,[{key:"render",value:function(){for(var e=[],t=this.props.cardData.getStartWeekDay(),n=0;n2&&void 0!==arguments[2]&&arguments[2],o=n.containerRef.current.getBoundingClientRect();n.setState({isShowPopover:!0,newScheduleId:"",popoverInfo:{pos:Object.assign(Object.assign({},t),{x:t.x-o.left,y:t.y-o.top}),schedule:e,isNewSchedule:r,isChangedSchedule:!1}}),n.props.onEditingStatusChange(!0)}}),Object.defineProperty(Je(n),"handleCloseSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||e.stopPropagation(),(null===(t=n.state.popoverInfo)||void 0===t?void 0:t.isNewSchedule)&&!1===(null===(r=n.state.popoverInfo)||void 0===r?void 0:r.isChangedSchedule)){n.deleteSchedule(n.state.activeScheduleId);var i=n.props.cardData.getColorIndex()-1;i<0&&(i=0),n.props.onColorIndexChange(i%oce.length)}(o||n.state.popoverInfo.isChangedSchedule)&&n.props.onSyncData(),n.setState({isShowPopover:!1,popoverInfo:{},activeScheduleId:""}),n.props.onEditingStatusChange(!1)}}),Object.defineProperty(Je(n),"handleUpdateSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(){for(var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.id,i=r.name,a=r.value,l=r.sync,u=void 0===l||l,c=r.index,s=n.props.cardData.getScheduleList(),d=null,f=0;f0&&(nYe()(i,(function(n,o){if(0===o){var a=n.end;if(e.y<=a)return t=o,r=n.index,!1}else{var l=i[o-1].end,u=n.end;if(lu&&(t=i.length,r=a)}if(-1!==t&&l){var c=n.state.highlightDateSchedulePosInfo,s=c.freeSlot,d=c.blackOrders;if(d.length===i.length)t=s.length?s[0]:-1;else if(d.includes(t)){for(var f=t;d.includes(f);)f+=1;s.length&&f>s[s.length-1]&&(f=s[0]),t=f}}return{posIndex:t,scheduleIndex:r}}}),Object.defineProperty(Je(n),"handleBeforeResizeSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({activeScheduleId:e.id,isResizingSchedule:!0,resizeSchedule:e,resizeScheduleId:e.id,boxInfo:n.getBoxInfo()})}}),Object.defineProperty(Je(n),"handleBeforeDragSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){!n.startMovingPos&&t&&(n.startMovingPos=Object.assign({},t)),n.setState({activeScheduleId:e.id,isDraggingSchedule:!0,dragSchedule:e,dragScheduleId:e.id,boxInfo:n.getBoxInfo()},(function(){n.setState({isShowScheduleSnapshot:!0})}))}}),Object.defineProperty(Je(n),"handleResizeOrDragSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t,r;if(e.stopPropagation(),e.preventDefault(),n.state.isResizingSchedule||n.state.isDraggingSchedule){var o={x:e.pageX,y:e.pageY};n.startMovingPos||(n.startMovingPos=Object.assign({},o));var i=n.findBoxIndex(o),a=i.rowIndex,l=i.colIndex;if(-1!==a&&-1!==l){var u=n.props.cardData.getDateRows()[a][l];if(n.state.isResizingSchedule){var c=n.state.resizeSchedule;if(u.isSameOrAfter(c.startDate,ece)&&!c.endDate.isSame(u,ece)){n.handleUpdateSchedule({id:c.id,name:"endDate",value:u,sync:!1});var s=ace.cloneWithUpdateValue(c,"endDate",u);n.setState({resizeSchedule:s,boxInfo:Object.assign(Object.assign({},n.state.boxInfo),{rowRecords:n.makeRowRecords()})})}}if(n.state.isDraggingSchedule){if(n.state.highlightDate!==u)n.setState({highlightDate:u,highlightDateSchedulePosInfo:n.getHighlightDateSchedulePosInfo(u)});else{var d=n.findHighlightDateSchedulePosIndex(o),f=d.posIndex,h=d.scheduleIndex;n.state.dragSchedulePosIndex===f&&n.state.dragScheduleIndex===h||n.setState({dragScheduleIndex:h,dragSchedulePosIndex:f,dragScheduleColorIndex:n.state.dragSchedule.colorIndex})}(null===(r=null===(t=n.snapshotRef)||void 0===t?void 0:t.current)||void 0===r?void 0:r.moving)&&n.snapshotRef.current.moving({x:o.x-n.startMovingPos.x,y:o.y-n.startMovingPos.y})}}}}}),Object.defineProperty(Je(n),"handleAfterResizeOrDragSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e){e.stopPropagation(),e.preventDefault();var t=n.state,r=t.isResizingSchedule,o=t.isDraggingSchedule;if(r||o){var i=n.state,a=i.highlightDate,l=i.dragSchedule,u=i.dragScheduleIndex,c=i.resizeSchedule;o&&l&&a&&n.handleUpdateSchedule({id:l.id,name:{startDate:a,endDate:a.add(l.duration,ece)},index:u}),r&&c&&n.handleUpdateSchedule({id:c.id,name:"end",value:c.end}),n.setState({isResizingSchedule:!1,isDraggingSchedule:!1,resizeSchedule:null,resizeScheduleId:"",dragSchedule:null,dragScheduleId:"",dragScheduleIndex:-1,dragSchedulePosIndex:-1,dragScheduleColorIndex:-1,boxInfo:null,isShowScheduleSnapshot:!1,highlightDate:null,highlightDateSchedulePosInfo:null}),n.startMovingPos=null}}}),Object.defineProperty(Je(n),"renderHeader",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(wYe,{cardData:n.props.cardData,onClick:n.handleCloseSchedule,onCurrentDateChange:n.props.onCurrentDateChange})}}),Object.defineProperty(Je(n),"renderWeekNames",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(_Ye,{cardData:n.props.cardData})}}),Object.defineProperty(Je(n),"renderCalendarCellSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t,r,o){var i=n.props.cardData.getScheduleList(),a=n.props.cardData.getDateScheduleMap(),l=n.state,u=l.activeScheduleId,c=l.newScheduleId,s=l.resizeScheduleId,d=l.dragScheduleId,f=l.dragSchedulePosIndex,h=l.dragScheduleColorIndex,p=Que(e),v=i.filter((function(e){return e.include(p)})).sort((function(e,t){var n=a[p];return(n[e.id]||0)-(n[t.id]||0)}));return v.map((function(i,a){var l,m=e.unix(),g=i.isStartDate(p),b={},y={},w=a===v.length-1;return o&&d!==i.id&&-1!==f&&(f===a&&(b.backgroundColor=n.props.theme.getColorByToken(oce[h].line)),w&&f>=v.length&&(y.backgroundColor=n.props.theme.getColorByToken(oce[h].line))),l=g||0===t?nc().createElement(lYe,{key:"".concat(m,"-").concat(i.id,"-schedule"),theme:n.props.theme,date:e,colIndex:t,rowIndex:r,schedule:i,activeScheduleId:u,newScheduleId:c,resizeScheduleId:s,dragScheduleId:d,onSelect:n.handleSelectedSchedule,onOpen:n.handleOpenSchedule,onBeforeResize:n.handleBeforeResizeSchedule,onBeforeDrag:n.handleBeforeDragSchedule}):nc().createElement("div",{key:"".concat(m,"-").concat(i.id,"-holder"),"data-id":i.id,className:n.getClassName("content-box-row-cell-schedule-holder"),"data-line":"true"}),nc().createElement(nc().Fragment,{key:"".concat(m,"-").concat(i.id,"-fragment")},nc().createElement("div",{className:n.getClassName("content-box-row-cell-schedule-index"),key:"".concat(m,"-").concat(i.id,"-index-start"),style:b}),l,w&&nc().createElement("div",{className:n.getClassName("content-box-row-cell-schedule-index"),key:"".concat(m,"-").concat(i.id,"-index-end"),style:y}))}))}}),Object.defineProperty(Je(n),"renderCalendarCell",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t,r){var o=n.state,i=o.date,a=o.resizeSchedule,l=o.highlightDate,u="none";a&&a.include(e)&&(u=a.isSameDaySchedule()?"full":a.isStartDate(e)?"left":a.isEndDate(e)?"right":"half");var c="",s=nce-1,d=n.props.cardData.getDateRows().length-1;0===t?0===r?c="top-left-corner":r===d&&(c="bottom-left-corner"):t===s&&(0===r?c="top-right-corner":r===d&&(c="bottom-right-corner")),l&&l.isSame(e,ece)&&(u="full");var f="none"!==u;return nc().createElement("div",{className:n.getClassName("content-box-row-cell"),key:e.unix(),"data-testid":n.getClassName("date-cell"),"data-testtoday":e.isToday(),"data-border":u,"data-border-style":c,"data-unix":e.unix(),onClick:n.handleCreateSchedule(e)},nc().createElement("div",{className:n.getClassName("content-box-row-cell-date"),"data-today":e.isToday(),"data-fade":e.month()!==i.month()},nc().createElement("div",{className:n.getClassName("content-box-row-cell-date-text")},e.format("D")),nc().createElement("div",{className:n.getClassName("content-box-row-cell-date-plus"),onClick:n.handleCreateSchedule(e)})),n.renderCalendarCellSchedule(e,t,r,f))}}),Object.defineProperty(Je(n),"renderCalendarBox",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.cardData.getDateRows(),t=n.state.date;return nc().createElement("div",{className:n.getClassName("content-box"),ref:n.boxRef,onMouseMove:n.handleResizeOrDragSchedule,onMouseUp:n.handleAfterResizeOrDragSchedule},e.map((function(r,o){return nc().createElement("div",{className:n.getClassName("content-box-row"),key:"".concat(t.month(),"-").concat(o),"data-testid":n.getClassName("date-row"),"data-last":o===e.length-1},r.map((function(e,t){return n.renderCalendarCell(e,t,o)})))})),n.renderScheduleSnapshot())}}),Object.defineProperty(Je(n),"renderContent",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement("div",{className:n.getClassName("content")},n.renderWeekNames(),n.renderCalendarBox())}}),Object.defineProperty(Je(n),"renderPopover",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.state.isShowPopover?nc().createElement(pYe,{schedule:n.state.popoverInfo.schedule,pos:n.state.popoverInfo.pos,popupContainer:n.props.overlayContainer,onChange:n.handleUpdateSchedule,onClose:n.handleCloseSchedule,onDelete:n.onDeleteSchedule,onOverlayClose:n.handleOverlayClose,theme:n.props.theme}):null}}),Object.defineProperty(Je(n),"renderMask",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.state.isShowPopover?nc().createElement("div",{className:n.getClassName("mask"),"data-testid":n.getClassName("mask"),onClick:n.handleCloseSchedule}):null}}),Object.defineProperty(Je(n),"renderScheduleSnapshot",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.state.isShowScheduleSnapshot?nc().createElement(gYe,{ref:n.snapshotRef,scheduleId:n.state.dragSchedule.id,boxNode:n.boxRef.current,boxInfo:n.state.boxInfo}):null}});var r=e.cardData.getCurrentDate();return n.state={currentDate:r,date:Zue(r),activeScheduleId:"",newScheduleId:"",resizeScheduleId:"",dragScheduleId:"",isShowPopover:!1,popoverInfo:{},isResizingSchedule:!1,resizeSchedule:null,isDraggingSchedule:!1,isShowScheduleSnapshot:!1,dragSchedule:null,dragScheduleIndex:-1,dragSchedulePosIndex:-1,dragScheduleColorIndex:-1,highlightDateSchedulePosInfo:null,boxInfo:null,highlightDate:null},n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){vd(this,document,"keydown",this.handleDeleteOrCloseSchedule,{capture:!0})}},{key:"render",value:function(){return nc().createElement("div",{className:this.getClassName(),"data-testid":this.getClassName(),ref:this.containerRef},this.renderHeader(),this.renderContent(),this.renderPopover(),this.renderMask())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.cardData.getCurrentDate();return n!==t.currentDate?{currentDate:n,activeScheduleId:"",newScheduleId:"",dragScheduleId:"",date:Zue(n)}:null}}]),t}(tc.Component);function DYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DYe=function(){return!!e})()}var RYe=function(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,DYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.cardData.setStartWeekDay(e.startWeekDay),this.uiViewProxy=Iwe.render(EYe,{theme:this.editor.theme,cardData:this.cardData,overlayContainer:this.editor.innerOverlayContainer,onCurrentDateChange:function(e){t.cardData.setCurrentDate(e),t.cardData.sync(!1)},onColorIndexChange:function(e){t.cardData.setColorIndex(e),t.cardData.sync(!1)},onScheduleChange:function(e){t.cardData.setSchedule(e),!1!==e.sync&&t.cardData.sync(!1)},onSyncData:function(){t.cardData.sync(!1)},onRedo:function(e){t.handleRedo(e)},onUndo:function(e){t.handleUndo(e)},onEditingStatusChange:function(e){e?t.containerNode.parentNode.parentNode.classList.add("ne-card-editing"):t.containerNode.parentNode.parentNode.classList.remove("ne-card-editing")},onOverlayClose:function(){t.editor.execCommand("focus",{preventScroll:!0})}},this.containerNode),jc(this,this.editor.theme,"themeChange",(function(){var e;t.destroyed||null===(e=t.uiViewProxy)||void 0===e||e.rerender({theme:t.editor.theme})}))}},{key:"destroy",value:function(){nu().unmountComponentAtNode(this.containerNode),this.uiViewProxy=null,Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"closePopover",value:function(){this.uiViewProxy&&this.uiViewProxy.getReactRef().closePopover()}},{key:"blur",value:function(){Cr(Qe(t.prototype),"blur",this).call(this),this.closePopover()}},{key:"handleRedo",value:function(e){this.isFocused&&(e.preventDefault(),e.stopPropagation(),this.cardData.redo())}},{key:"handleUndo",value:function(e){this.isFocused&&(e.preventDefault(),e.stopPropagation(),this.cardData.undo())}}]),t}(e)};function PYe(e,t,n){return t=Qe(t),Xe(e,SYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function SYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SYe=function(){return!!e})()}var TYe=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i0&&void 0!==arguments[0]&&arguments[0];return function(n){e.props.onTitleChange(n.target.value,t)}}}),Object.defineProperty(Je(e),"handleChangeType",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.props.onTypeChange(t)}}),Object.defineProperty(Je(e),"handleChangeDeadline",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.props.onDeadlineChange(t.toISOString())}}),Object.defineProperty(Je(e),"handleAddVote",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){null==t||t.stopPropagation(),e.props.onVoteChange({type:"add",sync:!0},n)}}),Object.defineProperty(Je(e),"handleUpdateVote",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(r){e.props.onVoteChange({type:Rce,item:Object.assign(Object.assign({},t),{value:r.target.value}),sync:n})}}}),Object.defineProperty(Je(e),"handleDeleteVote",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return function(n){null==n||n.stopPropagation(),e.deleteVote(t),e.itemRefs={}}}}),Object.defineProperty(Je(e),"deleteVote",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.props.onVoteChange({type:Pce,item:t,sync:!0})}}),Object.defineProperty(Je(e),"renderSetting",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardData.getType(),n=e.props.cardData.getTitle();return nc().createElement("div",{className:e.getClassName("setting")},nc().createElement("div",{className:e.getClassName("setting-type")},nc().createElement(PDe,{value:t,size:"large",onChange:e.handleChangeType},Ace.map((function(e){return nc().createElement(zYe,{key:e.value,value:e.value},gc(e.name))})))),nc().createElement("div",{className:e.getClassName("setting-title")},nc().createElement(hj,{className:e.getClassName("setting-title-input"),"data-testid":e.getClassName("title-input"),placeholder:gc("请输入投票标题"),ref:e.titleRef,size:"large",value:n,onPressEnter:e.handleFocusNextItem(-1),onChange:e.handleChangeTitle(!1),onBlur:e.handleChangeTitle(!0)})))}}),Object.defineProperty(Je(e),"renderVoteList",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardData.getItems(),n=(null==t?void 0:t.length)>2;return nc().createElement("div",{className:e.getClassName("vote-list")},t.map((function(t,r){return e.renderVoteItem(t,r,n)})))}}),Object.defineProperty(Je(e),"renderVoteItem",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n,r){return nc().createElement("div",{className:e.getClassName("vote-item"),key:t.id,"data-testid":e.getClassName("vote-item")},nc().createElement(hj,{className:e.getClassName("vote-item-input"),"data-testid":e.getClassName("vote-item-input"),"data-testindex":n,size:"large",ref:e.bindItemRef(n),placeholder:gc("选项 {no}",{no:n+1}),value:t.value,onPressEnter:e.handleFocusNextItem(n),onChange:e.handleUpdateVote(t,!1),onBlur:e.handleUpdateVote(t,!0)}),nc().createElement("div",{className:e.getClassName("vote-item-side")},r?e.renderVoteItemDeleteButton(t):null))}}),Object.defineProperty(Je(e),"renderVoteItemDeleteButton",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n,r=nc().createElement("div",{"data-testid":e.getClassName("vote-item-delete-button")},nc().createElement(tD,{type:"icon-delete",size:20,className:e.getClassName("vote-item-delete")})),o=nc().createElement("div",{className:e.getClassName("vote-item-delete"),onClick:e.handleDeleteVote(t)},r);return(null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.length)&&(o=nc().createElement(vDe,{"data-testid":e.getClassName("vote-item-confirm"),title:gc("确定删除该选项?"),okText:gc("确认"),cancelText:gc("取消"),overlayClassName:e.getClassName("popconfirm"),getPopupContainer:function(){return e.props.overlayContainer||document.body},destroyTooltipOnHide:!0,onConfirm:e.handleDeleteVote(t),onVisibleChange:e.handleOverlayClose},r)),o}}),Object.defineProperty(Je(e),"renderOperation",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement("div",{className:e.getClassName("operation")},nc().createElement("div",{className:e.getClassName("operation-wrap"),onClick:e.handleAddVote,"data-testid":e.getClassName("add-button")},nc().createElement(tD,{className:e.getClassName("operation-wrap-icon"),type:"add"}),gc("添加选项")))}}),Object.defineProperty(Je(e),"renderDeadline",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardData.getDeadline(),n=oh()(t);return nc().createElement("div",{className:e.getClassName("deadline")},nc().createElement("div",{className:e.getClassName("deadline-wrap")},nc().createElement("div",{className:e.getClassName("deadline-wrap-label")},gc("截止日期")),nc().createElement(LNe,{className:e.getClassName("deadline-wrap-date-picker"),"data-testid":e.getClassName("date-picker"),showTime:!0,allowClear:!1,showToday:!1,getPopupContainer:function(){return e.props.overlayContainer||document.body},value:n,size:"large",onChange:e.handleChangeDeadline,onOpenChange:e.handleOverlayClose,suffixIcon:nc().createElement(tD,{type:"clock-circle"})})))}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){return nc().createElement("div",{className:this.getClassName(),"data-testid":this.getClassName()},this.renderSetting(),this.renderVoteList(),this.renderOperation(),this.renderDeadline())}}]),t}(tc.Component);function qYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qYe=function(){return!!e})()}function $Ye(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,qYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;this.uiViewProxy=Iwe.render(WYe,{overlayContainer:this.editor.innerOverlayContainer,cardData:this.cardData,focus:!1,onTitleChange:function(t,n){e.cardData.setTitle(t,n),n&&e.cardData.sync(!1)},onTypeChange:function(t){e.cardData.setType(t),e.cardData.sync(!1)},onDeadlineChange:function(t){e.cardData.setDeadline(t),e.cardData.sync(!1)},onVoteChange:function(t,n){e.cardData.setVote(t),t.sync&&e.cardData.sync(!1),n&&setTimeout((function(){n()}),0)},onOverlayClose:function(){e.editor.execCommand("focus",{preventScroll:!0})}},this.containerNode)}},{key:"destroy",value:function(){nu().unmountComponentAtNode(this.containerNode),this.uiViewProxy=null,Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"focusTitle",value:function(){this.uiViewProxy.getReactRef().focusTitle()}}]),t}(e)}var KYe=$Ye;function YYe(e,t,n){return t=Qe(t),Xe(e,GYe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function GYe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(GYe=function(){return!!e})()}var JYe=function(e){function t(e){var n;Ye(this,t);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i Browser: 输入 URL\nactivate Browser\n\nBrowser -> Server: 请求服务器\nactivate Server\n\nServer -> Server: 模板渲染\nnote right of Server: 这是一个注释\n\nServer -> Browser: 返回 HTML\ndeactivate Server\n\nBrowser --\x3e User\n\n@enduml',src:"https://cdn.nlark.com/__puml/b11b6192390c95750c4b71c2580ff529.svg"},"use-case":{id:"use-case",name:"用例图 (Use Case)",text:"@startuml\n\nactor A\nactor B\n\nA -up-> (up)\nA -right-> (center)\nA -down-> (down)\nA -left-> (left)\n\nB -up-> (up)\nB -left-> (center)\nB -right-> (right)\nB -down-> (down)\n\n@enduml",src:"https://lark-assets-prod.oss-cn-hangzhou.aliyuncs.com/__puml/a7908b49c22b05104624bebc463cd25d.svg"},class:{id:"class",name:"类图 (Class)",text:"@startuml\n\nclass Car {\n color\n model\n +start()\n #run()\n #stop()\n}\n\nCar <|- Bus\nCar *-down- Tire\nCar *-down- Engine\nBus o-down- Driver\n\n@enduml",src:"https://lark-assets-prod.oss-cn-hangzhou.aliyuncs.com/__puml/e9cf4eba3cdaf0cf1bc68065406d9d43.svg"},flowchart:{id:"flowchart",name:"流程图 (Flow)",text:"@startuml\n\nstart\n\n:step 1;\n\nif (try) then (true)\n :step 2;\n :step 3;\nelse (false)\n :error;\n end\nendif\n\nstop\n\n@enduml",src:"https://lark-assets-prod.oss-cn-hangzhou.aliyuncs.com/__puml/48a1408972f20bc1f4837aa807254692.svg"},activity:{id:"activity",name:"活动图 (Activity)",text:"@startuml\n\n|A Section|\nstart\n:step1;\n|#AntiqueWhite|B Section|\n:step2;\n:step3;\n|A Section|\n:step4;\n|B Section|\n:step5;\nstop\n\n@enduml",src:"https://lark-assets-prod.oss-cn-hangzhou.aliyuncs.com/__puml/2aa76dcc256f08335083bd039b5b4e49.svg"},component:{id:"component",name:"组件图 (Component)",text:"@startuml\n\nDataAccess - [First Component]\n[First Component] ..> HTTP : use\n\n@enduml",src:"https://lark-assets-prod.oss-cn-hangzhou.aliyuncs.com/__puml/6b9de2b03b69402b018655ed491fcd34.svg"},state:{id:"state",name:"状态图 (State)",text:"@startuml\n\n[*] --\x3e State1\nState1 --\x3e [*]\nState1 : this is a string\nState1 : this is another string\n\nState1 -> State2\nState2 --\x3e [*]\n\n@enduml",src:"https://lark-assets-prod.oss-cn-hangzhou.aliyuncs.com/__puml/0d1c26fb399ed9669a2e1a29e98b4de4.svg"},object:{id:"object",name:"对象图 (Object)",text:"@startuml\n\nobject Car\nobject Bus\nobject Tire\nobject Engine\nobject Driver\n\nCar <|- Bus\nCar *-down- Tire\nCar *-down- Engine\nBus o-down- Driver\n\n@enduml",src:"https://lark-assets-prod.oss-cn-hangzhou.aliyuncs.com/__puml/1af2d7ebc3e554c752289bcce7679cdb.svg"}},mermaid:{flowchart:{id:"flowchart",name:"Flow Chart",text:"\n graph TD\n A[Start] --\x3e B{Is it?};\n B --\x3e|Yes| C[OK];\n C --\x3e D[Rethink];\n D --\x3e B;\n B ----\x3e|No| E[End];\n "},sequence:{id:"sequence",name:"Sequence Diagram",text:"\n sequenceDiagram\n participant John\n participant Alice\n Alice->>John: Hello John, how are you?\n John--\x3e>Alice: Great!\n "},class:{id:"class",name:"Class Diagram",text:"\n classDiagram\n Animal <|-- Duck\n Animal <|-- Fish\n Animal <|-- Zebra\n Animal : +int age\n Animal : +String gender\n Animal: +isMammal()\n Animal: +mate()\n class Duck{\n +String beakColor\n +swim()\n +quack()\n }\n class Fish{\n -int sizeInFeet\n -canEat()\n }\n class Zebra{\n +bool is_wild\n +run()\n }\n "},state:{id:"state",name:"State Diagram",text:"\n stateDiagram-v2\n [*] --\x3e Still\n Still --\x3e [*]\n\n Still --\x3e Moving\n Moving --\x3e Still\n Moving --\x3e Crash\n Crash --\x3e [*]\n "},er:{id:"er",name:"ER Diagram",text:"\n erDiagram\n CUSTOMER ||--o{ ORDER : places\n ORDER ||--|{ LINE-ITEM : contains\n CUSTOMER }|..|{ DELIVERY-ADDRESS : uses\n "},gantt:{id:"gantt",name:"Gantt",text:"\n gantt\n title A Gantt Diagram\n dateFormat YYYY-MM-DD\n section Section\n A task :a1, 2014-01-01, 30d\n Another task :after a1 , 20d\n section Another\n Task in sec :2014-01-12 , 12d\n another task : 24d\n "},pie:{id:"pie",name:"Pie Chart",text:'\n pie\n title Key elements in Product X\n "Calcium" : 42.96\n "Potassium" : 50.05\n "Magnesium" : 10.01\n "Iron" : 5\n '}},flowchart:{default:{id:"default",name:"Flowchart",text:"\n st=>start: Start\n e=>end\n op1=>operation: My Operation\n sub1=>subroutine: My Subroutine\n cond=>condition: Yes or No?\n io=>inputoutput: catch something...\n para=>parallel: parallel tasks\n\n st->op1->cond\n cond(yes)->io->e\n cond(no)->para\n para(path1, bottom)->sub1(right)->op1\n para(path2, top)->op1\n "}},graphviz:{fsm:{id:"fsm",name:"Finite State Machine",text:'\ndigraph finite_state_machine {\n\trankdir=LR;\n\tsize="8,5"\n\tnode [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8;\n\tnode [shape = circle];\n\tLR_0 -> LR_2 [ label = "SS(B)" ];\n\tLR_0 -> LR_1 [ label = "SS(S)" ];\n\tLR_1 -> LR_3 [ label = "S($end)" ];\n\tLR_2 -> LR_6 [ label = "SS(b)" ];\n\tLR_2 -> LR_5 [ label = "SS(a)" ];\n\tLR_2 -> LR_4 [ label = "S(A)" ];\n\tLR_5 -> LR_7 [ label = "S(b)" ];\n\tLR_5 -> LR_5 [ label = "S(a)" ];\n\tLR_6 -> LR_6 [ label = "S(b)" ];\n\tLR_6 -> LR_5 [ label = "S(a)" ];\n\tLR_7 -> LR_8 [ label = "S(b)" ];\n\tLR_7 -> LR_5 [ label = "S(a)" ];\n\tLR_8 -> LR_6 [ label = "S(b)" ];\n\tLR_8 -> LR_5 [ label = "S(a)" ];\n}\n'}}};const fGe=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"getTemplates",value:function(e){return dGe[e]||null}}]),e}(),hGe=function(e){var t=e.type;return nc().createElement("span",{className:"ne-text-diagram-name"},function(e){var t=aGe.TEXT_DIAGRAMS.find((function(t){return t.type===e}));return t?t.name:""}(t))};var pGe=aGe.EDITOR_LAYOUT;const vGe=function(e){var t=e.hotkeys,n=e.layout,r=e.handlePreviewButtonClick;return nc().createElement(yS,{title:ff(t.preview)},nc().createElement("button",{"data-testid":"ne-text-diagram-preview",size:"small",type:"button",className:uC()({"ne-text-diagram-action-preview":!0,"ne-text-diagram-action-preview-active":n===pGe.TWO_COLUMN}),onClick:r},nc().createElement(tD,{type:"preview-new"}),gc("预览")))},mGe=function(e){var t=e.collapsed,n=e.onClick;return nc().createElement("span",{className:uC()("ne-text-diagram-resize",{collapsed:t})},nc().createElement("span",{className:"ne-text-diagram-resize-handler",onClick:n},nc().createElement(tD,{type:"collapsed"})))},gGe=function(e){var t=e.type,n=e.getPopupContainer,r=e.switchType;return nc().createElement(KP,{trigger:["click"],getPopupContainer:n,placement:"bottomLeft",overlay:nc().createElement(RA,{onClick:function(e){var t=e.key;e.domEvent.stopPropagation(),r(t)}},aGe.TEXT_DIAGRAMS.map((function(e){return nc().createElement(RA.Item,{key:e.type,name:e.name.toLowerCase(),value:e.type,"data-diagram-type":e.name},e.name)})))},nc().createElement("a",{"data-testid":"ne-text-diagram-select",className:"ne-diagram-select"},function(e){for(var t=aGe.TEXT_DIAGRAMS,n=0,r=t.length;n1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i12)return null;var n=cde(5===e.length?e.slice(3):e.slice(2));if(null===n||n<1||n>31)return null;var r=new Date,o=r.getFullYear();if(o%100==0&&o%400==0||o%100!=0&&o%4==0){if(2===t&&n>29)return null}else if(2===t&&n>28)return null;return r.setFullYear(o,t-1,n)}return null}(e);return n?t.filter((function(e){return"/rq"===e.mainSearch})).map((function(e){return Object.assign(Object.assign({},e),{date:n,description:gc("插入日期")+lde(n)})})):null})),e.onPluginEvent("insertCardByUI:".concat(Kse.cardName),(function(t){var n=t.item;e.execCommand("insertCard",Kse.cardName,{date:n.date},!0)}))}}]),t}(Wh);Object.defineProperty(YJe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Kse.pluginName}),Object.defineProperty(YJe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:qJe});var GJe=[MRe,oBe,xMe,qLe,WUe,JUe,aVe,mTe,CTe,ATe,LTe,HTe,J$e,GTe,iAe,lje,sje,pje,kje,Pje,sBe,CBe,DBe,VBe,uTe,GBe,kMe,jMe,zMe,cFe,_Fe,RFe,IFe,LFe,GFe,rLe,mUe,kUe,wHe,nze,Wze,Yze,Xze,JWe,vqe,Kqe,c$e,M$e,$$e,$Ke,QKe,UYe,iGe,HGe,gJe,YJe];function JJe(e,t,n){return t=Qe(t),Xe(e,XJe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function XJe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(XJe=function(){return!!e})()}var QJe=function(e){function t(e){var n;return Ye(this,t),n=JJe(this,t),Object.defineProperty(Je(n),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"execute",value:function(e){this.renderer.kernel.execCommand("alert",e),this.renderer.focus({})}}]),t}(Nu);function ZJe(e,t,n){return t=Qe(t),Xe(e,eXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function eXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eXe=function(){return!!e})()}var tXe=function(e){function t(){var e;return Ye(this,t),e=ZJe(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_isFocused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_isHovered",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._rootNode=$y.createElement("ne-alert"),$y.setAttributeByChange(this._rootNode,e),this._bineEvent()}},{key:"_bineEvent",value:function(){var e=this;jc(this,this.pluginContext,"resetSelection",(function(t){t.alertNode===e._rootNode?e._isFocused||(e._isFocused=!0,e._rootNode.classList.add("focused"),e.pluginContext.emitAlertFocus(e._rootNode,e.viewNode.id)):e._isFocused&&(e._isFocused=!1,e._rootNode.classList.remove("focused"),e.pluginContext.emitAlertBlur(e._rootNode,e.viewNode.id))})),jc(this,this.pluginContext,"keydown",(function(){e._isFocused&&e.pluginContext.emitAlertBlur(e._rootNode,e.viewNode.id)})),kc(this,this._rootNode,"click",(function(t){var n,r;(null===(r=null===(n=t.target)||void 0===n?void 0:n.closest)||void 0===r?void 0:r.call(n,"ne-card, ne-oli-i"))||e.pluginContext.emitAlertClick(e._rootNode,e.viewNode.id)})),kc(this,this._rootNode,"mouseenter",(function(){e._isHovered=!0,e.pluginContext.emitAlertHover(e._rootNode,e.viewNode.id)})),kc(this,this._rootNode,"mouseleave",(function(){e._isHovered=!1}))}},{key:"destroy",value:function(){(this._isFocused||this._isHovered)&&this.pluginContext.emitAlertBlur(this._rootNode,this.viewNode.id),delete this._rootNode,Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"updateAttribute",value:function(e){$y.syncDOMAttrChange(this._rootNode,e)}},{key:"getMainDOMNode",value:function(){return this._rootNode}}]),t}(Ly);function nXe(e,t,n){return t=Qe(t),Xe(e,rXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rXe=function(){return!!e})()}var oXe=function(e){function t(e){var n;Ye(this,t),n=nXe(this,t),Object.defineProperty(Je(n),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e});var r=0;return e.on("selectionchange",(function(){var e=Date.now();requestAnimationFrame((function(){r>e||n._updateSelection(document.getSelection())}))})),e.on("contentchange",(function(){r=Date.now(),requestAnimationFrame((function(){n._updateSelection(document.getSelection())}))})),e.onForceRootNode("keydown",(function(){n.emit("keydown")})),e.onForceRootNode("input",(function(){n.emit("keydown")})),n}return et(t,e),Ke(t,[{key:"emitAlertFocus",value:function(e,t){this.renderer&&this.renderer.emitPluginEvent("alertFocus",{domNode:e,alertId:t})}},{key:"emitAlertBlur",value:function(e,t){this.renderer&&this.renderer.emitPluginEvent("alertBlur",{domNode:e,alertId:t})}},{key:"emitAlertHover",value:function(e,t){this.renderer&&this.renderer.emitPluginEvent("alertHover",{domNode:e,alertId:t})}},{key:"emitAlertClick",value:function(e,t){this.renderer&&this.renderer.emitPluginEvent("alertClick",{domNode:e,alertId:t})}},{key:"_updateSelection",value:function(e){if(e&&this.renderer&&this.renderer.domRootNode){var t=e.rangeCount>0?e.getRangeAt(0).commonAncestorContainer:null;if(t){var n=Nc(t,"ne-alert",this.renderer.domRootNode);n?this.emit("resetSelection",{alertNode:n}):this.emit("resetSelection",{alertNode:null})}}}},{key:"destroy",value:function(){this.removeAllListeners(),delete this.renderer}}]),t}(ut);function iXe(e,t,n){return t=Qe(t),Xe(e,aXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aXe=function(){return!!e})()}var lXe=function(e){function t(){return Ye(this,t),iXe(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.ATTR_NAME,name:"ne-alert-type",value:t}}}]),t}(bp);function uXe(e,t,n){return t=Qe(t),Xe(e,cXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function cXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cXe=function(){return!!e})()}var sXe=function(e){function t(){var e;return Ye(this,t),e=uXe(this,t,arguments),Object.defineProperty(Je(e),"_context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._context=new oXe(e),e.registerCommand("alert",new QJe(e)),e.registerBoxNode("alert",{clazz:tXe,pluginContext:this._context}),e.registerAttrTranslator("type",new lXe)}},{key:"destroy",value:function(){this._context.destroy(),delete this._context}}]),t}(rb);function dXe(e,t,n){return t=Qe(t),Xe(e,fXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function fXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fXe=function(){return!!e})()}Object.defineProperty(sXe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"alert"});var hXe=function(e){function t(e){var n;return Ye(this,t),n=dXe(this,t),Object.defineProperty(Je(n),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"execute",value:function(e,t){var n,r=e.node,o=e.originNode,i=e.offset,a=document.createRange();a.setStart(r,i),a.collapse(!0);var l=this.renderer.engine.transformDOMRange(a);"imageGallery"===(null===(n=null==o?void 0:o.dataset)||void 0===n?void 0:n.cardName)&&this._moveImageToGallery(o,t)||this.renderer.kernel.execCommand("moveImage",t,l.start,o)}},{key:"_moveImageToGallery",value:function(e,t){var n,r,o,i,a=null===(n=this.renderer.kernel.model.document)||void 0===n?void 0:n.getNodeById(t);if(!a||!a.isConnected||!a.hasCategory(ze.Card))return!1;var l=null===(o=null===(r=null==e?void 0:e._viewNode)||void 0===r?void 0:r._modelNode)||void 0===o?void 0:o.id;if(!l)return!1;var u=null===(i=this.renderer.kernel.model.document)||void 0===i?void 0:i.getNodeById(l);if(!u||!u.isConnected||!u.hasCategory(ze.Card))return!1;var c=[a.attrs.value];return this.renderer.emitPluginEvent("blockReset",!1),this.renderer.kernel.execCommand("moveImageToGallery",l,t,c)}}]),t}(Nu);function pXe(e,t,n){return t=Qe(t),Xe(e,vXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vXe=function(){return!!e})()}var mXe=function(e){function t(){return Ye(this,t),pXe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerCommand("moveImage",new hXe(e))}}]),t}(rb);function gXe(e,t,n){return t=Qe(t),Xe(e,bXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bXe=function(){return!!e})()}Object.defineProperty(mXe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:fM.pluginName});var yXe=function(e){function t(){return Ye(this,t),gXe(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.ATTR_NAME,name:PF,value:t}}}]),t}(bp);function wXe(e,t,n){return t=Qe(t),Xe(e,kXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kXe=function(){return!!e})()}var CXe=function(e){function t(){return Ye(this,t),wXe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator(TF.attr.alignment,new yXe);var t=e.requireService(OTe.ID);[DRe.alignmentLeft,DRe.alignmentRight,DRe.alignmentCenter,DRe.alignmentJustify].forEach((function(n){var r=n.name,o=n.keys,i=n.value;o&&t.registerHotKey(r,o,(function(t){t.stop(),e.execCommand(TF.command.alignment,i)}))}))}}]),t}(rb);function _Xe(e,t,n){return t=Qe(t),Xe(e,NXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NXe=function(){return!!e})()}Object.defineProperty(CXe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:TF.pluginName});var OXe=function(e){function t(e){var n;return Ye(this,t),n=_Xe(this,t),Object.defineProperty(Je(n),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:""}),n.attrName="ne-".concat(e),n}return et(t,e),Ke(t,[{key:"translate",value:function(){return{type:bp.ATTR_NAME,name:this.attrName,value:"true"}}}]),t}(bp);function xXe(e,t,n){return t=Qe(t),Xe(e,EXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function EXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EXe=function(){return!!e})()}var DXe=function(e){function t(){return Ye(this,t),xXe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this.kernel;e.registerAttrTranslator({bold:new OXe("bold"),italic:new OXe("italic"),underline:new OXe("underline"),strikethrough:new OXe("strikethrough"),emoji:new OXe("emoji")});var n=e.getService(OTe.ID);n&&[DRe.bold,DRe.italic,DRe.underline,DRe.strikethrough].forEach((function(e){var r=e.keys,o=e.name;r&&n.registerHotKey(o,r,(function(e){e.stop(),t.execCommand(o)}))}))}}]),t}(rb);function RXe(e,t,n){return t=Qe(t),Xe(e,PXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function PXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(PXe=function(){return!!e})()}Object.defineProperty(DXe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:tL.pluginName});var SXe=function(e){function t(e){var n;return Ye(this,t),n=RXe(this,t),Object.defineProperty(Je(n),"renderOrViewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){var n=this;return{type:bp.CUSTOM_NAME,name:"backgroundColor",value:function(e){e.setAttribute("ne-bg-color",t),e.style.backgroundColor=n.renderOrViewer.theme.toVisualValue(t)},remove:function(e){e.removeAttribute("ne-bg-color"),e.style.backgroundColor=""}}}}]),t}(bp);function TXe(e,t,n){return t=Qe(t),Xe(e,AXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function AXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AXe=function(){return!!e})()}var jXe=function(e){function t(){return Ye(this,t),TXe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator(hU.attr.bgColor,new SXe(e))}}]),t}(rb);function IXe(e,t,n){return t=Qe(t),Xe(e,BXe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function BXe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BXe=function(){return!!e})()}Object.defineProperty(jXe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:hU.pluginName});var MXe=function(e){function t(){return Ye(this,t),IXe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this.kernel;e.requireService(OTe.ID).registerHotKey(DRe.breakLine.name,DRe.breakLine.keys,(function(e){e.stop(),t.execCommand(jU.command.breakLine)}))}}]),t}(rb);function FXe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);if("TR"===t.startContainer.nodeName&&"TR"===n.endContainer.nodeName){var r=document.createRange();r.setStart(t.startContainer.childNodes[t.startOffset],0);var o=n.endContainer.childNodes[n.endOffset-1];return r.setEnd(o,o.childNodes.length),r}var i=document.createRange();return i.setStart(t.startContainer,t.startOffset),i.setEnd(n.endContainer,n.endOffset),i.cloneRange()}return null}},{key:"setRange",value:function(e,t,n,r){if(t.length>1){var o=Nc(t[0].startContainer,LXe);kt(o,"plugins/selection/src/common/dom-selection-helper.ts:75");var i=Gy(o).getContentDOMNode();return kt(i,"plugins/selection/src/common/dom-selection-helper.ts:78"),void e.setBaseAndExtent(i,0,i,i.childNodes.length)}var a=JXe(t[0]),l=a.startContainer,u=a.startOffset,c=a.endContainer,s=a.endOffset,d=a.collapsed;r===Sr.start?e.setBaseAndExtent(l,u,c,s):e.setBaseAndExtent(c,s,l,u),kt(e.getRangeAt(0).collapsed===d,"plugins/selection/src/common/dom-selection-helper.ts:108")}},{key:"createRange",value:function(e){return Ad.createRange(e)}},{key:"createRangeByNodeContents",value:function(e){kt(e.nodeType===Node.ELEMENT_NODE,"plugins/selection/src/common/dom-selection-helper.ts:116");var t=document.createRange();return t.selectNodeContents(e),t}},{key:"getFocusTableCell",value:function(e,t){return Nc(e.focusNode,LXe,t)}},{key:"isFocusInTable",value:function(e,t){return!!Nc(e.focusNode,"table",t)}},{key:"focusNodeInFirstCell",value:function(e,t){var n=Nc(e.focusNode,LXe,t);return!!n&&0===n.cellIndex&&0===Dd(n.parentNode)}},{key:"isAnchorInTable",value:function(e,t){return!!Nc(e.anchorNode,"table",t)}},{key:"getTableTailRangeByCellNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];kt(e.rangeCount>0,"plugins/selection/src/common/dom-selection-helper.ts:163");var r=e.focusNode,o=e.focusOffset,i=t;"TD"===t.nodeName&&(i=t.parentNode.parentNode.parentNode),kt(i&&"TABLE"===i.nodeName,"plugins/selection/src/common/dom-selection-helper.ts:173");var a=i.parentNode.parentNode.parentNode,l=e.getRangeAt(0).cloneRange();return n?(l.collapsed?GXe(l,a.parentNode,Dd(a)+1):l.endContainer===r&&l.endOffset===o?l.setEnd(a.parentNode,Dd(a)+1):l.setStart(a.parentNode,Dd(a)+1),YXe(l)):(l.setStart(a.parentNode,Dd(a)+1),l.collapse(!0),YXe(l))}},{key:"getTableHeadRangeByCellNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];kt(e.rangeCount>0,"plugins/selection/src/common/dom-selection-helper.ts:202");var r=e.focusNode,o=e.focusOffset,i=t;"TD"===t.nodeName&&(i=t.parentNode.parentNode.parentNode),kt(e.rangeCount>0&&i,"plugins/selection/src/common/dom-selection-helper.ts:212"),kt("TABLE"===i.nodeName,"plugins/selection/src/common/dom-selection-helper.ts:213");var a=i.parentNode.parentNode.parentNode,l=e.getRangeAt(0).cloneRange();return n?(l.collapsed||(l.endContainer===r&&l.endOffset===o?l.collapse(!0):l.collapse(!1)),GXe(l,a.parentNode,Dd(a)),YXe(l)):(l.setStart(a.parentNode,Dd(a)),l.collapse(!0),YXe(l))}},{key:"getTableTailRange",value:function(t,n){kt(t.rangeCount>0,"plugins/selection/src/common/dom-selection-helper.ts:241");var r=Nc(t.focusNode,LXe,n);return kt(r,"plugins/selection/src/common/dom-selection-helper.ts:250"),e.getTableTailRangeByCellNode(t,r)}},{key:"getTableHeadRange",value:function(t,n){kt(t.rangeCount>0,"plugins/selection/src/common/dom-selection-helper.ts:259");var r=Nc(t.focusNode,LXe,n);return e.getTableHeadRangeByCellNode(t,r)}},{key:"transformRange",value:function(e,t){if(e.collapsed)return{anchor:"start",focus:"start",ranges:[e]};var n=Nc(e.startContainer,UXe,t),r=Nc(e.endContainer,UXe,t);return n||r?n===r||r&&(null==n?void 0:n.contains(r))||n&&(null==r?void 0:r.contains(n))?$Xe(e,t,"TABLE"===(null==n?void 0:n.nodeName)||"TABLE"===(null==r?void 0:r.nodeName)||"NE-TABLE-BOX"===(null==n?void 0:n.nodeName)||"NE-TABLE-BOX"===(null==r?void 0:r.nodeName)):function(e,t){var n=Nc(e.startContainer,UXe,t),r=Nc(e.endContainer,UXe,t),o=e.startContainer,i=e.startOffset,a=e.endContainer,l=e.endOffset;if(n){var u=Nc(n,VXe,t);o=u.parentNode,i=Dd(u)}if(r)if(r!==n){var c=Nc(r,VXe,t);a=c.parentNode,l=Dd(c)+1}else a=o,l=i+1;var s=document.createRange();return s.setStart(o,i),s.setEnd(a,l),YXe(s)}(e,t):YXe(e)}},{key:"getCellNode",value:function(e,t,n){var r,o;if("NE-TABLE-BOX"===(null==e?void 0:e.nodeName)){var i=e.querySelector("tbody");if(0===t)return null===(r=null==i?void 0:i.firstChild)||void 0===r?void 0:r.firstChild;if(1===t)return null===(o=null==i?void 0:i.lastChild)||void 0===o?void 0:o.lastChild}return Nc(e,LXe,n)}},{key:"getCellEndPoint",value:function(e){var t=document.getSelection(),n=t.rangeCount;if(0===n)return null;if(1===n){var r=t.getRangeAt(0);return{focusCellNode:this.getCellNode(t.focusNode,t.focusOffset,e),anchorCellNode:this.getCellNode(t.anchorNode,t.anchorOffset,e),firstCellNode:this.getCellNode(r.startContainer,r.startOffset,e),lastCellNode:this.getCellNode(r.endContainer,r.endOffset,e)}}for(var o=[],i=0;i=0,"plugins/selection/src/common/dom-selection-helper.ts:698"),t.cells[e][o]=n;for(var i=1,a=r;i1,"plugins/selection/src/common/dom-selection-helper.ts:885");var n,r,o=HXe.getCellEndPoint(t),i=o.anchorCellNode,a=o.focusCellNode,l=Nc(e[0].startContainer,LXe,t),u=Nc(e[e.length-1].endContainer,LXe,t);if(kt(i&&a&&l,"plugins/selection/src/common/dom-selection-helper.ts:899"),i===l||a===u)n="start",r="end";else if(a===l||i===u)n="end",r="start";else{var c=parseInt(a.getAttribute("data-col"),10),s=parseInt(i.getAttribute("data-col"),10),d=Dd(a.parentNode),f=Dd(i.parentNode);kt(c>=0&&s>=0,"plugins/selection/src/common/dom-selection-helper.ts:922"),kt(c!==s&&d!==f,"plugins/selection/src/common/dom-selection-helper.ts:924"),c>s?d>=f?(r="end",n="start"):(r="topRight",n="bottomLeft"):c===s?(kt(d!==f,"plugins/selection/src/common/dom-selection-helper.ts:937"),d>f?(r="end",n="start"):(r="start",n="end")):d<=f?(r="start",n="end"):(r="bottomLeft",n="topRight")}return{anchor:n,focus:r,ranges:e}}(c.map((function(t){return(e=e.cloneRange()).selectNodeContents(t),e})),t)}var s=r.parentNode;kt("NE-COLUMNS-CONTENT"===s.nodeName&&"NE-COLUMN"===r.nodeName&&"NE-COLUMN"===o.nodeName,"plugins/selection/src/common/dom-selection-helper.ts:629");var d,f=[],h=!1,p=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return FXe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FXe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(s.children);try{for(p.s();!(d=p.n()).done;){var v=d.value;v!==r&&v!==o||(h=!h),(h||v===r||v===o)&&((e=e.cloneRange()).selectNodeContents(v),f.push(e))}}catch(e){p.e(e)}finally{p.f()}return function(e,t){kt(e.length>1,"plugins/selection/src/common/dom-selection-helper.ts:1213");var n,r,o=HXe.getCellEndPoint(t),i=o.anchorCellNode,a=o.focusCellNode,l=Nc(e[0].startContainer,"ne-column",t),u=Nc(e[e.length-1].endContainer,"ne-column",t);return kt(i&&a,"plugins/selection/src/common/dom-selection-helper.ts:1228"),i===l||a===u?(n="start",r="end"):a!==l&&i!==u||(n="end",r="start"),{anchor:n,focus:r,ranges:e}}(f,t)}function KXe(e,t,n,r,o){for(var i=e.cells,a=e.map,l=new Set,u=t;u<=n;u++)for(var c=r;c<=o;c++){var s=i[u][c],d=a.get(s);if(d.realMinRowIndexn)return KXe(e,t,d.realMaxRowIndex,r,o);if(d.realMaxColIndex>o)return KXe(e,t,n,r,d.realMaxColIndex);l.add(s)}return Array.from(l)}function YXe(e){if(e.collapsed)return{anchor:Sr.start,focus:Sr.start,ranges:[e]};var t=document.getSelection(),n=e.startContainer,r=e.startOffset,o=e.endContainer,i=e.endOffset,a=t.anchorNode,l=t.anchorOffset,u=t.focusNode,c=t.focusOffset;if(n===o&&["TD","NE-COLUMN"].includes(n.nodeName))return{anchor:Sr.start,focus:Sr.end,ranges:[e]};if(n===a&&r===l||o===u&&i===c)return{anchor:Sr.start,focus:Sr.end,ranges:[e]};if(o===a&&i===l||n===u&&r===c)return{anchor:Sr.end,focus:Sr.start,ranges:[e]};var s=Nc(u,cw),d=Nc(a,cw);kt(s&&d,"plugins/selection/src/common/dom-selection-helper.ts:850");var f=n.childNodes[r],h=o.childNodes[i-1];return f===s||h===d?{anchor:Sr.end,focus:Sr.start,ranges:[e]}:(kt(f===d||h===s,"plugins/selection/src/common/dom-selection-helper.ts:866"),{anchor:Sr.start,focus:Sr.end,ranges:[e]})}function GXe(e,t,n){kt(e.collapsed,"plugins/selection/src/common/dom-selection-helper.ts:965"),-1===e.comparePoint(t,n)?e.setStart(t,n):e.setEnd(t,n)}function JXe(e){var t;if(e.collapsed&&Ld(e.startContainer)&&0===e.startOffset&&"\ufeff"===e.startContainer.data&&(e.setEnd(e.startContainer,1),e.collapse(!1)),e.collapsed&&e.startContainer.nodeType===Node.ELEMENT_NODE&&"NE-CARD"===(null===(t=e.startContainer.childNodes[e.startOffset])||void 0===t?void 0:t.nodeName)&&e.startContainer.childNodes[e.startOffset-1]&&"NE-CARD"!==e.startContainer.childNodes[e.startOffset-1].nodeName)return e.selectNodeContents(e.startContainer.childNodes[e.startOffset-1]),e.collapse(!1),e;var n=HXe.currentRange();if(e=e.cloneRange(),!n)return e;var r=e,o=r.startContainer,i=r.startOffset,a=r.endContainer,l=r.endOffset,u=r.collapsed,c=XXe({node:o,offset:i},{node:n.startContainer,offset:n.startOffset});if(e.setStart(c.node,c.offset),u)return e.collapse(!0),e;var s=XXe({node:a,offset:l},{node:n.endContainer,offset:n.endOffset});return e.setEnd(s.node,s.offset),e}function XXe(e,t){var n=e.node,r=e.offset;if(n.nodeType!==Node.ELEMENT_NODE)return e;var o=function(e){var t=e.node;t.nodeType===Node.TEXT_NODE&&(t=t.parentNode);var n=Yy(t);return n&&(n.isTextFillerNode()||n.isInlineFillerNode())?t:null}(t);if(!o)return e;var i=n.childNodes[r],a=Yy(i);if(i&&i===o&&a&&(a.isInlineFillerNode()||a.isTextFillerNode()))return{node:o,offset:1};var l=n.childNodes[r-1],u=Yy(l);return l&&l===o&&u&&(u.isInlineFillerNode()||u.isTextFillerNode())?{node:o,offset:1}:e}function QXe(e,t){var n,r,o=e.startContainer,i=e.startOffset,a=e.endContainer,l=e.endOffset;if("NE-TABLE-BOX"===o.nodeName&&Nc(a,LXe,t)){var u=HXe.getCellNode(o,i,t);return kt(u,"plugins/selection/src/common/dom-selection-helper.ts:1137"),HXe.createRange({startContainer:u,startOffset:0===i?0:u.childNodes.length,endContainer:a,endOffset:l})}if("NE-TABLE-BOX"===a.nodeName&&Nc(o,LXe,t)){var c=HXe.getCellNode(a,l,t);return kt(c,"plugins/selection/src/common/dom-selection-helper.ts:1155"),HXe.createRange({startContainer:o,startOffset:i,endContainer:c,endOffset:0===l?0:c.childNodes.length})}if("TD"===a.nodeName&&(null===(r=(n=a).closest)||void 0===r?void 0:r.call(n,"tfoot"))&&0===l){var s=document.getSelection();s.collapseToEnd(),s.modify("move","left","character");var d=s.getRangeAt(0),f=d.endContainer,h=d.endOffset,p=HXe.createRange({startContainer:o,startOffset:i,endContainer:f,endOffset:h});return s.removeAllRanges(),s.addRange(p),QXe(p,t)}if("TR"===o.nodeName){kt("TR"===a.nodeName,"plugins/selection/src/common/dom-selection-helper.ts:1191");var v=o.childNodes[i],m=a.childNodes[l-1];return HXe.createRange({startContainer:v,startOffset:0,endContainer:m,endOffset:m.childNodes.length})}return kt(Nc(o,LXe,t),"plugins/selection/src/common/dom-selection-helper.ts:1203"),kt(Nc(a,LXe,t),"plugins/selection/src/common/dom-selection-helper.ts:1204"),e}function ZXe(e,t,n){return t=Qe(t),Xe(e,eQe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function eQe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eQe=function(){return!!e})()}Object.defineProperty(HXe,"focusToStartOfNode",{enumerable:!0,configurable:!0,writable:!0,value:function(e){if("NE-CARD"===e.nodeName)return zXe(e);var t=document.createRange();return t.selectNodeContents(e),t.collapse(!0),WXe(t)}}),Object.defineProperty(HXe,"focusToEndOfNode",{enumerable:!0,configurable:!0,writable:!0,value:function(e){if("NE-CARD"===e.nodeName)return zXe(e);var t=document.createRange();return t.selectNodeContents(e),t.collapse(!1),WXe(t)}}),Object.defineProperty(HXe,"createCardRange",{enumerable:!0,configurable:!0,writable:!0,value:zXe}),Object.defineProperty(HXe,"shrinkRange",{enumerable:!0,configurable:!0,writable:!0,value:WXe}),Object.defineProperty(HXe,"shrinkPositionToTextNode",{enumerable:!0,configurable:!0,writable:!0,value:qXe});var tQe=function(e){function t(){return Ye(this,t),ZXe(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jL;this.renderer.kernel.execCommand(OM.command.focusCard,e,t),this.renderer.focus({}),t!==jL&&function(){var e,t,n=HXe.currentRange();if(n&&n.collapsed){var r=n.startContainer,o=n.startOffset,i=Ky(r);if(i){var a=null===(e=r.children)||void 0===e?void 0:e[0===o?0:o-1];a&&i.isElement()&&(null===(t=Ky(a))||void 0===t?void 0:t.isFillerNode())&&HXe.getSelection().setBaseAndExtent(a,0,a,0)}}}()}}]),t}(Qy);function nQe(e,t,n){return t=Qe(t),Xe(e,rQe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rQe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rQe=function(){return!!e})()}Object.defineProperty(tQe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:OM.command.focusCard});var oQe=function(e){function t(){var e;return Ye(this,t),e=nQe(this,t,arguments),Object.defineProperty(Je(e),"currentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_clearTask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.onDocument("focusin",(function(e){if(Ud(e.target)&&["INPUT","TEXTAREA"].includes(e.target.tagName)){var n=Nc(e.target,"ne-card");n&&!n.dataset.noEditing&&(t._clearTask=dd((function(){n.classList.add("ne-card-editing")}),100))}})),e.onDocument("focusout",(function(e){if(Ud(e.target)&&["INPUT","TEXTAREA"].includes(e.target.tagName)){var n=Nc(e.target,"ne-card");n&&!n.dataset.noEditing&&(t._clearTask=dd((function(){n.classList.remove("ne-card-editing")}),100))}}))}},{key:"destroy",value:function(){var e;null===(e=this._clearTask)||void 0===e||e.call(this)}}]),t}(rb);function iQe(e,t,n){return t=Qe(t),Xe(e,aQe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aQe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aQe=function(){return!!e})()}Object.defineProperty(oQe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:OM.pluginName}),Object.defineProperty(oQe,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[tQe]});var lQe=function(e){function t(){return Ye(this,t),iQe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.requireService(OTe.ID).registerHotKey(DRe.clearFormat.name,DRe.clearFormat.keys,(function(e){e.stop(),t.renderer.execCommand(mV.command.clearFormat)}))}}]),t}(rb);Object.defineProperty(lQe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:mV.pluginName});var uQe=function(){function e(){Ye(this,e)}return Ke(e,[{key:"match",value:function(e){return!0}},{key:"process",value:function(e){var t=e.clipboardData;e._files=Array.from(t.items).map((function(e){return"file"===e.kind?e.getAsFile():null})).filter((function(e){return!!e})).map((function(e){return e instanceof File?e:new File(e,e.name)}));var n=t.getData("text/html");if(e._files.length>0){if(e.setTypes(["Files"]),n&&/^()?$/.test(n))return;var r=t.getData("text/plain");if(r&&(/^\S+\.\w+$/.test(r)||/^http(s)?:/.test(r)))return;if(!n&&!r)return void(this._checkChromeDuplicate(e._files)&&(e._files.length=1))}e.setTypes(e.clipboardData.types.slice());var o=e.types.indexOf("Files"),i=e.types;-1!==o&&i.splice(o,1),e.setTypes(i)}},{key:"_checkChromeDuplicate",value:function(e){if(!Ks.chrome||2!==e.length||"image.png"!==e[0].name)return!1;var t=e[1].name;return!!(t.length>12&&/^[a-z0-9_\-]+\.(png|jpg)$/i.test(t))}}]),e}(),cQe=function(){function e(){Ye(this,e)}return Ke(e,[{key:"match",value:function(e){return e.clipboardData.getData("text/html").includes('
').concat(e["text/html"]):e["text/html"]='').concat(e["text/html"])),Object.keys(e).forEach((function(n){t.setData(n,e[n])}))}Object.defineProperty(SQe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:NV.command.cut});var AQe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Object.assign({},t)}return Ke(e,[{key:"payloadPreprocessors",get:function(){return this._option.payloadPreprocessors||[]}}]),e}();function jQe(e,t,n){return t=Qe(t),Xe(e,IQe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function IQe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IQe=function(){return!!e})()}Object.defineProperty(AQe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:NV.pluginName});var BQe=function(e){function t(){var e;return Ye(this,t),e=jQe(this,t,arguments),Object.defineProperty(Je(e),"_nextEventData",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"processId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"onGetPastePayload",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_isForceTextParse",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_handleCopy",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),e._doCopy(t)}}),Object.defineProperty(Je(e),"_handleGlobalCopy",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._nextEventData&&(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),e._doCopy(t))}}),Object.defineProperty(Je(e),"_handleCut",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation(),e._doCut(t)}}),Object.defineProperty(Je(e),"_handleGlobalCut",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._nextEventData&&(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),e._doCut(t))}}),Object.defineProperty(Je(e),"_handleBeforePaste",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._isForceTextParse=!1,(86===t.keyCode||ed.isChar(t,"v"))&&t.shiftKey&&(e._isForceTextParse=!0)}}),Object.defineProperty(Je(e),"_handlePaste",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.preventDefault(),t.stopPropagation();var n=e._fromSelf(t),r=e.getPayload(t);e.kernel.execCommand(NV.command.paste,r,n,e._isForceTextParse),e._isForceTextParse=!1}}),e}return et(t,e),Ke(t,[{key:"nextEventData",get:function(){return this._nextEventData}},{key:"init",value:function(e){this.processId=mr(),e.onRootNode("copy",this._handleCopy),e.onRootNode("cut",this._handleCut),e.onRootNode("keydown",this._handleBeforePaste),e.onRootNode("paste",this._handlePaste),kc(this,document,"copy",this._handleGlobalCopy,!1),kc(this,document,"cut",this._handleGlobalCut,!1)}},{key:"setNextEventData",value:function(e){this._nextEventData=e}},{key:"clearNextEventData",value:function(){this._nextEventData=null}},{key:"_doCopy",value:function(e){var t,n,r=e.clipboardData,o=this.kernel.execCommand(NV.command.copy,null===(t=this._nextEventData)||void 0===t?void 0:t.range,null===(n=this._nextEventData)||void 0===n?void 0:n.option);if(!o)return!1;TQe(o,r),this._markProcessId(e)}},{key:"_doCut",value:function(e){var t=e.clipboardData,n=this.kernel.execCommand(NV.command.cut);if(!n)return!1;TQe(n,t),this._markProcessId(e)}},{key:"_markProcessId",value:function(e){e.clipboardData.setData("processid",this.processId)}},{key:"_fromSelf",value:function(e){return e.clipboardData.getData("processid")===this.processId}},{key:"getPayload",value:function(e){if("function"==typeof this.onGetPastePayload){var t=this.onGetPastePayload(e);if(t)return t}return new hQe(e.clipboardData,this.option.payloadPreprocessors)}}]),t}(rb);function MQe(e,t,n){return t=Qe(t),Xe(e,FQe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function FQe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FQe=function(){return!!e})()}Object.defineProperty(BQe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:NV.pluginName}),Object.defineProperty(BQe,"Service",{enumerable:!0,configurable:!0,writable:!0,value:CQe}),Object.defineProperty(BQe,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:AQe}),Object.defineProperty(BQe,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[DQe,SQe]});var LQe=function(e){function t(){var e;return Ye(this,t),e=MQe(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._rootNode=$y.createElement("ne-code"),this._contentNode=$y.createElement("ne-code-content"),this._rootNode.appendChild(this._contentNode),this._updateFontSize()}},{key:"$didUpdate",value:function(){this._updateFontSize()}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_updateFontSize",value:function(){var e=(this.viewNode.attrs||{}).contentFontsize;if(e&&e>0)this._contentNode.style.fontSize=e+"px";else if(0===e)this._contentNode.style.fontSize="";else{var t=UQe(this.viewNode.children);this._contentNode.style.fontSize=0===t?"":t+"px"}}}]),t}(Ly);function UQe(e){return(null==e?void 0:e.length)?Math.max.apply(Math,pn(e.map((function(e){return e.isFillerNode()||e.isTextNode()?e.attrs.fontsize||0:e.isElement()?UQe(e.children):0})))):0}function VQe(e,t,n){return t=Qe(t),Xe(e,HQe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function HQe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HQe=function(){return!!e})()}var zQe=function(e){function t(){return Ye(this,t),VQe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBoxNode("code",LQe);var t=e.requireService(OTe.ID);t&&t.registerHotKey(DRe.code.name,DRe.code.keys,(function(t){t.stop(),e.execCommand("code")}))}}]),t}(rb);function WQe(e,t,n){return t=Qe(t),Xe(e,qQe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qQe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qQe=function(){return!!e})()}Object.defineProperty(zQe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:HV.pluginName});var $Qe=function(e){function t(e){var n;return Ye(this,t),n=WQe(this,t),Object.defineProperty(Je(n),"_renderOrViewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"_map",{enumerable:!0,configurable:!0,writable:!0,value:new WeakMap}),Object.defineProperty(Je(n),"clearGradient",{enumerable:!0,configurable:!0,writable:!0,value:function(e){e.style.removeProperty("--gradient-start-color"),e.style.removeProperty("--gradient-end-color"),e.removeAttribute("ne-text-gradient")}}),Object.defineProperty(Je(n),"updateColor",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){if(t.includes(",")){var r=cn(oz(iz(t,n._renderOrViewer.theme)),2),o=r[0],i=r[1];i?(e.style.setProperty("--gradient-start-color",o),e.style.setProperty("--gradient-end-color",i),e.setAttribute("ne-text-gradient","true")):n.clearGradient(e),e.style.color=o}else n.clearGradient(e),e.style.color=n._renderOrViewer.theme.toVisualValue(t)}}),Object.defineProperty(Je(n),"handleAttrUpdate",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){e.hasAttribute("ne-strikethrough")||e.hasAttribute("ne-underline")||e.hasAttribute("ne-bg-color")||e.hasAttribute("ne-emoji")?n.clearGradient(e):n.updateColor(e,t)}}),n}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){var n=this;return{type:bp.CUSTOM_NAME,name:"color",value:function(e){var r=function(){return n.handleAttrUpdate(e,t)},o=n._map.get(e);o&&e.removeEventListener("ne-after-attr-update",o),e.addEventListener("ne-after-attr-update",r),n._map.set(e,r),n.updateColor(e,t)},remove:function(e){var t=n._map.get(e);t&&(e.removeEventListener("ne-after-attr-update",t),n._map.delete(e)),e.style.color="",n.clearGradient(e)}}}}]),t}(bp);function KQe(e,t,n){return t=Qe(t),Xe(e,YQe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function YQe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YQe=function(){return!!e})()}var GQe=function(e){function t(){return Ye(this,t),KQe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator(zH.attr.color,new $Qe(e))}}]),t}(rb);Object.defineProperty(GQe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:zH.pluginName});var JQe="left",XQe="right",QQe="lineHead",ZQe="leftWord",eZe="rightWord";function tZe(e,t){var n=document.getSelection();if(0===n.rangeCount||!n.isCollapsed)return null;var r=n.focusNode,o=n.focusOffset;n.getRangeAt(0).cloneRange(),n.modify("move",e,t);var i=n.getRangeAt(0),a=i,l=a.startContainer,u=a.startOffset;return l===r&&u===o||(i=Ad.createRange({startContainer:l,startOffset:u,endContainer:r,endOffset:o}),n.setBaseAndExtent(r,o,r,o),kt(!i.collapsed,"plugins/delete/src/render/helpers/_calc_range.ts:76")),i}function nZe(e,t,n){return t=Qe(t),Xe(e,rZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rZe=function(){return!!e})()}var oZe=function(e){function t(){return Ye(this,t),nZe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.onRootNode("keydown",(function(e){var n=function(e){return Ks.macos?function(e){return ed.isBackspace(e)?ed.onlyAlt(e)||ed.onlyCtrl(e)?ZQe:ed.onlyMeta(e)?QQe:JQe:ed.isChar(e,"H")&&ed.onlyCtrl(e)?JQe:ed.isChar(e,"D")&&ed.onlyCtrl(e)?XQe:ed.isDelete(e)?ed.onlyAlt(e)||ed.onlyCtrl(e)?eZe:XQe:ed.isChar(e,"K")&&ed.onlyCtrl(e)?"end":null}(e):function(e){return ed.isBackspace(e)?ed.onlyCtrl(e)?ZQe:JQe:ed.isDelete(e)?ed.onlyCtrl(e)?eZe:XQe:null}(e)}(e);if(n)if(e.preventDefault(),t.engine.getViewSelection().isCollapsed)switch(n){case JQe:t.kernel.execCommand("delete",!0);break;case XQe:t.kernel.execCommand("delete",!1);break;case"end":t.kernel.execCommand("deleteToBlockEnd")||t.kernel.execCommand("delete",!1);break;case QQe:t._deleteToLineHead();break;case ZQe:t._deleteLeftWord();break;case eZe:t._deleteRightWord();break;default:console.warn("invalid delete action")}else t.kernel.execCommand("delete",!0)}))}},{key:"_deleteToLineHead",value:function(){this._deleteByRange(tZe("left","lineboundary"))}},{key:"_deleteLeftWord",value:function(){this._deleteByRange(tZe("left","word"))}},{key:"_deleteRightWord",value:function(){this._deleteByRange(tZe("right","word"))}},{key:"_deleteByRange",value:function(e){if(e)if(e.collapsed)this.kernel.execCommand("delete",!0);else{var t=this.engine.transformDOMRange(e),n=t.start,r=t.end,o=this.renderer.kernel.createModelRange(n,r);o.collapsed||this.kernel.execCommand("deleteByRange",o)}}}]),t}(rb);function iZe(e,t,n){return t=Qe(t),Xe(e,aZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function aZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aZe=function(){return!!e})()}Object.defineProperty(oZe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Zz.pluginName});var lZe=function(e){function t(){return Ye(this,t),iZe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=e.domRootNode;e.onRootNode("drop",(function(n){if(t.contains(n.target)&&!n.dataTransfer.getData("text/ne-move")){var r=n.dataTransfer.files;if(r&&0!==r.length){n.preventDefault();var o=function(e){if(document.caretRangeFromPoint){var t=document.caretRangeFromPoint(e.clientX,e.clientY);return t?{node:t.startContainer,offset:t.startOffset}:null}if(document.caretPositionFromPoint){var n=document.caretPositionFromPoint(e.clientX,e.clientY);if(n)return{node:n.offsetNode,offset:n.offset}}return null}(n);o&&e.execCommand("selection",o),e.execCommand("dropFile",Array.from(r))}}}))}}]),t}(rb);function uZe(e,t,n){return t=Qe(t),Xe(e,cZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function cZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cZe=function(){return!!e})()}Object.defineProperty(lZe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:fW.pluginName});var sZe=function(e){function t(){return Ye(this,t),uZe(this,t,arguments)}return et(t,e),Ke(t,[{key:"getState",value:function(){return this.renderer.isFocus()}},{key:"execute",value:function(e){(null==(e="string"!=typeof e?e:{pos:e})?void 0:e.pos)&&this.renderer.kernel.execCommand("focus",e.pos),(!this.renderer.isFocus()||this.renderer.isFocus()&&e)&&this.renderer.focus(e)}}]),t}(Qy);function dZe(e,t,n){return t=Qe(t),Xe(e,fZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function fZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fZe=function(){return!!e})()}Object.defineProperty(sZe,"ID",{enumerable:!0,configurable:!0,writable:!0,value:Zq.command.focus});var hZe=function(e){function t(){return Ye(this,t),dZe(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){}}]),t}(rb);function pZe(e,t,n){return t=Qe(t),Xe(e,vZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vZe=function(){return!!e})()}Object.defineProperty(hZe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Zq.pluginName}),Object.defineProperty(hZe,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[sZe]});var mZe=function(e){function t(){return Ye(this,t),pZe(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.ATTR_NAME,name:"ne-fontsize",value:t+""}}}]),t}(bp);function gZe(e,t,n){return t=Qe(t),Xe(e,bZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function bZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bZe=function(){return!!e})()}var yZe=function(e){function t(){var e;return Ye(this,t),e=gZe(this,t,arguments),Object.defineProperty(Je(e),"_lastFillerNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_handleCleanFillerSize",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._lastFillerNode&&(e._lastFillerNode.style.fontSize="",e._lastFillerNode=null)}}),Object.defineProperty(Je(e),"_handleSelectionChange",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t,n;e._handleCleanFillerSize();var r=document.getSelection(),o=r.anchorNode,i=r.anchorOffset,a=r.isCollapsed;if(e.renderer.isFocus()&&o&&a&&!(null===(t=null==o?void 0:o.closest)||void 0===t?void 0:t.call(o,"ne-heading-content"))){if(o.nodeType===Node.TEXT_NODE){if(""!==o.textContent)return;o=o.parentNode.previousSibling||o.parentNode.nextSibling}if(function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE}(o)){var l=["ne-b-filler","ne-t-filler","ne-i-filler"];l.includes(o.className)?(o.style.fontSize=e.kernel.queryCommandValue("fontsize",!1)+"px",e._lastFillerNode=o):l.includes(null===(n=o.childNodes[i])||void 0===n?void 0:n.className)&&(o.childNodes[i].style.fontSize=e.kernel.queryCommandValue("fontsize",!1)+"px",e._lastFillerNode=o.childNodes[i])}}}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.registerAttrTranslator("fontsize",new mZe),this.kernel.on("document.create",(function(){var t=e.queryCommandValue("defaultFontsize"),n=e.domRootNode.classList;n.remove.apply(n,pn(_$.map((function(e){return"fz".concat(e)})))),t&&n.add("fz".concat(t))})),e.on("contentchange",this._handleSelectionChange),e.on("selectionchange",(function(){return setTimeout(t._handleSelectionChange,0)})),e.kernel.onPluginEvent("defaultFontsizeChange",(function(t){var n=t.current,r=t.old,o=e.domRootNode.classList;o.remove("fz".concat(r)),n&&o.add("fz".concat(n)),e.emit("defaultFontsizeChange",{current:n,old:r})}))}}]),t}(rb);function wZe(e,t,n){return t=Qe(t),Xe(e,kZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kZe=function(){return!!e})()}Object.defineProperty(yZe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:p$.pluginName});var CZe=function(e){function t(){return Ye(this,t),wZe(this,t,arguments)}return et(t,e),Ke(t,[{key:"clearPaintFormat",value:function(){this.plugin.clearPaintFormat()}},{key:"hasPaintFormat",value:function(){return this.plugin.hasPaintFormat()}},{key:"recordPaintFormat",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.plugin.recordPaintFormat(e)}},{key:"destroy",value:function(){}}]),t}(Nje);function _Ze(e,t,n){return t=Qe(t),Xe(e,NZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function NZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NZe=function(){return!!e})()}var OZe="ne-paint-formatting",xZe=function(e){function t(){var e;return Ye(this,t),e=_Ze(this,t,arguments),Object.defineProperty(Je(e),"_once",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_activeFormat",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_mouseDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_shouldDoSomething",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_cancelTask",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(Je(e),"recordPaintFormat",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.renderer.domRootNode.classList.add(OZe),e._once=t,e._activeFormat=e.renderer.queryCommandValue("paintFormat")}}),Object.defineProperty(Je(e),"hasPaintFormat",{enumerable:!0,configurable:!0,writable:!0,value:function(){return!!e._activeFormat}}),Object.defineProperty(Je(e),"clearPaintFormat",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._activeFormat&&(e._once=!1,e._activeFormat=null,e.renderer.domRootNode.classList.remove(OZe),e.renderer.emitPluginEvent("clearPaintFormat"))}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.onRootNode("keydown",(function(e){ed.isEscape(e)&&t.clearPaintFormat()}),!1),e.onRootNode("mousedown",(function(){t._mouseDown=!0}),!1),e.onRootNode("mouseup",(function(){t._mouseDown=!1,t._shouldDoSomething&&(t._cancelTask=dd((function(){var n,r=(null===(n=t.kernel.model.document)||void 0===n?void 0:n.selection.isCollapsed)||!1;t._shouldDoSomething&&t._activeFormat&&r&&e.execCommand("paintFormat",t._activeFormat),t._shouldDoSomething=!1}),100))}),!1),this.kernel.editing.on("afterExecCommand",(function(n){var r=n.commandName;if("undo"!==r&&"redo"!==r){if("selection"===r&&t._activeFormat){if(t._mouseDown)return void(t._shouldDoSomething=!0);t._shouldDoSomething=!1,e.execCommand("paintFormat",t._activeFormat),t._once&&t.clearPaintFormat()}}else t.clearPaintFormat()}));var n=e.requireService(OTe.ID);n&&n.registerHotKey(DRe.formatPainter.name,DRe.formatPainter.keys,(function(e){e.stop(),t.recordPaintFormat(!1),LE.info(gc("已开启格式刷,按 Esc 退出"))}))}},{key:"destroy",value:function(){var e;Cr(Qe(t.prototype),"destroy",this).call(this),null===(e=this._cancelTask)||void 0===e||e.call(this)}}]),t}(rb);Object.defineProperty(xZe,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:pK.pluginName}),Object.defineProperty(xZe,"Service",{enumerable:!0,configurable:!0,writable:!0,value:CZe});var EZe={anchor:!1,folding:!0},DZe=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},EZe,t)}return Ke(e,[{key:"anchor",get:function(){return!!this._option.anchor}},{key:"folding",get:function(){return!!this._option.folding}},{key:"generateHashLink",get:function(){return this._option.generateHashLink}}]),e}();Object.defineProperty(DZe,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"heading"});var RZe=function(){function e(t,n,r,o,i){Ye(this,e),Object.defineProperty(this,"_url",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"nodeName",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"generateHashLink",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"_anchorNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._anchorNode=hd("ne-heading-anchor"),this._anchorNode.innerHTML="",t.appendChild(this._anchorNode),this._render()}return Ke(e,[{key:"destroy",value:function(){this._anchorNode.remove()}},{key:"_render",value:function(){var e=this;nu().render(nc().createElement(yS,{placement:"topLeft",trigger:["hover","click"],title:gc("复制段落链接"),mouseEnterDelay:1,mouseLeaveDelay:0,overlayClassName:"ne-heading-anchor-tooltip",destroyTooltipOnHide:!0},nc().createElement("span",{onMouseDown:function(e){return e.preventDefault()},onClick:function(){e._handleAnchorClick()}},nc().createElement(tD,{type:"editor-h".concat(this.nodeName.slice(-1))}))),this._anchorNode)}},{key:"_handleAnchorClick",value:function(){var e,t=this._url,n=this._id;if(t){var r=null===(e=this.generateHashLink)||void 0===e?void 0:e.call(this,t,n);r&&ps()(r,{format:"text/plain"})?LE.success(gc("复制成功")):LE.error(gc("复制失败"))}}}]),e}(),PZe={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6,"ne-h1":1,"ne-h2":2,"ne-h3":3,"ne-h4":4,"ne-h5":5,"ne-h6":6};function SZe(e){return!!PZe[e.nodeName.toLowerCase()]}function TZe(e){return e.nodeName?PZe[e.nodeName.toLowerCase()]||Number.MAX_VALUE:0}function AZe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&(r=r.previousElementSibling);){var o=TZe(r);o&&o=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(o);try{for(i.s();!(r=i.n()).done;){var a=r.value;t._foldingInstances[a.id]&&t._foldingInstances[a.id].tryUnfold()}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"collapseHeadingNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||!e.id)return!1;var n=e.id;if(!(t=t||e.querySelector("ne-heading-fold")))return!1;var r=BZe(e);return t.classList.add("ne-force-visible"),r.forEach((function(e){var t=e.getAttribute("data-fold-owner");t&&t!==n||(e.classList.add("ne-force-fold"),e.setAttribute("data-fold-owner",n))})),!0}},{key:"uncollapseHeadingNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||!e.id)return!1;var n=e.id;if(!(t=t||e.querySelector("ne-heading-fold")))return!1;var r=BZe(e);return e.classList.remove("ne-force-visible"),t.classList.remove("ne-force-visible"),r.forEach((function(e){var t=e.getAttribute("data-fold-owner");t&&t!==n||(e.classList.remove("ne-force-fold"),e.removeAttribute("data-fold-owner"))})),!0}}]),t}(ut);function FZe(e,t,n){return t=Qe(t),Xe(e,LZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function LZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LZe=function(){return!!e})()}var UZe=function(e){function t(){var e;return Ye(this,t),e=FZe(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_extNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_anchorController",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_foldingController",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_clearDestroyAnchor",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(Je(e),"_clearDestroyFolder",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(Je(e),"clearFn",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this.viewNode.nodeName;this._rootNode=$y.createElement("ne-".concat(t)),this._contentNode=$y.createElement("ne-heading-content"),this._extNode=hd("ne-heading-ext",{contentEditable:!1}),$y.setAttributeByChange(this._rootNode,e),this._rootNode.appendChild(this._extNode),this._rootNode.appendChild(this._contentNode);var n=!1;this._allowShowAnchor()&&(this._creatingAnthorController(),n=!0),this._allowFolding()&&(this._createFoldingController(),n=!0),n&&this.initEvent(),this.pluginContext.headingService.afterInit(this._rootNode,this.viewNode)}},{key:"initEvent",value:function(){var e=this,n=-1;this.clearFn=this.renderer.onForceRootNode("mouseover",(function(r){var o,i,a;r.target!==e.renderer.domRootNode&&t.hoveredNode&&((null===(i=(o=r.target).closest)||void 0===i?void 0:i.call(o,"ne-h1, ne-h2, ne-h3, ne-h4, ne-h5, ne-h6"))||(clearTimeout(n),null===(a=t.hoveredNode)||void 0===a||a.classList.remove("hovered"),t.hoveredNode=null))})),kc(this,this._rootNode,"mouseenter",(function(){clearTimeout(n),t.hoveredNode&&t.hoveredNode!==e._rootNode&&t.hoveredNode.classList.remove("hovered"),t.hoveredNode=e._rootNode,e._rootNode.classList.add("hovered")})),kc(this,this._rootNode,"mouseleave",(function(){n=window.setTimeout((function(){e._rootNode.classList.remove("hovered")}),300)}))}},{key:"$didUpdate",value:function(){var e=this;if(this._allowShowAnchor())this._clearDestroyAnchor(),this._creatingAnthorController();else if(this._anchorController){var t=setTimeout((function(){var t;null===(t=e._anchorController)||void 0===t||t.destroy(),e._anchorController=null}),300);this._clearDestroyAnchor=function(){return clearTimeout(t)}}if(this._allowFolding())this._clearDestroyFolder(),this._createFoldingController();else if(this._foldingController){var n=setTimeout((function(){var t;null===(t=e._foldingController)||void 0===t||t.destroy(),e._foldingController=null}),300);this._clearDestroyFolder=function(){return clearTimeout(n)}}}},{key:"updateAttribute",value:function(e){var t,n,r=this;e.updated.filter((function(e){return"ne-collapsed"===e.name}))&&setTimeout((function(){var e,t;null===(e=r._foldingController)||void 0===e||e.update(),null===(t=r._foldingController)||void 0===t||t.updateDOM(),r.pluginContext.emitCollapsedChange(r.viewNode.id)})),$y.syncDOMAttrChange(this._rootNode,e),null===(n=null===(t=this.pluginContext)||void 0===t?void 0:t.headingService)||void 0===n||n.afterUpdate(this._rootNode,this.viewNode)}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"destroy",value:function(){var e,n;null===(n=null===(e=this.pluginContext)||void 0===e?void 0:e.headingService)||void 0===n||n.beforeDestroy(this.viewNode),t.hoveredNode===this._rootNode&&(t.hoveredNode=null),this.clearFn(),this._clearDestroyAnchor(),this._clearDestroyFolder(),this._foldingController&&this._foldingController.destroy(),this._foldingController=null,this._anchorController&&this._anchorController.destroy()}},{key:"_allowShowAnchor",value:function(){var e,t;return!!(null===(t=null===(e=this.pluginContext)||void 0===e?void 0:e.option)||void 0===t?void 0:t.anchor)&&!!this.viewNode.parentNode.isRootNode()}},{key:"_allowFolding",value:function(){var e,t;return!!(null===(t=null===(e=this.pluginContext)||void 0===e?void 0:e.option)||void 0===t?void 0:t.folding)&&!!this.viewNode.parentNode.isRootNode()}},{key:"_creatingAnthorController",value:function(){this._anchorController||(this._anchorController=new RZe(this._extNode,this.renderer.option.currentURL,this.viewNode.id,this.viewNode.nodeName,this.pluginContext.option.generateHashLink))}},{key:"_createFoldingController",value:function(){var e=this;this._foldingController||(this._foldingController=new MZe(this._rootNode,this._extNode,this.viewNode.id,{context:this.pluginContext,isCollapsed:function(){return"true"===e.viewNode.attrs.collapsed},isDisabled:function(){return!e.pluginContext.getHeadingCollapsable(e.viewNode.id)},handleCollapsedChange:function(){e.pluginContext.toggleCollapased(e.viewNode.id)}}))}}]),t}(Ly);function VZe(e,t,n){return t=Qe(t),Xe(e,HZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function HZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HZe=function(){return!!e})()}Object.defineProperty(UZe,"hoveredNode",{enumerable:!0,configurable:!0,writable:!0,value:null});var zZe=function(e){function t(e,n,r){var o;return Ye(this,t),o=VZe(this,t),Object.defineProperty(Je(o),"_option",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(o),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(o),"_headingService",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(o),"_foldingInstances",{enumerable:!0,configurable:!0,writable:!0,value:{}}),o}return et(t,e),Ke(t,[{key:"option",get:function(){return this._option}},{key:"headingService",get:function(){return this._headingService}},{key:"toggleCollapased",value:function(e){this.renderer.execCommand("headingCollapsed",e)}},{key:"getCollapasedState",value:function(e){return this.renderer.queryCommandValue("headingCollapsed",e)}},{key:"emitCollapsedChange",value:function(e){return this.renderer.emitPluginEvent("headingCollapseChange",e)}},{key:"getHeadingCollapsable",value:function(e){return this.renderer.queryCommandValue("headingCollapsable",e)}}]),t}(ut);function WZe(e,t,n){return t=Qe(t),Xe(e,qZe()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qZe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qZe=function(){return!!e})()}var $Ze=function(e){function t(){var e;return Ye(this,t),e=WZe(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(tw);function KZe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return YZe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YZe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function YZe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,"plugins/hot-key/src/render/hot-key.ts:93");var a=mf.parseKeys(t);if(!a)return function(){};var l=a.keyName,u=a.modifier;if(!l)return function(){};var c=o?this._globalKeyMaps:this._keyMaps;return o&&this._listenGlobal(),c[l]||(c[l]=[]),function(e,t){if(0!==e.length){var n=t.priority;if(n>e[0].priority)e.unshift(t);else{for(var r=e.length-1;r>=0;r--)if(n<=e[r].priority)return void e.splice(r+1,0,t);kt(!1,"plugins/hot-key/src/render/hot-key.ts:257")}}else e.push(t)}(c[l],{name:e,modifier:u,handler:n,priority:r}),this._named[e]={keys:pn(t),text:ff(t)},function(){!function(e,t){e=e.filter((function(e){return e.name===t}))}(c[l],e),i._named[e]&&delete i._named[e]}}},{key:"getKeyByName",value:function(e){return this._named[e]||null}},{key:"getAllKeys",value:function(){return Object.assign({},this._named)}},{key:"_getKeyHandlers",value:function(e,t){var n=e.key,r=e.keyCode,o=t?this._globalKeyMaps:this._keyMaps,i=o[n.toLowerCase()]||o[r];if(!i)return null;var a=[];return i.forEach((function(t){mf.isMatchModifier(e,t.modifier)&&a.push(t.handler)})),a.length?a:null}},{key:"_listenGlobal",value:function(){var e=this;this._globalIsInitialized||(this._globalIsInitialized=!0,this.renderer.onDocument("keydown",(function(t){e._processKeyDown(t,!0)})))}},{key:"_processKeyDown",value:function(e,t){var n=this._rootNode;if(e.keyCode!==Xs){if(t){if(function(e){var t=document.activeElement;if(t&&("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName))return!0;var n=document.getSelection();if(!n.rangeCount)return!1;var r=Nc(n.getRangeAt(0).commonAncestorContainer,"[contenteditable]");return!!r&&r!==e}(this.renderer.domRootNode))return}else{var r=document.getSelection();if(r.rangeCount&&xc(r.getRangeAt(0).commonAncestorContainer,n))return}var o=this._getKeyHandlers(e,t);if(o)for(var i=!0,a={stop:function(){i=!1,e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},event:e},l=0,u=o.length;l3&&void 0!==arguments[3]?arguments[3]:VL;return this.hotKey.register(e,t,n,r)}},{key:"registerGlobalHotKey",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:VL;return this.hotKey.register(e,t,n,r,!0)}},{key:"getHotKeyByName",value:function(e){return this.hotKey.getKeyByName(e)}},{key:"triggerHotKey",value:function(e){return this.hotKey.triggerHotKey(e)}},{key:"getAllHotKeys",value:function(){return this.hotKey.getAllKeys()}},{key:"destroy",value:function(){this.hotKey.destroy()}},{key:"getCardHotKeyHelper",value:function(){return this.plugin.cardHotKeyHelper}}]),t}(OTe),d0e=new mf(["cmd","c"]),f0e=new mf(["cmd","x"]),h0e={match:function(e){return ed.isDelete(e)||ed.isBackspace(e)}},p0e=function(){function e(t){var n=this;Ye(this,e),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"copyCardSet",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"cutCardSet",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"deleteCardSet",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"activeCardId",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"domEventListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bindDOMEvent",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.domEventListener=new wd(n.renderer.id,n.renderer.domRootNode,n._domEventFilter),n.domEventListener.on("keydown",n._domEventHandler)}}),Object.defineProperty(this,"_domEventFilter",{enumerable:!0,configurable:!0,writable:!0,value:function(e){if(n.hasRegister){if(!e.target.isConnected||e.target!==n.renderer.domRootNode)return!1;var t=document.getSelection();if(1===t.rangeCount){var r=Nc(t.getRangeAt(0).commonAncestorContainer,"ne-card");if(r)return n.activeCardId=r.getAttribute("id"),!0}}return!1}}),Object.defineProperty(this,"_domEventHandler",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t;kt(n.activeCardId,"plugins/hot-key/src/common/hot-key-helper.ts:74"),[{matcher:d0e,action:"_copyCard"},{matcher:f0e,action:"_cutCard"},{matcher:h0e,action:"_deleteCard"}].some((function(n){var r=n.matcher,o=n.action;return!!r.match(e)&&(t=o,!0)})),t&&n[t](),n.activeCardId=""}}),Object.defineProperty(this,"_copyCard",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.copyCardSet.has(n.activeCardId)&&n.renderer.execCommand("copy")}}),Object.defineProperty(this,"_cutCard",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.cutCardSet.has(n.activeCardId)&&n.renderer.execCommand("cut")}}),Object.defineProperty(this,"_deleteCard",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.deleteCardSet.has(n.activeCardId)&&n.renderer.execCommand("deleteCard",n.activeCardId)}}),this.bindDOMEvent()}return Ke(e,[{key:"hasRegister",get:function(){return this.copyCardSet.size>0||this.cutCardSet.size>0||this.deleteCardSet.size>0}},{key:"register",value:function(e,t){kt(e,"plugins/hot-key/src/common/hot-key-helper.ts:122"),this.toggleCardRegister(t.copy,this.copyCardSet,e),this.toggleCardRegister(t.cut,this.cutCardSet,e),this.toggleCardRegister(t.delete,this.deleteCardSet,e)}},{key:"toggleCardRegister",value:function(e,t,n){e?t.add(n):t.delete(n)}},{key:"remove",value:function(e){e&&(this.copyCardSet.delete(e),this.cutCardSet.delete(e),this.deleteCardSet.delete(e))}}]),e}(),v0e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"cardHotkeyManager",{enumerable:!0,configurable:!0,writable:!0,value:new p0e(this.renderer)})}return Ke(e,[{key:"register",value:function(e,t){this.cardHotkeyManager&&this.cardHotkeyManager.register(e,t)}},{key:"destroyHotKey",value:function(e){this.cardHotkeyManager&&this.cardHotkeyManager.remove(e)}},{key:"destroy",value:function(){this.cardHotkeyManager=null}}]),e}();function m0e(e,t,n){return t=Qe(t),Xe(e,g0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function g0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g0e=function(){return!!e})()}var b0e=function(e){function t(){var e;return Ye(this,t),e=m0e(this,t,arguments),Object.defineProperty(Je(e),"_service",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"cardHotKeyHelper",{enumerable:!0,configurable:!0,writable:!0,value:new v0e(e.renderer)}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._service=new s0e(this.renderer,this.kernel,this),this.renderer.registerService(this._service);var t=this._service.hotKey;e.extendMethods({registerHotKey:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:VL;return t.register(e,n,r,o)},getHotKeyByName:function(e){return t.getKeyByName(e)},getAllHotKeys:function(){return t.getAllKeys()}})}},{key:"destroy",value:function(){var e;null===(e=this._service)||void 0===e||e.destroy(),this.cardHotKeyHelper.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(rb);function y0e(e,t,n){return t=Qe(t),Xe(e,w0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function w0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w0e=function(){return!!e})()}Object.defineProperty(b0e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Bde.pluginName});var k0e=function(e){function t(e){var n;return Ye(this,t),n=y0e(this,t),Object.defineProperty(Je(n),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.ATTR_NAME,name:"ne-".concat(this.attrName),value:t}}}]),t}(bp);function C0e(e,t,n){return t=Qe(t),Xe(e,_0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_0e=function(){return!!e})()}var N0e=function(e){function t(){return Ye(this,t),C0e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this.kernel;e.registerAttrTranslator({indent:new k0e("indent"),textIndent:new k0e("text-indent")});var n=e.getService(OTe.ID);n&&([DRe.indentForTab,DRe.outdentForTab].forEach((function(e){var r=e.name,o=e.keys,i=e.command;n.registerHotKey(r,o,(function(e){-1!==t.queryCommandState("canIndent")&&(e.stop(),t.execCommand(i,!0))}))})),[DRe.indent,DRe.outdent].forEach((function(e){var r=e.name,o=e.keys,i=e.command;n.registerHotKey(r,o,(function(e){e.stop(),t.execCommand(i)}))})))}}]),t}(rb);function O0e(e,t){if(t.rangeCount&&t.isCollapsed){var n=t.getRangeAt(0),r=n.startContainer,o=n.startOffset;if(Ld(r)){var i=r.data[o-1]||"",a=r.parentNode,l=a._neRef||a._viewNode;if(l){e.repairByViewNode(l);var u=l.previousSibling,c=l.nextSibling;Ks.safari&&(u&&u.isTextNode()&&e.repairByViewNode(u),c&&c.isTextNode()&&e.repairByViewNode(c))}else console.warn("输入清理",r),r.remove();return i}return null}}function x0e(e){var t=e.anchorNode,n=e.focusNode;return{anchor:E0e(t),focus:E0e(n)}}function E0e(e){for(var t=null;e&&!(t=e._viewNode);)e=e.parentNode;if(!t)return null;for(;t;){if(t.hasCategory(ze.Block))return t;var n=t.parentNode;if(!n||n.hasCategory([ze.Root,ze.LikeRoot]))return t;t=n}return null}function D0e(e,t){var n=t.anchor,r=t.focus;(null==n?void 0:n.isConnected)&&e.repairByViewNode(n),r!==n&&(null==r?void 0:r.isConnected)&&e.repairByViewNode(r)}function R0e(e){return e?e.replace(/[\b]/g,""):""}Object.defineProperty(N0e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:oJ.pluginName});var P0e=Ks.mobile?function(e,t,n){var r=document.getSelection(),o=!1,i=!1,a=!1,l=null;t.onRootNode("keydown",(function(e){e.keyCode!==Xs||o||(a=!0)}),!1),t.onRootNode("beforeinput",(function(t){if(a=!1,"insertCompositionText"!==t.inputType||l){if("deleteContentBackward"===t.inputType){var o=t.getTargetRanges();o.length&&!o[0].collapsed?e.emit("deleteBackward",o[0]):e.emit("deleteBackward")}}else l=function(){if(!r.rangeCount)return null;var e=r.getRangeAt(0);return n.transformDOMRange(e)||null}();"insertText"===t.inputType&&/(\r\n|\n|\r)/gm.test(t.data)&&(t.preventDefault(),e.emit("input",{composition:!1,data:t.data}))})),t.onRootNode("input",(function(t){if(Vd(t)&&(i=!0,!o&&"deleteContentBackward"!==t.inputType)){i=!1;var n=t.data;n?e.emit("input",{data:n,composition:!1}):e.emit("inputCancel")}})),t.onRootNode("compositionstart",(function(){i=!1,o=!0,l=null,e.emit("compositionstart"),r.isCollapsed||t.execCommand("delete",!0,!1)}),!1),t.onRootNode("compositionend",(function(n){var u=a;if(o=!1,a=!1,i){O0e(t,r),i=!1,!u&&l&&e.emit("beforeReplace",l),l=null;var c=n.data;c?e.emit("input",{data:c,composition:!0}):e.emit("inputCancel")}}),!1)}:function(e,t){var n=document.getSelection(),r=!1,o=!1,i=null,a=!1,l=null;t.onRootNode("keydown",(function(e){if(l={timeStamp:e.timeStamp,key:e.key},r||e.keyCode===Xs)return e.stopPropagation(),void e.stopImmediatePropagation();n.isCollapsed||(i=x0e(n))}),!1),t.onRootNode("keyup",(function(){i=null}),!1),t.onRootNode("beforeinput",(function(i){if("insertText"===i.inputType){a=!0,O0e(t,n),r=!1;var u=R0e(i.data||"");if(!u)return void e.emit("inputCancel");if(":"===i.data&&":"!==(null==l?void 0:l.key)&&":"!==(null==l?void 0:l.key))return;if(","===i.data&&","!==(null==l?void 0:l.key)&&","!==(null==l?void 0:l.key))return;l=null,window.BEFORE_INPUT_PREVENT_DEFAULT||i.preventDefault(),e.emit("input",{data:u,composition:!0})}else{if("deleteContentBackward"===i.inputType){var c=i.getTargetRanges();return c.length?e.emit("deleteBackward",c[0]):e.emit("deleteBackward"),void(a=!0)}a=!1}o&&r&&!n.isCollapsed&&t.execCommand("delete",!0,!1),o=!1})),t.onRootNode("input",(function(u){if(Vd(u))if(o=!1,a)a=!1;else if("deleteContentBackward"!==u.inputType)if(r)kt(!i,"plugins/input/src/render/input-observer/lib/chrome/pc.ts:145");else{var c=O0e(t,n);if(!(":"===u.data&&":"!==(null==l?void 0:l.key)&&":"!==(null==l?void 0:l.key)||","===u.data&&","!==(null==l?void 0:l.key)&&","!==(null==l?void 0:l.key))){l=null;var s=R0e(u.data||c);s?(e.emit("input",{data:s,composition:!1}),i&&(D0e(t,i),i=null)):e.emit("inputCancel")}}})),t.onRootNode("compositionstart",(function(){r=!0,o=!0,e.emit("compositionstart");var t=n.focusNode,i=n.focusOffset;if(n.isCollapsed&&Ld(t)){var a=t.data;t.data=a.substring(0,i)+"​​​​​​"+a.substring(i),n.setBaseAndExtent(t,i,t,i)}}),!1),t.onRootNode("compositionend",(function(i){if(o=!1,a)a=!1;else if(O0e(t,n),r){r=!1;var l=R0e(i.data);l?e.emit("input",{data:l,composition:!0}):e.emit("inputCancel")}}),!1)};function S0e(e,t,n){return t=Qe(t),Xe(e,T0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function T0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T0e=function(){return!!e})()}var A0e=function(e){function t(e,n){var r;return Ye(this,t),r=S0e(this,t),Object.defineProperty(Je(r),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r.renderer=e,r._init(e,n),r}return et(t,e),Ke(t,[{key:"_init",value:function(e,t){Ks.ios?function(e,t){var n,r=null;t.onRootNode("keydown",(function(e){e.keyCode===Xs&&(e.stopPropagation(),e.stopImmediatePropagation())}),!1),t.onRootNode("beforeinput",(function(t){var r,o,i=t.inputType,a=t.getTargetRanges(),l=function(){var r;if(a.length){var o=a[0];n=o,o.startContainer===o.endContainer&&o.startContainer.nodeType===Node.TEXT_NODE&&o.endOffset-o.startOffset>0&&e.emit("deleteBackward",o)}var i=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text/plain");i&&e.emit("input",{composition:!1,data:i})};return"insertReplacementText"===i?(t.preventDefault(),void l()):"insertText"===i&&/(\r\n|\n|\r)/gm.test(t.data)&&!1!==(null===(r=a[0])||void 0===r?void 0:r.collapsed)?(t.preventDefault(),n&&(e.emit("deleteBackward",n),n=void 0),void e.emit("input",{composition:!1,data:t.data})):void("insertText"!==i||!1!==(null===(o=a[0])||void 0===o?void 0:o.collapsed)||l())}),!1),t.onRootNode("input",(function(t){if(Vd(t)){var n=t.inputType;"deleteContentBackward"!==n?"insertCompositionText"!==n&&t.data&&e.emit("input",{data:t.data,composition:!1}):e.emit("deleteBackward")}}),!1),t.onRootNode("compositionstart",(function(){r=document.getSelection().focusNode}),!1),t.onRootNode("compositionend",(function(){try{if(Ld(r)||r._neRef.isFillerNode()){var e=r.parentNode,n=e._neRef||e._viewNode;n&&t.repairByViewNode(n)}}catch(e){}}),!1)}(this,e):Ks.safari?function(e,t){var n=document.getSelection(),r=!1;t.onRootNode("keydown",(function(e){e.keyCode===Xs&&(e.stopPropagation(),e.stopImmediatePropagation())}),!1),t.onRootNode("input",(function(o){Vd(o)&&("deleteContentBackward"!==o.inputType?r||(O0e(t,n),o.data&&e.emit("input",{data:o.data,composition:!1})):e.emit("deleteBackward"))}),!1),t.onRootNode("beforeinput",(function(o){if("insertReplacementText"!==o.inputType)r||n.isCollapsed||t.execCommand("delete",!0,!1);else{o.preventDefault();var i=o.getTargetRanges();if(i.length){var a=i[0];a.startContainer===a.endContainer&&a.startContainer.nodeType===Node.TEXT_NODE&&a.endOffset-a.startOffset>0&&e.emit("deleteBackward",a)}var l=o.dataTransfer.getData("text/plain");e.emit("input",{composition:!1,data:l})}}),!1),t.onRootNode("compositionstart",(function(){r=!0,e.emit("compositionstart"),n.isCollapsed||t.execCommand("delete",!0,!1)}),!1),t.onRootNode("compositionend",(function(o){r=!1,O0e(t,n),o.data&&e.emit("input",{data:o.data,composition:!0})}),!1)}(this,e):Ks.firefox?function(e,t){var n=document.getSelection(),r=null;t.onRootNode("keydown",(function(e){e.keyCode===Xs&&(e.stopPropagation(),e.stopImmediatePropagation()),n.isCollapsed||(r=x0e(n))}),!1),t.onRootNode("keyup",(function(){r=null}),!1),t.onRootNode("compositionstart",(function(){n.isCollapsed||t.execCommand("delete",!0,!1),e.emit("compositionstart")}),!1),t.onRootNode("input",(function(o){Vd(o)&&(o.isComposing||(O0e(t,n),o.data&&(e.emit("input",{data:o.data,composition:!1}),r&&(D0e(t,r),r=null))))}))}(this,e):P0e(this,e,t)}},{key:"destroy",value:function(){this.removeAllListeners()}}]),t}(ut),j0e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Object.assign({},t)}return Ke(e,[{key:"autoSpacing",get:function(){return this._option.autoSpacing||!1}}]),e}();function I0e(e,t,n){return t=Qe(t),Xe(e,B0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function B0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B0e=function(){return!!e})()}Object.defineProperty(j0e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"input"});var M0e=function(e){function t(){return Ye(this,t),I0e(this,t,arguments)}return et(t,e),Ke(t,[{key:"getValue",value:function(){return this.plugin.getAutoSpacing()}},{key:"execute",value:function(e){return this.plugin.setAutoSpacing(e),!0}}]),t}(Qy);function F0e(e,t,n){return t=Qe(t),Xe(e,L0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function L0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L0e=function(){return!!e})()}Object.defineProperty(M0e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:HJ.command.autoSpacing});var U0e=function(e){function t(){var e;return Ye(this,t),e=F0e(this,t,arguments),Object.defineProperty(Je(e),"_observer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_autoSpacing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t,n,r){var o=this;kt(e.hasExtendMethod("repaintSelection"),"plugins/input/src/render/index.ts:29");var i=new A0e(e,t),a=document.getSelection();this._autoSpacing=this.option.autoSpacing,this._observer=i,i.on("compositionstart",(function(){e.emit("compositionstart")})),i.on("input",(function(t){var n=t.data,i=t.composition;if(e.emit("input"),r.queryCommandState("canInput")!==ht){var a=!1;"@"!==n&&"、"!==n&&"/"!==n||e.emitPluginEvent("beforeinput",{stop:function(){a=!0},data:"、"===n?"/":n,originData:n}),a||r.execCommand("input",n,i,o._autoSpacing),requestAnimationFrame((function(){V0e(e)}))}else requestAnimationFrame((function(){V0e(e)}))})),i.on("deleteBackward",(function(n){if(n)try{var o=t.transformDOMRange(n),i=o.start,l=o.end,u=e.kernel.createModelRange(i,l);if(!u||u.start.node===u.end.node&&u.start.offset===u.end.offset)return;r.execCommand("deleteByRange",u)}catch(e){console.error(e),console.warn("failed to execute deleteBackward")}else a.isCollapsed&&r.execCommand("delete");requestAnimationFrame((function(){V0e(e)}))})),i.on("beforeReplace",(function(t){try{if(!t||t.start.node===t.end.node&&t.start.offset===t.end.offset)return;r.execCommand("deleteByRange",t)}catch(e){console.error(e),console.warn("failed to execute deleteByModelRange")}requestAnimationFrame((function(){V0e(e)}))})),i.on("inputCancel",(function(){e.repaintSelection(!0)}));var l=e.getService(OTe.ID);l&&(l.registerHotKey(DRe.newLine.name,DRe.newLine.keys,(function(e){e.stop(),r.queryCommandState("canInput")!==ht&&r.execCommand("input","\n",!1)})),l.registerHotKey(DRe.tab.name,DRe.tab.keys,(function(e){e.stop(),r.queryCommandState("canInput")!==ht&&r.execCommand("input","\t",!1)}),HL))}},{key:"destroy",value:function(){this._observer.destroy(),this._observer=null,Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"setAutoSpacing",value:function(e){this._autoSpacing=e}},{key:"getAutoSpacing",value:function(){return this._autoSpacing}}]),t}(rb);function V0e(e){var t,n=document.getSelection(),r=n.rangeCount?n.getRangeAt(0):null;if(r&&r.collapsed&&r.startContainer.nodeType===Node.TEXT_NODE){var o=null===(t=r.startContainer.parentNode)||void 0===t?void 0:t._neRef,i=null==o?void 0:o.closest(ze.Block),a=null==i?void 0:i.previousSibling,l=null==i?void 0:i.nextSibling;i&&(e.repairByViewNode(i),a&&e.repairByViewNode(a),l&&e.repairByViewNode(l),e.repaintSelection(!0))}}function H0e(e,t,n){return t=Qe(t),Xe(e,z0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function z0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(z0e=function(){return!!e})()}Object.defineProperty(U0e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:HJ.pluginName}),Object.defineProperty(U0e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:j0e}),Object.defineProperty(U0e,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[M0e]});var W0e=function(e){function t(){return Ye(this,t),H0e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t,n,r){e.onRootNode("keydown",(function(t){if(299!==t.keyCode&&!t.metaKey&&!t.ctrlKey&&ed.isEnter(t)){var n=r.queryCommandValue("getSelectLabel");n&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),e.emitPluginEvent("openLabelEditor",n))}}),!1)}}]),t}(rb);function q0e(e,t,n){return t=Qe(t),Xe(e,$0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($0e=function(){return!!e})()}Object.defineProperty(W0e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"label"});var K0e=function(e){function t(){return Ye(this,t),q0e(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.ATTR_NAME,name:"ne-line-height",value:t}}}]),t}(bp);function Y0e(e,t,n){return t=Qe(t),Xe(e,G0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function G0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(G0e=function(){return!!e})()}var J0e=function(e){function t(){return Ye(this,t),Y0e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator("lineHeight",new K0e)}}]),t}(rb);function X0e(e,t,n){return t=Qe(t),Xe(e,Q0e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Q0e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Q0e=function(){return!!e})()}Object.defineProperty(J0e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:_Q.pluginName});var Z0e=function(e){function t(){return Ye(this,t),X0e(this,t,arguments)}return et(t,e),Ke(t,[{key:"insertLink",value:function(){return this.plugin._insertLink()}},{key:"extendLinkToolbar",value:function(e){this.plugin._extends.push(e)}},{key:"extendAppLinkToolbar",value:function(e){this.plugin._appExtends.push(e)}},{key:"destroy",value:function(){}}]),t}(MMe);function e1e(e,t,n){return t=Qe(t),Xe(e,t1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function t1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t1e=function(){return!!e})()}var n1e=function(e){function t(e){var n;return Ye(this,t),n=e1e(this,t,[e]),Object.defineProperty(Je(n),"state",{enumerable:!0,configurable:!0,writable:!0,value:{text:"",src:"",visible:!0,valid:!0}}),Object.defineProperty(Je(n),"_textRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"_srcRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"_clearTask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_handleDescKeyDown",{enumerable:!0,configurable:!0,writable:!0,value:function(e){ed.isEscape(e)?(e.preventDefault(),n.props.onClose(),n.props.onCancel()):ed.isEnter(e)&&n._srcRef.current&&n._srcRef.current.focus()}}),Object.defineProperty(Je(n),"_handleSrcKeyDown",{enumerable:!0,configurable:!0,writable:!0,value:function(e){if(ed.isEscape(e))e.preventDefault(),n.props.onClose(),n.props.onCancel();else if(ed.isEnter(e)){if(e.preventDefault(),!n.state.valid)return;if(n._textRef.current&&n._srcRef.current){var t=n._textRef.current.input.value,r=n._srcRef.current.input.value;t&&r&&(n.props.onClose(),n.props.onConfirm(t,r))}}}}),Object.defineProperty(Je(n),"_handleTextChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({text:e.target.value})}}),Object.defineProperty(Je(n),"_handleSrcChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=e.target.value;n.setState({src:t,valid:!t||n.props.isValidURL(t)})}}),Object.defineProperty(Je(n),"_handleSubmit",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e,t;n.setState({visible:!1}),n._textRef.current&&n._srcRef.current&&(e=n._textRef.current.input.value||gc("链接"),t=n._srcRef.current.input.value),n.props.onClose(),e&&t?n.props.onConfirm(e,t):n.props.onCancel()}}),n.state=Object.assign(Object.assign({},n.state),{visible:e.visible,text:e.text,src:e.src}),n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this,t=this._srcRef.current,n=this._textRef.current;this._clearTask=dd((function(){if(n&&"text"===e.props.defaultSelect)return n.focus(),void n.select();t&&(e._clearTask=dd((function(){t.focus(),t.select()})))}),100)}},{key:"componentWillUnmount",value:function(){var e;null===(e=this._clearTask)||void 0===e||e.call(this)}},{key:"render",value:function(){var e=this,t=this._renderEditor();return nc().createElement(Cj,{placement:["bottomLeft","bottomRight","topLeft","topRight"],targetNode:this.props.targetNode,uiEmitter:this.props.uiEmitter,onClose:function(){e.props.onClose(),e.props.onCancel()},className:"ne-ui-overlay-bar-wrap",visible:this.state.visible},t)}},{key:"_renderEditor",value:function(){return nc().createElement("div",{className:"ne-link-editor"},nc().createElement("div",{className:"ne-link-editor-field"},nc().createElement("label",null,nc().createElement("div",{className:"ne-link-editor-field-title"},gc("文本")),nc().createElement(hj,{ref:this._textRef,disabled:!this.props.allowModifyText,placeholder:gc("添加描述"),onKeyDown:this._handleDescKeyDown,onChange:this._handleTextChange,value:this.state.text||""}))),nc().createElement("div",{className:"ne-link-editor-field"},nc().createElement("label",null,nc().createElement("div",{className:"ne-link-editor-field-title"},gc("链接")),nc().createElement(hj,{ref:this._srcRef,placeholder:gc("链接地址"),onKeyDown:this._handleSrcKeyDown,onChange:this._handleSrcChange,value:this._getUserSrc(this.state.src)||""})),this._renderTip()),nc().createElement(Swe,{onClick:this._handleSubmit,disabled:!this.state.src||!this.state.valid},gc("确定")))}},{key:"_renderTip",value:function(){return this.state.valid?null:nc().createElement("div",{className:"ne-link-error-tip"},gc("请输入正确的链接"))}},{key:"_getUserSrc",value:function(e){return e===SL?void 0:e}}]),t}(tc.Component);function r1e(e,t,n){return t=Qe(t),Xe(e,o1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function o1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o1e=function(){return!!e})()}Object.defineProperty(n1e,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{visible:!0,allowModifyText:!0,defaultSelect:"src",isValidURL:function(){return!1},onClose:function(){},onCancel:function(){},onConfirm:function(){}}});var i1e=function(e){function t(){var e;return Ye(this,t),e=r1e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_overlay",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_modeOverlay",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_modeMenuRef",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"defaultIndex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_isShowMenu",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_keyDownHandler",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e._modeMenuRef.current;if(n)if(ed.isEnter(t)){if(n.getSelected){var r=n.getSelected();if(r)return t.preventDefault(),t.stopPropagation(),e._handleSubmit(r.item,r.index)}}else if(ed.isArrowDown(t))t.preventDefault(),n.selectDown&&n.selectDown();else{if(!ed.isArrowUp(t))return void e._closeMenu();t.preventDefault(),n.selectUp&&n.selectUp()}}}),Object.defineProperty(Je(e),"_handleCompositionStart",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._closeMenu()}}),Object.defineProperty(Je(e),"_handleClick",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._closeMenu()}}),Object.defineProperty(Je(e),"_getItems",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.viewNode.attrs.src,n=e.pluginContext.getExtendLinkBtn({src:t,text:e._getLinkText()});return(n=n?n.filter(Boolean):[]).length&&n.push("|"),n=n.map((function(t){if("|"!==t&&t.onClick){var n=t.onClick;return Object.assign(Object.assign({},t),{onClick:function(){n(e.viewNode)}})}return t})),n=e.pluginContext.needShowDesktopButton(t)?[].concat(pn(n),[{type:"button",icon:"o-desktop-open",tooltip:gc("打开文档"),onClick:function(){var t=e.viewNode.attrs.src;e.renderer.emitEvent("visitLocalLink",t)}},{type:"button",icon:"o-visit-link",tooltip:gc("浏览器访问"),onClick:function(){var t=e.viewNode.attrs.src;e.renderer.emitEvent("visitLink",t,!0)}}]):[].concat(pn(n),[{type:"button",icon:"o-visit-link",tooltip:gc("访问链接"),onClick:function(){var t=e.viewNode.attrs.src;e.renderer.emitEvent("visitLink",t,!0)}}]),[].concat(pn(n),[{type:"button",icon:"o-edit",tooltip:gc("编辑链接"),onClick:function(){e._openEditor({canRollbackHistory:!1,defaultSelect:"text"})}},{type:"button",icon:"action-copy",tooltip:gc("复制"),onClick:function(){var t=document.createRange();t.selectNode(e.viewNode._virtualNode._domNode),e.renderer.execCommand("copy",t)?LE.success(gc("复制成功")):LE.error(gc("复制失败"))}},{type:"button",icon:"o-unlink",tooltip:gc("取消链接"),onClick:function(){e.renderer.execCommand("unlink",e.viewNode.attrs.id)}}])}}),Object.defineProperty(Je(e),"_handleSubmit",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){e._closeMenu(),t.onClick&&n!==e.defaultIndex&&t.onClick(e.viewNode),e.renderer.execCommand("focusCard",e.viewNode.attrs.id,BL)}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._rootNode=$y.createElement("ne-link"),this._contentNode=$y.createElement("ne-link-content"),this._modeMenuRef=nc().createRef(),$y.setAttributeByChange(this._rootNode,e),this._rootNode.appendChild(this._contentNode),this.afterInit()}},{key:"afterInit",value:function(){var e=this;this.pluginContext.on("openEditor",(function(t,n){var r=n.defaultSelect;t===e.viewNode.attrs.id&&e._openEditor({canRollbackHistory:!0,defaultSelect:r})})),this.pluginContext.on("openMenu",(function(t){t.id===e.viewNode.attrs.id&&e._openMenu()})),this.bindEvent()}},{key:"destroy",value:function(){var e;null===(e=this._overlay)||void 0===e||e.cancel(),this._closeMenu()}},{key:"updateAttribute",value:function(e){$y.syncDOMAttrChange(this._rootNode,e)}},{key:"bindEvent",value:function(){var e=this,t=function(t){Dc(t)||e._isShowMenu||(e._overlay=xj.openOnlyByType("link",{containerNode:e.renderer.scrollableOverlayNode,targetNode:e._getTargetNode(),reactComponent:nc().createElement(fDe,{placement:["bottomLeft","topLeft","bottomRight","topRight"],items:e._getItems()})}))};Ks.mobile?kc(this,this._rootNode,"click",t,!1):(kc(this,this._rootNode,"mouseenter",t,!1),this.pluginContext.renderer.on("selectionchange",(function(){var t;null===(t=e._overlay)||void 0===t||t.rerender({items:e._getItems()})})),kc(this,this._rootNode,"click",(function(t){if(!Dc(t)){var n=e.viewNode.attrs,r=n.external,o=n.src;e.pluginContext.needShowDesktopButton(o)&&!(Ks.macos?t.metaKey:t.ctrlKey)?e.renderer.emitEvent("visitLocalLink",o):e.renderer.emitEvent("visitLink",o,!!(Ks.macos?t.metaKey:t.ctrlKey)||r)}}),!1))}},{key:"bindMenuEvent",value:function(){kc(this,this.renderer.domRootNode,"keydown",this._keyDownHandler,!0),kc(this,this.renderer.domRootNode,"compositionstart",this._handleCompositionStart),kc(this,window,"click",this._handleClick)}},{key:"removeMenuEvent",value:function(){this.renderer.domRootNode.removeEventListener("keydown",this._keyDownHandler,!0),this.renderer.domRootNode.removeEventListener("compositionstart",this._handleCompositionStart),window.removeEventListener("click",this._handleClick)}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_getLinkText",value:function(){var e=this.viewNode.children;return e&&e.length?e.map((function(e){return e.isTextNode()?e.data:null})).filter(Boolean).join(""):gc("链接")}},{key:"_openEditor",value:function(e){var t=this,n=e.canRollbackHistory,r=void 0!==n&&n,o=e.defaultSelect,i=void 0===o?"src":o,a=this.renderer,l=this._getTargetNode();xj.open({containerNode:a.scrollableOverlayNode,targetNode:l,reactComponent:nc().createElement(n1e,{text:this._getLinkText(),targetNode:l,src:this.pluginContext.sanitizeURL(this.viewNode.attrs.src),defaultSelect:i,isValidURL:this.pluginContext.isValidURL,onCancel:function(){r&&a.execCommand("rollbackHistory",1)},onConfirm:function(e,n){n=t.pluginContext.transformURL(n);var r=t.viewNode.attrs.src,o=a.queryCommandValue("linkText",t.viewNode.attrs.id);kt(o,"plugins/link/src/render/link-element.tsx:399"),e===o&&n===r||a.execCommand("updateLink",t.viewNode.attrs.id,{text:e!==o?e:null,src:n!==r?n:null})}}),closeCallback:function(){t.renderer.execCommand("focus",{preventScroll:!0})},autoClose:!1})}},{key:"_openMenu",value:function(){this._closeMenu();var e=this.renderer,t=this._getTargetNode(),n=[{name:"link-view",text:gc("链接"),icon:"t-link",disabled:!0}].concat(pn((this.pluginContext.getExtendLinkBtn({src:this.viewNode.attrs.src})||[]).filter((function(e){return"|"!==e}))));n.length<=1||(this.defaultIndex=0,this._modeOverlay=xj.open({containerNode:e.scrollableOverlayNode,targetNode:t,overlayClassName:"ne-ui-link-mode-overlay",reactComponent:nc().createElement(Kxe,{ref:this._modeMenuRef,defaultIndex:this.defaultIndex,data:n,targetNode:t,onSubmit:this._handleSubmit}),autoClose:!1}),this._isShowMenu=!0,this.bindMenuEvent())}},{key:"_closeMenu",value:function(){var e;null===(e=this._modeOverlay)||void 0===e||e.cancel(),this._isShowMenu=!1,this.removeMenuEvent()}},{key:"_getTargetNode",value:function(){return this._contentNode.querySelector("ne-text")||this._contentNode}}]),t}(Ly);Object.defineProperty(i1e,"currentHover",{enumerable:!0,configurable:!0,writable:!0,value:null});const a1e=i1e;function l1e(e,t,n){return t=Qe(t),Xe(e,u1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function u1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u1e=function(){return!!e})()}var c1e=Object.assign(Object.assign({},_Z),{elementCtor:a1e}),s1e=function(e){function t(e){var n;return Ye(this,t),n=l1e(this,t,[e]),Object.defineProperty(Je(n),"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._option=Object.assign(Object.assign({},c1e),e),n}return et(t,e),Ke(t,[{key:"elementCtor",get:function(){return this._option.elementCtor}}]),t}(NZ);function d1e(e,t,n){return t=Qe(t),Xe(e,f1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function f1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f1e=function(){return!!e})()}Object.defineProperty(s1e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"link"});var h1e=function(e){function t(){var e;return Ye(this,t),e=d1e(this,t,arguments),Object.defineProperty(Je(e),"_extends",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"_appExtends",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"sanitizeURL",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return e.option.sanitizeURL(t)}}),Object.defineProperty(Je(e),"isValidURL",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return e.option.isValidURL(t)}}),Object.defineProperty(Je(e),"transformURL",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return e.option.transformURL(t)}}),Object.defineProperty(Je(e),"_insertLink",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=Je(e).renderer,n=null;if(t.queryCommandEnabled("insertLink"))n=t.execCommand("insertLink",gc("链接"),SL,!0,!0);else{if(!t.queryCommandEnabled("link"))return;n=t.execCommand("link",SL,!0,!0)}kt(n,"plugins/link/src/render/index.ts:148"),e.emit("openEditor",n,{defaultSelect:"src"})}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.registerBoxNode({link:{clazz:this.option.elementCtor,pluginContext:this}});var n=e.getService(OTe.ID);n&&n.registerHotKey(DRe.link.name,DRe.link.keys,(function(e){e.stop(),t._insertLink()}));var r=!1,o=[];this.kernel.editing.on("beforeExecCommand",(function(e){var t=e.commandName;e.args,"paste"===t&&(r=!0,o=[])})),this.kernel.editing.on("nodechange",(function(e){if(r){var t=e.node,n=e.type;t.isTextNode()&&"insert"===n&&o.push(t)}})),this.kernel.editing.on("afterExecCommand",(function(e){var n,i=e.commandName;if(e.args,"paste"===i){if(r=!1,1===vke()(o,"id").length){var a=null===(n=o[0])||void 0===n?void 0:n.parentNode;"link"===(null==a?void 0:a.nodeName)&&t.emit("openMenu",a)}o=[]}}))}},{key:"getExtendLinkBtn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._extends,n=[];return t.forEach((function(t){var r=t(e);r&&(Array.isArray(r)||(r=[r]),n.push.apply(n,pn(r)))})),n.filter(Boolean)}},{key:"needShowDesktopButton",value:function(e){return this.option.allowToOpenLocal("link",e)}}]),t}(rb);Object.defineProperty(h1e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:tZ.pluginName}),Object.defineProperty(h1e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:s1e}),Object.defineProperty(h1e,"Service",{enumerable:!0,configurable:!0,writable:!0,value:Z0e});var p1e={color:"color",bgColor:"backgroundColor"};function v1e(e,t,n){t=t.firstChild||t,n=n||{},ZZ.forEach((function(r){if("color"===r||"bgColor"===r)n[r]?t.style[p1e[r]]=e.theme.toVisualValue(n[r]):t.style[p1e[r]]="";else{var o="ne-".concat(r.toLowerCase());n[r]?t.setAttribute(o,n[r]):t.removeAttribute(o)}}))}function m1e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return g1e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g1e(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function g1e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&this.beforeDestroy(t)}},{key:"beforeDestroy",value:function(e){var t=this.monitorNodes.indexOf(e),n=this.node2DomMap.get(e),r=this.node2Context.get(e);t>-1&&this.monitorNodes.splice(t,1),n&&n.remove(),r&&r.destroy(),this.node2Context.delete(e),this.node2DomMap.delete(e)}},{key:"createIndexDom",value:function(e,t){var n=this,r=$y.createElement("ne-oli-i",{contentEditable:"false",className:"heading clickable"}),o={destroy:function(){}};return this.insertAtRootDOM(e,r),this.node2DomMap.set(t,r),this.node2Context.set(t,o),kc(o,r,"click",(function(e){n.iRender.emitPluginEvent("headingClickIndex",{event:e,dom:r,nodeId:t.id})})),r}},{key:"check",value:function(e){var t;return!("number"!=typeof e.attrs.indexType||e.attrs.indexType<0||e.hasCategory(ze.Heading)&&!(null===(t=e.parentNode)||void 0===t?void 0:t.hasCategory(ze.Root)))}},{key:"insertAtRootDOM",value:function(e,t){e.insertBefore(t,e.childNodes[e.childElementCount-1])}},{key:"destroy",value:function(){this.removeEventListener();var e,t=m1e(this.monitorNodes);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.node2DomMap.get(n);r&&r.remove(),this.node2DomMap.delete(n)}}catch(e){t.e(e)}finally{t.f()}this.monitorNodes.length=0}}]),e}();function y1e(e,t,n){return t=Qe(t),Xe(e,w1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function w1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w1e=function(){return!!e})()}var k1e=function(e){function t(){var e;return Ye(this,t),e=y1e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_indexNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._rootNode=$y.createElement(JZ.domNode.oli),this._indexNode=$y.createElement(JZ.domNode["oli-i"],{contentEditable:"false"}),this._contentNode=$y.createElement(JZ.domNode["oli-c"],{className:"ne-oli-content"}),$y.setAttributeByChange(this._rootNode,e),this._resetIndexSymbol(),this._rootNode.appendChild(this._indexNode),this._rootNode.appendChild(this._contentNode),this._bindEvent()}},{key:"destroy",value:function(){this._indexNode&&nu().unmountComponentAtNode(this._indexNode)}},{key:"_bindEvent",value:function(){var e=this;jc(this,this.renderer.theme,"themeChange",(function(){v1e(e.renderer,e._indexNode,e.viewNode.attrs.indexStyle)})),this._indexNode.classList.add("clickable"),kc(this,this._indexNode,"click",(function(t){e.renderer.emitPluginEvent("orderListClickIndex",{event:t,dom:e._indexNode,nodeId:e.viewNode.id})}))}},{key:"updateAttribute",value:function(e){this._resetIndexSymbol(),$y.syncDOMAttrChange(this._rootNode,e)}},{key:"repair",value:function(){var e=this._rootNode,t=this._indexNode,n=this._contentNode;n.parentNode!==e&&e.appendChild(n),t.parentNode!==e&&e.prepend(t),2!==e.childNodes.length&&Array.from(e.childNodes).forEach((function(e){e!==n&&e!==t&&e.remove()}))}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_resetIndexSymbol",value:function(){var e=this,t=this.viewNode.attrs,n=t.level,r=void 0===n?0:n,o=t.indexType,i=void 0===o?0:o,a=nc().createElement("span",{"data-level":r%3,"data-type":i,className:"ne-list-symbol"},this._getIndexText());nu().render(wS(gc("设置编号"),a,{placement:"top",mouseEnterDelay:.3}),this._indexNode,(function(){v1e(e.renderer,e._indexNode,e.viewNode.attrs.indexStyle)}))}},{key:"_getIndexText",value:function(){var e=this.viewNode.attrs,t=e.index,n=e.parentIndex,r=void 0===n?[]:n,o=e.level,i=void 0===o?0:o,a=e.indexType,l=void 0===a?0:a;try{return g1(t,i,r,l)}catch(e){console.error(e)}return""}}]),t}(Ly);function C1e(e,t,n){return t=Qe(t),Xe(e,_1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_1e=function(){return!!e})()}var N1e=function(e){function t(){var e;return Ye(this,t),e=C1e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_checkbox",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_taskListModel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_enableDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.pluginContext.useTaskListDataService()&&(this._taskListModel=this.pluginContext.initTaskListNodeModel(this.viewNode)),this._rootNode=$y.createElement(JZ.domNode.tli),this._checkbox=$y.createElement(JZ.domNode["tli-i"],{contentEditable:"false",className:["ne-checkbox",this.viewNode.attrs.checked?"ne-checkbox-checked":""]}),this._checkbox.appendChild($y.createElement("span",{className:"ne-checkbox-inner"})),this._contentNode=$y.createElement(JZ.domNode["tli-c"],{className:"ne-oli-content"}),kc(this,this._checkbox,"mousedown",(function(e){e.preventDefault(),e.stopPropagation(),t.renderer.execCommand("taskStatus",t.viewNode.attrs.id)}),!1),$y.setAttributeByChange(this._rootNode,e),this._rootNode.appendChild(this._checkbox),this._rootNode.appendChild(this._contentNode)}},{key:"destroy",value:function(){this._taskListModel&&nw(this.viewNode)&&this._taskListModel.remove()}},{key:"updateAttribute",value:function(e,t,n){this.viewNode.attrs.checked?this._checkbox.classList.add("ne-checkbox-checked"):this._checkbox.classList.remove("ne-checkbox-checked"),this._taskListModel&&this._taskListModel.syncData(n),$y.syncDOMAttrChange(this._rootNode,e)}},{key:"repair",value:function(){var e=this._rootNode,t=this._checkbox,n=this._contentNode;n.parentNode!==e&&e.appendChild(n),t.parentNode!==e&&e.prepend(t),2!==e.childNodes.length&&Array.from(e.childNodes).forEach((function(e){e!==n&&e!==t&&e.remove()}))}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}}]),t}(Ly);function O1e(e,t,n){return t=Qe(t),Xe(e,x1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function x1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x1e=function(){return!!e})()}var E1e=function(e){function t(){var e;return Ye(this,t),e=O1e(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(tw);function D1e(e,t,n){return t=Qe(t),Xe(e,R1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function R1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R1e=function(){return!!e})()}Object.defineProperty(E1e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("ITaskListRenderDataService")});var P1e=function(e){function t(){var e;return Ye(this,t),e=D1e(this,t,arguments),Object.defineProperty(Je(e),"_proxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"registerProxy",value:function(e){kt(null===this._proxy,"plugins/list/src/render/task-list-render-data-service.ts:9"),this._proxy=e}},{key:"getProxy",value:function(){return this._proxy}},{key:"destroy",value:function(){}}]),t}(E1e);function S1e(e,t,n){return t=Qe(t),Xe(e,T1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function T1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T1e=function(){return!!e})()}var A1e=function(e){function t(){var e;return Ye(this,t),e=S1e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_indexNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this._rootNode=$y.createElement(JZ.domNode.tli),this._indexNode=$y.createElement(JZ.domNode["uli-i"],{contentEditable:"false"}),this._contentNode=$y.createElement(JZ.domNode["uli-c"],{className:"ne-uli-content"}),$y.setAttributeByChange(this._rootNode,e),this._resetIndexSymbol(),this._rootNode.appendChild(this._indexNode),this._rootNode.appendChild(this._contentNode),jc(this,this.renderer.theme,"themeChange",(function(){v1e(t.renderer,t._indexNode,t.viewNode.attrs.indexStyle)}))}},{key:"updateAttribute",value:function(e){this._resetIndexSymbol(),$y.syncDOMAttrChange(this._rootNode,e)}},{key:"repair",value:function(){var e=this._rootNode,t=this._indexNode,n=this._contentNode;n.parentNode!==e&&e.appendChild(n),t.parentNode!==e&&e.prepend(t),2!==e.childNodes.length&&Array.from(e.childNodes).forEach((function(e){e!==n&&e!==t&&e.remove()}))}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_resetIndexSymbol",value:function(){this._indexNode.innerHTML=''.concat(this._getIndexText(),""),v1e(this.renderer,this._indexNode,this.viewNode.attrs.indexStyle)}},{key:"_getIndexText",value:function(){var e=this.viewNode.attrs.level;return z1(void 0===e?0:e)}}]),t}(Ly),j1e=function(){function e(){Ye(this,e)}return Ke(e,[{key:"destroy",value:function(){}},{key:"read",value:function(e,t){var n;if(e.from===XB){e.hasState("list")||e.setState("list",{});var r=e.getState("list");if(null===(n=t.attrs)||void 0===n?void 0:n.list){var o=r[t.attrs.list];o||(o=gr(),r[t.attrs.list]=o),Wo.setAttribute(t,JZ.attr.list,o)}else Wo.setAttribute(t,JZ.attr.list,gr())}}}]),e}();function I1e(e,t,n){return t=Qe(t),Xe(e,B1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function B1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B1e=function(){return!!e})()}Object.defineProperty(j1e,"NodeNames",{enumerable:!0,configurable:!0,writable:!0,value:[JZ.node.uli,JZ.node.oli,JZ.node.tli]});var M1e=function(e){function t(){return Ye(this,t),I1e(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.ATTR_NAME,name:"index-type",value:t}}}]),t}(bp);function F1e(e,t,n){return t=Qe(t),Xe(e,L1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function L1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L1e=function(){return!!e})()}var U1e=function(e){function t(){return Ye(this,t),F1e(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.ATTR_NAME,name:"ne-level",value:t}}}]),t}(bp);function V1e(e,t,n){return t=Qe(t),Xe(e,H1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function H1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H1e=function(){return!!e})()}var z1e=function(e){function t(){return Ye(this,t),V1e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBoxNode(JZ.node.oli,k1e),e.registerBoxNode(JZ.node.uli,A1e),e.registerBoxNode(JZ.node.tli,N1e,this);var t=e.kernel.getService(qB.ID);t&&t.registerINodeNodePreReader(j1e.NodeNames,new j1e),e.registerAttrTranslator({level:new U1e,indexType:new M1e}),this._initHotKey()}},{key:"afterInit",value:function(){var e=this.renderer.getService($Ze.ID);e&&e.registerHeadingProcessor(new b1e(this.renderer))}},{key:"useTaskListDataService",value:function(){var e;return this.option.enableDynamic&&(null===(e=this.service)||void 0===e?void 0:e.getProxy())}},{key:"initTaskListNodeModel",value:function(e){var t,n=null===(t=this.service)||void 0===t?void 0:t.getProxy();if(n)return new n(e,this.renderer)}},{key:"_initHotKey",value:function(){var e=this.renderer,t=e.getService(OTe.ID);t&&[DRe.unorderedList,DRe.orderedList,DRe.taskList].forEach((function(n){var r=n.keys,o=n.name;t.registerHotKey(o,r,(function(t){t.stop(),e.execCommand(o)}))}))}}]),t}(rb);function W1e(e,t,n){return t=Qe(t),Xe(e,q1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function q1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(q1e=function(){return!!e})()}Object.defineProperty(z1e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:JZ.pluginName}),Object.defineProperty(z1e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:r1}),Object.defineProperty(z1e,"Service",{enumerable:!0,configurable:!0,writable:!0,value:P1e});var $1e=function(e){function t(){var e;return Ye(this,t),e=W1e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._rootNode=$y.createElement(P2.domNode.mark),this._contentNode=$y.createElement(P2.domNode["mark-content"]),this._rootNode.appendChild(this._contentNode)}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}}]),t}(Ly);function K1e(e,t,n){return t=Qe(t),Xe(e,Y1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Y1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y1e=function(){return!!e})()}var G1e=function(e){function t(){return Ye(this,t),K1e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBoxNode(P2.node.mark,$1e)}}]),t}(rb);function J1e(e,t,n){return t=Qe(t),Xe(e,X1e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function X1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X1e=function(){return!!e})()}Object.defineProperty(G1e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:P2.pluginName});var Q1e=function(e){function t(){return Ye(this,t),J1e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=e.kernel.requireService(GI.ID),n=e.requireService(aLe.ID);n.registerQuickInput({trigger:"whiteSpace",match:function(e){return t.getMarkdownMatchContext(WI.whiteSpace,e)||!1}},(function(e){var t=e.matcher,n=e.info;t.exec(n)})),n.registerQuickInput({trigger:"enter",match:function(e){return t.getMarkdownMatchContext(WI.enter,e)||!1}},(function(e){var t=e.matcher,n=e.info;t.exec(n)}))}}]),t}(rb);function Z1e(e,t,n){return t=Qe(t),Xe(e,e2e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function e2e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(e2e=function(){return!!e})()}Object.defineProperty(Q1e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:$I.pluginName});var t2e=function(e){function t(e,n){var r;return Ye(this,t),r=Z1e(this,t),Object.defineProperty(Je(r),"_apiURL",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_markdownText",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(r),"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_request",{enumerable:!0,configurable:!0,writable:!0,value:null}),kt(n,"plugins/markdown-paste-parse/src/render/markdown-parse-task.ts:16"),r._id=mr(),r}return et(t,e),Ke(t,[{key:"markdownText",get:function(){return this._markdownText}},{key:"run",value:function(){var e=this;return this.emit(Lre.EVENT_START),new Promise((function(t){e._request=cs({method:"post",url:e._apiURL,data:{from:"markdown",to:"lake",content:e._markdownText},success:function(n){var r,o=(null===(r=null==n?void 0:n.data)||void 0===r?void 0:r.content)||"";e.emit(Lre.EVENT_SUCCESS,o),t({result:o})},error:function(n){n=us(n),e.emit(Lre.EVENT_ERROR,n),t({error:n})}})}))}},{key:"abort",value:function(){this._request&&this._request.xhr.abort()}}]),t}(Lre),n2e=Ke((function e(t,n){Ye(this,e),Object.defineProperty(this,"option",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"doParse",{enumerable:!0,configurable:!0,writable:!0,value:n})}));function r2e(e,t,n){return t=Qe(t),Xe(e,o2e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function o2e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o2e=function(){return!!e})()}var i2e=function(e){function t(){var e;return Ye(this,t),e=r2e(this,t,arguments),Object.defineProperty(Je(e),"_opening",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_onClick",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.doParse(),e.close()}}),Object.defineProperty(Je(e),"isOpening",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e._opening}}),Object.defineProperty(Je(e),"_setOpening",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._opening=t}}),Object.defineProperty(Je(e),"close",{enumerable:!0,configurable:!0,writable:!0,value:function(){rDe.close?rDe.close(t.key):rDe.destroy&&1===rDe.destroy.length&&rDe.destroy(t.key)}}),Object.defineProperty(Je(e),"open",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._opening=!0,rDe.open({key:t.key,className:"ne-markdown-paste-parse-notify",message:gc("是否需要做样式转换?"),description:gc("检测到粘贴内容符合 Markdown 语法,是否需要做样式转换?"),duration:e.option.duration,btn:nc().createElement(Swe,{type:"primary",size:"small",onMouseDown:function(e){return e.preventDefault()},onClick:e._onClick},gc("立即转换")),onClose:function(){e._setOpening(!1)}})}}),e}return et(t,e),Ke(t)}(n2e);Object.defineProperty(i2e,"key",{enumerable:!0,configurable:!0,writable:!0,value:"markdown-paste-parse"});var a2e={convertURL:"",duration:null,NotificationManager:i2e},l2e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},a2e,t)}return Ke(e,[{key:"convertURL",get:function(){return this._option.convertURL}},{key:"duration",get:function(){return this._option.duration}},{key:"NotificationManager",get:function(){return this._option.NotificationManager}}]),e}();Object.defineProperty(l2e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"markdownPasteParse"});var u2e=[/^\s*([\*\-\+]|\d+\.)\s+/m,/^\s*#{1,6}\s+/m,/\[(.*?)\]\(([\S]+?)\)/m,/\[(.*?)\]\(([\S]+?)\s+?["'][\S]+?["']\)/m,/^\s*>\s?/m,/(^|\r?\n)(`{3,})[\s\S]*?\1($|\r?\n)/,/^\s*\|(([^\|]+?)\|){2,}\s*$/m];function c2e(e,t,n){return t=Qe(t),Xe(e,s2e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function s2e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s2e=function(){return!!e})()}var d2e=function(e){function t(){var e;return Ye(this,t),e=c2e(this,t,arguments),Object.defineProperty(Je(e),"_notificationManager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_parseTask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_markdownText",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(Je(e),"_clearParseTask",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t,n;null===(t=e._parseTask)||void 0===t||t.abort(),null===(n=e._parseTask)||void 0===n||n.destroy(),e._parseTask=null,e._markdownText=""}}),Object.defineProperty(Je(e),"_createParseTask",{enumerable:!0,configurable:!0,writable:!0,value:function(){if(kt(e._markdownText,"plugins/markdown-paste-parse/src/render/index.ts:70"),!e.option.convertURL&&e.kernel.getSupportedReaderTypes().includes("text/markdown"))try{var t=e.kernel.readData("text/markdown",e._markdownText);if(t)return void(e.renderer.queryCommandState("undo")===ht?LE.error(gc("内容已变更,无法插入 Markdown 内容")):(e.renderer.execCommand("undo"),e.renderer.execCommand("markdownPasteParse",t)||LE.error(gc("未能插入内容"))))}catch(e){}e._parseTask=new t2e(e.option.convertURL,e._markdownText),e._parseTask.on("success",(function(t){e._clearParseTask(),t&&(e.renderer.queryCommandState("undo")===ht?LE.error(gc("内容已变更,无法插入 Markdown 内容")):(e.renderer.execCommand("undo"),e.renderer.execCommand("markdownPasteParse",t)||LE.error(gc("未能插入内容"))))})),e._parseTask.on("error",(function(){e._clearParseTask(),LE.error(gc("markdown语法转换失败"))})),e._parseTask.run()}}),Object.defineProperty(Je(e),"_matchedMarkdownText",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._clearParseTask(),e._markdownText=t,e._notificationManager.open()}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this,n=this.option.NotificationManager;n&&(this._notificationManager=new n(this.option,this._createParseTask),this.kernel.editing.on("afterExecCommand",(function(e){var n,r=e.commandName,o=e.args;if("paste"===r){var i=cn(o,1)[0],a=i.getData("text/plain"),l=i.getData("text/html");if(Array.isArray(i.types)&&i.types.includes("text/ne-inode"))return;"string"==typeof(n=l)&&n&&/
》]$/,matchPosition:function(e,t,n){if(!n)return e.acceptNode(t.node.nodeName,K3.node);var r=n.parentNode;return!(!r||!e.acceptNode(r.nodeName,K3.node))}},(function(e){n.wrapQuote(e)}));var r=e.getService(OTe.ID);r&&r.registerHotKey(DRe.quote.name,DRe.quote.keys,(function(t){t.stop(),e.execCommand("quote")}))}}]),t}(rb);function F2e(e,t,n){return t=Qe(t),Xe(e,L2e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function L2e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L2e=function(){return!!e})()}Object.defineProperty(M2e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:K3.pluginName}),Object.defineProperty(M2e,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[j2e]});var U2e=function(e){function t(){var e;return Ye(this,t),e=F2e(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(tw);function V2e(e,t,n){return t=Qe(t),Xe(e,H2e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function H2e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H2e=function(){return!!e})()}Object.defineProperty(U2e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(Ude.service.IVisibilityRenderService)});var z2e=function(e){function t(){var e;return Ye(this,t),e=V2e(this,t,arguments),Object.defineProperty(Je(e),"requestAppearByNodeID",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e.renderer.engine.viewDocument.getNodeById(t);(null==n?void 0:n._virtualNode)&&(n._virtualNode.isAppear||n._virtualNode.$appear())}}),Object.defineProperty(Je(e),"delegateVisibleChange",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){var r;null===(r=e.plugin._visibilityController)||void 0===r||r.watchNode(t,n)}}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){}}]),t}(U2e);function W2e(e,t,n){return t=Qe(t),Xe(e,q2e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function q2e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(q2e=function(){return!!e})()}var $2e=Ks.macos?"metaKey":"ctrlKey",K2e=function(e){function t(){var e;return Ye(this,t),e=W2e(this,t),Object.defineProperty(Je(e),"_findDialogIsOpen",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e._initEvent(),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){this.removeAllListeners()}},{key:"_initEvent",value:function(){var e,t=this;kc(this,window,"keydown",(function(e){e[$2e]&&"f"===e.key||e[$2e]&&"g"===e.key||e[$2e]&&e.shiftKey&&"g"===e.key?t._findDialogIsOpen=!0:"Escape"===e.key&&(t._findDialogIsOpen=!1,t.emit("maybePageSearchCancel"))})),kc(this,window,"blur",(function(){clearTimeout(e),e=setTimeout((function(){t._findDialogIsOpen&&"visible"===document.visibilityState&&t.emit("maybePageSearch")}),300)})),kc(this,window,"focus",(function(){clearTimeout(e),e=null}))}},{key:"reset",value:function(){this._findDialogIsOpen=!1}}]),t}(ut),Y2e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_detector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_visibilityObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lazyInitObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isRunning",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pauseState",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_lazyInitNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_visibilityNodes",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),this._init()}return Ke(e,[{key:"_init",value:function(){var e=this;this._detector=new K2e,this._visibilityObserver=new IntersectionObserver((function(t){e._pauseState||t.forEach((function(t){var n=t.isIntersecting,r=t.target;r.isConnected&&e._perform(r,n)}))})),this._lazyInitObserver=new IntersectionObserver((function(t){e._pauseState||t.forEach((function(t){var n=t.target,r=t.isIntersecting;r&&(e._lazyInitNodes.delete(n),e._lazyInitObserver.unobserve(n),e._perform(n,r))}))})),this._detector.on("maybePageSearch",(function(){e._suspend()})),this._detector.on("maybePageSearchCancel",(function(){e._resume()}))}},{key:"watchNode",value:function(e,t){var n=t||{},r=n.lazyInit,o=n.visibility;(r||o)&&(this._pauseState&&this._perform(e,!0),o?(this._visibilityNodes.add(e),this._visibilityObserver.observe(e)):(this._lazyInitNodes.add(e),this._lazyInitObserver.observe(e)))}},{key:"destroy",value:function(){this._visibilityNodes.clear(),this._visibilityNodes=null,this._lazyInitNodes.clear(),this._lazyInitNodes=null,this._lazyInitObserver.disconnect(),this._visibilityObserver.disconnect(),this._detector.destroy()}},{key:"run",value:function(){var e=this;if(!this._isRunning){this._isRunning=!0;var t=this.renderer,n=null;t.on("contentchange",(function(t){var r=t.mode;r!==He.History&&r!==He.User||e._detector.reset(),window.clearTimeout(n),n=setTimeout((function(){e._resume()}),300)}))}}},{key:"_perform",value:function(e,t){var n,r=null===(n=e._neRef)||void 0===n?void 0:n._virtualNode;kt(r,"plugins/render-assistant/src/render/lib/visibility-controller/index.ts:135");var o=r.isAppear;t?o||r.$appear():o&&!e.classList.contains("ne-focused")&&r.$disappear()}},{key:"_resume",value:function(){this._pauseState&&(this._pauseState=!1,function(e,t){if(null==e?void 0:e.length){var n=t.getBoundingClientRect();n={top:n.top-0,bottom:n.bottom+0},e.forEach((function(e){var t;if(e.isConnected){var r=null===(t=e._neRef)||void 0===t?void 0:t._virtualNode;if(r){var o=r.isAppear,i=r.getMainDOMNode();if(null==i?void 0:i.isConnected){var a=i.parentNode.getBoundingClientRect();a.top>=n.bottom||a.bottom<=n.top?o&&!i.classList.contains("ne-focused")&&r.$disappear():o||r.$appear()}}}}))}}(Array.from(this._visibilityNodes),this.renderer.scrollNode))}},{key:"_suspend",value:function(){var e;this._pauseState||(this._pauseState=!0,this._lazyInitObserver.disconnect(),(e=Array.from(this._visibilityNodes).concat(Array.from(this._lazyInitNodes))).length&&e.forEach((function(e){var t;if(e.isConnected){var n=null===(t=e._neRef)||void 0===t?void 0:t._virtualNode;n&&(n.isAppear||n.$appear())}})))}}]),e}();function G2e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(G2e=function(){return!!e})()}function J2e(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,G2e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"afterInit",value:function(){this._registerHotKey(),Cr(Qe(t.prototype),"afterInit",this).call(this)}},{key:"destroy",value:function(){this._destroyHotKey(),Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"getHotKeyConfig",value:function(){return{copy:!0,cut:!0,delete:!0}}},{key:"_registerHotKey",value:function(){var e,t=null===(e=this.editor.renderer.getService(OTe.ID))||void 0===e?void 0:e.getCardHotKeyHelper();if(t){var n=this.getHotKeyConfig();n&&this.id&&t.register(this.id,n)}}},{key:"_destroyHotKey",value:function(){var e,t=null===(e=this.editor.renderer.getService(OTe.ID))||void 0===e?void 0:e.getCardHotKeyHelper();t&&this.id&&t.destroyHotKey(this.id)}}]),t}(e)}var X2e=function(){function e(t,n){var r=this;Ye(this,e),Object.defineProperty(this,"renderer",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"option",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"onlineStatus",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"handleChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t,n=e.addedNodes,o=null===(t=null==n?void 0:n.filter((function(e){return e.hasCategory(ze.Card)})))||void 0===t?void 0:t.map((function(e){return r.renderer.getVirtualNode(e)}));r.onlineStatus||o.forEach((function(e){return r.offlineNode(e)}))}}),jc(this,t,"contentchange_private",this.handleChange)}return Ke(e,[{key:"offline",value:function(){var e,t=this;this.onlineStatus=!1;var n=null===(e=this.renderer.kernel.model.document)||void 0===e?void 0:e.getNodesByCategory(ze.Card).filter((function(e){return e.isConnected}));n&&n.map((function(e){return t.renderer.getViewNodeById(e.id)})).filter(Boolean).map((function(e){return t.renderer.getVirtualNode(e)})).forEach((function(e){return t.offlineNode(e)}))}},{key:"online",value:function(){var e,t=this;this.onlineStatus=!0;var n=null===(e=this.renderer.kernel.model.document)||void 0===e?void 0:e.getNodesByCategory(ze.Card).filter((function(e){return e.isConnected}));n&&n.map((function(e){return t.renderer.getViewNodeById(e.id)})).filter(Boolean).map((function(e){return t.renderer.getVirtualNode(e)})).forEach((function(e){return t.onlineNode(e)}))}},{key:"offlineNode",value:function(e){e&&this.option.offlineNode(e)}},{key:"onlineNode",value:function(e){e&&this.option.onlineNode(e)}},{key:"destroy",value:function(){}}]),e}(),Q2e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"offlineNode",value:function(e){var t,n;null===(n=(t=this._option).offlineNode)||void 0===n||n.call(t,e)}},{key:"onlineNode",value:function(e){var t,n;null===(n=(t=this._option).onlineNode)||void 0===n||n.call(t,e)}}]),e}();function Z2e(e,t,n){return t=Qe(t),Xe(e,e3e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function e3e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(e3e=function(){return!!e})()}Object.defineProperty(Q2e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:Ude.pluginName});var t3e=function(e){function t(){var e;return Ye(this,t),e=Z2e(this,t,arguments),Object.defineProperty(Je(e),"_visibilityController",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_cardNodeOffline",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){e.option.allowCardLazyInit&&(this._visibilityController=new Y2e(e)),e.option.isTileRendering()?this._processTileRender():this._processDirectRender(),this._cardNodeOffline=new X2e(e,this.option),e.extend("cardOffline",this._cardNodeOffline)}},{key:"afterInit",value:function(){var e,t,n=this.renderer;n.option.virtualRendering&&(null===(e=n.getService(OTe.ID))||void 0===e||e.registerHotKey("",["cmd",38],(function(){n.execCommand("focus","start")})),null===(t=n.getService(OTe.ID))||void 0===t||t.registerHotKey("",["cmd",40],(function(){n.execCommand("focus","end")})))}},{key:"_processDirectRender",value:function(){var e=this;this.renderer.on("generalRenderCompleted",(function(){var t;null===(t=e._visibilityController)||void 0===t||t.run()}))}},{key:"_processTileRender",value:function(){var e=this;this.renderer.on("tileRenderCompleted",(function(){var t;null===(t=e._visibilityController)||void 0===t||t.run()}))}},{key:"destroy",value:function(){var e,t;null===(e=this._visibilityController)||void 0===e||e.destroy(),null===(t=this._cardNodeOffline)||void 0===t||t.destroy()}}]),t}(rb);function n3e(e,t,n){return t=Qe(t),Xe(e,r3e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function r3e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r3e=function(){return!!e})()}Object.defineProperty(t3e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Ude.pluginName}),Object.defineProperty(t3e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Q2e}),Object.defineProperty(t3e,"Service",{enumerable:!0,configurable:!0,writable:!0,value:z2e});var o3e=function(e){function t(){return Ye(this,t),n3e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=e.getService(OTe.ID);t&&t.registerHotKey(DRe.save.name,DRe.save.keys,(function(t){t.stop(),e.emitPluginEvent("save")}))}}]),t}(rb);Object.defineProperty(o3e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:m4.pluginName});var i3e={global:!1},a3e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},i3e,t)}return Ke(e,[{key:"global",get:function(){return this._option.global}}]),e}();function l3e(e,t,n){return t=Qe(t),Xe(e,u3e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function u3e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u3e=function(){return!!e})()}Object.defineProperty(a3e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"selectAll"});var c3e=function(e){function t(){return Ye(this,t),l3e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this.kernel,n=!1;e.onRootNode("mousedown",(function(){n=!0,e.onceRootNode("mouseup",(function(){n=!1}))})),e.onRootNode("selectstart",(function(t){if(!n&&t.target===e.domRootNode){var r=document.getSelection();if(1===r.rangeCount){var o=r.getRangeAt(0).commonAncestorContainer,i=Nc(o,"ne-card");if(i){var a=Nc(o,'[contenteditable="true"]',i);if(a){var l=document.createRange();l.setStart(a.firstChild,0);var u=a.lastChild.childNodes.length;Ld(a.lastChild)&&(u=a.lastChild.length),l.setEnd(a.lastChild,u),r.removeAllRanges(),r.addRange(l),t.stopPropagation(),t.preventDefault()}}}}}));var r=e.getService(OTe.ID);r&&(r.registerHotKey(DRe.selectAll.name,DRe.selectAll.keys,(function(e){e.stop(),t.execCommand(_4.command.selectAll)})),this.option.global&&r.registerGlobalHotKey(DRe.selectAll.name,DRe.selectAll.keys,(function(n){n.stop(),e.focus({preventScroll:!0}),t.execCommand(_4.command.selectAll)})))}}]),t}(rb);function s3e(e,t,n){return t=Qe(t),Xe(e,d3e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function d3e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d3e=function(){return!!e})()}Object.defineProperty(c3e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:_4.pluginName}),Object.defineProperty(c3e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:a3e});var f3e=function(e){function t(){return Ye(this,t),s3e(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e){e?this.plugin.setSelection(e.node,e.offset):this.plugin._syncSelection()}}]),t}(Qy);Object.defineProperty(f3e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:S4.command.selection});var h3e=function(){function e(){Ye(this,e),Object.defineProperty(this,"_currentTableNodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_currentCardNodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_currentCellNodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_currentContainerHoldeNodes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_multipleTableNode",{enumerable:!0,configurable:!0,writable:!0,value:null})}return Ke(e,[{key:"destroy",value:function(){this._currentTableNodes=null,this._currentCardNodes=null,this._currentCellNodes=null,this._multipleTableNode=null}},{key:"reset",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"unknown";e=e.map((function(e){return e._wrapNode})),this._resetFakeSelection(this._currentTableNodes,e),this._resetFakeSelection(this._currentCardNodes,t),this._resetFakeSelection(this._currentContainerHoldeNodes,r),this._resetTableCellFakeSelection(this._currentCellNodes,n,o),this._currentTableNodes=e,this._currentCardNodes=t,this._currentCellNodes=n,this._currentContainerHoldeNodes=r}},{key:"_resetFakeSelection",value:function(e,t){e.forEach((function(e){-1===t.indexOf(e)&&e.removeAttribute("ne-fake-selection")})),t.forEach((function(e){e.setAttribute("ne-fake-selection","true")}))}},{key:"_resetTableCellFakeSelection",value:function(e,t,n){if(e.forEach((function(e){-1===t.indexOf(e)&&e.removeAttribute("ne-fake-cell-selection")})),t.forEach((function(e,t){e.setAttribute("ne-fake-cell-selection","true")})),t.length){var r=t[0].closest("table, ne-columns");kt("TABLE"===r.nodeName||"NE-COLUMNS"===r.nodeName,"plugins/selection/src/render/painter/draw-context.ts:88"),this._multipleTableNode&&this._multipleTableNode!==r&&this._multipleTableNode.removeAttribute("ne-fake-table-selection"),r.setAttribute("ne-fake-table-selection","true"),this._multipleTableNode=r}else this._multipleTableNode&&(this._multipleTableNode.removeAttribute("ne-fake-table-selection"),this._multipleTableNode=null)}}]),e}();function p3e(e){var t=e.commonAncestorContainer;if(e.collapsed||t.nodeType!==Node.ELEMENT_NODE)return[];var n=t.querySelectorAll("ne-card");return Array.from(n).filter((function(t){return jd(e,t,!1)}))}function v3e(e,t){var n,r,o,i=e.rangeCount?e.getRangeAt(0):null,a=t.ranges,l=t.focus,u=t.anchor,c=a[0].startContainer;if(null===(n=Yy(c))||void 0===n?void 0:n.isCardNode()){if(i&&!c.contains(i.startContainer)){var s=document.createRange();s.setStart(a[0].startContainer,0),s.collapse(!0),HXe.setRange(e,[s],"start","start")}}else o=i,(r=a[0])&&o&&r.collapsed===o.collapsed&&r.startContainer===o.startContainer&&r.endContainer===o.endContainer&&r.startOffset===o.startOffset&&r.endOffset===o.endOffset||HXe.setRange(e,a,l,u)}var m3e=function(){function e(t){var n=this;Ye(this,e),Object.defineProperty(this,"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_domDocument",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_domSelection",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_drawContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_last",{enumerable:!0,configurable:!0,writable:!0,value:null}),this._rootNode=t.domRootNode,this._domDocument=this._rootNode.ownerDocument,this._domSelection=this._domDocument.getSelection(),this._drawContext=new h3e,t&&jc(this,t,"activeNodesChange",ig()((function(e,r){n._last&&"scroll"===r&&t.isFocus()&&n.refresh(n._last.selectionData,n._last.rootNode,!1,n._last.type)})))}return Ke(e,[{key:"destroy",value:function(){this._drawContext.destroy(),this._rootNode=null,this._domDocument=null,this._domSelection=null,this._drawContext=null}},{key:"clear",value:function(){this._drawContext.reset([],[],[],[])}},{key:"refresh",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown";this._last={selectionData:e,rootNode:t,resetRange:n,type:r},e.ranges.length>1?function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"unknown",a=n.ranges;o&&v3e(t,n);var l=[],u=a.map((function(e){p3e(e).forEach((function(e){l.push(e)}));var t=Nc(e.startContainer,"td, ne-column",r);return kt(t,"plugins/selection/src/render/painter/helpers/draw-multiple.ts:36"),t}));e.reset([],l,u,[],i)}(this._drawContext,this._domSelection,e,t,n,r):function(e,t,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"unknown";(!(arguments.length>3&&void 0!==arguments[3])||arguments[3])&&v3e(t,n);var o=function(e){var t=e.commonAncestorContainer;if(!Ud(t))return[];var n=t.querySelectorAll("table");return Array.from(n).filter((function(n){return jd(e,n,!1)&&!Nc(n,"ne-card",t)}))}(n.ranges[0]),i=p3e(n.ranges[0]),a=function(e){var t=e.commonAncestorContainer;if(!Ud(t))return[];var n=t.querySelectorAll("ne-collapse, ne-alert, ne-columns");return Array.from(n).filter((function(t){return jd(e,t,!1)}))}(n.ranges[0]);e.reset(o,i,[],a,r)}(this._drawContext,this._domSelection,e,n,r)}}]),e}(),g3e=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"isTab",value:function(e){var t=e.key,n=e.keyCode;return t?"Tab"===t:9===n}},{key:"isArrowUp",value:function(e){var t=e.key,n=e.keyCode;return t?"ArrowUp"===t:38===n}},{key:"isArrowDown",value:function(e){var t=e.key,n=e.keyCode;return t?"ArrowDown"===t:40===n}},{key:"isArrowLeft",value:function(e){var t=e.key,n=e.keyCode;return t?"ArrowLeft"===t:37===n}},{key:"isArrowRight",value:function(e){var t=e.key,n=e.keyCode;return t?"ArrowRight"===t:39===n}}]),e}(),b3e="NE-TABLE-HOLE",y3e="NE-HOLE",w3e="NE-CONTAINER-HOLE",k3e="NE-ROOT-CARD-HOLE",C3e="NE-ALERT-HOLE";function _3e(){var e=HXe.getSelection(),t=e.focusNode,n=e.focusOffset;if(!t)return null;if(t.nodeType!==Node.ELEMENT_NODE)return null;var r=Yy(t),o=Sr.start;return r?(r.isFillerNode()?(o=0===r.offset?Sr.start:Sr.end,r=r.parentNode):o=0===n||1===n?Sr.start:Sr.end,r.hasCategory([ze.ContainerHole,ze.AlertHole,ze.Hole])?{holeNode:Gy(r).getContentDOMNode(),pos:o,range:e.getRangeAt(0)}:null):null}var N3e=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"isAtContainerHole",value:function(){return!!_3e()}},{key:"move",value:function(e,t,n){if(!t)return null;var r,o=HXe.getSelection(),i=o.anchorNode,a=o.anchorOffset,l=_3e(),u=l.holeNode,c=l.pos;return kt(u,"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:189"),g3e.isArrowUp(e)?r=function(e,t){var n=e.firstChild,r=e.lastChild;if(kt(n.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:26"),kt(r.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:27"),t===ym)return{node:n,offset:0};var o=e.previousSibling;return!o||o.nodeName!==b3e&&o.nodeName!==y3e&&o.nodeName!==C3e&&o.nodeName!==k3e&&o.nodeName!==w3e?null:{node:o,offset:0}}(u,c):g3e.isArrowDown(e)?r=function(e,t){var n=e.firstChild,r=e.lastChild;if(kt(n.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:61"),kt(r.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:62"),t===bm)return{node:r,offset:0};var o=e.nextSibling;return!o||o.nodeName!==b3e&&o.nodeName!==y3e&&o.nodeName!==k3e&&o.nodeName!==w3e&&o.nodeName!==C3e?null:{node:o,offset:o.childNodes.length}}(u,c):g3e.isArrowLeft(e)?r=function(e,t){if(t===ym){var n=e.firstChild,r=e.lastChild;return kt(n.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:96"),kt(r.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:97"),{node:n,offset:0}}return null}(u,c):g3e.isArrowRight(e)&&(r=function(e,t){if(t===bm){var n=e.firstChild,r=e.lastChild;return kt(n.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:112"),kt(r.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/container-hole-move-helper.ts:113"),{node:r,offset:0}}return null}(u,c)),r?(o.setBaseAndExtent(i,a,r.node,r.offset),{changed:!0,selectionData:HXe.transformRange(o.getRangeAt(0),n)}):null}}]),e}(),O3e="NE-TABLE-HOLE",x3e="NE-HOLE",E3e="NE-CONTAINER-HOLE",D3e="NE-ROOT-CARD-HOLE",R3e="NE-ALERT-HOLE",P3e=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"isAtTableHole",value:function(){return!!S3e()}},{key:"move",value:function(e,t){var n=S3e(),r=n.tableHoleNode,o=n.pos;return kt(r,"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:29"),g3e.isArrowUp(e)?function(e,t,n){var r=t.firstChild,o=t.lastChild;if(kt(r.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:61"),kt(o.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:62"),"end"===n)return e?{changed:!0,selectionData:{focus:bm,anchor:ym,ranges:[HXe.createRange({startContainer:r,startOffset:0,endContainer:o,endOffset:0})]}}:{changed:!0,selectionData:{focus:bm,anchor:bm,ranges:[HXe.createRange({startContainer:r,startOffset:0,endContainer:r,endOffset:0})]}};var i=t.previousSibling;if(!i)return{changed:!0};if(i.nodeName===O3e||i.nodeName===x3e||i.nodeName===D3e||i.nodeName===E3e||i.nodeName===R3e){if(!e){var a=i.lastChild,l=i,u=i.childNodes.length;return(null==a?void 0:a.classList.contains("ne-i-filler"))&&(l=a,u=0),{changed:!0,selectionData:{focus:bm,anchor:bm,ranges:[HXe.createRange({startContainer:l,startOffset:u,endContainer:l,endOffset:0})]}}}return{changed:!0,selectionData:{focus:bm,anchor:ym,ranges:[HXe.createRange({startContainer:i,startOffset:0,endContainer:t,endOffset:0})]}}}return null}(t,r,o):g3e.isArrowDown(e)?function(e,t,n){var r=t.firstChild,o=t.lastChild;if(kt(r.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:176"),kt(o.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:177"),"start"===n)return e?{changed:!0,selectionData:{focus:ym,anchor:bm,ranges:[HXe.createRange({startContainer:r,startOffset:0,endContainer:o,endOffset:0})]}}:{changed:!0,selectionData:{focus:bm,anchor:bm,ranges:[HXe.createRange({startContainer:o,startOffset:0,endContainer:o,endOffset:0})]}};var i=t.nextSibling;if(!i)return{changed:!0};if(i.nodeName===O3e||i.nodeName===x3e||i.nodeName===D3e||i.nodeName===E3e||i.nodeName===R3e){if(!e){var a=i.firstChild,l=i,u=i.childNodes.length;return(null==a?void 0:a.classList.contains("ne-i-filler"))&&(l=a,u=0),{changed:!0,selectionData:{focus:bm,anchor:bm,ranges:[HXe.createRange({startContainer:l,startOffset:u,endContainer:l,endOffset:u})]}}}return{changed:!0,selectionData:{focus:ym,anchor:bm,ranges:[HXe.createRange({startContainer:t,startOffset:t.childNodes.length-1,endContainer:i,endOffset:i.childNodes.length})]}}}return null}(t,r,o):g3e.isArrowLeft(e)?function(e,t,n){if("end"===n){var r=t.firstChild,o=t.lastChild;if(kt(r.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:292"),kt(o.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:293"),e)return{changed:!0,selectionData:{focus:bm,anchor:ym,ranges:[HXe.createRange({startContainer:r,startOffset:0,endContainer:o,endOffset:0})]}};var i=t.querySelectorAll(".ne-td");if(i.length)return{changed:!0,selectionData:{focus:bm,anchor:ym,ranges:[HXe.createRange({startContainer:i[i.length-1],startOffset:0,endContainer:i[i.length-1],endOffset:0})]}}}return null}(t,r,o):g3e.isArrowRight(e)?function(e,t,n){if(e&&"start"===n){var r=t.firstChild,o=t.lastChild;return kt(r.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:348"),kt(o.classList.contains("ne-i-filler"),"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/table-hole-move-helper.ts:349"),{changed:!0,selectionData:{focus:ym,anchor:bm,ranges:[HXe.createRange({startContainer:r,startOffset:0,endContainer:o,endOffset:0})]}}}return null}(t,r,o):null}}]),e}();function S3e(){var e=HXe.getSelection(),t=e.focusNode,n=e.focusOffset;if(!t)return null;if(t.nodeType!==Node.ELEMENT_NODE)return null;var r=Yy(t),o="start";return r?(r.isFillerNode()?(o=0===r.offset?"start":"end",r=r.parentNode):o=0===n||1===n?"start":"end",r.hasCategory(ze.TableHole)?{tableHoleNode:Gy(r).getContentDOMNode(),pos:o}:null):null}function T3e(e){for(e.nodeType===Node.TEXT_NODE&&(e=e.parentNode);e&&!e._viewNode;)e=e.parentNode;return(null==e?void 0:e._viewNode)||null}function A3e(e){var t,n=e.focusNode,r=e.focusOffset;if(n.nodeType===Node.TEXT_NODE&&0!==r)return null;if(n.nodeType===Node.ELEMENT_NODE&&n.childNodes[r-1]&&(t=T3e(n.childNodes[r-1])),!t){var o=T3e(n);t=null==o?void 0:o.previousSibling}return(null==t?void 0:t.isCardNode())?t:(null==t?void 0:t.isFillerNode())?t.previousSibling:null}function j3e(e){var t,n=e.focusNode,r=e.focusOffset;if(Ld(n)&&r!==n.data.length)return null;if(n.nodeType===Node.ELEMENT_NODE&&n.childNodes[r]&&(t=T3e(n.childNodes[r])),!t){var o=T3e(n);t=null==o?void 0:o.nextSibling}return(null==t?void 0:t.isCardNode())?t:(null==t?void 0:t.isFillerNode())?t.nextSibling:null}function I3e(e,t){var n=e.focusNode,r=e.focusOffset,o=T3e(n);if(null==o?void 0:o.isCardNode())return o;if(n.nodeType===Node.ELEMENT_NODE&&n.childNodes[r]&&(null==(o=T3e(n.childNodes[r]))?void 0:o.isCardNode()))return o;var i=Nc(n,"ne-card",t);return i?T3e(i):null}function B3e(e,t,n){var r,o,i=e.focusNode,a=e.focusOffset,l=e.anchorNode,u=e.anchorOffset;n();var c=null;return"NE-COLUMN"===(null===(r=e.focusNode)||void 0===r?void 0:r.nodeName)&&1===e.focusOffset?(null===(o=e.focusNode)||void 0===o?void 0:o.nextElementSibling)&&(c=Nc(e.focusNode.nextElementSibling,"ne-column",t)):c=Nc(e.focusNode,"ne-column",t),e.setBaseAndExtent(l,u,i,a),Ks.firefox&&(n(),e.focusNode===i&&e.focusOffset===a&&e.anchorNode===l&&e.anchorOffset===u||e.setBaseAndExtent(l,u,i,a)),c}function M3e(e,t){var n=HXe.getSelection(),r=Nc(n.focusNode,"ne-column",e),o=Nc(n.focusNode,"ne-card",e),i=Nc(n.focusNode,"ne-container-hole",e),a=B3e(n,e,(function(){if(null==o?void 0:o.previousSibling){var e=document.createRange();e.selectNodeContents(o.previousSibling),e.collapse(),n.removeAllRanges(),n.addRange(e)}else n.modify(t?"extend":"move","left","character")}));return a?r===a?null:(n.modify(t?"extend":"move","left","character"),{changed:!0,selectionData:HXe.transformRange(n.getRangeAt(0),e)}):t?{changed:!0,selectionData:null}:(kt(i,"plugins/selection/src/render/selection-observer/keyboard/columns-keyboard/helper/move-left.ts:40"),{changed:!0,selectionData:{focus:bm,anchor:bm,ranges:[HXe.createRange({startContainer:i.firstChild,startOffset:0,endContainer:i.firstChild,endOffset:0})]}})}function F3e(e,t){var n=HXe.getSelection(),r=Nc(n.focusNode,"ne-column",e),o=Nc(n.focusNode,"ne-container-hole",e),i=B3e(n,e,(function(){n.modify(t?"extend":"move","right","character")}));if(!i)return t?{changed:!0,selectionData:null}:(kt(o,"plugins/selection/src/render/selection-observer/keyboard/columns-keyboard/helper/move-right.ts:34"),{changed:!0,selectionData:{focus:bm,anchor:bm,ranges:[HXe.createRange({startContainer:o.lastChild,startOffset:0,endContainer:o.lastChild,endOffset:0})]}});if(r===i)return null;var a=document.createRange(),l=i.querySelector("ne-column-content");return a.selectNodeContents(l),t?(a.setStart(n.focusNode,0),{changed:!0,selectionData:HXe.transformRange(a,e)}):(a.collapse(!0),{changed:!0,selectionData:HXe.transformRange(a,e)})}var L3e=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"isAllInColumnsNode",value:function(e,t){if(e.rangeCount<1)return null;var n=e.getRangeAt(0),r=n.startContainer,o=n.endContainer,i=n.collapsed,a=Nc(r,"ne-columns",t);return a&&(i||a===Nc(o,"ne-columns",t))?a:null}},{key:"_findIndex",value:function(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];if(P3e.isAtTableHole()&&(n=P3e.move(t,r)))return n.selectionData||null;if(g3e.isArrowUp(t)){if(!r)return null;var o=H3e();if(o)return HXe.getTableHeadRangeByCellNode(HXe.getSelection(),o,r);var i=W3e();return i?HXe.getTableHeadRangeByCellNode(HXe.getSelection(),i,r):null}if(g3e.isArrowDown(t)){if(!r)return null;var a=V3e();if(a)return HXe.getTableTailRangeByCellNode(HXe.getSelection(),a,r);var l=q3e();return l?HXe.getTableTailRangeByCellNode(HXe.getSelection(),l,r):null}if(g3e.isArrowLeft(t)){if(!r)return G3e(e);var u=$3e();return u?HXe.getTableHeadRangeByCellNode(HXe.getSelection(),u,r):(J3e(),null)}if(g3e.isArrowRight(t)){if(!r)return function(e){var t,n,r=HXe.getSelection(),o=r.focusNode,i=r.focusOffset,a=r.anchorNode,l=r.anchorOffset,u=I3e(r,e);if(u){var c=null===(t=Gy(u.nextSibling))||void 0===t?void 0:t.getContentDOMNode();if(c&&!u.nextSibling.isBlockFillerNode())return{focus:bm,anchor:bm,ranges:[HXe.focusToStartOfNode(c)]}}else{var s=j3e(r);if(s){var d=null===(n=Gy(s))||void 0===n?void 0:n.getContentDOMNode();if(d)return{focus:bm,anchor:bm,ranges:[HXe.focusToStartOfNode(d)]}}}r.modify("move","right","character");var f,h=r.focusNode,p=r.focusOffset,v=h.nodeName.toLowerCase();return v===cw||v===sw||v===dw||"ne-oli"===v||"ne-uli"===v||"ne-tli"===v||(f=h.nodeType===Node.TEXT_NODE?T3e(h.parentNode):T3e(h))&&f.isTextFillerNode()&&(0===p||h===o)||r.setBaseAndExtent(a,l,o,i),null}(e);var c=K3e();if(c)return HXe.getTableTailRangeByCellNode(HXe.getSelection(),c,r);X3e()}return null}(t,e,a):function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=g3e.isArrowUp(e)||g3e.isArrowLeft(e),r=g3e.isArrowDown(e)||g3e.isArrowRight(e);if(!n&&!r)return null;var o=HXe.currentRange();kt(o,"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/general-keyboard-helper.ts:222");var i=o.cloneRange();return i.collapse(n),{focus:bm,anchor:bm,ranges:[i]}}var a=HXe.getSelection(),l=a.anchorNode,u=a.anchorOffset,c=document.createRange();if(c.setStart(l,u),c.collapse(!0),g3e.isArrowUp(e)){var s=H3e();if(s)return HXe.getTableHeadRangeByCellNode(HXe.getSelection(),s,t);var d=W3e();if(d)return Q3e(d,c)?HXe.getTableHeadRangeByCellNode(HXe.getSelection(),d,t):HXe.getTableTailRangeByCellNode(HXe.getSelection(),d,t)}if(g3e.isArrowDown(e)){var f=V3e();if(f)return HXe.getTableTailRangeByCellNode(HXe.getSelection(),f,t);var h=q3e();return h?Q3e(h,c)?HXe.getTableHeadRangeByCellNode(HXe.getSelection(),h,t):HXe.getTableTailRangeByCellNode(HXe.getSelection(),h,t):null}if(g3e.isArrowLeft(e)){var p=H3e();if(p)return HXe.getTableHeadRangeByCellNode(HXe.getSelection(),p,t);var v=$3e();return v?HXe.getTableHeadRangeByCellNode(HXe.getSelection(),v,t):(J3e(),null)}if(g3e.isArrowRight(e)){var m=V3e();if(m)return HXe.getTableTailRangeByCellNode(HXe.getSelection(),m,t);var g=K3e();if(g)return HXe.getTableTailRangeByCellNode(HXe.getSelection(),g,t);X3e()}return null}(e,a)}}]),e}();function V3e(){var e=HXe.getSelection();return z3e(e.focusNode,e.focusOffset)}function H3e(){var e=HXe.getSelection();return z3e(e.focusNode,e.focusOffset-1)}function z3e(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!e.childNodes[t])return null;var n=e.childNodes[t];return n.nodeName.toLowerCase()===cw?n.lastChild.firstChild.firstChild:null}function W3e(){var e=HXe.getSelection();return Y3e((function(){e.modify("extend","left","line")}))}function q3e(){var e=HXe.getSelection();return Y3e((function(){e.modify("extend","right","line")}))}function $3e(){var e=HXe.getSelection();return Y3e((function(){e.modify("extend","left","character")}))}function K3e(){var e=HXe.getSelection();return Y3e((function(){e.modify("extend","right","character")}))}function Y3e(e){var t=HXe.getSelection(),n=t.focusNode,r=t.focusOffset,o=t.anchorNode,i=t.anchorOffset;e();var a=t.focusNode,l=t.focusOffset,u=Nc(t.focusNode,"td");if(u)return u;var c=a.nodeName.toLowerCase();if(c===cw||c===sw||c===dw){var s=a.firstChild;if(kt("TABLE"===s.nodeName,"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/general-keyboard-helper.ts:453"),1===l){var d=s.rows[s.tBodies[0].rows.length-1];return d.cells[d.cells.length-1]}return kt(0===l,"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/general-keyboard-helper.ts:462"),s.tBodies[0].rows[0].cells[0]}return t.setBaseAndExtent(o,i,n,r),null}function G3e(e){var t,n,r=HXe.getSelection(),o=r.focusNode,i=r.focusOffset,a=r.anchorNode,l=r.anchorOffset,u=I3e(r,e);if(u){var c=null===(t=Gy(u.previousSibling))||void 0===t?void 0:t.getContentDOMNode();if(c)return{focus:bm,anchor:bm,ranges:[HXe.focusToEndOfNode(c)]}}else{var s=A3e(r);if(s){var d=null===(n=Gy(s))||void 0===n?void 0:n.getContentDOMNode();if(d)return{focus:bm,anchor:bm,ranges:[HXe.focusToEndOfNode(d)]}}}r.modify("move","left","character");var f,h=r.focusNode,p=r.focusOffset,v=h.nodeName.toLowerCase();if(v===cw||v===sw||v===dw)return null;if((f=h.nodeType===Node.TEXT_NODE?T3e(h.parentNode):T3e(h))&&f.isTextFillerNode()&&0===p){if(0===p&&0===i&&!o.previousSibling)return null;if(0===p||h===o)return G3e(e)}return r.setBaseAndExtent(a,l,o,i),null}function J3e(){var e,t=HXe.getSelection(),n=0,r=T3e(t.focusNode.nodeType===Node.TEXT_NODE?t.focusNode.parentNode:t.focusNode);do{n++,t.modify("extend","left","character");var o=t.focusNode,i=o.nodeName.toLowerCase();if(i!==cw&&i!==sw&&i!==dw&&"ne-oli"!==i&&"ne-uli"!==i&&"ne-tli"!==i){if(e=T3e(o.nodeType===Node.TEXT_NODE?o.parentNode:o),kt(e,"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/general-keyboard-helper.ts:604"),!e.isTextFillerNode())break;if(r.isTextFillerNode()&&e!==r&&e.nextSibling!==r)break;r=e}else n--}while(n<=3);kt(e,"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/general-keyboard-helper.ts:623"),t.modify("extend","right","character")}function X3e(){var e=HXe.getSelection();e.modify("extend","right","character");var t=e.focusNode.nodeName.toLowerCase();"ne-oli"!==t&&"ne-uli"!==t&&"ne-tli"!==t&&e.modify("extend","left","character")}function Q3e(e,t){return-1===t.comparePoint(e,0)}function Z3e(e,t,n){return t=Qe(t),Xe(e,e4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function e4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(e4e=function(){return!!e})()}var t4e=function(e){function t(e,n){var r;return Ye(this,t),r=Z3e(this,t),Object.defineProperty(Je(r),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_tableKeyboard",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(r),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_isChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(r),"_lastContentChangeTime",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(Je(r),"isComposing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),r._rootNode=e.domRootNode,r}return et(t,e),Ke(t,[{key:"destroy",value:function(){this.renderer=null,this._tableKeyboard=null,this._rootNode=null,this.removeAllListeners()}},{key:"start",value:function(){var e=this,t=this.renderer,n=this._rootNode,r=null;t.onRootNode("keydown",(function(t){if(e._isChanged=!1,e._lastContentChangeTime=Date.now(),ed.isHome(t)&&!t.ctrlKey&&!t.shiftKey)return t.preventDefault(),void e._moveToLineBoundary(!0);if(ed.isEnd(t)&&!t.ctrlKey&&!t.shiftKey)return t.preventDefault(),void e._moveToLineBoundary(!1);if(!(e._tableKeyboard.isProcessed||t.keyCode===Xs||t.isComposing||t.defaultPrevented||ed.isShift(t)||0===document.getSelection().rangeCount)){var o=U3e.tryInterceptKeyDown(t,n,e.renderer.engine);if(o)return t.preventDefault(),void e.emit("change",o);e._isChanged=!0,r=t}}),!1),t.onRootNode("compositionstart",(function(){e.isComposing=!0})),t.onRootNode("compositionend",(function(){e.isComposing=!1})),t.onRootNode("input",(function(){e._isChanged=!1,e._lastContentChangeTime=Date.now()}),!1),t.onForceRootNode("mousedown",(function(){e._lastContentChangeTime=Date.now()}),!1),t.onForceRootNode("mousemove",(function(){e._lastContentChangeTime=Date.now()}),!1),t.onForceRootNode("mouseup",(function(){e._lastContentChangeTime=Date.now()}),!1);var o=t.id,i=t.domRootNode,a=document.getSelection(),l=function(){var t,l,u,c;if(e.renderer){var s=a.focusNode,d=a.focusOffset,f=a.isCollapsed;if(!(e.isComposing||s&&bd(s)!==o))if(f&&s&&(!document.activeElement||!i.contains(document.activeElement)&&i.contains(s))&&(i.focus({preventScroll:!0}),a.setBaseAndExtent(s,d,s,d)),Date.now()-e._lastContentChangeTime>300){var h=e.renderer.kernel.document.selection,p=h.firstRange,v=h.lastRange,m=null===(t=p.commonAncestorContainer)||void 0===t?void 0:t.hasCategory(ze.TableCell),g=null===(l=v.commonAncestorContainer)||void 0===l?void 0:l.hasCategory(ze.TableCell);if(a.rangeCount){var b=a.getRangeAt(0),y=b.startContainer===b.endContainer&&0===b.startOffset&&b.endOffset===b.commonAncestorContainer.childElementCount&&(null===(u=Yy(b.commonAncestorContainer))||void 0===u?void 0:u.hasCategory(ze.TableCell)),w=(null===(c=Yy(b.commonAncestorContainer))||void 0===c?void 0:c.id)===p.commonAncestorContainer.id;if(h.rangeCount>1&&m&&g&&y&&w)return}requestAnimationFrame((function(){e._syncSelectionFromDOM()}))}else if(e._isChanged){(Ks.ipad||Ks.ios)&&requestAnimationFrame((function(){e._syncSelectionFromDOM()})),e._isChanged=!1;var k=null;a.focusNode&&(HXe.isFocusInTable(a,n)&&!HXe.isAnchorInTable(a,n)?g3e.isArrowLeft(r)||g3e.isArrowUp(r)?k=HXe.getTableHeadRange(a,n):g3e.isArrowRight(r)||g3e.isArrowDown(r)?k=HXe.focusNodeInFirstCell(a,n)?HXe.getTableHeadRange(a,n):HXe.getTableTailRange(a,n):kt(!1,"plugins/selection/src/render/selection-observer/keyboard/general-keyboard/general-keyboard.ts:290"):k=HXe.transformRange(HXe.currentRange(),n),k&&e.emit("change",k))}}};Ks.firefox&&(l=ig()(l,17)),t.onDocument("selectionchange",l,!1)}},{key:"_syncSelectionFromDOM",value:function(){if(document.getSelection().focusNode){var e=HXe.currentRange();if(e){var t=HXe.transformRange(e,this._rootNode);t&&this.emit("change",t)}}}},{key:"updateRangeChangeTime",value:function(e){this._isChanged=!1,"content"===e&&(this._lastContentChangeTime=Date.now())}},{key:"_moveToLineBoundary",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];HXe.getSelection().modify("move",e?"left":"right","lineboundary");var t=HXe.transformRange(HXe.currentRange(),this._rootNode);this.emit("change",t)}}]),t}(ut);function n4e(e,t,n){var r=e.focusNode,o=e.focusOffset,i=e.anchorNode,a=e.anchorOffset;n();var l=Nc(e.focusNode,"td",t);return e.setBaseAndExtent(i,a,r,o),Ks.firefox&&(n(),e.focusNode===r&&e.focusOffset===o&&e.anchorNode===i&&e.anchorOffset===a||e.setBaseAndExtent(i,a,r,o)),l}var r4e=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"generateLayout",value:function(e){return t=Yy(e.parentNode.parentNode.parentNode),n=[],r=t.attrs,o=r.rowCount,i=r.colCount,t.children.forEach((function(e,t){e.children.forEach((function(e){for(var r=e.attrs,o=r.rowSpan,i=void 0===o?1:o,a=r.colSpan,l=void 0===a?1:a,u=r.col,c=u+l-1,s=t+i-1,d=0;d=0&&u>=0,"plugins/selection/src/render/table-selection-helper.ts:53"),{minRow:Math.min(n,o),maxRow:Math.max(r,i),minCol:Math.min(a,u),maxCol:Math.max(l,c)}}},{key:"extendRight",value:function(e,t,n,r){kt("TABLE"===n.nodeName,"plugins/selection/src/render/table-selection-helper.ts:70");var o=Yy(n.parentNode.parentNode.parentNode);kt(o&&"table"===o.nodeName,"plugins/selection/src/render/table-selection-helper.ts:77");var i=t.getViewSelection(),a=i.anchor,l=i.focus,u=i4e(e,a,r),c=function(e,t,n,r){var o=i4e(e,t,r),i=i4e(e,n,r),a=d4e(e,r,o.maxCol,i);return null===a?null:o4e(e,{minRow:r.minRow,maxRow:r.maxRow,minCol:Math.min(a,i.minCol),maxCol:Math.max(a,i.maxCol)})}(e,l,a,r);return c?a4e(e,a,u,r,c):null}},{key:"moveRight",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=n.minRow,i=n.maxRow,a=n.minCol,l=n.maxCol;kt(o!==i||a!==l,"plugins/selection/src/render/table-selection-helper.ts:115");var u,c=e[o][l+1];return c&&c.viewNode.parentNode.offset===o?u=HXe.createRangeByNodeContents(c.domNode):(kt(e[o][l],"plugins/selection/src/render/table-selection-helper.ts:130"),u=HXe.createRangeByNodeContents(e[o][l].domNode)),r&&u.collapse(!0),{anchor:bm,focus:bm,ranges:[u]}}},{key:"extendLeft",value:function(e,t,n,r){kt("TABLE"===n.nodeName,"plugins/selection/src/render/table-selection-helper.ts:154");var o=Yy(n.parentNode.parentNode.parentNode);kt(o&&"table"===o.nodeName,"plugins/selection/src/render/table-selection-helper.ts:161");var i=t.getViewSelection(),a=i.anchor,l=function(e,t,n,r){var o=i4e(e,t,r),i=i4e(e,n,r),a=s4e(e,r,o.minCol,i);return null===a?null:o4e(e,{minRow:r.minRow,maxRow:r.maxRow,minCol:Math.min(a,i.minCol),maxCol:Math.max(a,i.maxCol)})}(e,i.focus,a,r);return l?a4e(e,a,i4e(e,a,r),r,l):null}},{key:"moveLeft",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=n.minRow,i=n.maxRow,a=n.minCol,l=n.maxCol;kt(o!==i||a!==l,"plugins/selection/src/render/table-selection-helper.ts:200");var u,c=e[o][a-1];return c&&c.viewNode.parentNode.offset===o?u=HXe.createRangeByNodeContents(c.domNode):(kt(e[o][a],"plugins/selection/src/render/table-selection-helper.ts:214"),u=HXe.createRangeByNodeContents(e[o][a].domNode)),r&&u.collapse(!0),{anchor:"start",focus:"start",ranges:[u]}}},{key:"extendUp",value:function(e,t,n,r){kt("TABLE"===n.nodeName,"plugins/selection/src/render/table-selection-helper.ts:237");var o=Yy(n.parentNode.parentNode.parentNode);kt(o&&"table"===o.nodeName,"plugins/selection/src/render/table-selection-helper.ts:244");var i=t.getViewSelection(),a=i.anchor,l=function(e,t,n,r){var o=i4e(e,t,r),i=i4e(e,n,r),a=c4e(e,r,o.minRow,i);return null===a?null:o4e(e,{minRow:Math.min(a,i.minRow),maxRow:Math.max(a,i.maxRow),minCol:r.minCol,maxCol:r.maxCol})}(e,i.focus,a,r);return l?a4e(e,a,i4e(e,a,r),r,l):null}},{key:"moveUp",value:function(e,t,n){var r,o=n.minRow,i=n.maxRow,a=n.minCol,l=n.maxCol,u=e[o-1]&&e[o-1][a];if(u)r=HXe.createRangeByNodeContents(u.domNode);else{var c=e[o][a];if(c.maxRow===i&&c.maxCol===l)return null;kt(e[o][a],"plugins/selection/src/render/table-selection-helper.ts:303"),r=HXe.createRangeByNodeContents(e[o][a].domNode)}return r.collapse(!0),{anchor:"start",focus:"start",ranges:[r]}}},{key:"extendDown",value:function(e,t,n,r){kt("TABLE"===n.nodeName,"plugins/selection/src/render/table-selection-helper.ts:325");var o=Yy(n.parentNode.parentNode.parentNode);kt(o&&"table"===o.nodeName,"plugins/selection/src/render/table-selection-helper.ts:332");var i=t.getViewSelection(),a=i.anchor,l=function(e,t,n,r){var o=i4e(e,t,r),i=i4e(e,n,r),a=u4e(e,r,o.maxRow,i);return null===a?null:o4e(e,{minRow:Math.min(a,i.minRow),maxRow:Math.max(a,i.maxRow),minCol:r.minCol,maxCol:r.maxCol})}(e,i.focus,a,r);return l?a4e(e,a,i4e(e,a,r),r,l):null}},{key:"moveDown",value:function(e,t,n){var r,o=n.minRow,i=n.maxRow,a=n.minCol,l=n.maxCol,u=e[i+1]&&e[i+1][a];if(u)r=HXe.createRangeByNodeContents(u.domNode);else{if(o===i&&a===l)return null;kt(e[i][a],"plugins/selection/src/render/table-selection-helper.ts:386"),r=HXe.createRangeByNodeContents(e[i][a].domNode)}return r.collapse(!0),{anchor:"start",focus:"start",ranges:[r]}}}]),e}();function o4e(e,t){for(var n=t.minRow,r=t.maxRow,o=t.minCol,i=t.maxCol,a=n,l=r,u=o,c=i,s=n;s<=r;s++)for(var d=o;d<=i;d++){var f=e[s][d];o=Math.min(o,f.minCol),n=Math.min(n,f.minRow),i=Math.max(i,f.maxCol),r=Math.max(r,f.maxRow)}return o!==u||i!==c||n!==a||r!==l?o4e(e,{minRow:n,maxRow:r,minCol:o,maxCol:i}):{minRow:n,maxRow:r,minCol:o,maxCol:i}}function i4e(e,t,n){return"start"===t?e[n.minRow][n.minCol]:"end"===t?e[n.maxRow][n.maxCol]:"topRight"===t?e[n.minRow][n.maxCol]:(kt("bottomLeft"===t,"plugins/selection/src/render/table-selection-helper.ts:527"),e[n.maxRow][n.minCol])}function a4e(e,t,n,r,o){var i=function(e,t){for(var n=new Set,r=o4e(e,t),o=r.minRow,i=r.maxRow,a=r.minCol,l=r.maxCol,u=o;u<=i;u++)for(var c=a;c<=l;c++){var s=e[u][c];n.add(s.viewNode)}return Array.from(n).map((function(e){return Gy(e).getMainDOMNode()}))}(e,o),a=document.createRange(),l=i.map((function(e){var t=a.cloneRange();return t.selectNodeContents(e),t}));if(1===l.length)return{focus:"start",anchor:"start",ranges:l};kt(l.length>1,"plugins/selection/src/render/table-selection-helper.ts:555");var u=function(e,t,n,r,o){var i=o.minRow,a=o.maxRow,l=o.minCol,u=o.maxCol,c=n.minRow,s=n.maxRow,d=n.minCol,f=n.maxCol;if(c===i&&d===l)return bm;if(s===a&&f===u)return ym;if(c===i&&f===u)return wm;if(s===a&&d===l)return km;kt(s<=a&&f<=u&&c>=i&&d>=l,"plugins/selection/src/render/table-selection-helper.ts:604");var h=r.minRow===i,p=r.maxCol===u,v=r.maxRow===a,m=r.minCol===l;if(t===bm)return h?m||!p?bm:wm:m||!p?km:ym;if(t===ym)return v?p||!m?ym:km:p||!m?wm:bm;if(t===wm)return h?p||!m?wm:bm:p||!m?ym:km;if(t===km)return v?m||!p?km:ym:m||!p?bm:wm;throw new Error("invalid anchor type")}(0,t,n,r,o);return{focus:l4e(u),anchor:u,ranges:l}}function l4e(e){return e===bm?ym:e===ym?bm:e===km?wm:(kt(e===wm,"plugins/selection/src/render/table-selection-helper.ts:700"),km)}function u4e(e,t,n,r){if((n+=1)===e.length)return null;for(var o=t.minCol,i=t.maxCol,a=Math.min(n,r.minRow),l=Math.max(n,r.maxRow),u=e[n],c=o;c<=i;c++){var s=u[c],d=s.minRow,f=s.maxRow;if(dl)return u4e(e,t,n,r)}return n}function c4e(e,t,n,r){if((n-=1)<0)return null;for(var o=t.minCol,i=t.maxCol,a=Math.min(n,r.minRow),l=Math.max(n,r.maxRow),u=e[n],c=o;c<=i;c++){var s=u[c],d=s.minRow,f=s.maxRow;if(dl)return c4e(e,t,n,r)}return n}function s4e(e,t,n,r){if((n-=1)<0)return null;for(var o=t.minRow,i=t.maxRow,a=Math.min(n,r.minCol),l=Math.max(n,r.maxCol),u=o;u<=i;u++){var c=e[u][n],s=c.minCol,d=c.maxCol;if(sl)return s4e(e,t,n,r)}return n}function d4e(e,t,n,r){if((n+=1)===e[0].length)return null;for(var o=t.minRow,i=t.maxRow,a=Math.min(n,r.minCol),l=Math.max(n,r.maxCol),u=o;u<=i;u++){var c=e[u][n],s=c.minCol,d=c.maxCol;if(sl)return d4e(e,t,n,r)}return n}function f4e(e,t,n,r,o,i,a){return o?function(e,t,n,r,o){return{changed:!0,selectionData:e?r4e.extendLeft(r,t,n,o):r4e.moveLeft(r,n,o)}}(e,t,n,r,o):h4e(e,t,n,r,i,a)}function h4e(e,t,n,r,o,i){var a,l,u=HXe.getSelection(),c=n4e(u,i,(function(){u.modify("extend","left","character")}));if(!c)return e||n._isMaxView?{changed:!0,selectionData:null}:function(e,t,n){var r=t.parentNode.parentNode.parentNode;kt(r.nodeName.toLowerCase()===cw,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-left.ts:240");for(var o=10;o>0;){o--,e.modify("move","left","character");var i=Nc(e.anchorNode,cw,n);if(!i||i!==r)break}var a=e.focusNode;return a.childNodes&&a.childNodes[e.focusOffset-1]&&a.childNodes[e.focusOffset-1].nodeName.toLowerCase()===y5&&e.modify("move","left","character"),{changed:!0,selectionData:HXe.transformRange(e.getRangeAt(0),n)}}(u,n,i);if(!e){var s=I3e(u,i);if(s){var d=null===(a=Gy(s.previousSibling))||void 0===a?void 0:a.getContentDOMNode();if(d)return{changed:!0,selectionData:{focus:bm,anchor:bm,ranges:[HXe.focusToEndOfNode(d)]}}}else{var f=A3e(u);if(f){var h=null===(l=Gy(f))||void 0===l?void 0:l.getContentDOMNode();if(h)return{changed:!0,selectionData:{focus:bm,anchor:bm,ranges:[HXe.focusToEndOfNode(h)]}}}}}if(!o||c===o){o||kt(!e,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-left.ts:153");var p=u.focusNode;u.modify(e?"extend":"move","left","character");var v,m=u.focusNode,g=u.focusOffset;return(v=m.nodeType===Node.TEXT_NODE?T3e(m.parentNode):T3e(m))&&v.isTextFillerNode()&&0===g&&(0===g||m===p)?h4e(e,t,n,r,o,i):{changed:!0,selectionData:HXe.transformRange(u.getRangeAt(0),i)}}return function(e,t,n,r,o){kt(e,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-left.ts:209");var i=Dd(o.parentNode),a=parseInt(o.getAttribute("data-col"),10);kt(a>=0&&i>=0,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-left.ts:214");var l=r4e.getBoundary(o,o);return{changed:!0,selectionData:r4e.extendLeft(n,t,o.parentNode.parentNode.parentNode,l)}}(e,t,r,0,o)}var p4e=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"tryInterceptKeyDown",value:function(e,t,n,r,o,i,a){var l=e.shiftKey;if(g3e.isTab(e)){if(e.stopImmediatePropagation(),t.queryCommandState("canIndent")!==ht)return e.preventDefault(),l?t.execCommand("outdent"):t.execCommand("indent"),{changed:!0};if(l)return function(e,t,n,r){var o;return o=n?r4e.moveLeft(t,e,n,!1):function(e,t,n){var r=Nc(HXe.getSelection().focusNode,"td",n);kt(r,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-left-by-tab.ts:49");var o=r.previousSibling;if(o)kt("TD"===o.nodeName,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-left-by-tab.ts:54");else for(var i=e.tBodies[0].rows,a=r.parentNode.rowIndex-1;a>=0;a--)if(i[a].cells.length){o=i[a].cells[i[a].cells.length-1];break}return o?{focus:"start",anchor:"end",ranges:[HXe.createRangeByNodeContents(o)]}:null}(e,0,r),{changed:!0,selectionData:o}}(r,n,o,a);var u=function(e,t,n,r){var o;return o=n?r4e.moveRight(t,e,n,!1):function(e,t,n){var r=Nc(HXe.getSelection().focusNode,"td",n);kt(r,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-right-by-tab.ts:49");var o=r.nextSibling;if(o)kt("TD"===o.nodeName,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-right-by-tab.ts:54");else for(var i=e.tBodies[0].rows,a=r.parentNode.rowIndex+1,l=i.length;a=0&&i>=0,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-right.ts:182");var l=r4e.getBoundary(o,o),u=r4e.extendRight(n,t,o.parentNode.parentNode.parentNode,l);return kt(u,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-right.ts:195"),{changed:!0,selectionData:u}}(e,t,r,0,o):(o||kt(!e,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-right.ts:151"),u.modify(e?"extend":"move","right","character"),{changed:!0,selectionData:HXe.transformRange(u.getRangeAt(0),i)}):e||n._isMaxView?{changed:!0,selectionData:null}:function(e,t,n){var r=t.parentNode.parentNode.parentNode;kt(r.nodeName.toLowerCase()===cw,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-right.ts:210");for(var o=10;o>0;){o--,e.modify("move","right","character");var i=Nc(e.anchorNode,cw,n);if(!i||i!==r)break}var a=e.focusNode;return a.childNodes&&a.childNodes[e.focusOffset]&&a.childNodes[e.focusOffset].nodeName.toLowerCase()===y5&&e.modify("move","right","character"),{changed:!0,selectionData:HXe.transformRange(e.getRangeAt(0),n)}}(u,n,i)}(e,t,n,r,i,a)}(l,t,r,n,o,i,a):g3e.isArrowUp(e)?function(e,t,n,r,o,i){return o?function(e,t,n,r,o){return{changed:!0,selectionData:e?r4e.extendUp(r,t,n,o):r4e.moveUp(r,n,o)}}(e,t,n,r,o):function(e,t,n,r,o){var i=HXe.getSelection(),a=Nc(i.focusNode,"td",o);return n4e(i,o,(function(){i.modify(e?"extend":"move","left","line")}))===a?(i.modify(e?"extend":"move","left","line"),{changed:!0,selectionData:HXe.transformRange(i.getRangeAt(0),o)}):function(e,t,n,r,o,i){var a=Dd(o.parentNode),l=parseInt(o.getAttribute("data-col"),10);kt(l>=0&&a>=0,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-up.ts:121");var u=o.parentNode.parentNode.parentNode;kt("TABLE"===u.nodeName,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-up.ts:125");var c,s=r4e.getBoundary(o,o);if(e)c=r4e.extendUp(n,t,u,s);else if(!(c=r4e.moveUp(n,u,s))&&!u._isMaxView)return function(e,t,n){var r=Nc(e.focusNode,"td",n);if(r&&0===r.parentNode.rowIndex&&!Nc(r,cw,n).previousSibling)return{changed:!0};var o=t.parentNode.parentNode.parentNode;kt(o.nodeName.toLowerCase()===cw,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-up.ts:191");var i=o.parentNode,a=Dd(o);e.setBaseAndExtent(i,a,i,a);var l=o.previousSibling;if(l&&l.nodeName.toLowerCase()===cw){for(var u,c=l.querySelector("table").tBodies[0].rows,s=c.length-1;s>=0;s--){var d=c[s].cells;if(d.length){u=d[d.length-1];break}}kt(u,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-up.ts:217"),e.setBaseAndExtent(u,u.childNodes.length,u,u.childNodes.length)}else e.modify("move","left","character"),e.modify("move","right","character");return{changed:!0,selectionData:HXe.transformRange(e.getRangeAt(0),n)}}(r,u,i);return{changed:!0,selectionData:c}}(e,t,r,i,a,o)}(e,t,0,r,i)}(l,t,r,n,o,a):g3e.isArrowDown(e)?function(e,t,n,r,o,i){return o?function(e,t,n,r,o){return{changed:!0,selectionData:e?r4e.extendDown(r,t,n,o):r4e.moveDown(r,n,o)}}(e,t,n,r,o):function(e,t,n,r,o){var i=HXe.getSelection(),a=Nc(i.focusNode,"td",o);return n4e(i,o,(function(){i.modify("extend","right","line")}))===a?(i.modify(e?"extend":"move","right","line"),{changed:!0,selectionData:HXe.transformRange(i.getRangeAt(0),o)}):function(e,t,n,r,o,i){var a=Dd(o.parentNode),l=parseInt(o.getAttribute("data-col"),10);kt(l>=0&&a>=0,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-down.ts:123");var u=o.parentNode.parentNode.parentNode;kt("TABLE"===u.nodeName,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-down.ts:127");var c,s=r4e.getBoundary(o,o);if(e)c=r4e.extendDown(n,t,u,s);else if(!(c=r4e.moveDown(n,u,s))&&!u._isMaxView)return function(e,t,n){var r,o=t.parentNode.parentNode.parentNode;kt(o.nodeName.toLowerCase()===cw,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard-helper/helper/move-down.ts:169");var i=o.parentNode,a=Dd(o)+1;e.setBaseAndExtent(i,a,i,a);var l=o.nextSibling;if(l&&l.nodeName.toLowerCase()===cw){for(var u,c=l.querySelector("table").tBodies[0].rows,s=0,d=c.length;s=0,"plugins/selection/src/render/selection-observer/keyboard/table-keyboard/table-keyboard.ts:203"),r=Math.min(r,t),o=Math.max(o,t+e.colSpan-1),i=Math.max(i,n+e.rowSpan-1)})),{minCol:r,maxCol:o,minRow:n,maxRow:i}}(d),p=p4e.tryInterceptKeyDown(t,n,f,d,h,o,r);p&&p.changed&&(t.preventDefault(),p.selectionData&&(e.emit("change",p.selectionData),null===(i=e._dispose)||void 0===i||i.dispose(),e._dispose=xs((function(){var e,t=Nc(d,"ne-table-inner-wrap",r),n=HXe.getSelection().focusNode;if(!t||!n)return"nearest";var o=null===(e=Nc(n,"td",r))||void 0===e?void 0:e.getBoundingClientRect(),i=t.getBoundingClientRect();return o&&o.left1||(Ks.ipad||Ks.ios)&&requestAnimationFrame((function(){e._syncSelectionFromDOM()}))}),!1)}},{key:"_syncSelectionFromDOM",value:function(){var e=document.getSelection();if(null==e?void 0:e.focusNode){var t=HXe.currentRange();if(t){var n=HXe.transformRange(t,this._rootNode);n&&this.emit("change",{selectionData:n,isComposing:!1})}}}},{key:"_emitChange",value:function(e,t,n){var r=this._rootNode,o=HXe.currentRange();if(o){n&&(o=function(e,t,n){return function(e,t,n){var r;if(!e.collapsed)return e;var o=e,i=o.startContainer,a=o.startOffset,l=Nc(i,"ne-code",n);return l?l.contains(t)||i.nodeType!==Node.TEXT_NODE?e:(null===(r=Yy(i.parentNode))||void 0===r?void 0:r.isTextNode())?0===a?((e=e.cloneRange()).setStart(l.parentNode,Dd(l)),e.collapse(!0),e):a===i.data.length?((e=e.cloneRange()).setStart(l.parentNode,Dd(l)+1),e.collapse(!0),e):e:e:e}(e,t,n)}(o,n,e));var i=HXe.transformRange(o,r);i&&this.emit("change",{selectionData:i,isComposing:t})}}}]),t}(ut);function N4e(e,t,n){return t=Qe(t),Xe(e,O4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function O4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O4e=function(){return!!e})()}var x4e=function(e){function t(e){var n;return Ye(this,t),n=N4e(this,t),Object.defineProperty(Je(n),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_lastContentChangeTime",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(Je(n),"_lastContentChangeRange",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_latestClickTimes",{enumerable:!0,configurable:!0,writable:!0,value:0}),n._rootNode=e.domRootNode,n}return et(t,e),Ke(t,[{key:"destroy",value:function(){this.renderer=null,this._rootNode=null,this.removeAllListeners()}},{key:"start",value:function(){var e=this,t=this.renderer,n=this._rootNode,r=0,o=!1,i=!1,a=!1,l=function(){i&&(r=0,a=!1,i=!1,e._emitChange(!1))};t.onRootNode("keydown",l),t.onRootNode("beforeinput",l),t.onRootNode("mousedown",(function(l){if(o=!1,2===l.button||3===l.which){if(Nc(l.target,"[ne-fake-cell-selection]",n))return void l.preventDefault();Nc(l.target,"ne-card",n)||(o=!0)}r=l.timeStamp,i=!0,a=!0;var u=t.onDocument("mousemove",(function(e){r=e.timeStamp}),!1);t.onceDocument("mouseup",(function(){r=0,a=!1,u(),requestAnimationFrame((function(){i=!1,e._emitChange(!1,l)}))}),!1)}),!1),t.on("clickForSelection",(function(t){e._latestClickTimes=t})),t.onDocument("selectionchange",(function(){if(0!==r)o&&function(){var e=HXe.currentRange();if(e&&!e.collapsed){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset,i=function(e){for(;e;){if(e._neRef)return e._neRef;e=e.parentNode}return null}(t);if(i){var a=e.toString();if(i.isFillerNode()&&0===a.length){var l=Dd(t);HXe.getSelection().setBaseAndExtent(t.parentNode,l,t.parentNode,l)}else i.isTextNode()&&"\n"===a&&t===r&&n+1===o&&HXe.getSelection().setBaseAndExtent(t,n,t,n)}}}(),r=0,e._emitChange(a);else if(Date.now()-e._lastContentChangeTime<1e3&&e._lastContentChangeRange){var t=HXe.currentRange();t&&t.collapsed&&e._lastContentChangeRange.collapsed&&t.startContainer===e._lastContentChangeRange.startContainer&&t.startOffset===e._lastContentChangeRange.startOffset-1&&(e._lastContentChangeTime=1,e._emitChange(!1))}}),!1)}},{key:"setContentChangeRange",value:function(e){this._lastContentChangeTime=Date.now(),this._lastContentChangeRange=e}},{key:"_emitChange",value:function(e,t){var n,r=this._rootNode,o=HXe.currentRange();if(o){if(this._latestClickTimes>=3){var i=o,a=i.startContainer,l=i.endContainer,u=i.startOffset,c=Yy(a)?Yy(a):Yy(a.parentNode),s=Yy(l)?Yy(l):Yy(l.parentNode),d=(null==c?void 0:c.hasCategory(ze.TableCell))?c:null==c?void 0:c.closest(ze.TableCell),f=(null==s?void 0:s.hasCategory(ze.TableCell))?s:null==s?void 0:s.closest(ze.TableCell);if(d&&f&&d!==f){var h=Gy(d).getMainDOMNode();(o=document.createRange()).setStart(a,u),o.setEnd(h,h.childNodes.length)}}if(null==t?void 0:t.target){var p=t.target;if(!t.defaultPrevented){var v=Nc(o.commonAncestorContainer,"ne-card",r);v&&!Nc(p,"ne-card",r)&&(o=null!==(n=function(e,t){if(!e.isConnected)return null;var n=e.getBoundingClientRect(),r=document.createRange();return r.selectNode(e),r.collapse(t.x<=n.left+n.width/2),r}(v,t))&&void 0!==n?n:o)}o=function(e,t,n){return function(e,t,n){var r;if(!e.collapsed)return e;var o=e,i=o.startContainer,a=o.startOffset,l=Nc(i,"ne-code",n);return l?l.contains(t)||i.nodeType!==Node.TEXT_NODE?e:(null===(r=Yy(i.parentNode))||void 0===r?void 0:r.isTextNode())?0===a?((e=e.cloneRange()).setStart(l.parentNode,Dd(l)),e.collapse(!0),e):a===i.data.length?((e=e.cloneRange()).setStart(l.parentNode,Dd(l)+1),e.collapse(!0),e):e:e:e}(e,t,n)}(o,p,r)}var m=HXe.transformRange(o,r);m&&this.emit("change",{selectionData:m,isComposing:e})}}}]),t}(ut);function E4e(e,t,n){return t=Qe(t),Xe(e,D4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function D4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D4e=function(){return!!e})()}var R4e=function(e){function t(e,n){var r;return Ye(this,t),r=E4e(this,t),Object.defineProperty(Je(r),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_keyboard",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_mouse",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_mobile",{enumerable:!0,configurable:!0,writable:!0,value:null}),r._keyboard=new w4e(e,n),r._mouse=new x4e(e),Ks.mobile&&(r._mobile=new _4e(e)),r._init(),r}return et(t,e),Ke(t,[{key:"_init",value:function(){var e,t,n=this;this._keyboard.on("change",(function(e){n._onSelectionChange("keyboard",e)})),this._mouse.on("change",(function(e){n._onSelectionChange("mouse",e)})),null===(e=this._mobile)||void 0===e||e.on("change",(function(e){n._onSelectionChange("mobile",e)})),this._keyboard.start(),this._mouse.start(),null===(t=this._mobile)||void 0===t||t.start()}},{key:"destroy",value:function(){var e;this._keyboard.destroy(),this._mouse.destroy(),null===(e=this._mobile)||void 0===e||e.destroy(),this.renderer=null,this._keyboard=null,this._mouse=null,this._mobile=null,this.removeAllListeners()}},{key:"setContentChangeRange",value:function(e){this._mouse.setContentChangeRange(e)}},{key:"updateRangeChangeTime",value:function(e){this._keyboard.updateRangeChangeTime(e)}},{key:"_onSelectionChange",value:function(e,t){t&&(t.type=e,this.emit("change",t))}}]),t}(ut);function P4e(e,t,n){return t=Qe(t),Xe(e,S4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function S4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S4e=function(){return!!e})()}var T4e=function(e){function t(){var e;return Ye(this,t),e=P4e(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(tw);function A4e(e,t,n){return t=Qe(t),Xe(e,j4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function j4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j4e=function(){return!!e})()}Object.defineProperty(T4e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt(S4.service.ISelectionRenderService)});var I4e=function(e){function t(){var e;return Ye(this,t),e=A4e(this,t,arguments),Object.defineProperty(Je(e),"forceSelectExec",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"destroy",value:function(){}},{key:"setForceSelectExec",value:function(e){this.forceSelectExec=e}}]),t}(T4e);function B4e(e,t,n){return t=Qe(t),Xe(e,M4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function M4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(M4e=function(){return!!e})()}var F4e=function(e){function t(){var e;return Ye(this,t),e=B4e(this,t,arguments),Object.defineProperty(Je(e),"_observer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_painter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_blockReset",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_preventSetSelection",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_clickTimes",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(e),"_tmpClickTimes",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(e),"_latestClickTimeStamp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(e),"_latestClickEle",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e,t){var n=this;this._observer=new R4e(e,t),this._painter=new m3e(e),this._observer.on("change",(function(r){var o=r.selectionData,i=r.isComposing,a=r.type;n._blockReset=!1,e.isFocus()&&(i?(n._blockReset=!0,e.emitPluginEvent("blockSelectionChange"),e.emitPluginEvent("uiSelectionChange",o.ranges),n._painter.refresh(o,e.domRootNode,!1,a),n._observer.updateRangeChangeTime("selection")):(n._blockReset=!1,e.emitPluginEvent("unblockSelectionChange",o),"keyboard"===a&&n._emitKeyboardEnterEvent(o,e,t),n._selectionChange(o,"mouse"!==a)))}));var r=e.domRootNode;e.extendMethods({repaintSelection:function(e){n._repaint(e)},focusCard:function(e){n.kernel.execCommand("selection",{ranges:[t.transformDOMRange(HXe.createRange({startContainer:e,startOffset:0,endContainer:e,endOffset:0}))],start:"start",end:"start"})}}),e.on("repaintSelection",(function(e){n._repaint(e)})),e.on("contentchange",(function(t){(n.service.forceSelectExec||e.isFocus()&&!n._blockReset)&&(n._painter.refresh(t,e.domRootNode,!0),n._observer.updateRangeChangeTime("content"),n._observer.setContentChangeRange(HXe.currentRange()))})),e.on("selectionchange",(function(r){if(e.isFocus()&&!n._blockReset){var o=!1;r.ranges.forEach((function(r){var i,a=r.endOffset;if(2===n._tmpClickTimes){var l=e.toViewRange(r),u=l.end.node;if(!l.collapsed&&(null==u?void 0:u.isTextNode())&&a>1&&" "===(null===(i=u.data)||void 0===i?void 0:i[a-1])){var c=document.createRange();c.setStart(r.startContainer,r.startOffset),c.setEnd(r.endContainer,r.endOffset-1),n.kernel.execCommand("selection",{ranges:[t.transformDOMRange(c)],anchor:"start",focus:"end"}),o=!0}n._tmpClickTimes=0}else n._tmpClickTimes>=3&&(n._tripleClick(r,t),n._tmpClickTimes=0)})),o||(n._painter.refresh(r,e.domRootNode,!0),n._observer.updateRangeChangeTime("selection"))}})),e.onPluginEvent("tableSelectionChange",(function(){n._painter.clear()})),e.onPluginEvent("requestSetRange",(function(e){n._selectionChange(e)})),e.onPluginEvent("blockReset",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n._blockReset=e}));var o=null;e.onForceRootNode("mousedown",(function(i){var a,l,u,c;i.timeStamp-n._latestClickTimeStamp<300?n._clickTimes=n._clickTimes+1:n._clickTimes=1,n._tmpClickTimes=n._clickTimes,n._latestClickTimeStamp=i.timeStamp,n._latestClickEle=i.target,e.emit("clickForSelection",n._clickTimes),o=null;var s=Nc(i.target,"ne-card-root",r);if(s&&2!==i.button&&3!==i.which)t.getViewSelection().firstRange.start.node!==Yy(s.parentNode)&&(o=s,e.focusCard(s.parentNode));else if(Ks.firefox){var d=document.getSelection().focusNode,f=t.getViewSelection();["INPUT","TEXTAREA"].includes(d.nodeName)&&(null===(l=(a=d).blur)||void 0===l||l.call(a),null===(c=null===(u=Gy(f.firstRange.start.node))||void 0===u?void 0:u.$blur)||void 0===c||c.call(u))}}),!1),e.onForceRootNode("mouseup",(function(){o&&e.focusCard(o.parentNode),o=null}),!1),e.onDocument("mousedown",(function(){n._preventSetSelection=!0;var t=e.onDocument("mousemove",(function(e){e.which||e.button?n._preventSetSelection=!0:(t(),n._preventSetSelection=!1)}),!1);e.onceDocument("mouseup",(function(){t(),n._preventSetSelection=!1}))}),!1),this.kernel.editing.on("operationRollback",(function(){e.isFocus()&&!n._blockReset&&n._repaint()}))}},{key:"destroy",value:function(){this._observer.destroy(),this._painter.destroy(),this._observer=null,this._painter=null,Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"_syncSelection",value:function(){var e=HXe.transformRange(HXe.currentRange(),this.renderer.domRootNode);this._selectionChange(e)}},{key:"setSelection",value:function(e,t){var n=document.createRange();n.setStart(e,t),n.collapse(!0),this._selectionChange({ranges:[n]})}},{key:"_selectionChange",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.engine,r=!1,o=e.ranges.map((function(e){return r?null:n.transformDOMRange(e)||(r=!0,null)}));r||this.kernel.execCommand("selection",Object.assign(Object.assign({},e),{ranges:o}),t)}},{key:"_repaint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._preventSetSelection){var t=this.engine,n=this.renderer,r=t.getViewSelection();if(r){var o=r.ranges.map((function(e){return t.viewRangeToDOMRange(e)})),i=!this._preventSetSelection&&e;this._painter.refresh({anchor:r.anchor,focus:r.focus,ranges:o},n.domRootNode,i),this._observer.updateRangeChangeTime("selection"),i&&HXe.refreshSelection()}}}},{key:"_emitKeyboardEnterEvent",value:function(e,t,n){var r=t.requireService(U2e.ID);try{var o=e.ranges.map((function(e){return n.transformDOMRange(e)||null})),i=this._checkCursorEnterDirec(o,n.getViewSelection().ranges);if(i){var a=o[0].start.node;a&&r.requestAppearByNodeID(a.id),t.emitPluginEvent("selection_enterCardByKeyboard:".concat(a.id),i)}}catch(e){return null}}},{key:"_checkCursorEnterDirec",value:function(e,t){var n=e[0].start.node,r=t[0]?t[0].start.node:null,o=n.isCardNode()?n:null,i=r&&r.isCardNode()?r:null;if(o===i)return null;if(!i&&o){var a="";return r.id===n.parentNode.id&&(a=t[0].start.offset>n.offset?BL:IL),r.parentNode.id===n.parentNode.id&&(a=r.offset>n.offset?BL:IL),a}return null}},{key:"_tripleClick",value:function(e,t){var n,r=e.commonAncestorContainer;if(3===r.nodeType){var o=r.parentElement;if(this._clickTimes>=3){var i=Yy(o);if(!(null==i?void 0:i.hasCategory(ze.Text)))return;var a=i.closest(ze.Block);if(!a)return;var l=null===(n=Gy(a))||void 0===n?void 0:n.getMainDOMNode();if(!l)return;var u=document.createRange();u.selectNodeContents(l),this.kernel.execCommand("selection",{ranges:[t.transformDOMRange(u)],anchor:"start",focus:"end"})}}}}]),t}(rb);function L4e(e,t,n){return t=Qe(t),Xe(e,U4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function U4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U4e=function(){return!!e})()}Object.defineProperty(F4e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:S4.pluginName}),Object.defineProperty(F4e,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[f3e]}),Object.defineProperty(F4e,"Service",{enumerable:!0,configurable:!0,writable:!0,value:I4e});var V4e=function(e){function t(e){var n;return Ye(this,t),n=L4e(this,t),Object.defineProperty(Je(n),"attrName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n.attrName="ne-".concat(e),n}return et(t,e),Ke(t,[{key:"translate",value:function(){return{type:bp.ATTR_NAME,name:this.attrName,value:"true"}}}]),t}(bp);function H4e(e,t,n){return t=Qe(t),Xe(e,z4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function z4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(z4e=function(){return!!e})()}var W4e=function(e){function t(){return Ye(this,t),H4e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this.kernel;e.registerAttrTranslator({sub:new V4e(Q4.attr.sub),sup:new V4e(Q4.attr.sup)});var n=e.getService(OTe.ID);n&&[DRe.sup,DRe.sub].forEach((function(e){var r=e.keys,o=e.name;n.registerHotKey(o,r,(function(e){e.stop(),t.execCommand(o)}))}))}}]),t}(rb);Object.defineProperty(W4e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Q4.pluginName});var q4e=40;function $4e(e,t,n){return t=Qe(t),Xe(e,K4e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function K4e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(K4e=function(){return!!e})()}var Y4e=function(e){function t(e,n,r,o){var i;return Ye(this,t),i=$4e(this,t),Object.defineProperty(Je(i),"_viewNode",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(i),"_tableDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(i),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(i),"_innerDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(i),"_colGroup",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_columns",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(i),"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"dispose",{enumerable:!0,configurable:!0,writable:!0,value:null}),i.id=e.id,i._colGroup=document.createElement("colgroup"),i._tableDOMNode.prepend(i._colGroup),i}return et(t,e),Ke(t,[{key:"fitWidth",get:function(){return!!window.ResizeObserver&&!!this._viewNode.attrs.fitWidth}},{key:"destroy",value:function(){var e;this._colGroup.remove(),null===(e=this.dispose)||void 0===e||e.dispose(),t.colWidthsMap.delete(this.id)}},{key:"update",value:function(){this._updateColumnNode(),this._updateColumnWidth()}},{key:"updateSizeChange",value:function(){var e;this.fitWidth&&(null===(e=this.dispose)||void 0===e||e.dispose(),this._updateFitWidth())}},{key:"_updateColumnNode",value:function(){var e=this._columns,t=this._viewNode.attrs.colCount;if(e.length!==t)if(e.length>t)e.splice(t,e.length-t).forEach((function(e){e.parentNode.removeChild(e)}));else for(var n=e.length;n0)for(var l=i.length-1,u=100;a>0&&u-- >0;)l<0&&(l=i.length-1),i[l]+=1,a--,l--;else if(a<0)for(var c=i.length-1,s=100;a<0&&s-- >0;)c<0&&(c=i.length-1),i[c]<=q4e||(i[c]-=1,a++),c--;return i}},{key:"_updateFitWidth",value:function(){var e=this;this.dispose=xs((function(){return e._innerDOMNode.getBoundingClientRect()}),(function(n){var r=e._columns,o=e._viewNode.attrs.colWidths,i=e._map(o,n.width);t.colWidthsMap.set(e.id,i);var a=r.length-1,l=0;r.forEach((function(e,t){var n=i[t];t===a&&(n-=1),l+=n,e.getAttribute("width")!==n+""&&e.setAttribute("width",n+"")})),e._tableDOMNode.style.width=l+1+"px",e.emit("needUpdateUI")}))}},{key:"_updateColumnWidth",value:function(){var e;null===(e=this.dispose)||void 0===e||e.dispose(),this.fitWidth?(this._rootNode.style.width="100%",this._updateFitWidth()):(this._rootNode.style.width="",this._updateNormalWidth())}}],[{key:"getColWidths",value:function(e){if(!e.attrs.fitWidth)return e.attrs.colWidths;var n=e.id,r=t.colWidthsMap.get(n);return r||(r=e.attrs.colWidths,t.colWidthsMap.set(n,r)),r}}]),t}(ut);Object.defineProperty(Y4e,"colWidthsMap",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var G4e="none",J4e="column",X4e="row",Q4e="cell",Z4e="all",e5e=14;function t5e(e,t,n){var r=t.startColumn,o=t.endColumn,i=e.columnWidths,a=Math.min(r,o),l=Math.max(r,o),u=function(e,t){var n=0;if(t=a&&c<=l+1?null:c===e.columnCount?u:e.isCrossColumn(c)?null:u}var n5e=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"_dragNode",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_tableNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"themeSelector",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._callbacks=Object.assign({onStart:function(){},onMove:function(){},onCancel:function(){},onCompleted:function(){}},r),this._init()}return Ke(e,[{key:"_init",value:function(){var e=this,t=this._dragNode;kc(this,t,"mousedown",(function(e){e.stopPropagation()}),!1);var n=null;kc(this,t,"dragstart",(function(t){t.dataTransfer.effectAllowed="move",t.dataTransfer.dropEffect="move";var r="";e._callbacks.onStart({setTipText:function(e){r=e||""}}),(n=document.createElement("div")).className="ne-ui-table-moving-tip ".concat(e.themeSelector()),n.innerText=r,document.body.appendChild(n),t.dataTransfer.setDragImage(n,0,0),e._run((function(){null==n||n.remove()}))}),!1)}},{key:"_run",value:function(e){var t=this,n={destroy:function(){e()}},r=this._tableNode,o=!1,i=-1,a=-1,l=function(e){e.preventDefault();var n=r.getBoundingClientRect(),o=e.clientX-n.x,l=e.clientY-n.y;o===i&&l===a||(i=o,a=l,t._handleMove(o,l))};kc(n,document,"dragover",l,!1),kc(n,document,"dragenter",l,!1),kc(n,document,"drop",(function(e){e.preventDefault();var n=r.getBoundingClientRect(),l=e.clientX-n.x,u=e.clientY-n.y;i=-1,a=-1,o=!0,t._handleDragEnd(l,u)}),!1),kc(n,document,"dragend",(function(e){e.preventDefault(),n.destroy(),o||(i=-1,a=-1,t._handleCancel())}),!1)}},{key:"_handleMove",value:function(e,t){this._callbacks.onMove(e,t)}},{key:"_handleDragEnd",value:function(e,t){this._callbacks.onCompleted(e,t)}},{key:"_handleCancel",value:function(){this._callbacks.onCancel()}},{key:"destroy",value:function(){this._dragNode=null,this._tableNode=null,this._callbacks=null}}]),e}(),r5e=function(){function e(){Ye(this,e)}return Ke(e,null,[{key:"listen",value:function(e,t,n,r){return new n5e(e,t,n,r).destroy}}]),e}();function o5e(e,t,n){return t=Qe(t),Xe(e,i5e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function i5e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i5e=function(){return!!e})()}var a5e=function(e){function t(e,n,r,o){var i;return Ye(this,t),i=o5e(this,t),Object.defineProperty(Je(i),"_controller",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(i),"_tableContext",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(i),"_tableSelectionContext",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(i),"_index",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(i),"_colNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_barRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_moveNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_abortMoveHandler",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),i._colNode=n.tableDOMNode.firstChild.children[o],i._barRootNode=$y.createElement("div",{className:"ne-ui-table-column-bar","data-col":o}),i._moveNode=$y.createElement("div",{className:"ne-ui-table-column-bar-move",draggable:"true"}),i._moveNode.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n',i._barRootNode._columnIndex=o,i._barRootNode.appendChild(i._moveNode),i._initEvent(),i}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._barRootNode.remove()}},{key:"_initEvent",value:function(){this._initMove()}},{key:"_initMove",value:function(){var e=this._tableContext,t=this._tableSelectionContext,n=this._controller;this._abortMoveHandler=r5e.listen(this._moveNode,this._tableContext.tableDOMNode,{onStart:function(e){var n=t.startColumn,r=t.endColumn;e.setTipText(gc("正在移动{count}列",{count:Math.abs(r-n)+1}))},onMove:function(r){var o=t5e(e,t,r);n.emit("_columnMoveIndexChange",{index:o?o.index:null,x:o?o.x:null,completed:!1})},onCompleted:function(r){var o=t5e(e,t,r);n.emit("_columnMoveIndexChange",{index:o?o.index:null,x:o?o.x:null,completed:!0})},onCancel:function(){n.emit("cancelMove")}},this._tableContext.getThemeSelector)}},{key:"index",get:function(){return this._index}},{key:"setSelectState",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(t=this._barRootNode.classList).add.apply(t,pn(["ne-ui-selected",n?"ne-ui-active":null].filter(Boolean))):this._barRootNode.classList.remove("ne-ui-selected","ne-ui-active")}},{key:"appendTo",value:function(e){e.appendChild(this._barRootNode)}},{key:"reset",value:function(){var e=this._tableContext.getColumnDisplayRect(this._index).width;this._barRootNode.style.width="".concat(e,"px")}},{key:"getCoordinate",value:function(){return this._barRootNode.getBoundingClientRect()}}]),t}(ut);function l5e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Math.max(t,0),o=r,i=e.length-1-r,a=!1,l=function(t){a||"function"!=typeof n||t<0||t>=e.length||(a=n(t))};l(r);for(var u=1;u<=Math.min(o,i);u++)l(r-u),l(r+u);if(o>i)for(var c=1;c<=o-i;c++)l(r-i-c);else if(o=i?e.emit("selectChange",{isComposing:!1,start:i,end:o.max}):e.emit("selectChange",{isComposing:!1,start:i,end:o.min})}}),!1),kc(this,this._deleteButton,"mouseenter",(function(t){t.stopPropagation(),e._tableSelectionContext.highlight(!0,"column")}),!1),kc(this,this._deleteButton,"mousemove",(function(e){e.stopPropagation()}),!1),kc(this,this._deleteButton,"mouseleave",(function(){e._tableSelectionContext.highlight(!1)}),!1),kc(this,this._deleteButton,"mousedown",(function(e){e.preventDefault()}),!1),kc(this,this._deleteButton,"click",(function(t){t.preventDefault(),t.stopPropagation(),e._tableSelectionContext.highlight(!1),e._tableContext.execute("tableDeleteColumn")}),!1);var n=!1;kc(this,this._containerNode,"mouseenter",(function(e){n=!0}),!1),this._debounceShowAddColumnButton=ig()((function(){n&&e._showAddColumnButton()}),30,{leading:!0}),kc(this,this._containerNode,"mousemove",(function(t){var n;e._mouseX=t.clientX,null===(n=e._debounceShowAddColumnButton)||void 0===n||n.call(e)}),!1),kc(this,this._containerNode,"mouseleave",(function(){n=!1,e._hideAddColumnButton()}),!1),kc(this,this._containerNodeTextMask,"click",(function(t){e._tableContext.isMaxView()||(e._tableSelectionContext.clear(),Ad.setRangeToPoint(t.clientX,t.clientY))}),!1),kc(this,this._addColumnButton,"mousedown",(function(e){e.stopPropagation(),e.preventDefault()}),!1),kc(this,this._addColumnButton,"mousemove",(function(e){e.stopPropagation(),e.preventDefault()}),!1),kc(this,this._addColumnButton,"click",(function(t){t.stopPropagation();var n=e._addColumnButton.getAttribute("data-pos"),r=parseInt(e._addColumnButton.getAttribute("data-index"),10);r>=0&&("before"===n?e._tableContext.execute("tableInsertBeforeColumn",1,r):e._tableContext.execute("tableInsertAfterColumn",1,r),e._tableContext.fitWidth&&e._hideAddColumnButton())}),!1),jc(this,this,"resizeEnd",(function(t){var n=t.originalEvent;e._mouseX=n.clientX,e._tableSelectionContext.type===J4e&&e._showDeleteButton()}))}},{key:"_initMovingEvent",value:function(){var e=this;this.on("_columnMoveIndexChange",(function(t){var n=t.index,r=t.x;if(t.completed)return e.movingLine.hide(),void e.emit("moveColumn",n);null===n?e.movingLine.hide():e.movingLine.show({x:r})})),this.on("cancelMove",(function(){e.movingLine.hide()}))}},{key:"_refresh",value:function(){this._generateBars(this._tableContext.columnCount).forEach((function(e,t){kt(e.index===t,"plugins/table/src/render/elements/lib/table-ui/column-controller.ts:391"),e.reset()}))}},{key:"_generateBars",value:function(e){var t=this._bars,n=t.length;if(e===n)return t;if(e0&&void 0!==arguments[0]&&arguments[0],r=this._tableContext.tableDOMNode.getBoundingClientRect().x,o=this._bars,i=this._mouseX,a=null,l=-1;if(l5e(o,this._addColIndex,(function(n){var r=o[n].index,u=o[n].getCoordinate(),c=u.x,s=u.width;return i>=c&&i=0&&l!==this._addColIndex||n)return this._addColType=a,this._addColIndex=l,this._containerNode.classList.add("ne-add-column-btn-show"),this._showAddColumnButtonByPosition(this._addColType,this._addColIndex,e-r,t)}},{key:"_showAddColumnButtonByPosition",value:function(e,t,n,r){var o=this._tableSelectionContext.type;this._addColumnButton.setAttribute("data-pos",e),this._addColumnButton.setAttribute("data-index",t+"");var i=0,a="",l="";if("before"===e)i=n-12,0===t&&(i=n,l="before"),a="left: ".concat(i,"px; display: flex;");else{i=n+r-12;var u=this._tableContext.tableInnerWrapNode,c=u.clientWidth+u.scrollLeft;n+r+12>=c&&c>=n+r-12&&(l="after",i=c>n+r?n+r-24:c-24),a="left: ".concat(i,"px; display: flex;")}if(o===J4e){var s=this._getDeleteButtonPositionX()-12,d="";i>s||i===s&&"before"===e?(a+="justify-content: flex-end;",d="margin-right: -".concat(Math.max(0,28-i+s),"px")):(i0&&Number.isInteger(t)&&(this.props.onClose(),this.props.tableContext.execute(e,t))}},{key:"_insertColumn",value:function(e,t){if((t=Number(t))>0&&Number.isInteger(t)){var n=this.props.tableContext;this.props.onClose(),n.execute(e,t)}}},{key:"_renderClipboard",value:function(){var e=this.props.tableSelectionContext.ranges.length>1;return e?[nc().createElement("div",{key:"cut",className:"ne-ui-table-context-menu-item",onClick:e?this._cut:void 0},nc().createElement("div",{className:"ne-ui-icon-box"}),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},gc("剪切")),nc().createElement("span",{className:"ne-ui-table-context-menu-item-hotkey"},ff(["cmd","X"]))),nc().createElement("div",{key:"copy",className:"ne-ui-table-context-menu-item",onClick:e?this._copy:void 0},nc().createElement("div",{className:"ne-ui-icon-box"}),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},gc("复制")),nc().createElement("span",{className:"ne-ui-table-context-menu-item-hotkey"},ff(["cmd","C"]))),nc().createElement("div",{key:"copy-div",className:"ne-ui-table-context-menu-divider"})]:null}},{key:"_renderRowColumn",value:function(){var e=this.props.tableSelectionContext,t=e.startRow,n=e.endRow,r=e.startColumn,o=e.endColumn,i=(e.type,Math.abs(n-t)+1),a=Math.abs(o-r)+1,l=this.props.tableContext.tableQueueStartAndEnd(),u=[this._createInputItem("up-arrow",i,gc("向上插入"),gc("行"),this._beforeRowRef,this._insertBeforeRow,ff(["cmd","option","shift","↑"])),this._createInputItem("down-arrow",i,gc("向下插入"),gc("行"),this._afterRowRef,this._insertAfterRow,ff(["cmd","option","shift","↓"]))],c=[this._createInputItem("left-arrow",a,gc("向左插入"),gc("列"),this._beforeColRef,this._insertBeforeColumn,ff(["cmd","option","shift","←"])),this._createInputItem("right-arrow",a,gc("向右插入"),gc("列"),this._afterColRef,this._insertAfterColumn,ff(["cmd","option","shift","→"]))],s=[].concat(u,c);return 0===r&&0===o&&s.push(this._createInputItem("insertion-order",t+1,gc("从第"),gc("行起自动编号"),this._queueNoRef,this._setQueueNo,void 0,"add-queue-first-col")),l||s.push(nc().createElement("div",{key:"add-queue-table",className:"ne-ui-table-context-menu-item",onClick:this._addQueueNO,"data-testid":"add-queue-table"},nc().createElement("div",{className:"ne-ui-icon-box"},nc().createElement(tD,{type:"insertion-order"})),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},gc("插入序号列到最左侧")))),s.length&&s.push(nc().createElement("div",{key:"insert-div",className:"ne-ui-table-context-menu-divider"})),s}},{key:"_renderDelete",value:function(){var e=this.props,t=e.tableSelectionContext,n=e.tableContext,r=t.type,o=n.isMaxView()?null:nc().createElement("div",{key:"delete-table",className:"ne-ui-table-context-menu-item",onMouseOver:this._hoverInDeleteTable,onMouseOut:this._hoverOutDeleteTable,onClick:this._deleteTable},nc().createElement("div",{className:"ne-ui-icon-box"}),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},gc("删除表格"))),i=nc().createElement("div",{key:"delete-column",className:"ne-ui-table-context-menu-item",onMouseOver:this._hoverInDeleteColumn,onMouseOut:this._hoverOutDeleteColumn,onClick:this._deleteColumn},nc().createElement("div",{className:"ne-ui-icon-box"}),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},gc("删除所选列"))),a=nc().createElement("div",{key:"delete-row",className:"ne-ui-table-context-menu-item",onMouseOver:this._hoverInDeleteRow,onMouseOut:this._hoverOutDeleteRow,onClick:this._deleteRow},nc().createElement("div",{className:"ne-ui-icon-box"}),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},gc("删除所选行")));if(r===Z4e)return[o];if(r===J4e)return[i,o];if(r===X4e)return[a,o];var l=[a,i,o].filter(Boolean);return l.length&&l.push(nc().createElement("div",{key:"delete-div",className:"ne-ui-table-context-menu-divider"})),l}},{key:"_renderMerge",value:function(){var e,t=this.props.tableContext,n=t.canMergeCell,r=t.canUnmergeCell;return n||r?(n?e=nc().createElement("div",{key:"merge-cell",className:"ne-ui-table-context-menu-item",onClick:this._mergeCell},nc().createElement("div",{className:"ne-ui-icon-box"}),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},gc("合并单元格"))):(kt(r,"plugins/table/src/render/elements/lib/table-ui/context-menu/component/context-menu-view.tsx:466"),e=nc().createElement("div",{key:"unmerge-cell",className:"ne-ui-table-context-menu-item",onClick:this._unmergeCell},nc().createElement("div",{className:"ne-ui-icon-box"}),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},gc("拆分单元格")))),[e,nc().createElement("div",{key:"cell-merge-divider",className:"ne-ui-table-context-menu-divider"})]):null}},{key:"_createInputItem",value:function(e,t,n,r,o,i,a,l){var u=null,c=nc().createElement("div",Object.assign({key:e,className:"ne-ui-table-context-menu-item ne-ui-input-item",onMouseDown:function(e){e.stopPropagation(),u=e.target},onClick:function(e){"INPUT"!==e.target.nodeName&&(u&&"INPUT"===u.nodeName||i(parseInt(o.current.input.value,10)))}},l?{"data-testid":l}:{}),nc().createElement("div",{className:"ne-ui-icon-box"},nc().createElement(tD,{type:e})),nc().createElement("span",{className:"ne-ui-table-context-menu-item-text"},n,nc().createElement(hj,{type:"text",onKeyDown:function(e){!ed.isEnter(e)||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||i(parseInt(o.current.input.value,10))},ref:o,defaultValue:t,className:"ne-ui-table-context-menu-input"}),r));return a?nc().createElement(yS,{overlayClassName:"ne-ui-table-context-menu-tooltip-overlay ".concat(this.props.className),key:e,placement:"right",title:a},c):c}}]),t}(tc.Component);function v5e(e,t,n){return t=Qe(t),Xe(e,m5e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function m5e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m5e=function(){return!!e})()}Object.defineProperty(p5e,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onClose:function(){}}});var g5e=function(e){function t(e,n,r,o,i){var a;return Ye(this,t),a=v5e(this,t),Object.defineProperty(Je(a),"_tableContext",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(a),"_tableSelectionContext",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(a),"_tableWrapNode",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(a),"_overlayNode",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(a),"_scrollNode",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(Je(a),"_overlay",{enumerable:!0,configurable:!0,writable:!0,value:null}),a._init(),a}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._overlay&&this._overlay.cancel()}},{key:"_init",value:function(){var e=this;Ks.mobile?md(this,this._tableWrapNode,(function(t){var n=t.touches[0];setTimeout((function(){e._openContextMenu(n.clientX,n.clientY)}),100)}),1e3):kc(this,this._tableWrapNode,"contextmenu",(function(t){Nc(t.target,'[data-event-boundary="overlay"]')||(t.stopPropagation(),t.preventDefault(),e._tableSelectionContext.isFocus()&&setTimeout((function(){e._openContextMenu(t.clientX,t.clientY)}),100))}),!1)}},{key:"_openContextMenu",value:function(e,t){var n,r,o,i,a=this;this._overlay&&this._overlay.cancel(),this._overlay=xj.open({containerNode:this._overlayNode,targetNode:this._tableWrapNode,reactComponent:nc().createElement(p5e,{className:null===(i=null===(o=null===(r=null===(n=this._tableContext)||void 0===n?void 0:n.renderer)||void 0===r?void 0:r.theme)||void 0===o?void 0:o.getThemeSelector)||void 0===i?void 0:i.call(o),point:{x:e,y:t},tableContext:this._tableContext,tableSelectionContext:this._tableSelectionContext,targetNode:this._tableWrapNode,boundaryNode:this._scrollNode}),closeCallback:function(){a._overlay=null}})}}]),t}(ut);function b5e(e,t,n){return t=Qe(t),Xe(e,y5e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function y5e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y5e=function(){return!!e})()}var w5e=function(e){function t(e,n){var r;return Ye(this,t),r=b5e(this,t),Object.defineProperty(Je(r),"_tableContext",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_tableSelectionContext",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(r),"_pointNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_pointNodeWrapper",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_isVisible",{enumerable:!0,configurable:!0,writable:!0,value:!1}),r._pointNode=$y.createElement("div",{className:"ne-ui-table-control-point"}),r._pointNodeWrapper=$y.createElement("div",{className:"ne-ui-table-control-point-wrapper"}),r._pointNodeWrapper.appendChild(r._pointNode),r._initEvent(),r}return et(t,e),Ke(t,[{key:"_isEnable",get:function(){return this._tableSelectionContext.isFocus()&&!this._tableContext.headDisabled}},{key:"destroy",value:function(){this.removeAllListeners()}},{key:"_initEvent",value:function(){var e=this;kc(this,this._pointNode,"click",(function(){e.emit("click")}),!1),jc(this,this._tableSelectionContext,"change",(function(){e._updateState()}))}},{key:"appendTo",value:function(e){e.appendChild(this._pointNodeWrapper)}},{key:"_updateState",value:function(){var e=this._tableSelectionContext.type;this._isEnable?(this._show(),e===Z4e?this._pointNode.classList.add("ne-ui-active"):this._pointNode.classList.remove("ne-ui-active")):this._hide()}},{key:"_hide",value:function(){this._isVisible&&(this._isVisible=!1,this._pointNodeWrapper.style.display="none")}},{key:"_show",value:function(){this._isVisible||(this._isVisible=!0,this._pointNodeWrapper.style.display="block")}}]),t}(ut);function k5e(e,t,n){return t=Qe(t),Xe(e,C5e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function C5e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C5e=function(){return!!e})()}var _5e="ne-ui-table-resize-mask-last-col",N5e=function(e){function t(e,n,r,o,i,a,l){var u;return Ye(this,t),u=k5e(this,t),Object.defineProperty(Je(u),"_tableContext",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(u),"_tableSelectionContext",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(u),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(u),"_rowController",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(u),"_columnController",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(Je(u),"movingLineRow",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(Je(u),"movingLineColumn",{enumerable:!0,configurable:!0,writable:!0,value:l}),Object.defineProperty(Je(u),"_maskNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(u),"_activeCellNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(u),"_cellInfo",{enumerable:!0,configurable:!0,writable:!0,value:{rowIndex:-1,colIndex:-1,rowSpan:1,colSpan:1}}),Object.defineProperty(Je(u),"_listener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(u),"_isResizing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(u),"_isVLineVisible",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(u),"_isHLineVisible",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(u),"_topResizeSelector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(u),"_rightResizeSelector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(u),"_bottomResizeSelector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(u),"_leftResizeSelector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),u._maskNode=$y.createElement("div",{className:"ne-ui-table-resize-mask",contentEditable:"false"}),u._maskNode.top=$y.createElement("div",{className:"ne-ui-table-resize-top"}),u._maskNode.right=$y.createElement("div",{className:"ne-ui-table-resize-right"}),u._maskNode.bottom=$y.createElement("div",{className:"ne-ui-table-resize-bottom"}),u._maskNode.left=$y.createElement("div",{className:"ne-ui-table-resize-left"}),u._maskNode.appendChild(u._maskNode.top),u._maskNode.appendChild(u._maskNode.right),u._maskNode.appendChild(u._maskNode.bottom),u._maskNode.appendChild(u._maskNode.left),u._initEvent(),u}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._activeCellNode=null,this._topResizeSelector.destroy(),this._rightResizeSelector.destroy(),this._bottomResizeSelector.destroy(),this._leftResizeSelector.destroy(),this.removeAllListeners()}},{key:"appendTo",value:function(e){e.appendChild(this._maskNode)}},{key:"_initEvent",value:function(){var e=this,t=this._tableContext,n=t.tableDOMNode,r=t.tableInnerWrapNode;kc(this,n,"mousemove",(function(t){var n=Nc(t.target,"td");if(!e._isResizing&&n&&n!==e._activeCellNode)e._activeCellNode=n,e._refreshMask();else if(!n){if(t.button||t.buttons||t.which)return;e._resetMask()}}),!1),kc(this,this._maskNode.top,"mousemove",(function(){var t=e._cellInfo.rowIndex;e._showHLine(t-1)})),kc(this,this._maskNode.right,"mousemove",(function(){var t=e._cellInfo,n=t.colIndex,r=t.colSpan;e._showVLine(n+r-1)})),kc(this,this._maskNode.bottom,"mousemove",(function(){var t=e._cellInfo,n=t.rowIndex,r=t.rowSpan;e._showHLine(n+r-1)})),kc(this,this._maskNode.left,"mousemove",(function(){var t=e._cellInfo.colIndex;e._showVLine(t-1)})),kc(this,this._maskNode,"mouseout",(function(){e._hideVLine(),e._hideHLine()})),this._tableContext.on("change",(function(){e._refreshMask()})),kc(this,r,"scroll",(function(){e._refreshMask()}),{passive:!0}),jc(this,this._tableSelectionContext,"focus",(function(){e._refreshMask()})),jc(this,this._tableSelectionContext,"blur",(function(){e._refreshMask()})),this.renderer.on("contentchange",(function(){e._refreshMask()})),this._listener=new wd(this.renderer.id,this._maskNode),this._listener.on("mousedown",(function(e){e.preventDefault(),e.stopPropagation()})),this._initResizer()}},{key:"_initResizer",value:function(){var e=this,t=function(t){var n=e._columnController,r=e._tableContext.tableInnerWrapNode,o=0,i=0,a=0,l=!1;return function(u,c){var s,d=e._cellInfo,f=d.colIndex,h=d.colSpan,p=d.lastCol;if(s=t?f-1:f+h-1,"start"===u)e._isResizing=!0,l=!1,o=0,e._tableContext.tableWidth,i=+e._tableContext.tableDOMNode.firstElementChild.children[s].width+(p?1:0),o=c.clientX,n.emit("resizeStart",s),r.parentNode.classList.add("ne-ui-table-column-resizing"),e._tableContext.trySetColumnWidth(s,q4e).width===i&&(l=!0);else if("move"===u){var v=c.clientX-o;e._updateVLinePosition(i,v,l,s)}else{kt("end"===u,"plugins/table/src/render/elements/lib/table-ui/resize-mask.ts:245"),l=!1;var m=c.clientX-o,g=Math.max(i+m,q4e),b=e._tableContext.trySetColumnWidth(s,g);a=b.width,e._tableContext.emit("_requestResetCols",b.rows),e._isResizing=!1,a>=q4e&&e._resizeWidth(a,s),e._hideVLine(),r.parentNode.classList.remove("ne-ui-table-column-resizing"),n.emit("resizeEnd",{index:s,originalEvent:c}),o=0,i=0,a=0}}},n=function(t){var n=e._rowController,r=e._tableContext.tableInnerWrapNode,o=0,i=0,a=0,l=!1;return function(u,c){var s,d=e._cellInfo,f=d.rowIndex,h=d.rowSpan;if(s=t?f-1:f+h-1,"start"===u)e._isResizing=!0,l=!1,n.emit("resizeStart",s),o=c.clientY,a=0,i=e._tableContext.getRowDisplayRect(s).height,r.parentNode.classList.add("ne-ui-table-row-resizing"),e._tableContext.trySetRowHeight(s,33)===i&&(l=!0);else if("move"===u)e._updateHLinePosition(i,c.clientY-o,l);else{kt("end"===u,"plugins/table/src/render/elements/lib/table-ui/resize-mask.ts:320"),e._isResizing=!1,l=!1;var p=Math.max(i+c.clientY-o,33);(a=e._tableContext.trySetRowHeight(s,p))>=33&&e._resizeHeight(a,s),e._hideHLine(),r.parentNode.classList.remove("ne-ui-table-row-resizing"),n.emit("resizeEnd",{index:s,originalEvent:c}),o=0,i=0,a=0}}};this._rightResizeSelector=new u5e(this._maskNode.right),this._rightResizeSelector.listen(t(!1)),this._leftResizeSelector=new u5e(this._maskNode.left),this._leftResizeSelector.listen(t(!0)),this._bottomResizeSelector=new u5e(this._maskNode.bottom),this._bottomResizeSelector.listen(n(!1)),this._topResizeSelector=new u5e(this._maskNode.top),this._topResizeSelector.listen(n(!0))}},{key:"_showVLine",value:function(e){if(!this._isResizing&&!this._isVLineVisible){var t=this._tableContext,n=t.tableInnerWrapNode,r=t.colCount,o=n.getBoundingClientRect().x,i=this._tableContext.getColumnDisplayRect(e),a=i.x+i.width+n.scrollLeft-o-1+(e===r-1?-2:0);this.movingLineColumn.show({x:a}),this._isVLineVisible=!0}}},{key:"_hideVLine",value:function(){!this._isResizing&&this._isVLineVisible&&(this.movingLineColumn.hide(),this._isVLineVisible=!1)}},{key:"_updateVLinePosition",value:function(e,t,n,r){var o=this,i=this._tableContext.colCount,a=n?e:q4e,l=Math.max(e+t,a)-e+(r===i-1?1:0);requestAnimationFrame((function(){o.movingLineColumn.node.style.transform="translateX(".concat(l,"px)"),o._refreshMask()}))}},{key:"_resizeWidth",value:function(e,t){this._columnController.emit("columnWidthChange",{index:t,width:e})}},{key:"_showHLine",value:function(e){if(!this._isResizing&&!this._isHLineVisible){var t=this._tableContext.tableDOMNode.getBoundingClientRect().y,n=this._tableContext.getRowDisplayRect(e),r=n.y+n.height-t;this.movingLineRow.show({y:r}),this._isHLineVisible=!0}}},{key:"_hideHLine",value:function(){!this._isResizing&&this._isHLineVisible&&(this.movingLineRow.hide(),this._isHLineVisible=!1)}},{key:"_updateHLinePosition",value:function(e,t,n){var r=this,o=n?e:33,i=Math.max(e+t,o);t=i-e-(this._cellInfo.lastRow?1:0),requestAnimationFrame((function(){r.movingLineRow.node.style.transform="translateY(".concat(t,"px)"),r._refreshMask()}))}},{key:"_resizeHeight",value:function(e,t){this._rowController.emit("rowHeightChange",{index:t,height:Math.max(e,33)})}},{key:"_refreshMask",value:function(){var e=this;this._activeCellNode&&this._activeCellNode.parentNode?requestAnimationFrame((function(){var t=e._tableContext,n=t.tableInnerWrapNode,r=t.colCount,o=t.rowCount,i=e._activeCellNode;if(n.isConnected&&(null==i?void 0:i.isConnected)){var a=n.getBoundingClientRect(),l=a.x,u=a.y,c=e._activeCellNode.getBoundingClientRect(),s=c.height,d=c.width,f=c.x,h=c.y,p=parseInt(i.getAttribute("data-col"),10),v=i.parentNode,m=Array.from(v.parentNode.children).indexOf(v),g=parseInt(i.getAttribute("rowspan")||"1",10),b=parseInt(i.getAttribute("colspan")||"1",10);e._cellInfo={colIndex:p,rowIndex:m,rowSpan:g,colSpan:b,firstCol:0===p,firstRow:0===m,lastCol:b?p+b-1==r-1:p===r-1,lastRow:m===o-1},e._setMaskStyle({height:s+6+1,width:d+6+1,left:n.scrollLeft+f-l-3,top:h-u-3})}})):this._maskNode.style.display="none"}},{key:"_setMaskStyle",value:function(e){var t=e.height,n=e.width,r=e.left,o=e.top;this._cellInfo.firstCol?(n-=3,r+=3,this._maskNode.left.style.display="none"):this._maskNode.left.style.display="block",this._cellInfo.lastCol?(n-=4,this._maskNode.classList.add(_5e)):this._maskNode.classList.remove(_5e),this._cellInfo.firstRow?(t-=4,o+=4,this._maskNode.top.style.display="none"):this._maskNode.top.style.display="block",this._maskNode.style.height="".concat(t,"px"),this._maskNode.style.width="".concat(n,"px"),this._maskNode.style.left="".concat(r,"px"),this._maskNode.style.top="".concat(o,"px"),this._maskNode.style.display=""}},{key:"_resetMask",value:function(){this._activeCellNode=null,this._cellInfo={rowIndex:-1,colIndex:-1,rowSpan:1,colSpan:1},this._maskNode.style.width="0",this._maskNode.style.height="0",this._maskNode.style.left="auto",this._maskNode.style.top="auto",this._maskNode.left.style.display="block",this._maskNode.top.style.display="block",this._maskNode.classList.remove(_5e)}}]),t}(ut);function O5e(e,t,n){var r=t.startRow,o=t.endRow,i=e.rowHeights,a=Math.min(r,o),l=Math.max(r,o),u=function(e,t){var n=0;if(t=a&&c<=l+1?null:c===e.rowCount?u:e.isCrossRow(c)?null:u}var x5e=function(){function e(t,n,r,o){Ye(this,e),Object.defineProperty(this,"_controller",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_tableContext",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_tableSelectionContext",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_index",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"_rowNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_barRootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_moveNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:-1}),this._rowNode=n.tableDOMNode.tBodies[0].rows[o],this._barRootNode=$y.createElement("div",{className:"ne-ui-table-row-bar","data-row":o}),this._moveNode=$y.createElement("div",{className:"ne-ui-table-row-bar-move",draggable:"true"}),this._moveNode.innerHTML='\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n',this._barRootNode.appendChild(this._moveNode),this._barRootNode._rowIndex=o,this._initEvent()}return Ke(e,[{key:"destroy",value:function(){this._barRootNode.remove()}},{key:"_initEvent",value:function(){this._initMove()}},{key:"_initMove",value:function(){var e=this._tableContext,t=this._tableSelectionContext,n=this._controller;r5e.listen(this._moveNode,this._tableContext.tableDOMNode,{onStart:function(e){var n=t.startRow,r=t.endRow;e.setTipText(gc("正在移动{count}行",{count:Math.abs(r-n)+1}))},onMove:function(r,o){var i=O5e(e,t,o);n.emit("_rowMoveIndexChange",{index:i?i.index:null,y:i?i.y:null,completed:!1})},onCompleted:function(r,o){var i=O5e(e,t,o);n.emit("_rowMoveIndexChange",{index:i?i.index:null,y:i?i.y:null,completed:!0})},onCancel:function(){n.emit("_cancelMove")}},this._tableContext.getThemeSelector)}},{key:"index",get:function(){return this._index}},{key:"appendTo",value:function(e){e.appendChild(this._barRootNode)}},{key:"forceSetDOMHeight",value:function(e){this._barRootNode.style.height=e+"px"}},{key:"reset",value:function(){var e=this._tableContext.getRowDisplayRect(this._index).height;this._height=e,this._barRootNode.style.height="".concat(e,"px"),this._rowNode=this._tableContext.tableDOMNode.tBodies[0].rows[this._index]}},{key:"setSelectState",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(t=this._barRootNode.classList).add.apply(t,pn(["ne-ui-selected",n?"ne-ui-active":null].filter(Boolean))):this._barRootNode.classList.remove("ne-ui-selected","ne-ui-active")}},{key:"getCoordinate",value:function(){return this._barRootNode.getBoundingClientRect()}}]),e}();function E5e(e,t,n){return t=Qe(t),Xe(e,D5e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function D5e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D5e=function(){return!!e})()}var R5e=function(e){function t(e,n,r,o){var i;return Ye(this,t),i=E5e(this,t),Object.defineProperty(Je(i),"_tableContext",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(i),"_tableSelectionContext",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(i),"isControllerEnable",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(i),"movingLine",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(i),"_containerNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_containerNodeInner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_deleteButton",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_addRowButton",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_bars",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(i),"_lastSelectInfo",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(i),"_isVisible",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(i),"_resizing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(i),"_mouseY",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(i),"_addRowType",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(i),"_addRowIndex",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(i),"_firstRowBeforeTimer",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(i),"_listener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(i),"_debounceShowAddRowButton",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),i._containerNode=$y.createElement("div",{className:"ne-ui-table-row-controller"}),i._containerNodeInner=$y.createElement("div",{className:"ne-ui-table-row-controller-inner"}),i._deleteButton=$y.createElement("div",{className:"ne-ui-table-row-delete-button"}),i._addRowButton=$y.createElement("div",{className:"ne-ui-table-row-add-button"}),i._containerNode.appendChild(i._containerNodeInner),i._containerNodeInner.appendChild(i._deleteButton),i._containerNodeInner.appendChild(i._addRowButton),i._initCommonEvent(),!Ks.mobile&&i._initEvent(),i._initResizeObserver(),i}return et(t,e),Ke(t,[{key:"bars",get:function(){return this._bars}},{key:"destroy",value:function(){this._resizeObserver.disconnect(),this.removeAllListeners(),this._containerNode.remove()}},{key:"appendTo",value:function(e){e.appendChild(this._containerNode)}},{key:"_initCommonEvent",value:function(){var e=this;jc(this,this._tableContext,"change",(function(){e._refresh()})),jc(this,this._tableSelectionContext,"focus",(function(){e._refresh()})),jc(this,this._tableSelectionContext,"change",(function(){setTimeout((function(){e._updateSelection()}),0)}))}},{key:"_initEvent",value:function(){var e=this,t=this._tableContext;this._initMovingEvent(),jc(this,this._tableContext,"_requestResetCols",(function(t){kt(t.length===e._bars.length,"plugins/table/src/render/elements/lib/table-ui/row-controller.ts:123"),e._bars.forEach((function(n,r){n.forceSetDOMHeight(t[r]+(r===e._bars.length-1?-1:0))}))})),this._listener=new u5e(this._containerNode),kc(this,this._containerNode,"click",(function(n){if(n.target.classList.contains("ne-ui-table-row-bar")){n.stopPropagation();var r=n.target._rowIndex,o=t.findRowBoundary(r);if(n.shiftKey){var i=e._tableSelectionContext.startRow;o.min>=i?e.emit("selectChange",{isComposing:!1,start:i,end:o.max}):e.emit("selectChange",{isComposing:!1,start:i,end:o.min})}else e.emit("selectChange",{isComposing:!1,start:o.min,end:o.max})}}),!1),kc(this,this._deleteButton,"mouseenter",(function(t){t.stopPropagation(),e._tableSelectionContext.highlight(!0,"row")}),!1),kc(this,this._deleteButton,"mousemove",(function(e){e.stopPropagation()}),!1),kc(this,this._deleteButton,"mouseleave",(function(){e._tableSelectionContext.highlight(!1)}),!1),kc(this,this._deleteButton,"mousedown",(function(t){t.preventDefault(),e._hideAddRowButton()}),!1),kc(this,this._deleteButton,"click",(function(t){t.preventDefault(),e._tableSelectionContext.highlight(!1),e._tableContext.execute("tableDeleteRow")}),!1);var n=!1;kc(this,this._containerNode,"mouseenter",(function(e){n=!0}),!1),this._debounceShowAddRowButton=ig()((function(){n&&e._showAddRowButton()}),30,{leading:!0}),kc(this,this._containerNode,"mousemove",(function(t){e._mouseY=t.clientY,e._debounceShowAddRowButton()}),!1),kc(this,this._containerNode,"mouseleave",(function(){n=!1,e._hideAddRowButton()}),!1),kc(this,this._addRowButton,"click",(function(){var t=e._addRowButton.getAttribute("data-pos"),n=parseInt(e._addRowButton.getAttribute("data-index"),10);n>=0&&("before"===t?e._tableContext.execute("tableInsertBeforeRow",1,n):e._tableContext.execute("tableInsertAfterRow",1,n))}),!1),kc(this,this._addRowButton,"mouseenter",(function(){var t=e._tableContext.tableDOMNode.getBoundingClientRect(),n=e._addRowButton.getBoundingClientRect().y-t.y+12,r=e._addRowButton.getAttribute("data-index");parseInt(r,10)===e._bars.length-1&&(n-=1),e.movingLine.show({y:n})}),!1),kc(this,this._addRowButton,"mouseleave",(function(){e.movingLine.hide()}),!1),jc(this,this,"resizeStart",(function(){e._resizing=!0,e._hideAddRowButton()})),jc(this,this,"resizeEnd",(function(){e._resizing=!1,e._tableSelectionContext.type===X4e&&e._showDeleteButton(),e._showAddRowButton()}))}},{key:"_initResizeObserver",value:function(){var e=this,t=-1,n=new ResizeObserver((function(n){var r,o;if(e._resizing)t=-1;else if(null===(o=null===(r=e._tableContext)||void 0===r?void 0:r.tableDOMNode)||void 0===o?void 0:o.isConnected){kt(1===n.length,"plugins/table/src/render/elements/lib/table-ui/row-controller.ts:366");var i=n[0].contentRect;-1!==t?i.height!==t&&(t=i.height,requestAnimationFrame((function(){e._refresh()}))):t=i.height}}));n.observe(this._tableContext.tableDOMNode),this._resizeObserver=n}},{key:"_initMovingEvent",value:function(){var e=this;this.on("_rowMoveIndexChange",(function(t){var n=t.index,r=t.y;if(t.completed)return e.movingLine.hide(),void e.emit("moveRow",n);null===n?e.movingLine.hide():e.movingLine.show({y:r})})),this.on("_cancelMove",(function(){e.movingLine.hide()}))}},{key:"_refresh",value:function(){this._generateBars(this._tableContext.rowCount).forEach((function(e,t){kt(e.index===t,"plugins/table/src/render/elements/lib/table-ui/row-controller.ts:413"),e.reset()}))}},{key:"_generateBars",value:function(e){var t=this._bars,n=t.length;if(e===n)return t;if(e=c&&l=0&&n!==this._addRowIndex)&&(this._addRowType=t,this._addRowIndex=n,this._containerNode.classList.add("ne-add-row-btn-show"),this._firstRowBeforeTimer&&clearTimeout(this._firstRowBeforeTimer),"before"===t&&0===n?this._firstRowBeforeTimer=window.setTimeout((function(){e._showAddRowButtonByPosition(e._addRowType,e._addRowIndex,r-i,o)}),300):this._showAddRowButtonByPosition(this._addRowType,this._addRowIndex,r-i,o))}}},{key:"_showAddRowButtonByPosition",value:function(e,t,n,r){this._addRowButton.setAttribute("data-pos",e),this._addRowButton.setAttribute("data-index",t+""),this._addRowButton.style.cssText="before"===e?"top: ".concat(n-12,"px; display: flex;"):"top: ".concat(n+r-12,"px; display: flex"),this.emit("showAddRowButton",!0)}},{key:"_hideAddRowButton",value:function(){this._mouseY=-1,this._addRowType=null,this._addRowIndex=-1,this._addRowButton.style.cssText="",this._containerNode.classList.remove("ne-add-row-btn-show"),clearTimeout(this._firstRowBeforeTimer),this._firstRowBeforeTimer=-1,this.emit("showAddRowButton",!1)}}]),t}(ut);function P5e(e,t,n){return t=Qe(t),Xe(e,S5e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function S5e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S5e=function(){return!!e})()}var T5e=function(e){function t(e,n,r,o,i){var a;return Ye(this,t),a=P5e(this,t),Object.defineProperty(Je(a),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(a),"_viewNode",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(a),"_tableDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(a),"_pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(Je(a),"_tableNodeInstance",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_tableFootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_tableFootRowNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_maxViewStatus",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(a),"_tableBoxNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_tableInnerWrapNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"getThemeSelector",{enumerable:!0,configurable:!0,writable:!0,value:function(){return a.renderer.theme.getThemeSelector()}}),a._tableNodeInstance=e,a._tableBoxNode=o.parentNode,a._tableInnerWrapNode=o.parentNode.parentNode,a._tableFootNode=$y.createElement("tfoot"),a._tableFootRowNode=$y.createElement("tr"),a._tableFootNode.appendChild(a._tableFootRowNode),a.tableDOMNode.appendChild(a._tableFootNode),a}return et(t,e),Ke(t,[{key:"destroy",value:function(){this._tableFootNode.remove(),this.removeAllListeners()}},{key:"refresh",value:function(){this.emit("change")}},{key:"tableDOMNode",get:function(){return this._tableDOMNode}},{key:"tableBoxNode",get:function(){return this._tableBoxNode}},{key:"tableWrapNode",get:function(){return this._tableInnerWrapNode.parentNode}},{key:"tableInnerWrapNode",get:function(){return this._tableInnerWrapNode}},{key:"columnCount",get:function(){return this._viewNode.attrs.colCount}},{key:"rowCount",get:function(){return this._viewNode.attrs.rowCount}},{key:"columnWidths",get:function(){return Y4e.getColWidths(this._viewNode)}},{key:"fitWidth",get:function(){return!!this._viewNode.attrs.fitWidth}},{key:"rowHeights",get:function(){kt(this._tableDOMNode.isConnected,"plugins/table/src/render/elements/lib/table-ui/table-context.ts:82");var e=this._tableDOMNode.tBodies[0].rows;return Array.from(e).map((function(e){return e.getBoundingClientRect().height}))}},{key:"colCount",get:function(){return this._viewNode.attrs.colCount}},{key:"canMergeCell",get:function(){return this.renderer.queryCommandState("tableMergeCell")===pt}},{key:"canUnmergeCell",get:function(){return this.renderer.queryCommandState("tableUnmergeCell")===pt}},{key:"tableWidth",get:function(){return this._viewNode.attrs.colWidths.reduce((function(e,t){return e+t}),0)}},{key:"isBorderVisible",get:function(){return!1!==this._viewNode.attrs.borderVisible}},{key:"headDisabled",get:function(){return this._pluginContext.headDisabled}},{key:"isMaxView",value:function(){return this._maxViewStatus}},{key:"setMaxView",value:function(){this._maxViewStatus=!0}},{key:"clearMaxView",value:function(){this._maxViewStatus=!1}},{key:"getColumnDisplayRect",value:function(e){return this._tableFootRowNode.children[e]||(this._tableFootRowNode.innerHTML="
")),this._tableFootRowNode.children[e].getBoundingClientRect()}},{key:"getRowDisplayRect",value:function(e){return this._tableDOMNode.isConnected&&this._tableDOMNode.tBodies[0].rows[e]?this._tableDOMNode.tBodies[0].rows[e].getBoundingClientRect():{y:0,height:0}}},{key:"isCrossColumn",value:function(e){return 0!==e&&this._viewNode.children.some((function(t){for(var n=t.children,r=0,o=n.length;r1&&void 0!==arguments[1]?arguments[1]:e;kt(e<=t,"plugins/table/src/render/elements/lib/table-ui/table-context.ts:226");var n=e,r=t;return this._viewNode.children.forEach((function(n){n.children.forEach((function(n){var r=n.attrs,o=r.col,i=r.colSpan,a=o,l=o+(void 0===i?1:i)-1;lt||(e=Math.min(e,a),t=Math.max(t,l))}))})),e!==n||t!==r?this.findColumnBoundary(e,t):{min:e,max:t}}},{key:"findRowBoundary",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;kt(e<=t,"plugins/table/src/render/elements/lib/table-ui/table-context.ts:272");var n=e,r=t;return this._viewNode.children.forEach((function(n,r){n.children.forEach((function(n){var o=n.attrs.rowSpan,i=r,a=r+(void 0===o?1:o)-1;at||(e=Math.min(e,i),t=Math.max(t,a))}))})),e!==n||t!==r?this.findRowBoundary(e,t):{min:e,max:t}}},{key:"execute",value:function(e){var t;switch(e){case"copy":return void document.execCommand("copy");case"cut":return void document.execCommand("cut");case"deleteTable":return void this.renderer.execCommand("deleteTable",this._viewNode.attrs.id);default:for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},n=t.startColumn,r=void 0===n?-1:n,o=t.endColumn,i=void 0===o?-1:o,a=t.startRow,l=void 0===a?-1:a,u=t.endRow,c=void 0===u?-1:u,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=this._type,f=this._stable,h=this._startColumn,p=this._endColumn,v=this._startRow,m=this._endRow;e===Z4e&&(l=0,r=0,c=this._viewNode.attrs.rowCount-1,i=this._viewNode.attrs.colCount-1),this._type=e,this._stable=s,this._startColumn=r,this._endColumn=i,this._startRow=l,this._endRow=c,d===e&&f===s&&h===r&&p===i&&v===l&&m===c||(this.emit("change"),e===G4e?d&&d!==e&&this.emit("blur"):d&&d!==G4e||this.emit("focus"))}},{key:"isFocus",value:function(){return this._type!==G4e}},{key:"clear",value:function(){this.update(G4e),this._ranges=null}}]),t}(ut);function F5e(e){return Ks.ipad?"pad-".concat(e):Ks.mobile?"h5-".concat(e):e}var L5e=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"tableContext",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"containerNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"isControllerEnable",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.node=$y.createElement("div",{className:"ne-ui-table-row-moving-line"}),this.containerNode.appendChild(this.node)}return Ke(e,[{key:"hide",value:function(){this.node.style.display="none"}},{key:"show",value:function(e){var t=e.y,n=Math.min(this.tableContext.tableBoxNode.clientWidth,this.tableContext.tableInnerWrapNode.clientWidth),r=this.isControllerEnable()?n+e5e:n,o=this.isControllerEnable()?0:e5e,i="number"==typeof t?t+e5e:0;this.node.style.cssText="top: ".concat(i,"px; left: ").concat(o,"px; display: block; width: ").concat(r,"px")}}]),e}(),U5e=function(){function e(t,n,r){Ye(this,e),Object.defineProperty(this,"tableContext",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"containerNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"isControllerEnable",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.node=$y.createElement("div",{className:"ne-ui-table-column-moving-line"}),this.containerNode.appendChild(this.node)}return Ke(e,[{key:"hide",value:function(){this.node.style.display="none"}},{key:"show",value:function(e){var t=e.x,n=this.tableContext.tableBoxNode.clientHeight,r=this.tableContext.tableInnerWrapNode.scrollLeft,o=this.isControllerEnable()?0:e5e,i=this.isControllerEnable()?n+e5e:n,a="number"==typeof t?t+e5e-1-r:0;this.node.style.cssText="top: ".concat(o,"px; height: ").concat(i,"px; left: ").concat(a,"px; display: block")}}]),e}();function V5e(e,t,n){return t=Qe(t),Xe(e,H5e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function H5e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H5e=function(){return!!e})()}var z5e=new mf(["cmd","shift","F"]),W5e=new mf(["cmd","option","shift","arrowup"]),q5e=new mf(["cmd","option","shift","arrowdown"]),$5e=new mf(["cmd","option","shift","arrowleft"]),K5e=new mf(["cmd","option","shift","arrowright"]),Y5e=function(e){function t(e,n,r,o,i){var a;Ye(this,t),a=V5e(this,t),Object.defineProperty(Je(a),"_pluginContext",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(a),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(a),"_wrapDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(Je(a),"_viewNode",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(Je(a),"_innerWrapNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_tableContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_tableSelectionContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_tableUINode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_rowController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_tableNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_columnController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_tableSelection",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_contextMenu",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_listener",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(a),"_controlPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_resizeMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"movingLineColumn",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"movingLineRow",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(a),"_maxViewContext",{enumerable:!0,configurable:!0,writable:!0,value:{destroy:function(){}}}),Object.defineProperty(Je(a),"isControllerEnable",{enumerable:!0,configurable:!0,writable:!0,value:function(){return a._tableSelectionContext.isFocus()&&!a._tableContext.headDisabled}}),a._tableUINode=$y.createElement("div",{className:"ne-ui-table",contentEditable:"false"});var l=o.firstChild,u=l.firstChild.firstChild;return a._tableNode=u,a._tableContext=new T5e(e,r,i,u,n),a._innerWrapNode=l,a._tableSelectionContext=new M5e(r,i,u),a.movingLineRow=new L5e(a._tableContext,a._tableUINode,a.isControllerEnable),a._rowController=new R5e(a._tableContext,a._tableSelectionContext,a.isControllerEnable,a.movingLineRow),a.movingLineColumn=new U5e(a._tableContext,a._tableUINode,a.isControllerEnable),a._columnController=new d5e(a._tableContext,a._tableSelectionContext,a.isControllerEnable,a.movingLineColumn),a._controlPoint=new w5e(a._tableContext,a._tableSelectionContext),a._resizeMask=new N5e(a._tableContext,a._tableSelectionContext,r,a._rowController,a._columnController,a.movingLineRow,a.movingLineColumn),a._tableSelection=new A5e(a._tableSelectionContext),a._contextMenu=new g5e(a._tableContext,a._tableSelectionContext,o,r.scrollableOverlayNode,r.scrollNode),o.prepend(a._tableUINode),a._rowController.appendTo(a._tableUINode),a._controlPoint.appendTo(a._tableUINode),a._columnController.appendTo(l),a._resizeMask.appendTo(l),a._tableSelection.appendTo(l),r.emitPluginEvent("tableUIDisplayChange",{wrapDOMNode:o}),a._initEvent(),a}return et(t,e),Ke(t,[{key:"destroy",value:function(){var e;this.renderer.emitPluginEvent("tableDestroy",{tableId:this._viewNode.attrs.id,wrapDOMNode:this._wrapDOMNode,tableNode:this._tableNode}),this._tableUINode.remove(),this._tableContext.destroy(),this._tableSelectionContext.destroy(),this._rowController.destroy(),this._columnController.destroy(),this._controlPoint.destroy(),this._tableSelection.destroy(),this._contextMenu.destroy(),null===(e=this._listener)||void 0===e||e.destroy(),this.removeAllListeners()}},{key:"viewNode",get:function(){return this._viewNode}},{key:"wrapDOMNode",get:function(){return this._wrapDOMNode}},{key:"tableNode",get:function(){return this._tableNode}},{key:"tableUINode",get:function(){return this._tableUINode}},{key:"refresh",value:function(){this._tableContext.refresh(),this._tableContext.isBorderVisible?this._wrapDOMNode.classList.remove("ne-table-hide-border"):this._wrapDOMNode.classList.add("ne-table-hide-border")}},{key:"refreshSelection",value:function(e){e.ranges&&this._tableSelectionContext.setRanges(e.ranges),this._tableSelectionContext.update(e.type,e,!0)}},{key:"clearSelection",value:function(){this._tableSelectionContext.clear()}},{key:"enterMaxView",value:function(){var e=this._tableNode;e._isMaxView=!0,this._tableContext.setMaxView(),this._pluginContext.setTableMaxContext(),this.renderer.emit("elementEnterMaxView",this._tableNode,this.viewNode.id),kc(this._maxViewContext,this._wrapDOMNode,"mousedown",(function(t){e.contains(t.target)||(t.preventDefault(),t.stopPropagation())}),!1)}},{key:"leaveMaxView",value:function(){this._tableNode._isMaxView=!1,this._tableContext.clearMaxView(),this._pluginContext.clearTableMaxContext(),this.renderer.emit("elementLeaveMaxView",this._tableNode,this.viewNode.id),this._maxViewContext.destroy()}},{key:"_initEvent",value:function(){var e=this;this._listener=new wd(this.renderer.id,this._tableUINode),this._listener.on("mousedown",(function(e){if(e.target.closest(".ne-ui-container-toolbar-trigger"))return!0;e.preventDefault(),e.stopPropagation()})),this._columnController.on("selectChange",(function(t){var n=t.isComposing,r=t.start,o=t.end;e._toggleSelectState(n,J4e,r,o),e._isFullColumn(r,o)?e._tableSelectionContext.update(Z4e):e._tableSelectionContext.update(J4e,{startColumn:r,endColumn:o})})),this._columnController.on("columnWidthChange",(function(){for(var t=arguments.length,n=new Array(t),r=0;rr?"end":"start",focus:r>n?"end":"start"})}},{key:"_isFullRow",value:function(e,t){var n=Math.min(e,t),r=Math.max(e,t);return 0===n&&r===this._viewNode.attrs.rowCount-1}},{key:"_isFullColumn",value:function(e,t){var n=Math.min(e,t),r=Math.max(e,t);return 0===n&&r===this._viewNode.attrs.colCount-1}}]),t}(ut);function G5e(e,t,n){return t=Qe(t),Xe(e,J5e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function J5e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J5e=function(){return!!e})()}var X5e=function(e){function t(){var e;return Ye(this,t),e=G5e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_innerWrapNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_tableBoxNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_tableNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_columnManager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_tableUI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_isFocused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_delayRefreshTimer",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(e),"_resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_hoverTimer",{enumerable:!0,configurable:!0,writable:!0,value:0}),e}return et(t,e),Ke(t,[{key:"TableUI",get:function(){return Y5e}},{key:"init",value:function(e){var t=this;this._rootNode=$y.createElement(cw),this._innerWrapNode=$y.createElement(sw),this._tableNode=$y.createElement("table",{className:"ne-table"}),this._contentNode=$y.createElement("tbody",{className:"ne-table-inner"}),this._rootNode._tableNode=this._tableNode,this._tableNode._wrapNode=this._rootNode;var n=$y.createElement(dw);n.appendChild(this._tableNode),this._tableNode.appendChild(this._contentNode),this._innerWrapNode.appendChild(n),this._rootNode.appendChild(this._innerWrapNode),this._tableBoxNode=n,$y.setAttributeByChange(this._tableNode,e),this._columnManager=new Y4e(this.viewNode,this._tableNode,this._rootNode,this._innerWrapNode),this._columnManager.update(),this._tableUI=new this.TableUI(this,this.pluginContext,this.renderer,this._rootNode,this.viewNode),this._initEvent(),gs((function(){var e;null===(e=t._tableUI)||void 0===e||e.refresh(),t._resetShadow()}))}},{key:"_afterInit",value:function(){this._refreshSpacing(),this._refreshWidthMode();var e=this._rootNode.parentNode;e&&e.classList.add(F5e("ne-table-hole"));var t=this.renderer.getService(U2e.ID);null==t||t.delegateVisibleChange(this._rootNode,{visibility:!0})}},{key:"destroy",value:function(){this._columnManager.destroy(),this._tableUI.destroy(),this._resizeObserver.disconnect(),this._tableUI=null,Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"$appear",value:function(){Sh.appear(this)}},{key:"$disappear",value:function(){Sh.disappear(this,this._rootNode)}},{key:"$didUpdate",value:function(){this._refreshSpacing(),this._refreshWidthMode(),this._tableUI.refresh()}},{key:"_initEvent",value:function(){var e,t=this;jc(this,this.pluginContext,"resetSelection",(function(e){e.tableNode!==t._tableNode?(t._isFocused=!1,t._tableUI.clearSelection()):(t._isFocused=!0,t._tableUI.refreshSelection(e),e.isStable&&t.renderer.emitPluginEvent("stableSelectionChange",{tableId:t.viewNode.attrs.id,tableUI:t._tableUI,wrapDOMNode:t._rootNode,tableNode:t._tableNode}))})),this._tableUI.on("tableSelectionChange",(function(e){var n=e.type,r=e.start,o=e.end,i=e.anchor,a=e.focus;t.pluginContext.updateTableSelection(t._tableNode,n,r,o,i,a)})),this._tableUI.on("columnWidthChange",(function(e){var n=e.index,r=e.width,o=Y4e.getColWidths(t.viewNode);t.pluginContext.resizeColumnWidth(t.viewNode.attrs.id,n,r,o)})),this._tableUI.on("rowHeightChange",(function(e){var n=e.index,r=e.height;t.pluginContext.resizeRowHeight(t.viewNode.attrs.id,n,r)})),this._tableUI.on("rowMoveTo",(function(e){t.pluginContext.rowMoveTo(e)})),this._tableUI.on("columnMoveTo",(function(e){t.pluginContext.columnMoveTo(e)})),kc(this,this._innerWrapNode,"scroll",(function(){e&&clearTimeout(e),e=window.setTimeout((function(){t._resetShadow()}),32)}),{passive:!0}),kc(this,this._innerWrapNode,"mouseenter",(function(){t._hoverTimer=window.setTimeout((function(){t.renderer.emitPluginEvent("tableHover",{tableId:t.viewNode.attrs.id,tableUI:t._tableUI,wrapDOMNode:t._rootNode,tableNode:t._tableNode})}),200)})),kc(this,this._innerWrapNode,"mouseleave",(function(){t._hoverTimer&&clearTimeout(t._hoverTimer)})),kc(this,this._tableNode,"table-cell-attr-change",(function(){t._startDelayRefresh()})),jc(this,this._columnManager,"needUpdateUI",(function(){var e;null===(e=t._tableUI)||void 0===e||e.refresh(),t._resetShadow()})),this._resizeObserver=new ResizeObserver(ig()((function(){t._innerWrapNode.isConnected&&(t._resetShadow(),t._columnManager.updateSizeChange())}),300)),this._resizeObserver.observe(this._innerWrapNode)}},{key:"updateAttribute",value:function(e){$y.syncDOMAttrChange(this._tableNode,e),this._columnManager.update(),this._resetShadow()}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_resetShadow",value:function(){var e=this._rootNode,t=this._innerWrapNode,n=this.viewNode,r=e.classList,o=F5e("ne-ui-table-left-shadow"),i=F5e("ne-ui-table-right-shadow");n.attrs.fitWidth&&(r.remove(o),r.remove(i));var a=t.scrollWidth,l=t.clientWidth,u=Math.ceil(t.scrollLeft),c=u>0,s=!1;l+u=l&&(s=!0),c?r.add(o):r.remove(o),s?r.add(i):r.remove(i)}},{key:"_startDelayRefresh",value:function(){var e=this;clearTimeout(this._delayRefreshTimer),this._delayRefreshTimer=window.setTimeout((function(){var t;null===(t=e._tableUI)||void 0===t||t.refresh()}))}},{key:"_refreshSpacing",value:function(){var e,t=this,n=this._rootNode.parentNode;n&&(!1!==(null===(e=this.viewNode.attrs)||void 0===e?void 0:e.spacing)?n.hasAttribute("data-no-spacing")&&n.removeAttribute("data-no-spacing"):n.hasAttribute("data-no-spacing")||(n.setAttribute("data-no-spacing","true"),Ks.macos&&xs((function(){return wc()}),(function(e){var n;e||!1!==(null===(n=t.viewNode.attrs)||void 0===n?void 0:n.spacing)?t._innerWrapNode.style.paddingBottom="":t._innerWrapNode.style.paddingBottom="15px"}))))}},{key:"_refreshWidthMode",value:function(){var e,t=this._rootNode.parentNode;t&&((null===(e=this.viewNode.attrs)||void 0===e?void 0:e.widthMode)===Bl?t.classList.add("ne-full-width"):t.classList.remove("ne-full-width"))}}]),t}(Ly),Q5e={elementCtor:X5e},Z5e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},Q5e,t)}return Ke(e,[{key:"elementCtor",get:function(){return this._option.elementCtor}}]),e}();function e8e(e,t,n){return t=Qe(t),Xe(e,t8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function t8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t8e=function(){return!!e})()}Object.defineProperty(Z5e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"table"});var n8e=function(e){function t(){var e;return Ye(this,t),e=e8e(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(at);function r8e(e,t,n){return t=Qe(t),Xe(e,o8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function o8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o8e=function(){return!!e})()}Object.defineProperty(n8e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IDeleteKernelService")});var i8e=function(e){function t(e){var n;return Ye(this,t),n=r8e(this,t),Object.defineProperty(Je(n),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"_headDisabled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),n}return et(t,e),Ke(t,[{key:"updateTableSelection",value:function(e,t,n,r,o,i){kt(o&&i,"plugins/table/src/render/table-plugin-context.ts:28");var a=function(e,t,n,r){var o=Array.from(e.tBodies[0].rows),i=[],a=document.createRange();if(t===X4e)for(var l=n;l<=r;l++)Array.from(o[l].cells).forEach((function(e){var t=a.cloneRange();t.selectNodeContents(e),i.push(t)}));else t===J4e&&o.forEach((function(e){for(var t=e.cells,o=0,l=t.length;o=0,"plugins/table/src/render/helper/transform-to-range.ts:34"),c>r)break;if(c>=n&&c<=r){var s=a.cloneRange();s.selectNodeContents(u),i.push(s)}}}));return i}(e,t,Math.min(n,r),Math.max(n,r));this.renderer.emitPluginEvent("requestSetRange",{focus:i,anchor:o,ranges:a})}},{key:"resizeColumnWidth",value:function(e,t,n,r){this.renderer.execCommand("tableColumnWidth",e,t,n,r)}},{key:"resizeRowHeight",value:function(e,t,n){this.renderer.execCommand("tableRowHeight",e,t,n)}},{key:"rowMoveTo",value:function(e){this.renderer.execCommand("tableRowMoveTo",e)}},{key:"columnMoveTo",value:function(e){this.renderer.execCommand("tableColumnMoveTo",e)}},{key:"setTableMaxContext",value:function(){var e,t=this.renderer.kernel;null===(e=t.getService(n8e.ID))||void 0===e||e.disableDeleteTable(),t.hasExtendMethod("setOnlyTableSelect")&&t.setOnlyTableSelect(!0);var n=t.getService(bY.ID);null==n||n.lockHistory()}},{key:"clearTableMaxContext",value:function(){var e,t=this.renderer.kernel;null===(e=t.getService(n8e.ID))||void 0===e||e.enableDeleteTable(),t.hasExtendMethod("setOnlyTableSelect")&&t.setOnlyTableSelect(!1);var n=t.getService(bY.ID);null==n||n.unlockHistory()}},{key:"headDisabled",get:function(){return this._headDisabled},set:function(e){"boolean"==typeof e&&(this._headDisabled=e)}}]),t}(ut);function a8e(e,t,n){return t=Qe(t),Xe(e,l8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function l8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l8e=function(){return!!e})()}var u8e=function(e){function t(e){var n;return Ye(this,t),n=a8e(this,t),Object.defineProperty(Je(n),"theme",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return"rowHead"===e?this.translateRowHead(t):"colHead"===e?this.translateColHead(t):{type:bp.ATTR_NAME,name:"data-".concat(e),value:t+""}}},{key:"setTableHeadStyleProperty",value:function(e,n){this.removeTableHeadStyleProperty(e);var r=cn(n.split(";"),2),o=r[0],i=r[1];if("string"==typeof o&&"string"==typeof i){var a=cn(oz(iz(o,this.theme)),2),l=a[0];a[1],e.style.setProperty(t.TABLE_HEAD_BG_COLOR_CSS_VAR,l);var u=cn(oz(iz(i,this.theme)),2),c=u[0],s=u[1];s?(e.setAttribute(t.TEXT_GRADIENT_ATTR,"true"),e.style.setProperty(t.TABLE_HEAD_TEXT1_COLOR_CSS_VAR,c),e.style.setProperty(t.TABLE_HEAD_TEXT2_COLOR_CSS_VAR,s)):e.style.setProperty(t.TABLE_HEAD_TEXT_COLOR_CSS_VAR,c),e.style.setProperty(t.TABLE_HEAD_BG_COLOR_CSS_VAR,n)}}},{key:"removeTableHeadStyleProperty",value:function(e){e.style.removeProperty(t.TABLE_HEAD_BG_COLOR_CSS_VAR),e.style.removeProperty(t.TABLE_HEAD_TEXT_COLOR_CSS_VAR),e.style.removeProperty(t.TABLE_HEAD_TEXT1_COLOR_CSS_VAR),e.style.removeProperty(t.TABLE_HEAD_TEXT2_COLOR_CSS_VAR),e.removeAttribute(t.TEXT_GRADIENT_ATTR)}},{key:"translateRowHead",value:function(e){var n=this;return{type:bp.CUSTOM_NAME,name:"rowHead",value:function(r){var o="TABLE"===r.nodeName?r:r.querySelector("table");"string"==typeof e&&o&&(o.setAttribute(t.ROW_HEAD_ATTR,"true"),n.setTableHeadStyleProperty(o,e))},remove:function(e){var n="TABLE"===e.nodeName?e:e.querySelector("table");n&&n.removeAttribute(t.ROW_HEAD_ATTR)}}}},{key:"translateColHead",value:function(e){var n=this;return{type:bp.CUSTOM_NAME,name:"colHead",value:function(r){var o="TABLE"===r.nodeName?r:r.querySelector("table");"string"==typeof e&&o&&(o.setAttribute(t.COL_HEAD_ATTR,"true"),n.setTableHeadStyleProperty(o,e))},remove:function(e){var n="TABLE"===e.nodeName?e:e.querySelector("table");n&&n.removeAttribute(t.COL_HEAD_ATTR)}}}}]),t}(bp);function c8e(e,t,n){return t=Qe(t),Xe(e,s8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function s8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s8e=function(){return!!e})()}Object.defineProperty(u8e,"ROW_HEAD_ATTR",{enumerable:!0,configurable:!0,writable:!0,value:"ne-table-row-head"}),Object.defineProperty(u8e,"COL_HEAD_ATTR",{enumerable:!0,configurable:!0,writable:!0,value:"ne-table-col-head"}),Object.defineProperty(u8e,"TEXT_GRADIENT_ATTR",{enumerable:!0,configurable:!0,writable:!0,value:"ne-table-head-text-gradient"}),Object.defineProperty(u8e,"TABLE_HEAD_BG_COLOR_CSS_VAR",{enumerable:!0,configurable:!0,writable:!0,value:"--table-head-bg-color"}),Object.defineProperty(u8e,"TABLE_HEAD_TEXT_COLOR_CSS_VAR",{enumerable:!0,configurable:!0,writable:!0,value:"--table-head-text-color"}),Object.defineProperty(u8e,"TABLE_HEAD_TEXT1_COLOR_CSS_VAR",{enumerable:!0,configurable:!0,writable:!0,value:"--table-head-text1-color"}),Object.defineProperty(u8e,"TABLE_HEAD_TEXT2_COLOR_CSS_VAR",{enumerable:!0,configurable:!0,writable:!0,value:"--table-head-text2-color"});var d8e=function(e){function t(e){var n;return Ye(this,t),n=c8e(this,t),Object.defineProperty(Je(n),"_renderOrViewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),n}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.STYLE_NAME,name:"background-color",value:this._renderOrViewer.theme.toVisualValue(t)}}}]),t}(bp);function f8e(e,t,n){return t=Qe(t),Xe(e,h8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function h8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h8e=function(){return!!e})()}var p8e=function(e){function t(){return Ye(this,t),f8e(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.ATTR_NAME,name:e,value:t+""}}}]),t}(bp);function v8e(e,t,n){return t=Qe(t),Xe(e,m8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function m8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m8e=function(){return!!e})()}var g8e=function(e){function t(){return Ye(this,t),v8e(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.STYLE_NAME,name:e,value:"".concat(t,"px")}}}]),t}(bp);function b8e(e,t,n){return t=Qe(t),Xe(e,y8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function y8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y8e=function(){return!!e})()}var w8e=function(e){function t(){return Ye(this,t),b8e(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.STYLE_NAME,name:"vertical-align",value:t+""}}}]),t}(bp);function k8e(e,t,n){return t=Qe(t),Xe(e,C8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function C8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C8e=function(){return!!e})()}var _8e=function(e){function t(){var e;return Ye(this,t),e=k8e(this,t,arguments),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_breakNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this._rootNode=$y.createElement("td",{className:"ne-td"}),this._contentNode=$y.createElement("div",{className:"ne-td-content"}),this._breakNode=$y.createElement("div",{className:"ne-td-break",contentEditable:!1}),this._breakNode.innerHTML="
",this._rootNode.appendChild(this._contentNode),this._rootNode.appendChild(this._breakNode),this._updateAttributes({removed:[],updated:e}),jc(this,this.renderer.theme,"themeChange",(function(){var e=t.viewNode.attrs.cellBgColor;e&&$y.syncDOMAttr(t.renderer.registry,t._rootNode,"cellBgColor",e)}))}},{key:"$didUpdate",value:function(){this._rootNode.dispatchEvent(new Event("table-cell-attr-change",{bubbles:!0,cancelable:!0}))}},{key:"updateAttribute",value:function(e){this._updateAttributes(e)}},{key:"repair",value:function(){var e=this._rootNode,t=this._contentNode,n=this._breakNode;t.parentNode!==e&&e.prepend(t),n.parentNode!==e&&e.appendChild(n),Array.from(e.childNodes).forEach((function(e){e!==t&&e!==n&&e.remove()}))}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_updateAttributes",value:function(e){$y.syncDOMAttrChange(this._rootNode,e)}}]),t}(Ly);function N8e(e,t,n){return t=Qe(t),Xe(e,O8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function O8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O8e=function(){return!!e})()}var x8e=function(e){function t(){var e;return Ye(this,t),e=N8e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._rootNode=$y.createElement("tr",{className:"ne-tr"}),$y.setAttributeByChange(this._rootNode,e)}},{key:"$didUpdate",value:function(){this._rootNode.dispatchEvent(new Event("table-cell-attr-change",{bubbles:!0,cancelable:!0}))}},{key:"updateAttribute",value:function(e){$y.syncDOMAttrChange(this._rootNode,e)}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"repair",value:function(){var e=this.getMainDOMNode(),t=Array.from(e.childNodes).filter((function(e){return"TD"!==e.nodeName}));t.forEach((function(e){return e.remove()}))}}]),t}(Ly);function E8e(e){var t=Nc(e.commonAncestorContainer,"td");kt(t,"plugins/table/src/render/helper/find-table-position.ts:91");var n=parseInt(t.getAttribute("data-col"),10),r=t.parentNode.rowIndex,o=t.colSpan,i=t.rowSpan;return kt(n>=0&&r>=0,"plugins/table/src/render/helper/find-table-position.ts:98"),{minColumn:n,maxColumn:n+o-1,minRow:r,maxRow:r+i-1}}function D8e(e,t,n){return t=Qe(t),Xe(e,R8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function R8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R8e=function(){return!!e})()}var P8e=function(e){function t(){var e;return Ye(this,t),e=D8e(this,t,arguments),Object.defineProperty(Je(e),"_isFocusAtTable",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this._context=new i8e(e),e.registerBoxNode(Ja(Ja(Ja({},b5.node.table,{clazz:this.option.elementCtor,pluginContext:this._context}),b5.node.tr,x8e),b5.node.td,_8e)),e.registerAttrTranslator(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja({},b5.attr.width,new g8e),b5.attr.height,new g8e),b5.attr.rowSpan,new p8e),b5.attr.colSpan,new p8e),b5.attr.col,new u8e(this.renderer.theme)),b5.attr.colHead,new u8e(this.renderer.theme)),b5.attr.rowHead,new u8e(this.renderer.theme)),b5.attr.cellBgColor,new d8e(e)),b5.attr.verticalAlign,new w8e));var n=-1,r=!1;e.on("unblockSelectionChange",(function(){r=!1})),e.on("blockSelectionChange",(function(){r=!0})),e.on("selectionchange",(function(e){var o=e.ranges,i=e.anchor;if(!r){var a=Date.now();requestAnimationFrame((function(){n>a||(t._updateTableSelection(!0,o,i),t._checkSelectionChange(o))}))}})),e.on("contentchange",(function(e){var o=e.ranges,i=e.anchor;r||(n=Date.now(),requestAnimationFrame((function(){t._updateTableSelection(!0,o,i),t._checkSelectionChange(o)})))})),e.onPluginEvent("uiSelectionChange",(function(e){t._updateTableSelection(!1,e)})),e.onPluginEvent("uiSwitched",(function(e){var n=e.type;t._context.headDisabled=[qL,$L].includes(n)}))}},{key:"_updateTableSelection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bm,r=t[0].commonAncestorContainer,o=Nc(r,"table");o&&"NE-CARD"!==r.nodeName?this._context.emit("resetSelection",Object.assign({tableNode:o,isStable:e,ranges:t},function(e,t,n){var r=e.attrs,o=r.rowCount,i=r.colCount,a=function(e){if(1===e.length)return E8e(e[0]);var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER;return e.forEach((function(e){var i=E8e(e);t=Math.min(t,i.minColumn),n=Math.max(n,i.maxColumn),r=Math.min(r,i.minRow),o=Math.max(o,i.maxRow)})),{minColumn:t,maxColumn:n,minRow:r,maxRow:o}}(t),l=a.minColumn,u=a.maxColumn,c=a.minRow,s=a.maxRow,d=0===c&&s===o-1,f=0===l&&u===i-1,h=Q4e;d&&f?h=Z4e:d&&i>1?h=J4e:f&&o>1&&(h=X4e);var p=l,v=u,m=c,g=s;return"end"!==n&&"topRight"!==n||(p=u,v=l),"end"!==n&&"bottomLeft"!==n||(m=s,g=c),{type:h,startColumn:p,endColumn:v,startRow:m,endRow:g}}(Yy(o.parentNode.parentNode.parentNode),t,n))):this._context.emit("resetSelection",{tableNode:null,isStable:e})}},{key:"_checkSelectionChange",value:function(e){var t=Nc(e[0].commonAncestorContainer,"table"),n=this._isFocusAtTable;this._isFocusAtTable=!!t,n!==this._isFocusAtTable&&(this._context.headDisabled||this.renderer.emitPluginEvent("afterTableSelectionChanged",{tableNode:t}))}}]),t}(rb);function S8e(e,t,n){return t=Qe(t),Xe(e,T8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function T8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T8e=function(){return!!e})()}Object.defineProperty(P8e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:b5.pluginName}),Object.defineProperty(P8e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Z5e});var A8e=function(e){function t(){return Ye(this,t),S8e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.kernel.on("document.create",(function(){var n=e.queryCommandValue("typography"),r=e.domRootNode.classList;r.remove("ne-typography-".concat(oY),"ne-typography-".concat(rY),"ne-paragraph-spacing-relax"),r.add("ne-typography-".concat(n)),r.remove("ne-paragraph-spacing-relax"),t.kernel.requireService(h$.ID).getParagraphSpacing()===I9&&r.add("ne-paragraph-spacing-relax")})),e.kernel.onPluginEvent("typographyChange",(function(t){var n=t.current,r=t.old,o=e.domRootNode.classList;o.remove("ne-typography-".concat(r)),o.add("ne-typography-".concat(n)),e.emit("typographyChange",{current:n,old:r})})),e.kernel.onPluginEvent("paragraphSpacingChange",(function(t){var n=t.current,r=t.old,o=e.domRootNode.classList;o.remove("ne-paragraph-spacing-relax"),n===I9&&o.add("ne-paragraph-spacing-relax"),e.emit("paragraphSpacingChange",{current:n,old:r})}))}},{key:"destroy",value:function(){this.renderer.domRootNode.classList.remove("ne-typography-".concat(oY),"ne-typography-".concat(rY),"ne-paragraph-spacing-relax"),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(rb);function j8e(e,t,n){return t=Qe(t),Xe(e,I8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function I8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I8e=function(){return!!e})()}Object.defineProperty(A8e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:s$.pluginName});var B8e=.08,M8e=function(e){function t(e){var n;return Ye(this,t),n=j8e(this,t),Object.defineProperty(Je(n),"pluginContent",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"_isResizing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(n),"_widths",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(n),"_displayWidths",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(n),"_currentColumnsNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_columnNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(n),"_currentIndex",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(n),"lastLeft",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(n),"lastRight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(Je(n),"_handleMove",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=n._currentColumnsNode;kt(t,"plugins/columns/src/render/controllers/resizing-controller.ts:54");var r=n._widths,o=t.getBoundingClientRect().width,i=o-12*r.length+12,a=e/i;a>0?r[n._currentIndex]+=n.tryMoveToRight(r,n._currentIndex+1,a):r[n._currentIndex+1]+=n.tryMoveToLeft(r,n._currentIndex,-a),n._displayWidths=r.slice(0),n._tryAdjustWidths(n._displayWidths,o);for(var l=0,u=n._displayWidths.length;l=0,"plugins/columns/src/render/controllers/resizing-controller.ts:44"),this._columnNode.classList.add("ne-columns-resizing"),Zd(o,this._handleMove,this._handleEnd,!0),this._updateNumber(this._widths,1e3)}},{key:"_getAdjustAtTenWidth",value:function(e,t,n){for(var r=.5*n/t,o=10;o<100;o+=10){var i=n*o/t;if(Math.abs(i-e)<=r)return i}return-1}},{key:"_isAdjustAtEqual",value:function(e,t,n){return Math.abs(e-t)<=n}},{key:"_tryAdjustWidths",value:function(e,t){var n=3===e.length?99:6===e.length?102:100,r=t/e.length,o=.5*t/n,i=e[this._currentIndex]*t,a=e[this._currentIndex+1]*t;if(Math.abs(r-i)<=o){var l=e[this._currentIndex];e[this._currentIndex]=r/t,e[this._currentIndex+1]+=l-e[this._currentIndex]}else if(Math.abs(r-a)<=o){var u=e[this._currentIndex+1];e[this._currentIndex+1]=r/t,e[this._currentIndex]+=u-e[this._currentIndex+1]}else{var c=this._getAdjustAtTenWidth(i,n,t),s=this._getAdjustAtTenWidth(a,n,t);if(-1!==c){var d=e[this._currentIndex];e[this._currentIndex]=c/t,e[this._currentIndex+1]+=d-e[this._currentIndex]}else if(-1!==s){var f=e[this._currentIndex+1];e[this._currentIndex+1]=s/t,e[this._currentIndex]+=f-e[this._currentIndex+1]}}}},{key:"_updateNumber",value:function(e,t){for(var n=3===e.length?99:6===e.length?102:100,r=t/e.length,o=this._currentColumnsNode,i=.5*t/n,a=0,l=e.length;a0){var r=n;n-=this.lastRight,this.lastRight=Math.max(0,this.lastRight-r)}if(n<=0)return 0;for(var o=n;o>0&&t>=0;){if(e[t]-o>=B8e){e[t]-=o,o=0;break}o-=e[t]-B8e,e[t]=B8e,t--}return this.lastLeft+=o,n-o}},{key:"tryMoveToRight",value:function(e,t,n){if(this.lastLeft>0){var r=n;n-=this.lastLeft,this.lastLeft=Math.max(0,this.lastLeft-r)}if(n<=0)return 0;for(var o=n;o>0&&t=B8e){e[t]-=o,o=0;break}o-=e[t]-B8e,e[t]=B8e,t++}return this.lastRight+=o,n-o}}]),t}(ut);function F8e(e,t,n){return t=Qe(t),Xe(e,L8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function L8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L8e=function(){return!!e})()}var U8e=function(e){function t(e){var n;return Ye(this,t),n=F8e(this,t),Object.defineProperty(Je(n),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(n),"_resizingController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"_headDisabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._resizingController=new M8e(Je(n)),n}return et(t,e),Ke(t,[{key:"resizingController",get:function(){return this._resizingController}},{key:"_emitEvent",value:function(e,t,n){var r=Nc(t,ite.domNode.columnsContent);r&&this.emit(e,{columnsNode:r.parentNode,columnsContentNode:r,columnNode:t,event:n})}},{key:"startResizing",value:function(e,t){0===t.button&&this._emitEvent("startResizing",e,t)}},{key:"hoverInColumn",value:function(e){this._emitEvent("hoverInColumn",e)}},{key:"hoverOutColumn",value:function(e){this._emitEvent("hoverOutColumn",e)}},{key:"enterColumnController",value:function(e,t){this._emitEvent("enterColumnController",e,t)}},{key:"leaveColomnController",value:function(e,t){this._emitEvent("leaveColumnController",e,t)}},{key:"emitColumnsShowAdd",value:function(e,t,n){this.renderer&&this.renderer.emitPluginEvent("columnsShowAdd",{domNode:e,columnsId:t,index:n})}},{key:"emitColumnsHideAdd",value:function(e){this.renderer&&this.renderer.emitPluginEvent("columnsHideAdd",{domNode:e})}},{key:"trySelectColumnEnd",value:function(e){return this.renderer.execCommand(ite.command.selectColumnEnd,e)}},{key:"deleteColumn",value:function(e){return this.renderer.execCommand(ite.command.columnDelete,e)}},{key:"deleteColumnByIndex",value:function(e,t){return this.renderer.execCommand(ite.command.columnDeleteByIndex,e,t)}},{key:"addColumn",value:function(e,t){return this.renderer.execCommand(ite.command.columnsAddColumn,e,t)}},{key:"updateWidths",value:function(e,t){this.renderer.execCommand(ite.command.columnsWidths,e,t)}},{key:"moveColumn",value:function(e,t,n){this.renderer.execCommand(ite.command.moveColumn,e,t,n)}},{key:"headDisabled",get:function(){return this._headDisabled},set:function(e){"boolean"==typeof e&&(this._headDisabled=e)}}]),t}(ut);function V8e(e,t,n){return t=Qe(t),Xe(e,H8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function H8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H8e=function(){return!!e})()}var z8e=function(e){function t(){return Ye(this,t),V8e(this,t,arguments)}return et(t,e),Ke(t,[{key:"translate",value:function(e,t){return{type:bp.STYLE_NAME,name:"flex",value:t}}}]),t}(bp);function W8e(e,t,n){return t=Qe(t),Xe(e,q8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function q8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(q8e=function(){return!!e})()}var $8e=function(e){function t(){var e;return Ye(this,t),e=W8e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_controllerNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_borderNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_numberShowNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_adderNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_hoverNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_hoverIn",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._rootNode=$y.createElement(ite.domNode.column),this._contentNode=$y.createElement(ite.domNode.columnContent),this._borderNode=$y.createElement(ite.domNode.columnBorder),this._hoverNode=$y.createElement(ite.domNode.columnHover),this._controllerNode=$y.createElement(ite.domNode.columnController),this._numberShowNode=$y.createElement("div"),this._adderNode=$y.createElement("div"),this._controllerNode.contentEditable="false",this._borderNode.contentEditable="false",this._hoverNode.contentEditable="false",this._numberShowNode.className="ne-number-show",this._adderNode.className="columns-adder",this._borderNode.appendChild(this._hoverNode),this._rootNode.appendChild(this._borderNode),this._rootNode.appendChild(this._contentNode),this._rootNode.appendChild(this._numberShowNode),this._rootNode.appendChild(this._controllerNode),this._controllerNode.appendChild(this._adderNode),this._initEvent(),$y.setAttributeByChange(this._rootNode,e)}},{key:"destroy",value:function(){delete this._rootNode,delete this._contentNode,delete this._controllerNode,delete this._borderNode,delete this._numberShowNode,delete this._adderNode,delete this._hoverNode,Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"_initEvent",value:function(){var e=this;kc(this,this._rootNode,"mousedown",(function(t){t.target!==e._rootNode&&t.target!==e._borderNode||(t.preventDefault(),e.pluginContext.trySelectColumnEnd(e.viewNode.id))})),kc(this,this._controllerNode,"mousedown",(function(t){e.pluginContext.startResizing(e._rootNode,t)})),kc(this,this._adderNode,"mousedown",(function(e){e.stopPropagation(),e.preventDefault()}));var t=ig()((function(t){e._hoverIn!==t&&(e._hoverIn=t,t?e.pluginContext.hoverInColumn(e._rootNode):e.pluginContext.hoverOutColumn(e._rootNode))}),50);kc(this,[this._borderNode,this._contentNode],"mouseover",(function(){t(!0)})),kc(this,[this._borderNode,this._contentNode],"mouseout",(function(){t(!1)})),kc(this,this._adderNode,"mouseenter",(function(t){e.pluginContext.enterColumnController(e._rootNode,t)})),kc(this,this._adderNode,"mouseleave",(function(t){e.pluginContext.leaveColomnController(e._rootNode,t)}))}},{key:"updateAttribute",value:function(e){$y.syncDOMAttrChange(this._rootNode,e)}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}}]),t}(Ly);function K8e(e){var t=e.onClick;return nc().createElement("div",{className:"columns-add-button",onClick:t},nc().createElement(tD,{type:"t-add"}))}function Y8e(e,t,n){return t=Qe(t),Xe(e,G8e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function G8e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(G8e=function(){return!!e})()}var J8e=function(e){function t(e,n){var r;return Ye(this,t),r=Y8e(this,t),Object.defineProperty(Je(r),"_columnsNode",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"_addNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(r),"_currentIndex",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(Je(r),"_handleClickAdd",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.emit("add",r._currentIndex)}}),nu().render(nc().createElement(K8e,{onClick:r._handleClickAdd}),n),r}return et(t,e),Ke(t,[{key:"destroy",value:function(){delete this._columnsNode,delete this._addNode}},{key:"enterStartEndNode",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;e&&-1!==n&&requestAnimationFrame((function(){var r=t._columnsNode.getBoundingClientRect().left,o=e.getBoundingClientRect().x;t._addNode.style.left=o>r?o-r+11+"px":o-r+7+"px",t._currentIndex=n,t.emit("showAdd",n)}))}},{key:"enterColumnController",value:function(e){var t=this,n=e.querySelector("ne-column-controller");if(n){var r=this._findIndex(this._columnsNode,e);-1!==r&&requestAnimationFrame((function(){var e=t._columnsNode.getBoundingClientRect().left,o=n.getBoundingClientRect().x;t._addNode.style.left=o-e+5+"px",t._currentIndex=r+1,t.emit("showAdd",r+1)}))}}},{key:"_findIndex",value:function(e,t){for(var n=0,r=e.children.length;ni[0])for(var u=0;ui[u]&&ei[0])for(var l=0;li[l]&&e=Dr&&!e._isMaxCols&&(e._isMaxCols=!0,e._rootNode.classList.add(h6e)),e._rootNode.dataset.cols=e.viewNode.childCount+""}}),Object.defineProperty(Je(e),"_showRemoveBtn",{enumerable:!0,configurable:!0,writable:!0,value:function(){kt(e.viewNode.isElement(),"plugins/columns/src/render/elements/columns-element.ts:322"),e.viewNode.childCount>1?e._rootNode.classList.add(d6e):e._rootNode.classList.remove(d6e)}}),Object.defineProperty(Je(e),"_handleRemoveColumn",{enumerable:!0,configurable:!0,writable:!0,value:function(t){kt(e.viewNode.isElement(),"plugins/columns/src/render/elements/columns-element.ts:333"),e.pluginContext.deleteColumnByIndex(e.viewNode.id,t)&&(e.viewNode.childCount<=Dr&&(e._isMaxCols=!1,e._rootNode.classList.remove(h6e)),e._rootNode.dataset.cols=e.viewNode.childCount+"")}}),Object.defineProperty(Je(e),"_tryDeleteEmptyColumn",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.needRepair;kt(e.viewNode.isElement(),"plugins/columns/src/render/elements/columns-element.ts:350"),(null==n?void 0:n.closest("columns"))===e.viewNode&&e.viewNode.children.forEach((function(t,n){if(e.viewNode.isConnected&&(t.isEmpty()||1===t.childCount&&t.firstChild.isFillerNode()))return e._handleRemoveColumn(n)}))}}),Object.defineProperty(Je(e),"_deleteColumn",{enumerable:!0,configurable:!0,writable:!0,value:function(t){kt(e.viewNode.isElement(),"plugins/columns/src/render/elements/columns-element.ts:373"),ed.isBackspace(t)&&e.pluginContext.deleteColumn(e.viewNode.id)&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),e.viewNode.childCount<=Dr&&(e._isMaxCols=!1,e._rootNode.classList.remove(h6e)),e._rootNode.dataset.cols=e.viewNode.childCount+"")}}),Object.defineProperty(Je(e),"_enterColumnNode",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.columnNode,r=t.columnsNode;e._rootNode===r&&e._controller&&e._controller.enterColumnController(n)}}),Object.defineProperty(Je(e),"_leaveColumnNode",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.columnsNode;e._rootNode===n&&(e._cancelLeaveAddTask=dd((function(){e._rootNode.classList.remove(s6e)}),300))}}),Object.defineProperty(Je(e),"_enterAddNode",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._controller.enterStartEndNode(t.currentTarget,void 0===t.currentTarget?0:Number.MAX_VALUE)}}),Object.defineProperty(Je(e),"_leaveAddNode",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._cancelLeaveAddTask=dd((function(){e._rootNode.classList.remove(s6e)}),300)}}),Object.defineProperty(Je(e),"_enterAddButton",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._cancelLeaveAddTask&&e._cancelLeaveAddTask()}}),Object.defineProperty(Je(e),"_handleShowDragPosInspector",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.pos;e._moveInspector&&(e._moveInspector.classList.contains(p6e)||e._moveInspector.classList.add(p6e),e._moveInspector.style.left=n+"px")}}),Object.defineProperty(Je(e),"_handleHideDragPosInspector",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._moveInspector&&e._moveInspector.classList.remove(p6e)}}),Object.defineProperty(Je(e),"_handleDragStart",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.renderer.emitPluginEvent("columnDragging",{columnsId:e.viewNode.id})}}),Object.defineProperty(Je(e),"_handleDragEnd",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.currentIndex,r=t.newIndex;e.pluginContext&&e.pluginContext.moveColumn(e.viewNode.id,n,r)}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){this._rootNode=$y.createElement(ite.domNode.columns),this._contentNode=$y.createElement(ite.domNode.columnsContent),this._addNode=$y.createElement("div"),this._removeNode=$y.createElement("div"),this._addEndNode=$y.createElement("div"),this._moveInspector=$y.createElement("div"),this._rootNode.contentEditable="false",this._contentNode.contentEditable="true",this._addNode.className="columns-add",this._removeNode.className="columns-remove",this._addEndNode.className="columns-end-add",this._moveInspector.className="columns-move-inspector",kt(this.viewNode.isElement(),"plugins/columns/src/render/elements/columns-element.ts:69"),this._isMaxCols=this.viewNode.childCount>=Dr,this._isMaxCols&&this._rootNode.classList.add(h6e),this._rootNode.dataset.cols=this.viewNode.childCount+"",Ks.mobile&&this._rootNode.classList.add("ne-columns-h5"),this._rootNode.appendChild(this._contentNode),this._rootNode.appendChild(this._addNode),this._rootNode.appendChild(this._removeNode),this._rootNode.appendChild(this._addEndNode),this._rootNode.appendChild(this._moveInspector),this._controller=new J8e(this._contentNode,this._addNode),this._removeController=new l6e(this._contentNode,this._removeNode),this._initEvent(),$y.setAttributeByChange(this._rootNode,e)}},{key:"_initEvent",value:function(){var e,t=this;jc(this,this.pluginContext,"resetSelection",(function(e){var n,r,o,i=e.columnsNode;t._rootNode===i||t._rootNode.parentNode===i?(t._isFocused||(t._isFocused=!0,t._rootNode.classList.add("ne-columns-focus","ne-focused")),t.renderer.emitPluginEvent("columnsFocus",{columnsId:t.viewNode.id,domNode:t._rootNode})):t._isFocused&&(t._isFocused=!1,null===(o=null===(r=null===(n=t._rootNode)||void 0===n?void 0:n.classList)||void 0===r?void 0:r.remove)||void 0===o||o.call(r,"ne-columns-focus","ne-focused",d6e),t.renderer.emitPluginEvent("columnsBlur",{columnsId:t.viewNode.id,domNode:t._rootNode}))})),kc(this,this._rootNode,"mouseover",(function(n){var r,o;if(clearTimeout(e),Ud(n.target)&&!(null===(o=(r=n.target).closest)||void 0===o?void 0:o.call(r,"ne-card, ne-alert"))){var i={destroy:function(){}},a=t._rootNode,l=t.viewNode.id;e=setTimeout((function(){i.destroy(),t.renderer.emitPluginEvent("columnsFocus",{columnsId:l,domNode:a})}),200),kc(i,t._rootNode,"mouseleave",(function(){i.destroy(),clearTimeout(e)}))}})),kc(this,this._addNode,"mouseenter",this._enterAddButton),kc(this,this._addEndNode,"mouseenter",this._enterAddNode),kc(this,this._addEndNode,"mouseleave",this._leaveAddNode),kc(this,this._addNode,"mouseleave",this._leaveAddNode),jc(this,this.pluginContext,"enterColumnController",this._enterColumnNode),jc(this,this.pluginContext,"leaveColumnController",this._leaveColumnNode),jc(this,this.pluginContext,"startResizing",this._startResizing),jc(this,this.pluginContext,"finishResizing",this._finishResizing);var n=0;jc(this,this.pluginContext,"hoverInColumn",(function(e){var r=e.columnNode;e.columnsNode===t._rootNode&&(clearTimeout(n),t._removeController.enterColumnNode(r))})),jc(this,this._removeController,"leaveRemoveBtn",(function(){n=window.setTimeout((function(){var e,n,r;null===(r=null===(n=null===(e=t._rootNode)||void 0===e?void 0:e.classList)||void 0===n?void 0:n.remove)||void 0===r||r.call(n,d6e),t._removeController.leaveColumnNode()}),100)})),jc(this,this.pluginContext,"hoverOutColumn",(function(e){e.columnsNode!==t._rootNode||t._removeController.isInRemoveBtn||(n=window.setTimeout((function(){var e,n,r;null===(r=null===(n=null===(e=t._rootNode)||void 0===e?void 0:e.classList)||void 0===n?void 0:n.remove)||void 0===r||r.call(n,d6e),t._removeController.leaveColumnNode()}),100))})),jc(this,this._controller,"showAdd",this._mouseEnterAddArea),jc(this,this._controller,"add",this._handleAddColumn),jc(this,this._removeController,"showRemove",this._showRemoveBtn),jc(this,this._removeController,"remove",this._handleRemoveColumn),jc(this,this._removeController,"dragStart",this._handleDragStart),jc(this,this._removeController,"dragEnd",this._handleDragEnd),jc(this,this._removeController,"showDragPosInspector",this._handleShowDragPosInspector),jc(this,this._removeController,"hideDragPosInspector",this._handleHideDragPosInspector),kc(this,this._contentNode,"keydown",this._deleteColumn,!1),this.renderer.onPluginEvent("afterBrickMove",this._tryDeleteEmptyColumn)}},{key:"updateAttribute",value:function(e){$y.syncDOMAttrChange(this._rootNode,e)}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),this.renderer.emitPluginEvent("columnsBlur",{columnsId:this.viewNode.id,domNode:this._rootNode}),this._controller&&this._controller.destroy(),delete this._controller,this._removeController&&this._removeController.destroy(),delete this._removeController}},{key:"_afterInit",value:function(){this._refreshWidthMode()}},{key:"$didUpdate",value:function(){this._refreshWidthMode()}},{key:"_refreshWidthMode",value:function(){var e,t=this._rootNode.parentNode;t&&((null===(e=this.viewNode.attrs)||void 0===e?void 0:e.widthMode)===Bl?t.classList.add("ne-full-width"):t.classList.remove("ne-full-width"))}}]),t}(Ly);function m6e(e,t,n){return t=Qe(t),Xe(e,g6e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function g6e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g6e=function(){return!!e})()}var b6e=function(e){function t(){var e;return Ye(this,t),e=m6e(this,t,arguments),Object.defineProperty(Je(e),"_context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this._context=new U8e(e),e.registerAttrTranslator(ite.attr.width,new z8e),e.registerBoxNode({columns:{clazz:v6e,pluginContext:this._context},column:{clazz:$8e,pluginContext:this._context}});var n=0;e.on("selectionchange",(function(e){var r=e.ranges,o=Date.now();requestAnimationFrame((function(){n>o||t._updateColumnsSelection(r)}))})),e.on("contentchange",(function(e){var r=e.ranges;n=Date.now(),requestAnimationFrame((function(){t._updateColumnsSelection(r)}))}))}},{key:"_updateColumnsSelection",value:function(e){var t,n=null===(t=e[0])||void 0===t?void 0:t.commonAncestorContainer;if(n){var r=Nc(n,'ne-columns, ne-container-hole[data-card="columns"]');if(r){var o=Nc(n,"ne-column");this._context.emit("resetSelection",{columnsNode:r,columnNode:o,ranges:e})}else this._context.emit("resetSelection",{columnsNode:null,columnNode:null,ranges:null})}}}]),t}(rb);Object.defineProperty(b6e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:ite.pluginName});var y6e={tip:"",emptyParagraphTip:""},w6e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.setOption(t)}return Ke(e,[{key:"setOption",value:function(e){"string"==typeof e&&(e={tip:e}),this._option=Object.assign(Object.assign({},y6e),e)}},{key:"tip",get:function(){return this._option.tip}},{key:"emptyParagraphTip",get:function(){return this._option.emptyParagraphTip}}]),e}();function k6e(e,t,n){return t=Qe(t),Xe(e,C6e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function C6e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C6e=function(){return!!e})()}Object.defineProperty(w6e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"placeholder"});var _6e=function(e){function t(){var e;return Ye(this,t),e=k6e(this,t,arguments),Object.defineProperty(Je(e),"_handler",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_lastTargetNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_handleParaPlaceholder",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t,n,r,o,i,a,l,u,c,s,d=Je(e),f=d.renderer,h=d.engine,p=h.viewDocument.rootNode;do{var v=h.getViewSelection(),m=v.collapsed,g=v.anchorPosition;if(!m)break;if(!e.option.emptyParagraphTip&&p.childCount>2)break;if(g.node===p&&g.offset===p.childCount-1){s=p.children[g.offset];break}if(g.offset>1)break;if("right"===(null===(t=f.queryCommandValue("alignment"))||void 0===t?void 0:t[0]))break;if(Ks.android&&0===g.offset&&(null===(n=g.node.nextSibling)||void 0===n?void 0:n.isBlockFillerNode())&&""!==(null===(o=null===(r=f.getVirtualNode(g.node.nextSibling))||void 0===r?void 0:r.getMainDOMNode())||void 0===o?void 0:o.innerText.trim()))break;var b=g.node.closest(ze.TextContainer);if("p"===(null==b?void 0:b.nodeName)&&(null===(a=null===(i=b.parent)||void 0===i?void 0:i.hasCategory)||void 0===a?void 0:a.call(i,[jt]))&&b.parent.childCount<=2)break;"p"===(null==b?void 0:b.nodeName)&&((null==b?void 0:b.parent)===p||(null===(u=null===(l=null==b?void 0:b.parent)||void 0===l?void 0:l.hasCategory)||void 0===u?void 0:u.call(l,[jt,Er])))&&N6e(b)&&(s=b)}while(0);if(e._clear(),s){var y=null===(c=f.getVirtualNode(s))||void 0===c?void 0:c.getMainDOMNode();e._addParaPlaceholder("#blockFiller"===s.nodeName?y:null==y?void 0:y.firstChild,e.getPlaceholder(p,s))}}}),Object.defineProperty(Je(e),"_addParaPlaceholder",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){e._lastTargetNode&&e._lastTargetNode!==t&&(e._lastTargetNode.removeAttribute("data-placeholder"),e._lastTargetNode=null),t&&t.nodeType===Node.ELEMENT_NODE&&(e._lastTargetNode=t,t.setAttribute("data-placeholder",n))}}),Object.defineProperty(Je(e),"_clear",{enumerable:!0,configurable:!0,writable:!0,value:function(){e._lastTargetNode&&(e._lastTargetNode.removeAttribute("data-placeholder"),e._lastTargetNode=null)}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.option.tip&&(e.extendMethods({updatePlaceholder:function(e){t.option.setOption(e),t._handleParaPlaceholder()}}),e.on("contentchange",this._handleParaPlaceholder),e.on("selectionchange",this._handleParaPlaceholder),e.onRootNode("compositionstart",(function(){t._clear()})),e.onRootNode("compositionend",this._handleParaPlaceholder))}},{key:"getPlaceholder",value:function(e,t){return e.childCount>2?this.option.emptyParagraphTip:1===e.childCount||e.children[0]===t&&"#blockFiller"===e.children[1].nodeName?this.option.tip:this.option.emptyParagraphTip}}]),t}(rb);function N6e(e){var t,n,r;return!!e.isEmpty()||!(null===(t=e.attrs)||void 0===t?void 0:t.textIndent)&&!(null===(n=e.attrs)||void 0===n?void 0:n.indent)&&!(null===(r=e.attrs)||void 0===r?void 0:r.indent)&&e.children.every((function(e){return e.isTextNode()&&e.isEmpty()||e.isFillerNode()}))}Object.defineProperty(_6e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"placeholder"}),Object.defineProperty(_6e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:w6e});var O6e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var n={summaryPlaceholder:gc("请输入折叠卡片标题"),contentPlaceholder:gc("在此输入内容")};this._option=Object.assign(Object.assign({},n),t)}return Ke(e,[{key:"summaryPlaceholder",get:function(){return this._option.summaryPlaceholder||""}},{key:"contentPlaceholder",get:function(){return this._option.contentPlaceholder||""}}]),e}();function x6e(e,t,n){return t=Qe(t),Xe(e,E6e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function E6e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E6e=function(){return!!e})()}Object.defineProperty(O6e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:jt});var D6e=function(e){function t(e,n){var r;return Ye(this,t),r=x6e(this,t),Object.defineProperty(Je(r),"option",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"renderer",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return et(t,e),Ke(t,[{key:"toggleFold",value:function(e){this.renderer.execCommand("collapseOpen",e)}},{key:"getFoldState",value:function(e){return this.renderer.queryCommandValue("collapseClosable",e)}},{key:"emitOpenChangeEvent",value:function(){return this.renderer.emitPluginEvent("collapseChange")}},{key:"getOption",value:function(){return this.option}}]),t}(ut);function R6e(e,t,n){return t=Qe(t),Xe(e,P6e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function P6e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P6e=function(){return!!e})()}var S6e=function(e){function t(){return Ye(this,t),R6e(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r2)&&e.children.slice(1).every((function(e){var t,n,r;return(null===(t=e.isEmpty)||void 0===t?void 0:t.call(e))||(null===(r=null===(n=e.children)||void 0===n?void 0:n.every)||void 0===r?void 0:r.call(n,(function(e){var t,n,r;return(null===(t=e.isTextNode)||void 0===t?void 0:t.call(e))&&(null===(n=e.isEmpty)||void 0===n?void 0:n.call(e))||(null===(r=e.isFillerNode)||void 0===r?void 0:r.call(e))})))}))}var V6e=function(e){function t(){var e;return Ye(this,t),e=F6e(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_controllerNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_prevPlaceholderNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_foldController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_isFocused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_hasPlaceholder",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_observer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_onDOMChange",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t="";if(!U6e(e.viewNode)||e._contentNode.children.length>2)t="notEmpty";else for(var n=1;nn||(i._updateCollapseSelection(t),i._checkSelectionChange(t))}))})),e.on("contentchange",(function(e){var t=e.ranges;a=Date.now(),requestAnimationFrame((function(){i._updateCollapseSelection(t),i._checkSelectionChange(t)}))})),e.on("collapseChange",(function(){i.kernel.emitPluginEvent("collapseChange")}))}},{key:"_updateCollapseSelection",value:function(e){var t,n=null===(t=e[0])||void 0===t?void 0:t.commonAncestorContainer;if(n&&!Nc(n,"ne-hole")){var r=Nc(n,"ne-collapse");r?this._context.emit("resetSelection",{collapseNode:r,ranges:e}):this._context.emit("resetSelection",{collapseNode:null})}}},{key:"_checkSelectionChange",value:function(e){var t=e[0].commonAncestorContainer,n=Nc(t,"ne-hole"),r=Nc(t,"ne-collapse");this._isFocusAtColumns=!n&&!!r}}]),t}(rb);Object.defineProperty(K6e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:one.pluginName}),Object.defineProperty(K6e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:O6e}),Object.defineProperty(K6e,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[S6e]});var Y6e={focus:!0,dropFile:!0,undo:!0,redo:!0,rollbackHistory:!0,insertCard:!0,deleteCard:!0,breakLine:!0,bold:!0,italic:!0,underline:!0,strikethrough:!0,color:!0,clearColor:!0,bgColor:!0,clearBgColor:!0,fontsize:!0,delete:!0,deleteByRange:!0,deleteToBlockEnd:!0,table:!0,deleteTable:!0,cut:!0,paste:!0,input:!0,indent:!0,outdent:!0,link:!0,insertLink:!0,linkText:!0,updateLink:!0,lineHeight:!0,paintFormat:!0,clearFormat:!0,translate:!0,label:!0,hr:!0,quote:!0,sub:!0,sup:!0,code:!0,search:!0,replaceText:!0,collapseBreakLine:!0},G6e={lineHeight:!0,fontsize:!0,color:!0,bold:!0,italic:!0,underline:!0,strikethrough:!0,clearColor:!0,bgColor:!0,clearBgColor:!0};function J6e(e,t,n){return t=Qe(t),Xe(e,X6e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function X6e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X6e=function(){return!!e})()}var Q6e=function(e){function t(){var e;return Ye(this,t),e=J6e(this,t,arguments),Object.defineProperty(Je(e),"shouldIgnoreScroll",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"shouldIgnore",get:function(){return this.shouldIgnoreScroll}},{key:"shouldIgnoreAlways",value:function(){this.shouldIgnoreScroll=!0}},{key:"reset",value:function(){this.shouldIgnoreScroll=!1}},{key:"destroy",value:function(){}}]),t}(S$e);function Z6e(e,t,n){return t=Qe(t),Xe(e,e9e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function e9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(e9e=function(){return!!e})()}var t9e=function(e){function t(){var e;return Ye(this,t),e=Z6e(this,t,arguments),Object.defineProperty(Je(e),"_prevDispose",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.kernel.editing.on("afterExecCommand",ig()((function(n){var r=n.commandName;t.service.shouldIgnore||e.isFocus()&&Y6e[r]&&(t._prevDispose&&t._prevDispose.dispose(),t._prevDispose=xs((function(){try{if(!G6e[r])return!0;var t=document.getSelection();if(!t||t.rangeCount<1)return!0;var n=t.getRangeAt(0).getBoundingClientRect(),o=e.getEditWrapRect();return!(n.topo.top)}catch(e){return!0}}),(function(t){t&&e.scrollToCurrentSelection(!1)})))}))),e.option.virtualRendering&&e.onPluginEvent("unblockSelectionChange",(function(n){var r=document.getSelection();if((null==r?void 0:r.rangeCount)&&n.ranges){var o=r.getRangeAt(0);if(o.startContainer===n.ranges[0].startContainer&&o.startOffset===n.ranges[0].startOffset&&o.endContainer===n.ranges[0].endContainer&&o.endOffset===n.ranges[0].endOffset)return}t._prevDispose&&t._prevDispose.dispose(),t._prevDispose=xs((function(){try{var t=document.getSelection();if(!t||t.rangeCount<1)return!0;var n=t.getRangeAt(0).getBoundingClientRect(),r=e.getEditWrapRect();return!(n.topr.top)}catch(e){return!0}}),(function(t){t&&e.scrollToCurrentSelection(!1)}))}))}},{key:"destroy",value:function(){var e;null===(e=this._prevDispose)||void 0===e||e.dispose()}}]),t}(rb);function n9e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0})),this.drawUI.drawRanges(this._ranges),this.emit("change")}},{key:"searchNode",value:function(e){var t=this.nodeSearchMap.get(e.nodeName);return t?t.onSearch(this,e,this.searchText):null}},{key:"createRange",value:function(e){var t,n,r=null===(t=this.renderer.kernel.document)||void 0===t?void 0:t.getNodeById(e.start.id),o=null===(n=this.renderer.kernel.document)||void 0===n?void 0:n.getNodeById(e.end.id);return kt((null==r?void 0:r.isConnected)&&(null==o?void 0:o.isConnected),"无法构造选区,节点不存在","plugins/search/src/render/helper/search-context.ts:142"),new Wt(new Nt(r,e.start.offset),new Nt(o,e.end.offset))}},{key:"addRange",value:function(e){var t,n=this;Array.isArray(e)?(t=this._ranges).push.apply(t,pn(e.map((function(e){return n.createRange(e)})))):this._ranges.push(this.createRange(e))}},{key:"jumpTo",value:function(e,t){var n=this,r=0;this.drawUI.setActive(null);var o=!1;return this._result.find((function(i){var a,l;if(e>=r&&e=r&&e1?n-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e.children);try{for(r.s();!(n=r.n()).done;)a9e(n.value,t)}catch(e){r.e(e)}finally{r.f()}}}function l9e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:this.plugin.option;return this._currentContext&&this._currentContext.destroy(),this._currentContext=new i9e(this.kernel,this.renderer,this.nodeSearchMap,e,t),this._currentContext.init(),this._currentContext.doSearch(),this._currentContext}},{key:"registerNodeSearch",value:function(e,t){if(!Array.isArray(e))return this.registerNodeSearch([e],t);var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l9e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l9e(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;this.nodeSearchMap.set(o,t)}}catch(e){r.e(e)}finally{r.f()}}},{key:"destroy",value:function(){this._currentContext&&(this._currentContext.destroy(),this._currentContext=null),this.nodeSearchMap.clear()}}]),t}(mMe),d9e=function(){function e(t,n,r){var o=this;Ye(this,e),Object.defineProperty(this,"ctx",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"results",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevResult",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_count",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_searchRangeCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),n.forEach((function(e){if(Array.isArray(e)){var n,i=o.searchOnTextArray(e,r);i.length>0&&(o._count+=i.length,o._searchRangeCount+=i.length,(n=o.results).push.apply(n,pn(i)),t.addRange(i))}else o.results.push(e),o._count+=e.count}))}return Ke(e,[{key:"count",get:function(){return this._count}},{key:"searchRangeCount",get:function(){return this._searchRangeCount}},{key:"searchOnTextArray",value:function(e,t){var n=this,r=e.map((function(e){return e.isTextNode()?e.data:""})).join(""),o=On.search(r,t,this.ctx.isIgnoreCase);return o?o.map((function(t){return{start:n.indexToPosition(e,t.from),end:n.indexToPosition(e,t.to)}})):[]}},{key:"indexToPosition",value:function(e,t){for(var n=0,r=0;rt)return{id:o.id,offset:t-n};n+=i.length}var a=e[e.length-1];return kt(a.isTextNode(),"plugins/search/src/render/helper/text-container-search.ts:88"),{id:a.id,offset:a.data.length}}},{key:"jumpTo",value:function(e,t){var n=this,r=0;this.results.find((function(o){return"count"in o?e0)return zo.replaceText(e,n,t)}},{key:"viewportChange",value:function(){this.results.forEach((function(e){var t;"count"in e&&(null===(t=e.viewportChange)||void 0===t||t.call(e))}))}},{key:"leave",value:function(){var e,t;this._prevResult&&(null===(t=(e=this._prevResult).leave)||void 0===t||t.call(e)),this._prevResult=null}},{key:"destroy",value:function(){this.results.forEach((function(e){"count"in e&&e.destroy()})),this.results.length=0}}]),e}(),f9e=function(){function e(){Ye(this,e)}return Ke(e,[{key:"onSearch",value:function(e,t,n){var r=[],o=null;return t.children.forEach((function(t){if("#text"===t.nodeName)Array.isArray(o)?o.push(t):(o=[t],r.push(o));else if(t.hasCategory(ze.Card)){o=null;var n=e.searchNode(t);n&&r.push(n)}else t.isElement()&&(o=null,t.children.forEach((function(t){if("#text"===t.nodeName)Array.isArray(o)?o.push(t):(o=[t],r.push(o));else if(t.hasCategory(ze.Card)){o=null;var n=e.searchNode(t);n&&r.push(n)}else o=null})),o=null)})),new d9e(e,r,n)}}]),e}();function h9e(e,t,n){return t=Qe(t),Xe(e,p9e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function p9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p9e=function(){return!!e})()}var v9e=function(e){function t(){return Ye(this,t),h9e(this,t,arguments)}return et(t,e),Ke(t,[{key:"execute",value:function(e){return this.plugin.service.onSearch(e,this.plugin.option)}}]),t}(Qy);Object.defineProperty(v9e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:ple.command.search});var m9e={ignoreCase:!1,activeColor:"#f00",normalColor:"#ff0"},g9e=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},m9e,t)}return Ke(e,[{key:"ignoreCase",get:function(){return this._option.ignoreCase}},{key:"activeColor",get:function(){return this._option.activeColor}},{key:"normalColor",get:function(){return this._option.normalColor}}]),e}();function b9e(e,t,n){return t=Qe(t),Xe(e,y9e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function y9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y9e=function(){return!!e})()}Object.defineProperty(g9e,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:ple.pluginName});var w9e=function(e){function t(){return Ye(this,t),b9e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){this.service.registerNodeSearch(["p","oli","tli","uli","h1","h2","h3","h4","h5","h6"],new f9e)}}]),t}(rb);Object.defineProperty(w9e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:ple.pluginName}),Object.defineProperty(w9e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:g9e}),Object.defineProperty(w9e,"Service",{enumerable:!0,configurable:!0,writable:!0,value:s9e}),Object.defineProperty(w9e,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[v9e]});var k9e={error:"error",perf:"perf",user:"user"};function C9e(e,t,n){return t=Qe(t),Xe(e,_9e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_9e=function(){return!!e})()}var N9e=function(e){function t(){var e;return Ye(this,t),e=C9e(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),Object.defineProperty(Je(e),"performance",{enumerable:!0,configurable:!0,writable:!0,value:new Rle}),e}return et(t,e),Ke(t)}(Bw);function O9e(e,t,n){return t=Qe(t),Xe(e,x9e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function x9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x9e=function(){return!!e})()}Object.defineProperty(N9e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IViewerMonitorService")});var E9e=function(e){function t(){return Ye(this,t),O9e(this,t,arguments)}return et(t,e),Ke(t,[{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;nl||s>l)){var d={m1:c||0,m2:s||0,m3:"string"==typeof i?i.length:(null===(o=i.children)||void 0===o?void 0:o.length)||0,m4:t.domRootNode.querySelectorAll("*").length,m5:c||0,m6:s||0},f={type:"perf",name:"docInitPerf",timestamp:Date.now(),data:{docType:r,parseTime:d.m1,renderTime:d.m2,nodeLength:d.m4}};D9e("parseTotal",d),"render"===e&&n.log(55,d),n.log(f)}}}}i&&a&&(a.markGroupStart(R9e),o.once("afterSetDocument",(function(){a.markGroup(R9e,"parseEnd")})),"render"===e&&(t.once("generalRenderCompleted",u),t.once("tileRenderCompleted",u)),"viewer"===e&&t.once("firstRender",u))}))}}function S9e(e,t,n){return t=Qe(t),Xe(e,T9e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function T9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T9e=function(){return!!e})()}var A9e=function(e){function t(){return Ye(this,t),S9e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){this.option.enable&&(this.setupParseTotal(),this.monitorUserAction())}},{key:"setupParseTotal",value:function(){P9e("viewer",this.viewer,this.service)}},{key:"monitorUserAction",value:function(){var e,t=this;(null===(e=this.option.userMonitor)||void 0===e?void 0:e.enable)&&this.viewer.on("userAction",(function(e){var n=e.type,r=e.name,o=e.source;"cardToolbar"===n&&t.service.log({type:"user",name:"miniToolbar",timestamp:Date.now(),data:{name:r,target:o}})}))}}]),t}(Lw);function j9e(e,t,n){return t=Qe(t),Xe(e,I9e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function I9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I9e=function(){return!!e})()}Object.defineProperty(A9e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Nle.pluginName}),Object.defineProperty(A9e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(Dle)}),Object.defineProperty(A9e,"Service",{enumerable:!0,configurable:!0,writable:!0,value:E9e});var B9e=function(e){function t(){var e;return Ye(this,t),e=j9e(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),Object.defineProperty(Je(e),"performance",{enumerable:!0,configurable:!0,writable:!0,value:new Rle}),e}return et(t,e),Ke(t)}(tw);function M9e(e,t,n){return t=Qe(t),Xe(e,F9e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function F9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F9e=function(){return!!e})()}Object.defineProperty(B9e,"ID",{enumerable:!0,configurable:!0,writable:!0,value:nt("IMonitorService")});var L9e=function(e){function t(){return Ye(this,t),M9e(this,t,arguments)}return et(t,e),Ke(t,[{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nOle))){var n={m1:t.total.average||0,m2:t.total.max||0,m3:t.keydown.average,d1:e.renderer.option.virtualRendering?"virtualRendering":e.renderer.option.isTileRendering()?"tileRendering":"normal"};a7e("inputLatency",n),e.service.log(9001,n)}}),6e4))}},{key:"onKeydownLog",value:function(){var e,t=this;this.timeout||(this.timeout=setTimeout((function(){var e,n,r=o7e()||t.lastMeasure;if(r&&(t.lastMeasure=r,!(r.total.average>((null===(e=t.option.perfMonitor)||void 0===e?void 0:e.maxThreshold)||Ole)))){var o={type:"perf",name:"inputPerf",timestamp:Date.now(),data:{inputLatency:r.total.average,keydownLatency:r.keydown.average,nodeLength:(null===(n=t.kernel.document)||void 0===n?void 0:n.rootNode.childCount)||0}};t.service.log(o),t.timeout=void 0}}),(null===(e=this.option.perfMonitor)||void 0===e?void 0:e.editTimeout)||xle))}},{key:"destroy",value:function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i7e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i7e(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this._clearFns);try{for(t.s();!(e=t.n()).done;){var n=e.value;"function"==typeof n&&n()}}catch(e){t.e(e)}finally{t.f()}this.lastMeasure=void 0,this._clearFns=[],this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}}]),e}();function u7e(e,t,n){return t=Qe(t),Xe(e,c7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function c7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c7e=function(){return!!e})()}var s7e=function(e){function t(){var e;return Ye(this,t),e=u7e(this,t,arguments),Object.defineProperty(Je(e),"monitorInputLatency",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this.option.enable&&(this.setupParseTotal(),this.monitorCommandError(),this.monitorInputLatency=new l7e(this.service,this.renderer,this.kernel,this.option),this.monitorInputLatency.init())}},{key:"destroy",value:function(){var e;Cr(Qe(t.prototype),"destroy",this).call(this),null===(e=this.monitorInputLatency)||void 0===e||e.destroy(),this.monitorInputLatency=null}},{key:"setupParseTotal",value:function(){P9e("render",this.renderer,this.service)}},{key:"monitorCommandError",value:function(){var e,t=this;(null===(e=this.option.errorMonitor)||void 0===e?void 0:e.enable)&&this.renderer.on("commandExecuteError",(function(e){var n=e.error,r=e.detail;t.service.log({type:"error",name:"commandError",timestamp:Date.now(),data:{error:n,rank:1,commandName:r.commandName,args:r.args}})}))}}]),t}(rb);function d7e(e,t,n){return t=Qe(t),Xe(e,f7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function f7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f7e=function(){return!!e})()}Object.defineProperty(s7e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Nle.pluginName}),Object.defineProperty(s7e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Dle}),Object.defineProperty(s7e,"Service",{enumerable:!0,configurable:!0,writable:!0,value:L9e});var h7e=function(e){function t(e){var n;return Ye(this,t),n=d7e(this,t,[e]),Object.defineProperty(Je(n),"state",{enumerable:!0,configurable:!0,writable:!0,value:{src:"",visible:!0,valid:!0}}),Object.defineProperty(Je(n),"_srcRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"_handleSrcKeyDown",{enumerable:!0,configurable:!0,writable:!0,value:function(e){if(ed.isEscape(e))e.preventDefault(),n.props.onClose(),n.props.onCancel();else if(ed.isEnter(e)){if(e.preventDefault(),!n.state.valid)return;if(n._srcRef.current){var t=n._srcRef.current.input.value;t&&(n.props.onClose(),n.props.onConfirm(t))}}}}),Object.defineProperty(Je(n),"_handleSrcChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=e.target.value;n.setState({src:t,valid:!t||n.props.isValidURL(t)})}}),Object.defineProperty(Je(n),"_handleSubmit",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e;n.setState({visible:!1}),n._srcRef.current&&(e=n._srcRef.current.input.value),n.props.onClose(),e?n.props.onConfirm(e):n.props.onCancel()}}),n.state=Object.assign(Object.assign({},n.state),{visible:e.visible,src:e.src||""}),n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this._srcRef.current;e&&(e.focus(),e.select())}},{key:"render",value:function(){var e=this,t=this._renderEditor();return nc().createElement(Cj,{targetNode:this.props.targetNode,placement:["rightBottom"],boundaryNode:this.props.boundaryNode,point:this.props.point,uiEmitter:this.props.uiEmitter,onClose:function(){e.props.onClose(),e.props.onCancel()},className:"ne-ui-overlay-bar-wrap",visible:this.state.visible},t)}},{key:"_renderEditor",value:function(){return nc().createElement("div",{className:"ne-link-editor"},nc().createElement("div",{className:"ne-link-editor-field"},nc().createElement("label",null,nc().createElement("div",{className:"ne-link-editor-field-title"},gc("链接")),nc().createElement(hj,{ref:this._srcRef,placeholder:gc("链接地址"),onKeyDown:this._handleSrcKeyDown,onChange:this._handleSrcChange,value:this._getUserSrc(this.state.src)||""})),this._renderTip()),nc().createElement(Swe,{onClick:this._handleSubmit,disabled:!this.state.src||!this.state.valid},gc("确定")))}},{key:"_renderTip",value:function(){return this.state.valid?null:nc().createElement("div",{className:"ne-link-error-tip"},gc("请输入正确的链接"))}},{key:"_getUserSrc",value:function(e){return e===SL?void 0:e}}]),t}(tc.Component);function p7e(e,t,n){return t=Qe(t),Xe(e,v7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function v7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v7e=function(){return!!e})()}Object.defineProperty(h7e,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{visible:!0,allowModifyText:!0,isValidURL:function(e){return!1},onClose:function(){},onCancel:function(){},onConfirm:function(e){}}});var m7e=function(e){function t(){return Ye(this,t),p7e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.onPluginEvent("insertBookmark",(function(){t._openEditor()}))}},{key:"_openEditor",value:function(){var e,t=this,n=this.renderer,r=this.renderer.kernel.requireService(JQ.ID),o=null===(e=document.getSelection())||void 0===e?void 0:e.getRangeAt(0);if(o&&n.domRootNode.contains(o.startContainer)){var i=n.domRootNode.getBoundingClientRect(),a=o.getBoundingClientRect();n.domRootNode===o.startContainer&&(a=o.startContainer.childNodes[o.startOffset].getBoundingClientRect()),a.x||(a=o.startContainer.parentNode.getBoundingClientRect());var l=i.x+16,u=Math.min(window.visualViewport.height-150,a.y+20);xj.open({containerNode:n.globalOverlayNode,targetNode:n.domRootNode,overlayClassName:n.theme.getThemeSelector(),reactComponent:nc().createElement(h7e,{targetNode:n.domRootNode,uiEmitter:n.uiEmitter,boundaryNode:n.globalOverlayNode,isValidURL:function(e){return r.isValidURL(e)},point:{x:l,y:u},onCancel:function(){},onConfirm:function(e){e=r.transformURL(e),n.kernel.execCommand("insertBookmark",{src:e,text:e})}}),closeCallback:function(){t.renderer.execCommand("focus")}})}}}]),t}(rb);function g7e(e,t,n){return t=Qe(t),Xe(e,b7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function b7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b7e=function(){return!!e})()}Object.defineProperty(m7e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"bookmark"});var y7e=function(e){function t(){return Ye(this,t),g7e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t,n,r){e.onRootNode("keydown",(function(t){if(299!==t.keyCode&&!t.metaKey&&!t.ctrlKey&&ed.isEnter(t)){var n=r.queryCommandValue(Kse.command.getSelectDateCard);n&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),e.emitPluginEvent(Kse.eventName.openDateCardIdEditor,n))}}),!1)}}]),t}(rb);Object.defineProperty(y7e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Kse.pluginName});var w7e=[t9e,sXe,t3e,F4e,S2e,b0e,CXe,DXe,jXe,MXe,oQe,lQe,BQe,zQe,GQe,oZe,lZe,hZe,yZe,xZe,r0e,a0e,mXe,N0e,U0e,W0e,J0e,h1e,z1e,G1e,Q1e,d2e,g2e,M2e,o3e,c3e,a$e,W4e,P8e,A8e,b6e,_6e,K6e,w9e,s7e,m7e,y7e];function k7e(e,t,n){return t=Qe(t),Xe(e,C7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function C7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C7e=function(){return!!e})()}var _7e=function(e){function t(){var e;return Ye(this,t),e=k7e(this,t,arguments),Object.defineProperty(Je(e),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-file")}),Object.defineProperty(Je(e),"handleClick",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n;null===(n=e.props)||void 0===n||n.onClick(t)}}),Object.defineProperty(Je(e),"renderIcon",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardData.getStatus(),n=e.props.getExtIcon(e.props.cardData);return t===zW.Done?nc().createElement("span",{className:e.getClassName("icon")},nc().createElement(tD,{type:"ext-".concat(n)})):null}}),Object.defineProperty(Je(e),"renderName",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardData.getName();return nc().createElement("span",{className:e.getClassName("name"),"data-testid":e.getClassName("viewer-name")},t)}}),Object.defineProperty(Je(e),"renderFileSize",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardData.getSize();if(t){var n=cAe(t);if(n)return nc().createElement("span",{className:e.getClassName("size"),"data-testid":e.getClassName("viewer-size")},"(",n,")")}return null}}),Object.defineProperty(Je(e),"renderSimpleMode",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.getDownloadUrl(),n=e.props.cardData.getName();return nc().createElement(yS,{overlayClassName:e.getClassName("inline-tooltip"),title:e.props.tooltip||null},nc().createElement("a",{href:e.props.canDownload(e.props.cardData)?xh.sanitizeUrl(t):"",target:"_blank",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.handleClick(t.nativeEvent)}},"📎",n))}}),e}return et(t,e),Ke(t,[{key:"renderError",value:function(){var e=this.props.cardData.getName(),t=this.props.cardData.getMessage(),n=this.props.cardData.toJSON();return nc().createElement(WNe,{block:!1,cardIcon:nc().createElement(tD,{type:"upload-error",size:20}),message:n},gc(t||"文件上传失败,请重试")," ",e)}},{key:"render",value:function(){var e=this,t=this.props.cardData.getStatus();if(t!==zW.Done)return this.renderError();if(this.props.viewerMode===Kw.Simple)return this.renderSimpleMode();var n=!this.props.canDownload(this.props.cardData)&&!this.props.canPreview(this.props.cardData),r=this.getClassName()+(n?" disable":"");return nc().createElement("span",{className:r,"data-status":t,"data-testid":this.getClassName("viewer"),onClick:function(t){return e.handleClick(t.nativeEvent)}},nc().createElement(yS,{overlayClassName:this.getClassName("inline-tooltip"),title:this.props.tooltip||null},this.renderIcon(),this.renderName(),this.renderFileSize()))}}]),t}(tc.Component);function N7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N7e=function(){return!!e})()}function O7e(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,N7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"getOrigin",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.pluginOption.origin||("undefined"!=typeof location?location.origin:"")}}),Object.defineProperty(Je(e),"downloadFile",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(Je(e),"getExtIcon",{enumerable:!0,configurable:!0,writable:!0,value:function(){return"default"}}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e,t,n=this;this.uiViewProxy=Iwe.render(_7e,{viewerMode:this.viewer.option.viewerMode,cardData:this.cardData,onClick:function(e){if(n.pluginOption.onViewerInlineFileClick)return n.pluginOption.onViewerInlineFileClick(e,n);var t=n.viewer.option.viewerMode===Kw.Present;Ks.mobile||t||!n.pluginOption.canDownload(n.cardData)||n.downloadFile()},getDownloadUrl:this.getDownloadUrl,getExtIcon:this.getExtIcon,canDownload:this.pluginOption.canDownload,canPreview:this.pluginOption.canPreview,tooltip:null===(t=(e=this.pluginOption).viewerTooltip)||void 0===t?void 0:t.call(e,this)},this.containerNode)}},{key:"destroy",value:function(){nu().unmountComponentAtNode(this.containerNode),Cr(Qe(t.prototype),"destroy",this).call(this)}},{key:"getFrom",value:function(){return this.pluginOption.from||this.viewer.option.currentURL||"undefined"!=typeof location?location.href:""}},{key:"getDownloadUrl",value:function(){return""}}]),t}(e)}var x7e=O7e;function E7e(e,t,n){return t=Qe(t),Xe(e,D7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function D7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D7e=function(){return!!e})()}var R7e=function(e){function t(e){var n;Ye(this,t),n=E7e(this,t,[e]),Object.defineProperty(Je(n),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-local-doc")}),Object.defineProperty(Je(n),"renderCardView",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(fAe,{cardData:n.props.cardData,getPreviewUrl:n.props.getPreviewUrl,downloadFile:n.props.downloadFile,allowDownload:n.props.canDownload(n.props.cardData),allowPreview:n.props.canPreview(n.props.cardData),onPreview:n.props.onPreview,getExtIcon:n.props.getExtIcon,tooltip:n.props.tooltip})}}),Object.defineProperty(Je(n),"renderEmbedView",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(mAe,{scrollNode:document.body,cardData:n.props.cardData,renderIFrameUrl:n.state.renderIFrameUrl,getPreviewUrl:n.props.getPreviewUrl,getIFrameUrl:n.props.getIFrameUrl,downloadFile:n.props.downloadFile,allowDownload:n.props.canDownload(n.props.cardData),allowPreview:n.props.canPreview(n.props.cardData),onPreview:n.props.onPreview,getExtIcon:n.props.getExtIcon,tooltip:n.props.tooltip})}}),Object.defineProperty(Je(n),"renderError",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(yAe,{cardData:n.props.cardData})}}),Object.defineProperty(Je(n),"renderSimpleMode",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.canDownload(n.props.cardData)?n.props.getDownloadUrl():"";if(e){var t=n.props.cardData.getName();return nc().createElement("a",{href:xh.sanitizeUrl(e),target:"_blank",onClick:function(e){e.preventDefault(),e.stopPropagation(),n.props.downloadFile()}},t)}return null}});var r=!1;return e.cardData.getStatus()===zW.Done&&(r=!0),n.state={renderIFrameUrl:r},n}return et(t,e),Ke(t,[{key:"render",value:function(){if(this.props.viewerMode===Kw.Simple)return this.renderSimpleMode();var e,t=this.props.cardData.getStatus(),n=this.props.cardData.isCardMode();return e=t===zW.Error?this.renderError():n?this.renderCardView():this.renderEmbedView(),nc().createElement("div",{className:this.getClassName(),"data-testid":this.getClassName("viewer")},e)}}]),t}(tc.Component);function P7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P7e=function(){return!!e})()}function S7e(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,P7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"getFrom",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.pluginOption.from||e.viewer.option.currentURL||("undefined"!=typeof location?location.href:"")}}),Object.defineProperty(Je(e),"getOrigin",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.pluginOption.origin||("undefined"!=typeof location?location.origin:"")}}),Object.defineProperty(Je(e),"getPreviewUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(){return""}}),Object.defineProperty(Je(e),"getDownloadUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(){return""}}),Object.defineProperty(Je(e),"getIFrameUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(){return""}}),Object.defineProperty(Je(e),"downloadFile",{enumerable:!0,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(Je(e),"getExtIcon",{enumerable:!0,configurable:!0,writable:!0,value:function(){return"default"}}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e,t,n=this;this.uiViewProxy=Iwe.render(R7e,{cardData:this.cardData,tooltip:null===(t=(e=this.pluginOption).viewerTooltip)||void 0===t?void 0:t.call(e,this),getPreviewUrl:this.getPreviewUrl,getDownloadUrl:this.getDownloadUrl,getIFrameUrl:this.getIFrameUrl,downloadFile:this.downloadFile,getExtIcon:this.getExtIcon,viewerMode:this.viewer.option.viewerMode,onPreview:function(){n.viewer.emitEvent("visitLink",xh.sanitizeUrl(n.getPreviewUrl()),!0)},canDownload:this.pluginOption.canDownload,canPreview:this.pluginOption.canPreview},this.containerNode)}},{key:"destroy",value:function(){nu().unmountComponentAtNode(this.containerNode),this.uiViewProxy=null,Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}var T7e=S7e;function A7e(e,t,n){return t=Qe(t),Xe(e,j7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function j7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j7e=function(){return!!e})()}var I7e=function(e){function t(){var e;return Ye(this,t),e=A7e(this,t,arguments),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerBlockUI&&(t.$CardUI=this.pluginOption.viewerBlockUI),this._ui=this.viewer.createCardUI(this)}},{key:"destroy",value:function(){this._ui&&this._ui.destroy()}}]),t}(Ww);function B7e(e,t,n){return t=Qe(t),Xe(e,M7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function M7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(M7e=function(){return!!e})()}Object.defineProperty(I7e,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:ZW}),Object.defineProperty(I7e,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:S7e(oC()())});var F7e=function(e){function t(){var e;return Ye(this,t),e=B7e(this,t,arguments),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerInlineUI&&(t.$CardUI=this.pluginOption.viewerInlineUI),this._ui=this.viewer.createCardUI(this)}},{key:"destroy",value:function(){var e;null===(e=this._ui)||void 0===e||e.destroy(),this._ui=null}}]),t}(zw);function L7e(e,t,n){return t=Qe(t),Xe(e,U7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function U7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U7e=function(){return!!e})()}Object.defineProperty(F7e,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:ZW}),Object.defineProperty(F7e,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:O7e(oC()())});var V7e=function(e){function t(){return Ye(this,t),L7e(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerInlineCard(this,RL.FILE.NODE_NAME,F7e),e.registerInlineCard(this,RL.LOCAL_DOC.NODE_NAME,I7e)}}]),t}(Lw);Object.defineProperty(V7e,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:eq.pluginName}),Object.defineProperty(V7e,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:LAe});var H7e={copy:function(e,t){var n=document.createRange();n.selectNode(t.cardRootNode.parentNode),e.execCommand("copy",n)?LE.success(gc("复制成功")):LE.error(gc("复制失败"))},delete:function(e,t){e.execCommand("deleteCard",t.id),e.execCommand("focus",{preventScroll:!0})},copyLink:function(e,t){var n=e.option,r=n.currentURL,o=n.generateCardLink;if(r){var i=null==o?void 0:o(r,t.id);i?(ps()(i,{format:"text/plain"}),LE.success(gc("复制成功"))):LE.error(gc("复制失败"))}},spacing:function(e,t){t.cardData&&(t.cardData.toggleCardSpacing(),t.cardData.sync(!1))},maximize:function(e,t,n){t.enterMaxView(n.option)},widthMode:function(e,t){var n,r;null===(n=null==t?void 0:t.cardData)||void 0===n||n.toggleWidthMode(),null===(r=null==t?void 0:t.cardData)||void 0===r||r.sync(!1)}};function z7e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mini",n=arguments.length>2?arguments[2]:void 0;if(!e)return e;e=e.map((function(e){if("|"===e)return e;var r=e;if("string"!=typeof e?(r=e.name,e=Object.assign({onClick:H7e[r]},e)):e={name:r,onClick:H7e[r]},"copyLink"===r&&"function"!=typeof n.editor.option.generateCardLink)return null;var o=Object.assign(Object.assign({name:r},e),{cardData:n.cardData,onClick:function(){"string"!=typeof e&&e.onClick&&e.onClick(n.editor,n,e),n.editor.emitEvent("userAction",{type:"cardToolbar",name:r,source:"".concat(n.cardNode.viewNode.nodeName,"|").concat(t)})},onSelect:function(){var o;"string"!=typeof e&&e.onSelect&&(o=e).onSelect.apply(o,arguments),n.editor.emitEvent("userAction",{type:"cardToolbar",name:"".concat(r,"|").concat(arguments.length<=0?void 0:arguments[0]),source:"".concat(n.cardNode.viewNode.nodeName,"|").concat(t)})}});return"spacing"===r&&(o.isChecked=function(){var e;return(null===(e=n.cardData)||void 0===e?void 0:e.hasCardSpacing())||!1}),o})).filter(Boolean),n.editor.kernel&&n.editor.kernel.hasExtendMethod("isParagraphSpacingRelax")&&n.editor.kernel.isParagraphSpacingRelax()&&(e=aI.filter(e,["spacing"]));var r=n.editor.getService(fI.ID);return r&&(e=aI.filter(e,r.getDisabledMiniToolbarItems())),n.editor.hasExtendMethod("getFilterMiniToolbarItems")&&(e=aI.filter(e,n.editor.getFilterMiniToolbarItems(n.cardNode.viewNode,e))),function(e){return Nc(e,".ne-table")||Nc(e,"ne-container-hole")||Nc(e,"ne-alert-hole")}(n.cardRootNode)&&(e=aI.filter(e,["widthMode"])),aI.generateToolbarItems(e)}function W7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(W7e=function(){return!!e})()}function q7e(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,W7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"_cardToolbar",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"getCardToolbarConfig",value:function(){return null}},{key:"showCardToolbar",value:function(){var e,t=this.editor,n=t.scrollNode,r=t.innerOverlayContainer;this._cardToolbar=aI.updateCardToolbar(this.cardRootNode,r,n,z7e(this.getCardToolbarConfig(),"mini",this),{autoClose:this.handleCardToolbarAutoClose.bind(this),showMiniToolbarWhen:null===(e=this.pluginOption)||void 0===e?void 0:e.showMiniToolbarWhen})}},{key:"updateCardToolbarPos",value:function(){aI.updateCardToolbarPos(this.cardRootNode)}},{key:"destroyCardToolbar",value:function(){aI.destroyCardToolbar(this.cardRootNode),this._cardToolbar=null}},{key:"handleCardToolbarAutoClose",value:function(){var e;return"focus"!==(null===(e=this.pluginOption)||void 0===e?void 0:e.showMiniToolbarWhen)}}]),t}(e)}function $7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($7e=function(){return!!e})()}function K7e(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,$7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"getContainerRightToolbarConfig",value:function(){return null}},{key:"onClickContainerRightToolbarBackground",value:function(){this.focusCardTo(IL)}},{key:"showContainerRightToolbar",value:function(){var e,t;if(!(null===(t=(e=this.editor).isNoteMiniEditor)||void 0===t?void 0:t.call(e))){var n=this.editor,r=n.editBox,o=n.innerOverlayContainer;aI.updateContainerRightToolbar(this.cardRootNode,r,o,this._transformContainerRightToolbarConfig(this.getContainerRightToolbarConfig()))}}},{key:"updateContainerRightToolbarPos",value:function(){aI.updateContainerRightToolbarPos(this.cardRootNode)}},{key:"destroyContainerRightToolbar",value:function(){aI.destroyContainerRightToolbar(this.cardRootNode)}},{key:"_transformContainerRightToolbarConfig",value:function(e){return e?Object.assign(Object.assign({},e),{items:z7e(e.items,"containerRight",this),minHeight:this.cardRootNode.getBoundingClientRect().height,paddingLeft:lI,clickBackgroundHandle:this.onClickContainerRightToolbarBackground.bind(this)}):e}}]),t}(e)}function Y7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y7e=function(){return!!e})()}function G7e(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,Y7e()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"getContainerToolbarConfig",value:function(){return null}},{key:"onClickContainerToolbarBackground",value:function(){}},{key:"onContainerToolbarDragStart",value:function(){}},{key:"handleCardContainerToolbarAutoClose",value:function(){var e;return"focus"!==(null===(e=this.pluginOption)||void 0===e?void 0:e.showMiniToolbarWhen)}},{key:"showContainerToolbar",value:function(){var e,t,n=this;if(!(null===(t=(e=this.editor).isNoteMiniEditor)||void 0===t?void 0:t.call(e))){var r=this.editor,o=r.editBox,i=r.innerOverlayContainer,a=r.renderer,l=r.scrollNode,u=aI.updateContainerToolbar(this.cardRootNode,o,i,l,this._transformContainerToolbarConfig(this.getContainerToolbarConfig()));u&&u.on("menuVisibleChange",(function(e){e&&a.focusCard(n.cardRootNode.parentNode)}))}}},{key:"updateContainerToolbarPos",value:function(){aI.updateContainerToolbarPos(this.cardRootNode)}},{key:"destroyContainerToolbar",value:function(){aI.destroyContainerToolbar(this.cardRootNode)}},{key:"_transformContainerToolbarConfig",value:function(e){var t,n=this;if(!e)return e;var r=this.editor.renderer;return Object.assign(Object.assign({},e),{onDragStart:this.onContainerToolbarDragStart.bind(this),onDrop:function(t){var o=t.node,i=t.offset,a=document.createRange();a.setStart(o,i),a.collapse(!0);var l=n.editor.engine.transformDOMRange(a);r.execCommand("moveCard",n._cardID,l.start),e.onDropEnd&&e.onDropEnd({node:o,offset:i})},autoClose:this.handleCardContainerToolbarAutoClose.bind(this),showMiniToolbarWhen:null===(t=this.pluginOption)||void 0===t?void 0:t.showMiniToolbarWhen,items:z7e(e.items,"container",this),minHeight:this.cardRootNode.getBoundingClientRect().height,clickBackgroundHandle:this.onClickContainerToolbarBackground.bind(this)})}}]),t}(e)}function J7e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J7e=function(){return!!e})()}function X7e(e){return function(e){function t(){var e;Ye(this,t);for(var n=arguments.length,r=new Array(n),o=0;o=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function tet(e){var t=function(e){function t(){return Ye(this,t),Q7e(this,t,arguments)}return et(t,e),Ke(t)}(e);return function(e){function t(){return Ye(this,t),Q7e(this,t,arguments)}return et(t,e),Ke(t,[{key:"shouldHideToolbar",value:function(){return!(this.isFocused||this.isHovered||this._cardToolbar&&this._cardToolbar.isFocusOrHover())}},{key:"getToolbarControllerConfig",value:function(){var e=this;return{show:function(){e.showContainerRightToolbar(),e.showCardToolbar(),e.showContainerToolbar()},updatePos:function(){e.updateContainerRightToolbarPos(),e.updateCardToolbarPos(),e.updateContainerToolbarPos()},destroy:function(){e.destroyContainerRightToolbar(),e.destroyCardToolbar(),e.destroyContainerToolbar()}}}},{key:"hover",value:function(e){this.showAllToolbar()}},{key:"handleCardToolbarAutoClose",value:function(){return!0}}]),t}(t=eet([fp,q7e,G7e,X7e,K7e],t))}function net(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{var o=function(){var e=t.value;n.push({type:"react",name:e.name,render:function(){return nc().createElement(e.component,{})}})};for(r.s();!(t=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}return n}}]),t}(Yh.extend(tet));function aet(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{var o=function(){var e=t.value;n.push({type:"react",name:e.name,render:function(){return nc().createElement(e.component,{})}})};for(r.s();!(t=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}return n}}]),t}(rC.extend(DI));function det(e,t,n){return t=Qe(t),Xe(e,fet()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function fet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fet=function(){return!!e})()}function het(e,t,n){return t=Qe(t),Xe(e,pet()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function pet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pet=function(){return!!e})()}var vet=function(e){function t(){var e;return Ye(this,t),e=het(this,t,arguments),Object.defineProperty(Je(e),"prevImgUrl",{enumerable:!0,configurable:!0,writable:!0,value:""}),e}return et(t,e),Ke(t,[{key:"componentWillMount",value:function(){this.prevImgUrl=this.props.cardData.getDisplaySrc()}},{key:"render",value:function(){var e=this,t=this.props,n=t.cardData,r=t.ocr,o=t.lazyLoad,i=t.allowClickToMaximize,a=t.isIntersecting,l=t.innerButtonWidgets;if(n.isValid()){var u=!n.getLink(),c=nc().createElement(uSe,{lazyLoad:o,allowMaximize:!0,clickToMaximize:u&&i,cardData:n,ocr:r,failConfig:this.props.failConfig,onPreviewImage:this.props.onPreviewImage,onImageSizeResolved:this.props.onImageSizeResolved,onLoaded:this.props.onLoaded,isIntersecting:a,generateDisplayUrl:this.props.generateDisplayUrl,setDisplayUrl:this.props.setDisplayUrl,innerButtonWidgets:l,themeSelector:this.props.themeSelector});if(n.getLink()){var s=n.isOpenLinkInSelf()?{}:{target:"_blank",rel:"noopener noreferrer"};return nc().cloneElement(c,Object.assign(Object.assign({},c.props),{linkProps:Object.assign(Object.assign({href:xh.sanitizeUrl(n.getLink())},s),{onClick:function(t){"function"==typeof e.props.onOpenLink&&(t.preventDefault(),e.props.onOpenLink())}})}))}return c}return nc().createElement(DPe,{width:n.getDisplayWidth(),height:n.getDisplayHeight(),onLoaded:this.props.onLoaded})}}]),t}(tc.Component);function met(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(met=function(){return!!e})()}function get(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,met()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"_displayUrl",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"setDisplayUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e._displayUrl=t}}),Object.defineProperty(Je(e),"getDisplayUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.cardData.getDisplaySrc()}}),Object.defineProperty(Je(e),"previewAllImage",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.cardNode.getAllImages();if(t){var n=0,r=t.map((function(t,r){return t.id===e.id&&(n=r),{src:t.src,msrc:t.msrc,size:t.size,w:t.width,h:t.height,layoutSelf:t.layoutSelf}}));e.viewer.emitEvent("previewImgs",r,n)}}}),e}return et(t,e),Ke(t,[{key:"isAsyncUI",value:function(){return!0}},{key:"init",value:function(){var e=this,t=!1;if(this.plugin.intersectionObserver&&this.pluginOption.lazyLoad){var n=this.containerNode.closest("ne-card");this.plugin.intersectionObserver.observe(n,(function(t,n){t.isIntersecting&&(e.uiViewProxy.rerender({isIntersecting:!0}),n.unobserve(t.target))})),kc(this,window,"beforeprint",(function t(){e.uiViewProxy.rerender({isIntersecting:!0}),e.plugin.intersectionObserver.unobserve(n),window.removeEventListener("beforeprint",t)}))}else t=!0;this.uiViewProxy=Iwe.render(vet,{themeSelector:function(){return e.viewer.theme.getThemeSelector()},cardData:this.cardData,ocr:this.pluginOption.isShowOcr()&&(this.pluginOption.supportImgOCR||!!this.plugin.viewer.option.get("supportImgOCR")),lazyLoad:this.pluginOption.lazyLoad,allowClickToMaximize:this.pluginOption.allowClickToMaximize,isIntersecting:t,generateDisplayUrl:this.getDisplayUrl,failConfig:this.pluginOption.failConfig,setDisplayUrl:this.setDisplayUrl,onPreviewImage:this.previewAllImage,onImageSizeResolved:function(t){var n=t.width,r=t.height;e.cardData.setImageOriginSize(n,r)},onLoaded:function(){e.loaded()},onOpenLink:function(){var t=e.cardData.isOpenLinkInSelf(),n=e.cardData.getLink();n&&e.viewer.emitEvent("visitLink",n,!t)},innerButtonWidgets:this.pluginOption.innerButtonWidgets.map((function(t){return Object.assign(Object.assign({},t),{execute:function(){t.execute(e)},enable:"function"==typeof t.enable?function(){return t.enable(e)}:function(){return!!t.enable}})}))},this.containerNode),this.cardData.showTitle()&&this.cardRootNode.classList.add("ne-image-card-show-title")}},{key:"destroy",value:function(){this.plugin.intersectionObserver&&this.plugin.intersectionObserver.unobserve(this.containerNode.closest("ne-card")),nu().unmountComponentAtNode(this.containerNode),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}var bet=get;function yet(e,t,n){return t=Qe(t),Xe(e,wet()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wet=function(){return!!e})()}var ket=function(e){function t(){var e;return Ye(this,t),e=yet(this,t,arguments),Object.defineProperty(Je(e),"_cardUI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerUI&&(t.$CardUI=this.pluginOption.viewerUI),this._cardUI=this.viewer.createCardUI(this)}},{key:"destroy",value:function(){var e;Cr(Qe(t.prototype),"destroy",this).call(this),null===(e=this._cardUI)||void 0===e||e.destroy(),this._cardUI=null}},{key:"getImageDisplaySrc",value:function(){return this._cardUI.getDisplayUrl()}},{key:"getAllImages",value:function(){var e=this.plugin.cardNodes;return e?e.map((function(e){if(!e.isConnected)return null;var t=e.cardData,n=t.getPreviewSrc();if(!n)return null;var r={id:e.id,src:n,msrc:e.getImageDisplaySrc()||n,size:t.getSize(),width:t.getRotationCropWidth(),height:t.getRotationCropHeight(),style:t.getStyle(),__spacing:t.getCardSpacing()};return t.isAfterEdit()&&t.isAfterEdit()&&(r.layoutSelf=function(){var e=document.createElement("div");return(null==n?void 0:n.startsWith("javascript:"))||(e.innerHTML='
')),e}),r})).filter(Boolean):null}}]),t}(zw);function Cet(e,t,n){return t=Qe(t),Xe(e,_et()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function _et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_et=function(){return!!e})()}Object.defineProperty(ket,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:get(oC()())}),Object.defineProperty(ket,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:lM}),window.addEventListener("beforeprint",(function(){document.querySelectorAll('.ne-viewer img[loading="lazy"]').forEach((function(e){e.loading="eager"}))}));var Net=function(e){function t(){var e;return Ye(this,t),e=Cet(this,t,arguments),Object.defineProperty(Je(e),"_intersectionObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerInlineCard(this,fM.cardName,ket)}},{key:"intersectionObserver",get:function(){var e=!!new URL(document.location).searchParams.get("translate");return this._intersectionObserver||e||(this._intersectionObserver=Ds((function(){}),{rootMargin:"1000px 0px"})),this._intersectionObserver}}]),t}(Lw);function Oet(e,t,n){return t=Qe(t),Xe(e,xet()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function xet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xet=function(){return!!e})()}Object.defineProperty(Net,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:fM.pluginName}),Object.defineProperty(Net,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:VSe});var Eet=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Det=tc.forwardRef((function(e,t){var n=e.className,r=e.component,o=e.viewBox,i=e.spin,a=e.rotate,l=e.tabIndex,u=e.onClick,c=e.children,s=cC(e,Eet);_N(Boolean(r||c),"Should have `component` prop or `children`."),PN();var d=tc.useContext(O_),f=d.prefixCls,h=void 0===f?"anticon":f,p=d.rootClassName,v=uC()(p,h,n),m=uC()(Ja({},"".concat(h,"-spin"),!!i)),g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=dC(dC({},RN),{},{className:m,style:g,viewBox:o});o||delete b.viewBox;var y=l;return void 0===y&&u&&(y=-1),tc.createElement("span",dC(dC({role:"img"},s),{},{ref:t,tabIndex:y,onClick:u,className:v}),r?tc.createElement(r,dC({},b),c):c?(_N(Boolean(o)||1===tc.Children.count(c)&&tc.isValidElement(c)&&"use"===tc.Children.only(c).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),tc.createElement("svg",dC(dC({},b),{},{viewBox:o}),c)):null)}));Det.displayName="AntdIcon";const Ret=Det;var Pet=["type","children"],Tet=new Set;function Aet(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e[n];if(t=r,Boolean("string"==typeof t&&t.length&&!Tet.has(t))){var o=document.createElement("script");o.setAttribute("src",r),o.setAttribute("data-namespace",r),e.length>n+1&&(o.onload=function(){Aet(e,n+1)},o.onerror=function(){Aet(e,n+1)}),Tet.add(r),document.body.appendChild(o)}}function jet(e,t,n){return t=Qe(t),Xe(e,Iet()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Iet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Iet=function(){return!!e})()}var Bet={"t-bold":"icon-bold","t-italic":"icon-italic","t-strikethrough":"icon-strikethrough","t-underline":"icon-underline","t-fullscreen":"icon-expand","t-exit-fullscreen":"icon-collapse","t-border-visible":"icon-editor-toggleBorder","t-table-cell-merge":"icon-editor-mergeCell","t-equally-column":"icon-t-equally-column","c-tb-maximize":"icon-maximize","toc-hide":"icon-toc-hide","toc-eye":"icon-toc-eye","toc-fold":"icon-toc-fold","toc-unfold":"icon-toc-unfold","icon-loading-desk":"icon-loading-desk","insertion-order":"icon-insertion-order",question:"icon-question","card-columns-2":"icon-card-columns-2","card-columns-3":"icon-card-columns-3","card-columns-4":"icon-card-columns-4","card-image":"icon-image","card-tb-title-view":"icon-tb-title-view","card-tb-card-view":"icon-tb-card-view","t-alignment-left":"icon-textalign-left","t-alignment-right":"icon-textalign-right","t-alignment-center":"icon-textalign-center","t-alignment-justify":"icon-textalign-justify","t-middle-align":"icon-textalign-middle","t-bottom-align":"icon-textalign-bottom","t-top-align":"icon-textalign-top","t-insert-card":"icon-insert-card","t-moremark":"icon-t-moremark","t-superscript":"icon-editor-sup","t-subscript":"icon-editor-sub","t-code":"icon-editor-inlinecode","t-unorder-list":"icon-editor-unorderedList","t-order-list":"icon-editor-orderedList","t-task-list":"icon-editor-taskList","t-quote":"icon-editor-quote","t-link":"icon-editor-link","t-hr":"icon-editor-hr","t-searchreplace":"icon-editor-findandreplace",check:"icon-check",close:"icon-delete",download:"icon-download",add:"icon-add","index-todo-list":"icon-index-todo-list","o-visit-link":"icon-o-visit-link","o-edit":"icon-o-edit","o-unlink":"icon-o-unlink","editor-indent":"icon-indent","editor-outdent":"icon-outdent","column-adaptation":"icon-column-adaptation","editor-undo":"icon-undo","editor-redo":"icon-redo","action-copy":"icon-action-copy","icon-delete":"icon-action-delete","c-tb-copy":"icon-action-copy","c-tb-delete":"icon-action-delete","t-remove":"icon-action-delete","more-horizontal":"icon-more-horizontal","arrow-up":"icon-arrow-up","arrow-left":"icon-arrow-left","arrow-down":"icon-arrow-down","arrow-right":"icon-arrow-right","review-arrow-up":"icon-review-arrow-up","review-arrow-left":"icon-review-arrow-left","review-arrow-down":"icon-review-arrow-down",ReviewArrowDown:"icon-review-arrow-down",collapsed:"icon-review-arrow-down","review-arrow-right":"icon-review-arrow-right",ReviewArrowRight:"icon-review-arrow-right","up-arrow":"icon-up-arrow","left-arrow":"icon-left-arrow","down-arrow":"icon-down-arrow","right-arrow":"icon-right-arrow",drag:"icon-drag","menu-card-search":"icon-search","editor-format-painter":"icon-editor-formatPainter","editor-clear-format":"icon-editor-clearFormat","editor-lineHeight":"icon-editor-lineHeight","editor-fontsize":"icon-editor-fontsize","card-h1":"icon-editor-h1","card-h2":"icon-editor-h2","card-h3":"icon-editor-h3","card-h4":"icon-editor-h4","card-h5":"icon-editor-h5","card-h6":"icon-editor-h6","editor-main-image":"icon-图片-light","editor-main-imageDark":"icon-图片","editor-main-table":"icon-表格-light","editor-main-tableDark":"icon-表格","editor-main-attachment":"icon-附件-light","editor-main-attachmentDark":"icon-附件","editor-main-status":"icon-状态-light","editor-main-statusDark":"icon-状态","editor-main-reference":"icon-引用-light","editor-main-referenceDark":"icon-引用","editor-main-split-line":"icon-分割线-light","editor-main-split-lineDark":"icon-分割线","editor-main-highlight-block":"icon-高亮块-light","editor-main-highlight-blockDark":"icon-高亮块","editor-main-column-splitting":"icon-分栏-light","editor-main-column-splittingDark":"icon-分栏","editor-main-three-columns":"icon-三栏-light","editor-main-three-columnsDark":"icon-三栏","editor-main-four-columns":"icon-四栏-light","editor-main-four-columnsDark":"icon-四栏","editor-main-folding-block":"icon-折叠块-light","editor-main-folding-blockDark":"icon-折叠块","editor-main-code-block":"icon-代码块-light","editor-main-code-blockDark":"icon-代码块","editor-main-formula":"icon-公式-light","editor-main-formulaDark":"icon-公式","editor-main-local-file":"icon-本地文件-light","editor-main-local-fileDark":"icon-本地文件","editor-main-local-video":"icon-本地视频-light","editor-main-local-audio":"icon-本地音频-light","editor-main-local-audioDark":"icon-本地音频","editor-main-local-videoDark":"icon-本地视频","editor-main-task-list":"icon-任务列表-light","editor-main-task-listDark":"icon-任务列表","editor-main-ordered-list":"icon-有序列表-light","editor-main-ordered-listDark":"icon-有序列表","editor-main-unordered-list":"icon-无序列表-light","editor-main-unordered-listDark":"icon-无序列表","editor-main-title-1":"icon-标题1-light","editor-main-title-1Dark":"icon-标题1","editor-main-title-2":"icon-标题2-light","editor-main-title-2Dark":"icon-标题2","editor-main-title-3":"icon-标题3-light","editor-main-title-3Dark":"icon-标题3","editor-main-title-4":"icon-标题4-light","editor-main-title-4Dark":"icon-标题4","editor-main-title-5":"icon-标题5-light","editor-main-title-5Dark":"icon-标题5","editor-main-title-6":"icon-标题6-light","editor-main-title-6Dark":"icon-标题6","editor-main-inline-code":"icon-行内代码-light","editor-main-inline-codeDark":"icon-行内代码","editor-main-link":"icon-链接-light","editor-main-linkDark":"icon-链接link","editor-main-aite":"icon-艾特-light","editor-main-aiteDark":"icon-艾特","editor-main-calendar":"icon-日历-light","editor-main-calendarDark":"icon-日历","editor-main-text-drawing":"icon-文本绘图-light","editor-main-text-drawingDark":"icon-文本绘图",dateDark:"icon-date",date:"icon-date_light","preview-new":"icon-ne-preview-new","ext-default":"icon-ext-default","table-head":"icon-table-head","row-head":"icon-row-head",brush:"icon-brush","col-head":"icon-col-head","card-tb-embed-view":"icon-embed-view"},Met=function(e){function t(){var e;return Ye(this,t),e=jet(this,t,arguments),Object.defineProperty(Je(e),"_cancelObserveThemeChange",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e,t=this;this._cancelObserveThemeChange=(null===(e=tD.themeObserver)||void 0===e?void 0:e.observe((function(){t.forceUpdate()})))||null}},{key:"componentWillUnmount",value:function(){var e;null===(e=this._cancelObserveThemeChange)||void 0===e||e.call(this)}},{key:"render",value:function(){var e;if(!this.props.type)return null;var t=this._transformLarkIconName(this.props.type);t=Bet[t]?t:this.props.type;var n=this.props.size,r=Kf(this.props.className,"ne-icon","ne-icon-kitchen","ne-icon-"+t),o={};n&&(o.fontSize=n+"px");var i="dark"===(null===(e=tD.themeObserver)||void 0===e?void 0:e.current)&&Bet[t+"Dark"]?Bet[t+"Dark"]:Bet[t],a=nc().createElement("svg",{className:"ne-icon-symbol","aria-hidden":!0},nc().createElement("use",{xlinkHref:"#".concat(i)}));return nc().createElement("div",{className:r,"data-name":t,style:o},a)}},{key:"_transformLarkIconName",value:function(e){return e.replace(/^[a-z]|-[a-z0-9]/g,(function(e){return(e=e.toUpperCase())[1]||e[0]}))}}]),t}(nc().Component);!function(){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=void 0===n?{}:n;t&&"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&(Array.isArray(t)?Aet(t.reverse()):Aet([t])),tc.forwardRef((function(e,t){var n=e.type,o=e.children,i=cC(e,Pet),a=null;return e.type&&(a=tc.createElement("use",{xlinkHref:"#".concat(n)})),o&&(a=o),tc.createElement(Ret,dC(dC(dC({},r),i),{},{ref:t}),a)})).displayName="Iconfont"}({scriptUrl:arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.KITCHEN_URL||"https://mdn.alipayobjects.com/design_kitchencore/afts/file/ANSZQ7GHQPMAAAAAAAAAAAAADhulAQBr"})}(),tD.shouldRenderCustom=function(e){return!!Bet[e]},tD.renderCustom=function(e){return nc().createElement(Met,Object.assign({},e))},tD.getSvgIcon=function(){return null},tD.renderFallback=function(e){return nc().createElement(Met,Object.assign({},e))};var Fet=(new Py).registerEditorPlugin(GJe).registerRenderPlugin(w7e).registerKernelPlugin(Nde);function Let(e,t,n){var r,o,i;if(n){var a=(null===(r=n.editorPlugins)||void 0===r?void 0:r.filter((function(e){return!Fet.editorPlugins.includes(e)})))||[],l=(null===(o=n.renderPlugins)||void 0===o?void 0:o.filter((function(e){return!Fet.renderPlugins.includes(e)})))||[],u=(null===(i=n.kernelPlugins)||void 0===i?void 0:i.filter((function(e){return!Fet.kernelPlugins.includes(e)})))||[];Fet.registerEditorPlugin(a).registerRenderPlugin(l).registerKernelPlugin(u)}var c=function(e){var t;return e.file&&(t=e.file)&&(!t.editBlockUI&&t.blockMiniToolbar&&(t.editBlockUI=function(e){function n(){var e;return Ye(this,n),e=det(this,n,arguments),Object.defineProperty(Je(e),"miniToolbarPreOption",{enumerable:!0,configurable:!0,writable:!0,value:null==t?void 0:t.blockMiniToolbar}),e}return et(n,e),Ke(n)}(iet.extend(NAe))),!t.editInlineUI&&t.inlineMiniToolbar&&(t.editInlineUI=function(e){function n(){var e;return Ye(this,n),e=det(this,n,arguments),Object.defineProperty(Je(e),"miniToolbarPreOption",{enumerable:!0,configurable:!0,writable:!0,value:null==t?void 0:t.inlineMiniToolbar}),e}return et(n,e),Ke(n)}(iet.extend(WAe)))),e.image&&function(e){e&&(e.editUI||(!e.showMiniToolbarWhen&&(e.showMiniToolbarWhen="focus"),e.editUI=function(t){function n(){var t;return Ye(this,n),t=Oet(this,n,arguments),Object.defineProperty(Je(t),"miniToolbarPreOption",{enumerable:!0,configurable:!0,writable:!0,value:null==e?void 0:e.miniToolbar}),t}return et(n,t),Ke(n,[{key:"shouldHideToolbar",value:function(){var e,t=null===(e=this.pluginOption)||void 0===e?void 0:e.showMiniToolbarWhen,n=!0;return"hover"!==t&&t||(n=!(this.isFocused||this.isHovered||this._cardToolbar&&this._cardToolbar.isFocusOrHover())),"focus"===t&&(n=!(this.isFocused||this._cardToolbar&&this._cardToolbar.isFocusOrHover())),n}},{key:"onAfterCardFocus",value:function(){this.refreshToolbar()}},{key:"onBeforeCardBlur",value:function(){this.hideAllToolbar()}}]),n}(iet.extend(hSe))))}(e.image),e}(t);return Fet.createEditor(e,Xf(function(e){return{typography:"classic",layout:"adapt",scrollNode:function(){return e.querySelector(".ne-editor-wrap")||document.scrollingElement||document.body},alert:bRe,toolbar:dwe,slash:ofe,file:Ede,fileReader:Rde,image:Pde,mention:Tde,video:fwe,link:Sde,toc:hwe}}(e),c))}var Uet=[sfe.tableCellBgColor,sfe.tableBorderVisible,sfe.tableVerticalAlign,sfe.tableMergeCell],Vet=function(){function e(t){Ye(this,e),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.items=t||dwe.agentConfig.table.items}return Ke(e,[{key:"append",value:function(e){return this.items=this.items.concat(e),this}},{key:"insertBefore",value:function(e,t){if(!t)return this.append(e);var n=this.items.indexOf(t);return-1===n?(this.append(e),this):(this.items=[].concat(pn(this.items.slice(0,n)),pn(Array.isArray(e)?e:[e]),pn(this.items.slice(n))),this)}},{key:"removeItems",value:function(e){return Array.isArray(e)?(this.items=this.items.filter((function(t){return!e.includes(t)})),this):this.removeItems([e])}},{key:"filterTablesItems",value:function(){return this.items.filter((function(e){return!Uet.includes(e)}))}},{key:"getOption",value:function(){return{agentConfig:Object.assign(Object.assign({},dwe.agentConfig),Ja(Ja({},cfe.TABLE,{items:this.items}),cfe.DEFAULT,{items:this.filterTablesItems()})),force:!0,customComponent:Object.assign({},dwe.customComponent)}}}],[{key:"start",value:function(t){return new e(t)}}]),e}();Object.defineProperty(Vet,"toolbarItems",{enumerable:!0,configurable:!0,writable:!0,value:sfe});var Het={anchor:!1,folding:!0},zet={protectURL:!0};function Wet(e,t,n){return t=Qe(t),Xe(e,qet()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qet=function(){return!!e})()}var $et=function(e){function t(){var e;return Ye(this,t),e=Wet(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._rootNode=hd("ne-alert")}},{key:"getMainDOMNode",value:function(){return this._rootNode}}]),t}(ok);function Ket(e,t,n){return t=Qe(t),Xe(e,Yet()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Yet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yet=function(){return!!e})()}var Get=function(e){function t(){return Ye(this,t),Ket(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator("type",new lXe),e.registerBoxNode("alert",$et)}}]),t}(Lw);function Jet(e,t,n){return t=Qe(t),Xe(e,Xet()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Xet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xet=function(){return!!e})()}Object.defineProperty(Get,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"alert"}),Object.defineProperty(Get,"Colors",{enumerable:!0,configurable:!0,writable:!0,value:jRe});var Qet=function(e){function t(){return Ye(this,t),Jet(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator(TF.attr.alignment,new yXe)}}]),t}(Lw);function Zet(e,t,n){return t=Qe(t),Xe(e,ett()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ett(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ett=function(){return!!e})()}Object.defineProperty(Qet,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:TF.pluginName});var ttt=function(e){function t(){return Ye(this,t),Zet(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator({bold:new OXe("bold"),italic:new OXe("italic"),underline:new OXe("underline"),strikethrough:new OXe("strikethrough"),emoji:new OXe("emoji")})}}]),t}(Lw);function ntt(e,t,n){return t=Qe(t),Xe(e,rtt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rtt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rtt=function(){return!!e})()}Object.defineProperty(ttt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:tL.pluginName});var ott=function(e){function t(){return Ye(this,t),ntt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator(hU.attr.bgColor,new SXe(e))}}]),t}(Lw);Object.defineProperty(ott,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:hU.pluginName});var itt={isExport:!1,exportType:"",preventCopy:!1,preventCopyContainer:null,preventCopyMessage:null,optimizeGlobalViewerCopy:!1,optimizeViewerCopy:!0,docMaxWidth:void 0,globalCopyHelper:!0},att=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},itt,t)}return Ke(e,[{key:"isExport",get:function(){return this._option.isExport}},{key:"exportType",get:function(){return this._option.exportType}},{key:"preventCopy",get:function(){return this._option.preventCopy}},{key:"preventCopyContainer",get:function(){return this._option.preventCopyContainer}},{key:"preventCopyMessage",get:function(){return this._option.preventCopyMessage}},{key:"optimizeGlobalViewerCopy",get:function(){return"function"==typeof this._option.optimizeGlobalViewerCopy?this._option.optimizeGlobalViewerCopy():this._option.optimizeGlobalViewerCopy}},{key:"optimizeViewerCopy",get:function(){return"function"==typeof this._option.optimizeViewerCopy?this._option.optimizeViewerCopy():this._option.optimizeViewerCopy}},{key:"docMaxWidth",get:function(){return this._option.docMaxWidth}},{key:"globalCopyHelper",get:function(){return this._option.globalCopyHelper}}]),e}();function ltt(e,t,n){return t=Qe(t),Xe(e,utt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function utt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(utt=function(){return!!e})()}Object.defineProperty(att,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"clipboard"});var ctt=function(e){function t(){var e;return Ye(this,t),e=ltt(this,t,arguments),Object.defineProperty(Je(e),"_copyNode",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("span")}),Object.defineProperty(Je(e),"_initted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"getState",value:function(){return pt}},{key:"getValue",value:function(){return!1}},{key:"init",value:function(){this._initted||(this._copyNode.className="ne-viewer-hidden-copy-node",this._copyNode.innerText="",document.body.appendChild(this._copyNode),this._initted=!0)}},{key:"execute",value:function(e){this.init();var t=document.getSelection();if(t){var n=t.focusNode,r=t.focusOffset,o=t.anchorNode,i=t.anchorOffset,a=document.createRange();a.selectNodeContents(this._copyNode),t.removeAllRanges(),t.addRange(a);var l=null;e&&(l=this.viewer.transformDOMRangeToViewRange(e)),this.plugin.setNextEventData({range:l});try{return document.execCommand("copy")}catch(e){return console.error(e),!1}finally{this.plugin.clearNextEventData(),t.setBaseAndExtent(o,i,n,r)}}}}]),t}(Aw);Object.defineProperty(ctt,"ID",{enumerable:!0,configurable:!0,writable:!0,value:NV.command.copy});var stt="text/html";function dtt(e,t,n){return t=Qe(t),Xe(e,ftt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ftt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ftt=function(){return!!e})()}var htt=function(e){function t(){var e;return Ye(this,t),e=dtt(this,t,arguments),Object.defineProperty(Je(e),"_nextEventData",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_handlePreventCopy",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=HXe.currentRange(),r=e.option,o=r.preventCopyContainer,i=r.preventCopyMessage;if(o||(o=e.viewer.domRootNode),n&&o){var a=n.startContainer,l=n.endContainer,u=n.commonAncestorContainer;(o.contains(a)||o.contains(l)||u.contains(o))&&(null==i||i(),t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault())}}}),Object.defineProperty(Je(e),"_handleGlobalCopy",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.option.optimizeViewerCopy&&e._nextEventData&&(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),e._doCopy(t))}}),Object.defineProperty(Je(e),"_handleCopy",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n;if(e.option.optimizeViewerCopy){var r=null===(n=document.getSelection())||void 0===n?void 0:n.getRangeAt(0);if(r){var o=e.viewer.domRootNode;xc(r.commonAncestorContainer,o)||Ec(r.startContainer,"block",o)||Ec(r.endContainer,"block",o)||e._isInSameViewer(r)&&(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),e._doCopy(t))}}}}),Object.defineProperty(Je(e),"_isInSameViewer",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e._getViewerNode(t.startContainer),r=e._getViewerNode(t.endContainer);return n&&r&&n===r}}),Object.defineProperty(Je(e),"_getViewerNode",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return Nc(e,Xw)}}),Object.defineProperty(Je(e),"_isViewerSelection",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return null!==e._getViewerNode(t)}}),Object.defineProperty(Je(e),"_handleCrossCopy",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.clipboardData,r=HXe.currentRange();if(r&&!e._isInSameViewer(r)){var o=e._isViewerSelection(r.startContainer),i="";o&&(i=Nc(r.startContainer,Xw).getAttribute("id"));var a=e._isViewerSelection(r.endContainer),l="";a&&(l=Nc(r.endContainer,Xw).getAttribute("id"));var u=r.cloneContents(),c=pn(u.querySelectorAll(Xw));if((null==c?void 0:c.length)>0){t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),c.forEach((function(e){var t,n,o=e.getAttribute("id"),a=document.querySelector('[id="'.concat(o,'"]')),u=a.querySelector(Qw),c=a._viewer,s=document.createElement("div");if(o===i||o===l){var d=document.createRange();o===i?(d.setStart(r.startContainer,r.startOffset),d.setEnd(u.lastChild,(null===(n=null===(t=u.lastChild)||void 0===t?void 0:t.childNodes)||void 0===n?void 0:n.length)||0)):(d.setStart(u.firstChild,0),d.setEnd(r.endContainer,r.endOffset));var f=HXe.transformRange(d,a).ranges[0],h=c.viewer.transformDOMRangeToViewRange(f);if(h){var p=c._kernel.execCommand(NV.command.copy,h);s.innerHTML=p[stt]||""}else s.innerHTML=""}else s.innerHTML=c.getDocument(stt,{mode:ML});e.parentNode.replaceChild(s,e)}));var s=document.createElement("div");s.appendChild(u),n.setData(stt,s.innerHTML),n.setData("text/plain",s.innerText)}}}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.option.preventCopy&&(e.onDocument("copy",(function(e){return t._handlePreventCopy(e)})),e.onForceRootNode("copy",(function(e){return t._handlePreventCopy(e)})),(this.option.preventCopyContainer||this.viewer.domRootNode).addEventListener("contextmenu",(function(e){e.preventDefault()}))),e.onForceRootNode("copy",(function(e){return t._handleCopy(e)})),kc(this,document,"copy",this._handleGlobalCopy,!1),this.option.optimizeGlobalViewerCopy}},{key:"setNextEventData",value:function(e){this._nextEventData=e}},{key:"clearNextEventData",value:function(){this._nextEventData=null}},{key:"_doCopy",value:function(e){var t,n=e.clipboardData,r=this.kernel.execCommand(NV.command.copy,null===(t=this._nextEventData)||void 0===t?void 0:t.range,{isExport:this.option.isExport,exportType:this.option.exportType,docMaxWidth:this.option.docMaxWidth});if(!r||!n)return!1;TQe(r,n)}}]),t}(Lw);function ptt(e,t,n){return t=Qe(t),Xe(e,vtt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function vtt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vtt=function(){return!!e})()}Object.defineProperty(htt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:NV.pluginName}),Object.defineProperty(htt,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(att)}),Object.defineProperty(htt,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[ctt]});var mtt=function(e){function t(){var e;return Ye(this,t),e=ptt(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._rootNode=hd("ne-code"),this._contentNode=hd("ne-code-content"),this._rootNode.appendChild(this._contentNode),this._updateFontSize()}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_updateFontSize",value:function(){var e=Math.max.apply(Math,pn(this.modelNode.children.map((function(e){return e.attrs.fontsize||0}))));this._contentNode.style.fontSize=0===e?"":e+"px"}}]),t}(ok);function gtt(e,t,n){return t=Qe(t),Xe(e,btt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function btt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(btt=function(){return!!e})()}var ytt=function(e){function t(){return Ye(this,t),gtt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t){e.registerBoxNode("code",mtt)}}]),t}(Lw);function wtt(e,t,n){return t=Qe(t),Xe(e,ktt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ktt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ktt=function(){return!!e})()}Object.defineProperty(ytt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:HV.pluginName});var Ctt=function(e){function t(){return Ye(this,t),wtt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator(zH.attr.color,new $Qe(e))}}]),t}(Lw);function _tt(e,t,n){return t=Qe(t),Xe(e,Ntt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ntt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ntt=function(){return!!e})()}Object.defineProperty(Ctt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:zH.pluginName});var Ott=function(e){function t(){return Ye(this,t),_tt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;hRe(this.cardRootNode,(function(t,n,r){e.viewer.emitEvent("visitLink",n,r)})),this.cardRootNode.innerHTML='\n
\n
\n \n
\n
').concat(this.pluginOption.getMainTip(),'
\n
').concat(this.pluginOption.getSubTip(),"
\n
\n
\n
\n ")}}]),t}(Ww);function xtt(e,t,n){return t=Qe(t),Xe(e,Ett()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ett(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ett=function(){return!!e})()}Object.defineProperty(Ott,"imgResource",{enumerable:!0,configurable:!0,writable:!0,value:"https://gw.alipayobjects.com/zos/bmw-prod/dc01c10b-e433-4bb3-bf7e-8b679725b823.svg"});var Dtt=function(e){function t(){return Ye(this,t),xtt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;hRe(this.cardRootNode,(function(t,n,r){e.viewer.emitEvent("visitLink",n,r)})),this.cardRootNode.innerHTML='\n
\n
\n \n
\n
').concat(this.pluginOption.getMainTip(),'
\n
\n
').concat(this.pluginOption.getSubTip(),"
\n
\n
\n
\n
\n ").replace(/\s*\n+\s*/g,"")}}]),t}(zw);function Rtt(e,t,n){return t=Qe(t),Xe(e,Ptt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ptt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ptt=function(){return!!e})()}Object.defineProperty(Dtt,"imgResource",{enumerable:!0,configurable:!0,writable:!0,value:"https://gw.alipayobjects.com/zos/bmw-prod/1a587ec9-10ac-4204-96f4-f259c5f6c2c7.svg"});var Stt=function(e){function t(){return Ye(this,t),Rtt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t){e.registerBlockCard(this,"block",Ott),e.registerInlineCard(this,"inline",Dtt)}}]),t}(Lw);function Ttt(e,t,n){return t=Qe(t),Xe(e,Att()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Att(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Att=function(){return!!e})()}Object.defineProperty(Stt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:kW.pluginName}),Object.defineProperty(Stt,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(JTe)});var jtt=function(e){function t(){return Ye(this,t),Ttt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t){e.registerAttrTranslator("fontsize",new mZe),t.on("document.create",(function(){var t=e.queryCommandValue("defaultFontsize");t&&e.domRootNode.classList.add("fz".concat(t))}))}}]),t}(Lw);function Itt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(this.viewer.inCollapsedNodes);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.isInCollapsed||(null===(e=o.$unCollapsed)||void 0===e||e.call(o),n.push(o))}}catch(e){r.e(e)}finally{r.f()}this.viewer.removeInCollapsedNodes(n)}}},{key:"destroy",value:function(){this._headingPlugin=null,this.viewer=null,this._cacheHeadingDOM=null,this._needCollapsed=null,this.removeAllListeners()}}]),t}(ut);function Ltt(e,t,n){return t=Qe(t),Xe(e,Utt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Utt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Utt=function(){return!!e})()}var Vtt=function(e){function t(){var e;return Ye(this,t),e=Ltt(this,t,arguments),Object.defineProperty(Je(e),"id",{enumerable:!0,configurable:!0,writable:!0,value:rt(t.ID)}),e}return et(t,e),Ke(t)}(Bw);function Htt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ztt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ztt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ztt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n').concat(this._getIndexText(),""),v1e(this.viewer,this._indexNode,this.modelNode.attrs.indexStyle)}},{key:"_getIndexText",value:function(){var e=this.modelNode.attrs,t=e.index,n=e.level,r=void 0===n?0:n,o=e.parentIndex,i=void 0===o?[]:o,a=e.indexType;return g1(t,r,i,void 0===a?0:a)}}]),t}(ok);function Knt(e,t,n){return t=Qe(t),Xe(e,Ynt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ynt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ynt=function(){return!!e})()}var Gnt=function(e){function t(){var e;return Ye(this,t),e=Knt(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_checkbox",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_checkedClassName",{enumerable:!0,configurable:!0,writable:!0,value:"ne-checkbox-checked"}),Object.defineProperty(Je(e),"_taskListModel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_enableDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._rootNode=hd(JZ.domNode.tli),this._checkbox=hd(JZ.domNode["tli-i"],{className:["ne-checkbox",this.modelNode.attrs.checked?this._checkedClassName:"",this._enableDynamic?"":"ne-checkbox-cursor-default"]}),this._checkbox.appendChild(hd("span",{className:"ne-checkbox-inner"})),this._contentNode=hd(JZ.domNode["tli-c"],{className:"ne-oli-content"}),this._contentNode.setAttribute("id",this.modelNode.id),this._contentNode.setAttribute("data-lake-id",this.modelNode.id),this._rootNode.appendChild(this._checkbox),this._rootNode.appendChild(this._contentNode),this.pluginContext.useTaskListDataService()&&(this._taskListModel=this.pluginContext.initTaskListNodeModel(this.modelNode),this._bindDOMEvent())}},{key:"_bindDOMEvent",value:function(){var e=this;kc(this,this._checkbox,"click",(function(){e.viewer.execCommand("taskStatus",e.modelNode.id)}),!1)}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"updateAttribute",value:function(e){this.syncAttr(),this._taskListModel&&this._taskListModel.syncData(),iC.syncDOMAttrChange(this._rootNode,e)}},{key:"syncAttr",value:function(){var e=this._checkbox;this.modelNode.attrs.checked?e.classList.add(this._checkedClassName):e.classList.remove(this._checkedClassName)}}]),t}(ok);function Jnt(e,t,n){return t=Qe(t),Xe(e,Xnt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Xnt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xnt=function(){return!!e})()}var Qnt=function(e){function t(){var e;return Ye(this,t),e=Jnt(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_indexNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;this._rootNode=hd(JZ.domNode.uli),this._indexNode=hd(JZ.domNode["uli-i"]),this._contentNode=hd(JZ.domNode["uli-c"],{className:"ne-uli-content"}),this._contentNode.setAttribute("id",this.modelNode.id),this._contentNode.setAttribute("data-lake-id",this.modelNode.id),this._resetIndexSymbol(),this._rootNode.appendChild(this._indexNode),this._rootNode.appendChild(this._contentNode);var t={destroy:function(){}};jc(t,this.viewer.theme,"themeChange",(function(){v1e(e.viewer,e._indexNode,e.modelNode.attrs.indexStyle)})),this.document.once("beforedestroy",(function(){t.destroy()}))}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_resetIndexSymbol",value:function(){this._indexNode.innerHTML=''.concat(this._getIndexText(),""),v1e(this.viewer,this._indexNode,this.modelNode.attrs.indexStyle)}},{key:"_getIndexText",value:function(){var e=this.modelNode.attrs.level;return z1(void 0===e?0:e)}}]),t}(ok);function Znt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&this.monitorNodes.splice(t,1),n&&n.remove(),this.node2DomMap.delete(e)}},{key:"getInitialHeadingIndex",value:function(){var e=this.getInitialIndex(this.viewer),t=e.pop(),n=Number.MAX_VALUE;return Array.isArray(t)?n=e.pop():(n=t,t=[0,0,0,0,0,0]),[e,n,t]}},{key:"modify",value:function(){var e,t,n=this,r=null===(e=this.viewer.kernel.document)||void 0===e?void 0:e.rootNode;if(r){var o,i=cn(this.getInitialHeadingIndex(),3),a=i[0],l=i[1],u=i[2],c=[],s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Znt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Znt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(r.children);try{var d=function(){var e=o.value;if(e.hasCategory(ze.Heading)){var t=Number(e.nodeName.slice(1))-1;if(a=a.slice(0,t+1),"number"!=typeof e.attrs.indexType)return 0;u[t]=1;var r=n.monitorNodes.find((function(t){return t.id===e.id})),i=r?n.node2DomMap.get(r):null;if(!i)return 0;l=Math.min(l,t),"number"==typeof a[t]?a[t]++:a[t]=0,c.push({dom:i,viewNode:r,headingLevel:t,headingIndex:a.slice(0)})}};for(s.s();!(o=s.n()).done;)d()}catch(e){s.e(e)}finally{s.f()}for(var f=u.reduce((function(e,t,n){return t&&(e[n]=e._currentIndex++),e}),{_currentIndex:0}),h=function(){var e=v[p],r=e.viewNode,o=e.dom,i=e.headingLevel,a=b1(e.headingIndex,(function(e,t,n){return u[n]&&n<=i&&e.push(t),e}),[]);v1e(n.viewer,o,(null===(t=r.firstChild)||void 0===t?void 0:t.attrs)||{}),n._resetIndexSymbol(a[f[i]],null==r?void 0:r.attrs.indexType,f[i],a.slice(0,f[i]),o)},p=0,v=c;p').concat(this._getIndexText(e,t,n,r),"")}},{key:"_getIndexText",value:function(e,t,n,r){try{return g1(e,n,r,t)}catch(e){console.error(e)}return""}},{key:"requestModify",value:function(){var e=this;this.hasRequestModify||(this.hasRequestModify=!0,Os((function(){e.hasRequestModify=!1,e.modify()})))}},{key:"createIndexDom",value:function(e,t){var n=$y.createElement("ne-oli-i",{contentEditable:"false",className:"heading"});return this.insertAtRootDOM(e,n),this.node2DomMap.set(t,n),n}},{key:"insertAtRootDOM",value:function(e,t){e.insertBefore(t,e.childNodes[e.childElementCount-1])}},{key:"check",value:function(e){var t;return!("number"!=typeof e.attrs.indexType||e.attrs.indexType<0||e.hasCategory(ze.Heading)&&!(null===(t=e.parentNode)||void 0===t?void 0:t.hasCategory(ze.Root)))}}]),e}();function trt(e,t,n){return t=Qe(t),Xe(e,nrt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function nrt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nrt=function(){return!!e})()}var rrt=function(e){function t(){return Ye(this,t),trt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){var t;e.registerBoxNode(JZ.node.oli,$nt),e.registerBoxNode(JZ.node.uli,Qnt),e.registerBoxNode(JZ.node.tli,Gnt,this),e.registerAttrTranslator({level:new U1e,indexType:new M1e}),null===(t=e.getService(Vtt.ID))||void 0===t||t.registerHeadingProcessor(new ert(e,this.option.getInitialHeadingIndex)),this.option.onAfterViewerPluginInit&&this.option.onAfterViewerPluginInit(this.viewer)}},{key:"useTaskListDataService",value:function(){var e;return this.option.enableDynamic&&(null===(e=this.service)||void 0===e?void 0:e.getProxy())}},{key:"initTaskListNodeModel",value:function(e){var t,n=null===(t=this.service)||void 0===t?void 0:t.getProxy();if(n)return new n(e,this.viewer)}}]),t}(Lw);function ort(e,t,n){return t=Qe(t),Xe(e,irt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function irt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(irt=function(){return!!e})()}Object.defineProperty(rrt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:JZ.pluginName}),Object.defineProperty(rrt,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:o1}),Object.defineProperty(rrt,"Service",{enumerable:!0,configurable:!0,writable:!0,value:znt});var art=function(e){function t(){var e;return Ye(this,t),e=ort(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._rootNode=hd(P2.domNode.mark),this._contentNode=hd(P2.domNode["mark-content"]),this._rootNode.appendChild(this._contentNode),this._updateFontSize()}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"_updateFontSize",value:function(){var e=Math.max.apply(Math,pn(this.modelNode.children.map((function(e){return e.attrs.fontsize||0}))));this._contentNode.style.fontSize=0===e?"":e+"px"}}]),t}(ok);function lrt(e,t,n){return t=Qe(t),Xe(e,urt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function urt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(urt=function(){return!!e})()}var crt=function(e){function t(){return Ye(this,t),lrt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t){e.registerBoxNode(P2.node.mark,art)}}]),t}(Lw);function srt(e,t,n){return t=Qe(t),Xe(e,drt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function drt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(drt=function(){return!!e})()}Object.defineProperty(crt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:P2.pluginName});var frt=function(e){function t(e,n,r){var o,i,a,l;return Ye(this,t),l=srt(this,t),Object.defineProperty(Je(l),"viewer",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(l),"kernel",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(Je(l),"plugin",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(Je(l),"setDisabledMiniToolbarItems",{enumerable:!0,configurable:!0,writable:!0,value:function(e){Cr((o=Je(l),Qe(t.prototype)),"setDisabledMiniToolbarItems",o).call(o,e),l.viewer.emitPluginEvent("miniToolbar.requestRefreshToolbar")}}),Object.defineProperty(Je(l),"addDisabledMiniToolbarItems",{enumerable:!0,configurable:!0,writable:!0,value:function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&" "===(null===(n=u.data)||void 0===n?void 0:n[l-1])&&document.getSelection().setBaseAndExtent(o,i,a,l-1),r}))}}}),Object.defineProperty(Je(e),"_isInSameViewer",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=e._getViewerNode(t.startContainer),r=e._getViewerNode(t.endContainer);return n&&r&&n===r}}),Object.defineProperty(Je(e),"_getViewerNode",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return Nc(t,Xw,e.viewer.domRootNode)}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;e.onDocument("selectionchange",this._selectionChange),e.onRootNode("click",(function(e){var n,r=e;if(r.detail>=3){var o=null===(n=r.target)||void 0===n?void 0:n._neRef;if(!(null==o?void 0:o.hasCategory(ze.Text)))return;var i=o.closest(ze.Block);if(!i)return;var a=i.getMainDOMNode();if(!a)return;var l=document.createRange();l.selectNodeContents(a);var u=document.getSelection(),c=l.startContainer,s=l.startOffset,d=l.endContainer,f=l.endOffset;u.setBaseAndExtent(c,s,d,f)}2===r.detail&&t._filterEndEmptySelect()})),this.option.cardFocusStatus&&(e.onForceRootNode("mousedown",(function(e){return t._cardFocus(e)})),kc(this,document,"mouseup",this._cardBlur))}}]),t}(Lw);function Prt(e,t,n){return t=Qe(t),Xe(e,Srt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Srt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Srt=function(){return!!e})()}Object.defineProperty(Rrt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:S4.pluginName}),Object.defineProperty(Rrt,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(xrt)});var Trt=function(e){function t(){return Ye(this,t),Prt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator({sub:new V4e(Q4.attr.sub),sup:new V4e(Q4.attr.sup)})}}]),t}(Lw);Object.defineProperty(Trt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Q4.pluginName});var Art=function(){function e(t){Ye(this,e),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},t)}return Ke(e,[{key:"onVTableScroll",get:function(){return this._option.onVTableScroll}},{key:"onVTableWidthModeChange",get:function(){return this._option.onVTableWidthModeChange}}]),e}();function jrt(e){var t=e.length-1,n=e.map((function(e,n){return"string"!=typeof e&&n===t&&(e-=1),'
')}));return"".concat(n.join(""),"")}Object.defineProperty(Art,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"table"});var Irt=function(){function e(t,n,r,o){var i=this;Ye(this,e),Object.defineProperty(this,"_node",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_tableDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"_innerDOMNode",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"_colGroup",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_columns",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"dispose",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colGroup=document.createElement("colgroup"),this._tableDOMNode.prepend(this._colGroup),this._rootNode.style.width="100%",this._innerDOMNode.style.width="100%",this._resizeObserver=new ResizeObserver(ig()((function(){var e;i._innerDOMNode.isConnected&&(null===(e=i.dispose)||void 0===e||e.dispose(),i._updateFitWidth())}),300)),this._resizeObserver.observe(this._innerDOMNode)}return Ke(e,[{key:"destroy",value:function(){var e;this._colGroup.remove(),null===(e=this.dispose)||void 0===e||e.dispose(),this._columns.length=0,this._resizeObserver.disconnect()}},{key:"update",value:function(){this._updateColumnNode(),this._updateFitWidth()}},{key:"_updateColumnNode",value:function(){var e=this._columns,t=this._node.attrs.colCount;if(e.length!==t)if(e.length>t)e.splice(t,e.length-t).forEach((function(e){e.parentNode.removeChild(e)}));else for(var n=e.length;n0)for(var l=i.length-1,u=100;a>0&&u-- >0;)l<0&&(l=i.length-1),i[l]+=1,a--,l--;else if(a<0)for(var c=i.length-1,s=100;a<0&&s-- >0;)c<0&&(c=i.length-1),i[c]<=q4e||(i[c]-=1,a++),c--;return i}},{key:"_updateFitWidth",value:function(){var e=this;this.dispose=xs((function(){return e._innerDOMNode.getBoundingClientRect()}),(function(t){var n=e._columns,r=e._node.attrs.colWidths,o=e._map(r,t.width),i=n.length-1,a=0;n.forEach((function(e,t){var n=o[t];t===i&&(n-=1),a+=n,e.getAttribute("width")!==n+""&&e.setAttribute("width",n+"")})),e._tableDOMNode.style.width=a+1+"px"}))}}]),e}();function Brt(e,t,n){return t=Qe(t),Xe(e,Mrt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Mrt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mrt=function(){return!!e})()}var Frt=function(e){function t(){var e;return Ye(this,t),e=Brt(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_innerWrapNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_tableNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_vToolbar",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_columnManager",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"id",get:function(){return this.modelNode.id}},{key:"init",value:function(){var e,t,n,r,o,i=this,a=[];!1===(null===(t=null===(e=this.modelNode)||void 0===e?void 0:e.attrs)||void 0===t?void 0:t.borderVisible)&&a.push("ne-table-hide-border");var l=!!(null===(r=null===(n=this.modelNode)||void 0===n?void 0:n.attrs)||void 0===r?void 0:r.fitWidth);this._rootNode=hd(cw,{className:a}),this._rootNode.setAttribute("id",this.modelNode.id),this._rootNode.setAttribute("data-lake-id",this.modelNode.id),this._innerWrapNode=hd(sw),this._tableNode=hd("table",{className:"ne-table"}),this._contentNode=hd("tbody",{className:"ne-table-inner"});var u=(null===(o=this.modelNode.attrs)||void 0===o?void 0:o.colWidths)||[],c=u.reduce((function(e,t){return e+t}),0),s=[];if(u.forEach((function(e,t){s[t]="".concat((e/c*100).toFixed(2),"%")})),this.viewer.option.viewerMode===Kw.Simple){this._tableNode.innerHTML=jrt(s);var d=this.viewer.getViewerDisplayWidth();c0,a=!1;t.clientWidth+re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.target,i=r.intersectionRatio,a=o;i>=.01?(a.style.height=null,a.children[0]&&(a.children[0].style.display=null)):0===i&&(a.style.height=a.offsetHeight+"px",a.children[0]&&(a.children[0].style.display="none"))}}catch(e){n.e(e)}finally{n.f()}}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){window.STOP_INTERSECTION||(this._intersectionObserver=Ds(this._handleInterSectionCallback,{threshold:[0,.01,1],rootMargin:"800px 0%"})),e.registerBlockCard(this,RL.CODEBLOCK.NODE_NAME,vot)}},{key:"intersectionObserver",get:function(){return this._intersectionObserver}}]),t}(Lw);function wot(e,t,n){return t=Qe(t),Xe(e,kot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kot=function(){return!!e})()}Object.defineProperty(yot,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:RL.CODEBLOCK.PLUGIN_NAME}),Object.defineProperty(yot,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:lHe});var Cot=function(e){function t(){return Ye(this,t),wot(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){return nc().createElement(jHe,{cardData:this.props.cardData,onOpenLink:this.props.onOpenLink,generateMentionInfo:this.props.generateMentionInfo})}}]),t}(tc.Component);function _ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_ot=function(){return!!e})()}function Not(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,_ot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;Iwe.render(Cot,{cardData:this.cardData,generateMentionInfo:this.pluginOption.generateMentionInfo,onOpenLink:function(t){var n=e.pluginOption.generateMentionInfo(e.cardData.getUserInfo()),r=n.url,o=n.externalOpen;r&&e.viewer.emitEvent("openMentionLink",r,o||t)}},this.containerNode)}},{key:"destroy",value:function(){this.containerNode&&Iwe.unmount(this.containerNode),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}var Oot=Not;function xot(e,t,n){return t=Qe(t),Xe(e,Eot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Eot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eot=function(){return!!e})()}var Dot=function(e){function t(){return Ye(this,t),xot(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerUI&&(t.$CardUI=this.pluginOption.viewerUI),this.viewer.createCardUI(this)}}]),t}(zw);function Rot(e,t,n){return t=Qe(t),Xe(e,Pot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Pot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pot=function(){return!!e})()}Object.defineProperty(Dot,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:iee}),Object.defineProperty(Dot,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:Not(oC()())});var Sot=function(e){function t(){return Ye(this,t),Rot(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e,t){e.registerInlineCard(this,"mention",Dot)}}]),t}(Lw);Object.defineProperty(Sot,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"mention"}),Object.defineProperty(Sot,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:ZHe});var Tot=null;function Aot(e,t,n){return t=Qe(t),Xe(e,jot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function jot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jot=function(){return!!e})()}var Iot=function(e){function t(){var e;return Ye(this,t),e=Aot(this,t,arguments),Object.defineProperty(Je(e),"renderError",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(uze,{cardData:e.props.cardData})}}),Object.defineProperty(Je(e),"renderSuccess",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(dze,{cardData:e.props.cardData,getVideoUrl:e.props.getVideoUrl,getVideoCover:e.props.getVideoCover,withPip:e.props.withPip})}}),Object.defineProperty(Je(e),"renderSimpleMode",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.getVideoUrl();if(t){var n=e.props.cardData.getName();return nc().createElement("a",{href:xh.sanitizeUrl(t),target:"_blank",onClick:function(n){n.preventDefault(),n.stopPropagation(),e.props.visitLink(xh.sanitizeUrl(t),!0)}},n)}return null}}),Object.defineProperty(Je(e),"renderContent",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardData.getStatus();return t===Nee.Error?e.renderError():t!==Nee.Uploaded&&t!==Nee.Done||!e.props.getVideoUrl()?null:e.renderSuccess()}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){if(this.props.viewerMode===Kw.Simple)return this.renderSimpleMode();var e=this.renderContent();return nc().createElement("div",{className:"ne-card-video","data-testid":"ne-card-video-viewer"},e)}}]),t}(tc.Component);function Bot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bot=function(){return!!e})()}function Mot(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,Bot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"_uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_videoUrl",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"getVideoUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.cardData.getUrl()}}),Object.defineProperty(Je(e),"getVideoCover",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.cardData.getCover()}}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e,t=this;this._uiViewProxy=Iwe.render(Iot,{visitLink:function(e,n){t.viewer.emitEvent("visitLink",e,n)},cardData:this.cardData,getVideoUrl:this.getVideoUrl,getVideoCover:this.getVideoCover,viewerMode:this.viewer.option.viewerMode,withPip:null===(e=this.pluginOption._option)||void 0===e?void 0:e.withPip},this.containerNode)}},{key:"destroy",value:function(){nu().unmountComponentAtNode(this.containerNode),Cr(Qe(t.prototype),"destroy",this).call(this),this._uiViewProxy=null}},{key:"updateData",value:function(e){this._uiViewProxy.rerender(e)}}]),t}(e)}var Fot=Mot;function Lot(e,t,n){return t=Qe(t),Xe(e,Uot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Uot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Uot=function(){return!!e})()}var Vot=function(e){function t(){var e;return Ye(this,t),e=Lot(this,t,arguments),Object.defineProperty(Je(e),"_cardUI",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerUI&&(t.$CardUI=this.pluginOption.viewerUI),this._cardUI=this.viewer.createCardUI(this)}},{key:"destroy",value:function(){var e;null===(e=this._cardUI)||void 0===e||e.destroy(),this._cardUI=null}}]),t}(Ww);function Hot(e,t,n){return t=Qe(t),Xe(e,zot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function zot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zot=function(){return!!e})()}Object.defineProperty(Vot,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:Mot(oC()())}),Object.defineProperty(Vot,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:Dee}),document.addEventListener("pointerdown",(function(e){var t,n,r;if(null===(t=e.target)||void 0===t?void 0:t.closest(".ne-viewer")){if(document.fullscreenElement)return;Tot=null!==(r=null===(n=document.scrollingElement)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:null}})),document.addEventListener("fullscreenchange",(function(){null!==Tot&&document.scrollingElement&&document.scrollingElement.scrollTop!==Tot&&(document.scrollingElement.scrollTop=Tot)}));var Wot=function(e){function t(){return Ye(this,t),Hot(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBlockCard(this,RL.VIDEO.NODE_NAME,Vot)}}]),t}(Lw);function qot(e,t,n){return t=Qe(t),Xe(e,$ot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function $ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($ot=function(){return!!e})()}Object.defineProperty(Wot,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"video"}),Object.defineProperty(Wot,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:Sze});var Kot=function(e){function t(){var e;return Ye(this,t),e=qot(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._rootNode=hd(ite.domNode.column)}},{key:"getMainDOMNode",value:function(){return this._rootNode}}]),t}(ok);function Yot(e,t,n){return t=Qe(t),Xe(e,Got()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Got(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Got=function(){return!!e})()}var Jot=function(e){function t(){var e;return Ye(this,t),e=Yot(this,t,arguments),Object.defineProperty(Je(e),"_rootNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(e),"_contentNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._rootNode=hd(ite.domNode.columns),this._contentNode=hd(ite.domNode.columnsContent),this._rootNode.appendChild(this._contentNode),Ks.mobile&&this._rootNode.classList.add("ne-columns-h5")}},{key:"getMainDOMNode",value:function(){return this._rootNode}},{key:"getContentDOMNode",value:function(){return this._contentNode}},{key:"$afterInit",value:function(){this._refreshWidthMode()}},{key:"$didUpdate",value:function(){this._refreshWidthMode()}},{key:"_refreshWidthMode",value:function(){var e,t=this._rootNode.parentNode;t&&((null===(e=this.modelNode.attrs)||void 0===e?void 0:e.widthMode)===Bl?t.classList.add("ne-full-width"):t.classList.remove("ne-full-width"))}}]),t}(ok);function Xot(e,t,n){return t=Qe(t),Xe(e,Qot()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Qot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qot=function(){return!!e})()}var Zot=function(e){function t(){return Ye(this,t),Xot(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerAttrTranslator(ite.attr.width,new z8e),e.registerBoxNode({columns:Jot,column:Kot})}}]),t}(Lw);Object.defineProperty(Zot,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:ite.pluginName});var eit={emptySummaryTip:gc("无标题折叠块")},tit=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"kernelOption",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Object.assign(Object.assign({},eit),t)}return Ke(e,[{key:"emptySummaryTip",get:function(){return this._option.emptySummaryTip||""}}]),e}();function nit(e,t,n){return t=Qe(t),Xe(e,rit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function rit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rit=function(){return!!e})()}Object.defineProperty(tit,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:jt});var oit=function(e){function t(e,n){var r;return Ye(this,t),r=nit(this,t),Object.defineProperty(Je(r),"collapsePlugin",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(Je(r),"viewer",{enumerable:!0,configurable:!0,writable:!0,value:n}),r}return et(t,e),Ke(t,[{key:"emptySummaryTip",get:function(){return this.collapsePlugin.option.emptySummaryTip}},{key:"isSimpleMode",get:function(){return this.viewer.option.viewerMode===Kw.Simple}}]),t}(ut);function iit(e,t,n){return t=Qe(t),Xe(e,ait()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ait(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ait=function(){return!!e})()}function lit(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return uit(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uit(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function uit(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&(r=r.previousElementSibling);){var o=TZe(r);o&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e.inCollapsedNodes);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.isInCollapsed||(null===(n=(t=a).$unCollapsed)||void 0===n||n.call(t),o.push(a))}}catch(e){i.e(e)}finally{i.f()}e.removeInCollapsedNodes(o)})),e.registerBoxNode({collapse:{clazz:fit,pluginContext:t},summary:{clazz:vit,pluginContext:t}})}}]),t}(Lw);function wit(e,t,n){return t=Qe(t),Xe(e,kit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kit=function(){return!!e})()}Object.defineProperty(yit,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:one.pluginName}),Object.defineProperty(yit,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:tit}),Object.defineProperty(yit,"Commands",{enumerable:!0,configurable:!0,writable:!0,value:[cit]});var Cit=function(e){function t(){var e;return Ye(this,t),e=wit(this,t,arguments),Object.defineProperty(Je(e),"state",{enumerable:!0,configurable:!0,writable:!0,value:{kaTexError:!1}}),Object.defineProperty(Je(e),"handleError",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.setState({kaTexError:t})}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this.state.kaTexError,t=this.props.cardData;return t.code&&!e?nc().createElement("span",{className:"ne-math-entry ne-math-code"},nc().createElement(_We,{katexURL:this.props.katexURL,code:t.code,onError:this.handleError})):e?nc().createElement("span",{className:"ne-math-placeholder"},gc("非法 TeX 公式")):t.isEmpty()?nc().createElement("span",{className:"ne-math-placeholder"},gc("添加 TeX 公式")):null}}]),t}(tc.PureComponent);function _it(e,t,n){return t=Qe(t),Xe(e,Nit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Nit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nit=function(){return!!e})()}Object.defineProperty(Cit,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onLoaded:function(){}}});var Oit=WVe(0,(function(e){return function(e){function t(){var e;return Ye(this,t),e=_it(this,t,arguments),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"destroyed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"updateProps",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n;null===(n=e._ui)||void 0===n||n.rerender(t)}}),e}return et(t,e),Ke(t,[{key:"isAsyncUI",value:function(){return!0}},{key:"init",value:function(){var e=this;this._ui=Iwe.render(Cit,{cardData:this.cardData,isDark:this.viewer.theme.isDark(),katexURL:this.pluginOption.katexURL,onLoaded:function(){e.loaded()}},this.containerNode),jc(this,this.viewer.theme,"themeChange",(function(){var t;e.destroyed||null===(t=e._ui)||void 0===t||t.rerender({isDark:e.viewer.theme.isDark()})}))}},{key:"destroy",value:function(){var e;null===(e=this._ui)||void 0===e||e.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this),this.destroyed=!0}}]),t}(e)}));function xit(e,t,n){return t=Qe(t),Xe(e,Eit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Eit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eit=function(){return!!e})()}var Dit=function(e){function t(){return Ye(this,t),xit(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){this.viewer.createCardUI(this)}}]),t}(Ww);function Rit(e,t,n){return t=Qe(t),Xe(e,Pit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Pit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pit=function(){return!!e})()}Object.defineProperty(Dit,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:sre}),Object.defineProperty(Dit,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:rC.extend(Oit)});var Sit=function(e){function t(){return Ye(this,t),Rit(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerInlineCard(this,RL.MATH.NODE_NAME,Dit)}}]),t}(Lw);function Tit(e,t,n){return t=Qe(t),Xe(e,Ait()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ait(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ait=function(){return!!e})()}Object.defineProperty(Sit,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:RL.MATH.PLUGIN_NAME}),Object.defineProperty(Sit,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:WWe});var jit=function(e){function t(){var e;return Ye(this,t),e=Tit(this,t,arguments),Object.defineProperty(Je(e),"renderSimpleMode",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.cardData.getSrc();return nc().createElement("a",{href:xh.sanitizeUrl(t),target:"_blank",onClick:function(n){n.preventDefault(),n.stopPropagation(),e.props.visitLink(xh.sanitizeUrl(t),!0)}},t)}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){return this.props.viewerMode===Kw.Simple?this.renderSimpleMode():nc().createElement(eqe,{cardData:this.props.cardData})}}]),t}(tc.Component);function Iit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Iit=function(){return!!e})()}function Bit(e){return function(e){function t(){return Ye(this,t),function(e,t,n){return t=Qe(t),Xe(e,Iit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;Iwe.render(jit,{visitLink:function(t,n){e.viewer.emitEvent("visitLink",t,n)},cardData:this.cardData,viewerMode:this.viewer.option.viewerMode},this.containerNode),this.cardData.getSrc()||(this.cardRootNode.style.display="none")}},{key:"destroy",value:function(){this.containerNode&&Iwe.unmount(this.containerNode),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}var Mit=Bit;function Fit(e,t,n){return t=Qe(t),Xe(e,Lit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Lit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lit=function(){return!!e})()}var Uit=function(e){function t(){return Ye(this,t),Fit(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerUI&&(t.$CardUI=this.pluginOption.viewerUI),this.viewer.createCardUI(this)}}]),t}(Ww);function Vit(e,t,n){return t=Qe(t),Xe(e,Hit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Hit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hit=function(){return!!e})()}Object.defineProperty(Uit,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:xie}),Object.defineProperty(Uit,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:Bit(oC()())});var zit=function(e){function t(){return Ye(this,t),Vit(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBlockCard(this,"thirdparty",Uit)}}]),t}(Lw);Object.defineProperty(zit,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"thirdparty"}),Object.defineProperty(zit,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(Bie)});var Wit={enable:!1,allowModifyHash:!0,getContainer:null},qit=function(){function e(t,n){Ye(this,e),Object.defineProperty(this,"kernelOption",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._option=Jw()({},Wit,t)}return Ke(e,[{key:"enable",get:function(){return this._option.enable}},{key:"isAllowModifyHash",value:function(){return!0===this._option.allowModifyHash}},{key:"getContainer",value:function(){return"function"==typeof this._option.getContainer?this._option.getContainer():null}}]),e}();function $it(e,t,n){return t=Qe(t),Xe(e,Kit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Kit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kit=function(){return!!e})()}Object.defineProperty(qit,"OptionName",{enumerable:!0,configurable:!0,writable:!0,value:"toc"});var Yit=function(e){function t(e,n){var r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];Ye(this,t),r=$it(this,t),Object.defineProperty(Je(r),"viewer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_mountNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_view",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_option",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_eventEmitter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(r),"_pinStatus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_hoverTimeout",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_tocData",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(r),"_currentPinStatus",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(Je(r),"_parentNode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(r),"_cancelPrevScroll",{enumerable:!0,configurable:!0,writable:!0,value:null}),r.viewer=e,r._option=n,r._eventEmitter=new ut,r._tocData=i,r._eventEmitter.on("pinStatusChange",(function(e){r._pinStatus=e,r._currentPinStatus=e,r.setPinStatus(e),r.refresh(),r.viewer.emitPluginEvent("tocPinStatusChange",e)}));var a=r._option.getContainer();return a||(a=r.viewer.domRootNode),r._parentNode=a,o&&r.init(a),r}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this._mountNode=hd("div",{className:"ne-viewer-toc-sidebar"});var n=this._mountNode;this._mountNode.addEventListener("mouseenter",(function(){t._hoverTimeout=setTimeout((function(){n.classList.add("ne-viewer-toc-sidebar-hover"),t._hoverTimeout=null}),350)})),this._mountNode.addEventListener("mouseleave",(function(){t._hoverTimeout&&(clearTimeout(t._hoverTimeout),t._hoverTimeout=null),n.classList.remove("ne-viewer-toc-sidebar-hover")})),e.appendChild(this._mountNode),this._view=Iwe.render(Mqe,{toc:[],eventEmitter:this._eventEmitter,scrollNode:this.viewer.scrollNode,contentNode:this.viewer.viewerBodyNode,offsetTop:this.viewer.option.boundaryTopOffset,checkOutside:!0,allowShowHash:!0,onClick:function(e){t.emit("tocPositionChange",e),t._scrollTo(e)}},this._mountNode)}},{key:"destroy",value:function(){var e,t;this.removeAllListeners(),this._mountNode&&(Iwe.unmount(this._mountNode),null===(t=(e=this._mountNode).remove)||void 0===t||t.call(e))}},{key:"update",value:function(e){var t,n;this._tocData=e,null===(n=null===(t=this._view)||void 0===t?void 0:t.rerender)||void 0===n||n.call(t,{toc:e})}},{key:"refresh",value:function(){this._eventEmitter.emit("change")}},{key:"getPinStatus",value:function(){return this._pinStatus}},{key:"open",value:function(){var e;null===(e=this._mountNode&&this._mountNode.parentNode)||void 0===e||e.classList.add("ne-viewer-toc-visible")}},{key:"close",value:function(){var e;null===(e=this._mountNode&&this._mountNode.parentNode)||void 0===e||e.classList.remove("ne-viewer-toc-visible")}},{key:"toggle",value:function(){var e;null===(e=this._mountNode&&this._mountNode.parentNode)||void 0===e||e.classList.toggle("ne-viewer-toc-visible")}},{key:"setPinStatus",value:function(e){var t;null===(t=this._mountNode&&this._mountNode.parentNode)||void 0===t||t.setAttribute("ne-viewer-toc-pin",String(e))}},{key:"setOutsideStatus",value:function(e){var t;null===(t=this._mountNode&&this._mountNode.parentNode)||void 0===t||t.setAttribute("ne-viewer-toc-outside",String(e))}},{key:"setNormalViewStatus",value:function(e){var t;this._view&&(null===(t=this._view.getReactRef())||void 0===t||t.setNormalViewStatus(e))}},{key:"_scrollTo",value:function(e){var t,n=this;this._option.isAllowModifyHash()&&(location.hash=e);var r=this.viewer.domRootNode.querySelector('[id="'.concat(e,'"]'));r&&(null===(t=this._cancelPrevScroll)||void 0===t||t.dispose(),function e(t){n._cancelPrevScroll=xs((function(){var e=r.getBoundingClientRect(),o=n.viewer.scrollNode.getBoundingClientRect(),i=n.viewer.scrollNode.scrollTop,a=i+e.top-o.top;return n.viewer.scrollNode===document.scrollingElement&&(a=Math.abs(o.top-e.top+n.viewer.option.boundaryTopOffset)),{dist:a,shouldRedo:t>0&&i!==a}}),(function(r){var o=r.dist,i=r.shouldRedo;n.viewer.scrollNode.scrollTop=o,i?e(t-1):n._cancelPrevScroll=null}))}(10))}}]),t}(ut);function Git(e,t,n){return t=Qe(t),Xe(e,Jit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Jit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jit=function(){return!!e})()}var Xit=function(e){function t(){var e;return Ye(this,t),e=Git(this,t,arguments),Object.defineProperty(Je(e),"_tocSidebar",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"_tocData",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(Je(e),"_tocCollapse",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.option.enable&&(this._tocCollapse=new Wqe,e.on("afterContentChange",(function(){var e;null===(e=t._tocSidebar)||void 0===e||e.refresh()})),e.on("ready",(function(){var e,n,r;null===(e=t._tocSidebar)||void 0===e||e.update(t._tocData),null===(n=t._tocSidebar)||void 0===n||n.open(),null===(r=t._tocSidebar)||void 0===r||r.refresh()})),e.kernel.onPluginEvent("tocChange",(function(n){var r,o,i;t._tocData=n,e.emitPluginEvent("tocPinStatusChange",(null===(r=t._tocData)||void 0===r?void 0:r.length)>0),(null===(o=t._tocData)||void 0===o?void 0:o.length)>0&&(t._tocSidebar=new Yit(e,t.option,!0,n),t._tocSidebar.on("tocPositionChange",(function(t){e.emitPluginEvent("tocPositionChange",t)})),null===(i=t._tocCollapse)||void 0===i||i.setTOCSidebar(t._tocSidebar),t._tocSidebar.open(),e.emitPluginEvent("tocOpenStatusChange",!0))})),e.on("enterMaxView",(function(){var e;null===(e=t._tocSidebar)||void 0===e||e.close()})),e.on("leaveMaxView",(function(){var e;null===(e=t._tocSidebar)||void 0===e||e.open()})),e.onPluginEvent("viewSizeChange",(function(){var e,n;null===(n=t._tocCollapse)||void 0===n||(e=n).checkIgnoreForce.apply(e,arguments)})))}},{key:"destroy",value:function(){var e;null===(e=this._tocSidebar)||void 0===e||e.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(Lw);function Qit(e,t,n){return t=Qe(t),Xe(e,Zit()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Zit(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zit=function(){return!!e})()}Object.defineProperty(Xit,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"toc"}),Object.defineProperty(Xit,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:qit});var eat=function(e){function t(){return Ye(this,t),Qit(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){return nc().createElement(kKe,{cardData:this.props.cardData,clickable:!0,isLoadingError:!0,onOpenLink:this.props.onOpenLink})}}]),t}(tc.Component);function tat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tat=function(){return!!e})()}function nat(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,tat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"_uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;this._uiViewProxy=Iwe.render(eat,{cardData:this.cardData,onOpenLink:function(){var t=e.cardData.getSrc();t&&e.viewer.emitEvent("visitLink",t,!0)}},this.containerNode)}},{key:"destroy",value:function(){var e;null===(e=this._uiViewProxy)||void 0===e||e.destroy(),this._uiViewProxy=null,Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}function rat(e,t,n){return t=Qe(t),Xe(e,oat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function oat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oat=function(){return!!e})()}var iat=function(e){function t(){var e;return Ye(this,t),e=rat(this,t,arguments),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._ui=this.viewer.createCardUI(this)}},{key:"destroy",value:function(){var e;Cr(Qe(t.prototype),"destroy",this).call(this),null===(e=this._ui)||void 0===e||e.destroy(),this._ui=null}}]),t}(Ww);function aat(e,t,n){return t=Qe(t),Xe(e,lat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function lat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lat=function(){return!!e})()}Object.defineProperty(iat,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:rC.extend(nat)}),Object.defineProperty(iat,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:cue});var uat=function(e){function t(){var e;return Ye(this,t),e=aat(this,t,arguments),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this._ui=this.viewer.createCardUI(this)}},{key:"destroy",value:function(){var e;null===(e=this._ui)||void 0===e||e.destroy(),this._ui=null,Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(Ww);function cat(e,t,n){return t=Qe(t),Xe(e,sat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function sat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sat=function(){return!!e})()}Object.defineProperty(uat,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:rC.extend(nat)}),Object.defineProperty(uat,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:cue});var dat=function(e){function t(){return Ye(this,t),cat(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBlockCard(this,"bookmark",iat),e.registerInlineCard(this,"bookmarkInline",uat)}}]),t}(Lw);function fat(e,t,n){return t=Qe(t),Xe(e,hat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function hat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hat=function(){return!!e})()}Object.defineProperty(dat,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"bookmark"});var pat=function(e){function t(){var e;return Ye(this,t),e=fat(this,t,arguments),Object.defineProperty(Je(e),"_oldObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return et(t,e),Ke(t,[{key:"current",get:function(){return"dark"}},{key:"observe",value:function(e){this.viewer.theme.on("themeChange",e)}},{key:"init",value:function(e){this.option.isEnable&&(this._oldObserver=tD.themeObserver,tD.themeObserver=this,e.theme.registerTheme("dark-mode",new KKe(du.DARK)),e.theme.setActiveTheme("dark-mode"))}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),this.option.isEnable&&(tD.themeObserver=this._oldObserver)}}]),t}(Lw);function vat(e,t,n){return t=Qe(t),Xe(e,mat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function mat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mat=function(){return!!e})()}Object.defineProperty(pat,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:YKe.pluginName}),Object.defineProperty(pat,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(GKe)});var gat=function(e){function t(){var e;return Ye(this,t),e=vat(this,t,arguments),Object.defineProperty(Je(e),"ref",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar-schedule-line")}),Object.defineProperty(Je(e),"handleOpenSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(t){t.stopPropagation(),t.preventDefault();var n=oYe(e.props),r=e.ref.current.getBoundingClientRect(),o={x:0===n.indexOf("left")?r.left:r.right,y:r.top};e.props.onOpen(e.props.schedule,Object.assign(Object.assign({},o),{placement:n}))}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){var e=this.props,t=e.schedule,n=e.date,r=e.activeScheduleId,o=t.isStartDate(n),i=t.id===r,a=rYe(this.props),l=a.lineStyle,u=a.labelStyle,c=a.leftArrowStyle,s=a.rightArrowStyle,d=a.isShowControl;return nc().createElement("div",{className:this.getClassName(),ref:this.ref,style:l,"data-id":t.id,"data-active":i,"data-is-start":o,onClick:this.handleOpenSchedule},o?nc().createElement("div",{className:this.getClassName("label"),style:u}):nc().createElement("div",{className:this.getClassName("right-arrow"),style:s}),nc().createElement("div",{className:this.getClassName("title"),"data-not-title":!t.title},t.title||gc("添加日程标题")),d?null:nc().createElement("div",{className:this.getClassName("left-arrow"),style:c}))}}]),t}(tc.Component),bat=/(?:[\u0100-\uffff\s]|^)https?:\/\/(?:[^/.]+?\.)+?[^/.]+?(?:\/\S*?)?(?:(?=[\u0100-\uffff\s])|$)/g;function yat(e){if(!e)return e;var t=/\s/;return(e=Cd.encodeHTML(e)).replace(bat,(function(e){var n="",r="";return"h"!==e[0]&&(n=e[0],e=e.substring(1)),t.test(e[e.length-1])&&(r=e[e.length-1],e=e.substring(0,e.length-1)),"".concat(n,'').concat(e,"").concat(r)}))}function wat(e,t,n){return t=Qe(t),Xe(e,kat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function kat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kat=function(){return!!e})()}var Cat=function(e){function t(){var e;return Ye(this,t),e=wat(this,t,arguments),Object.defineProperty(Je(e),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar-schedule-panel")}),Object.defineProperty(Je(e),"descRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(e),"renderItem",{enumerable:!0,configurable:!0,writable:!0,value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return nc().createElement("div",{className:e.getClassName("item",r)},nc().createElement("div",{className:e.getClassName("item-side")},t),nc().createElement("div",{className:e.getClassName("item-content")},n))}}),Object.defineProperty(Je(e),"renderTitle",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.theme,n=e.props.schedule,r=n.title,o=n.colorIndex,i=oce[o];return i||(i=oce[0]),e.renderItem(nc().createElement("div",{className:e.getClassName("color"),style:{background:t.getColorByToken(i.line)}}),nc().createElement("div",{className:e.getClassName("title")},r))}}),Object.defineProperty(Je(e),"renderDivider",{enumerable:!0,configurable:!0,writable:!0,value:function(){return e.renderItem(null,nc().createElement(UNe,{className:e.getClassName("divider")}))}}),Object.defineProperty(Je(e),"renderDate",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.schedule,n=t.startDate,r=t.endDate;return e.renderItem(nc().createElement("div",{className:e.getClassName("icon","icon-calendar","icon-calendar-v")}),nc().createElement("div",{className:e.getClassName("date")},nc().createElement("span",null,n.format("YYYY-MM-DD")),nc().createElement("span",{className:e.getClassName("date-split")},"~"),nc().createElement("span",null,r.format("YYYY-MM-DD"))))}}),Object.defineProperty(Je(e),"renderDesc",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.props.schedule.desc;return e.renderItem(nc().createElement("div",{className:e.getClassName("icon","icon-desc","icon-desc-v")}),nc().createElement("div",{className:e.getClassName("desc"),ref:e.descRef,dangerouslySetInnerHTML:{__html:yat(t)||""}}),"margin-top")}}),e}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this;this.descRef.current&&hRe(this.descRef.current,(function(t,n,r){e.props.visitLink(n,r)}))}},{key:"render",value:function(){return nc().createElement("div",{className:this.getClassName()},this.renderTitle(),this.renderDivider(),this.renderDate(),this.renderDesc())}}]),t}(tc.Component);function _at(e,t,n){return t=Qe(t),Xe(e,Nat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Nat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nat=function(){return!!e})()}var Oat=function(e){function t(e){var n;return Ye(this,t),n=_at(this,t,[e]),Object.defineProperty(Je(n),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar-popover")}),Object.defineProperty(Je(n),"handleVisibleChange",{enumerable:!0,configurable:!0,writable:!0,value:function(e){n.setState({isShowPopover:e}),!1===e&&n.props.onClose()}}),n.state={isShowPopover:!0},n}return et(t,e),Ke(t,[{key:"render",value:function(){return nc().createElement(Fj,{className:this.getClassName(),visible:this.state.isShowPopover,placement:this.props.pos.placement,trigger:"click",onVisibleChange:this.handleVisibleChange,content:nc().createElement(Cat,{schedule:this.props.schedule,theme:this.props.theme,visitLink:this.props.visitLink})},nc().createElement("div",{className:this.getClassName("fake-line"),style:{left:this.props.pos.x,top:this.props.pos.y}}))}}]),t}(tc.Component);function xat(e,t,n){return t=Qe(t),Xe(e,Eat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Eat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eat=function(){return!!e})()}var Dat=function(e){function t(e){var n;Ye(this,t),n=xat(this,t,[e]),Object.defineProperty(Je(n),"containerRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"boxRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-calendar")}),Object.defineProperty(Je(n),"handleOpenSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){var r=n.containerRef.current.getBoundingClientRect();n.setState({isShowPopover:!0,activeScheduleId:e.id,popoverInfo:{pos:Object.assign(Object.assign({},t),{x:t.x-r.left,y:t.y-r.top}),schedule:e}})}}),Object.defineProperty(Je(n),"handleCloseSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e){null==e||e.stopPropagation(),n.setState({isShowPopover:!1,popoverInfo:{},activeScheduleId:""})}}),Object.defineProperty(Je(n),"renderHeader",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(wYe,{cardData:n.props.cardData,onClick:n.handleCloseSchedule,onCurrentDateChange:n.props.onCurrentDateChange})}}),Object.defineProperty(Je(n),"renderWeekNames",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement(_Ye,{cardData:n.props.cardData})}}),Object.defineProperty(Je(n),"renderCalendarCellSchedule",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t,r){var o=n.props.theme,i=n.props.cardData.getScheduleList(),a=n.props.cardData.getDateScheduleMap(),l=n.state.activeScheduleId,u=Que(e),c=i.filter((function(e){return e.include(u)})).sort((function(e,t){var n=a[u];return(n[e.id]||0)-(n[t.id]||0)}));return c.map((function(i){return i.isStartDate(u)||0===t?nc().createElement(gat,{theme:o,key:i.id,date:e,colIndex:t,rowIndex:r,schedule:i,activeScheduleId:l,onOpen:n.handleOpenSchedule}):nc().createElement("div",{key:e.unix()+i.id,className:n.getClassName("content-box-row-cell-schedule-holder")})}))}}),Object.defineProperty(Je(n),"renderCalendarCell",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t,r){var o=n.state.date;return nc().createElement("div",{className:n.getClassName("content-box-row-cell"),key:e.unix()},nc().createElement("div",{className:n.getClassName("content-box-row-cell-date"),"data-today":e.isToday(),"data-fade":e.month()!==o.month()},nc().createElement("div",{className:n.getClassName("content-box-row-cell-date-text")},e.format("D"))),n.renderCalendarCellSchedule(e,t,r))}}),Object.defineProperty(Je(n),"renderCalendarBox",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.cardData.getDateRows(),t=n.state.date;return nc().createElement("div",{className:n.getClassName("content-box"),ref:n.boxRef},e.map((function(r,o){return nc().createElement("div",{className:n.getClassName("content-box-row"),key:"".concat(t.month(),"-").concat(o),"data-last":o===e.length-1},r.map((function(e,t){return n.renderCalendarCell(e,t,o)})))})))}}),Object.defineProperty(Je(n),"renderContent",{enumerable:!0,configurable:!0,writable:!0,value:function(){return nc().createElement("div",{className:n.getClassName("content")},n.renderWeekNames(),n.renderCalendarBox())}}),Object.defineProperty(Je(n),"renderPopover",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.state.isShowPopover?nc().createElement(Oat,{visitLink:n.props.visitLink,schedule:n.state.popoverInfo.schedule,pos:n.state.popoverInfo.pos,onClose:n.handleCloseSchedule,theme:n.props.theme}):null}}),Object.defineProperty(Je(n),"renderMask",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.state.isShowPopover?nc().createElement("div",{className:n.getClassName("mask"),onClick:n.handleCloseSchedule}):null}});var r=e.cardData.getCurrentDate();return n.state={currentDate:r,date:Zue(r),isShowPopover:!1,popoverInfo:{},activeScheduleId:""},n}return et(t,e),Ke(t,[{key:"render",value:function(){return nc().createElement("div",{className:this.getClassName(),ref:this.containerRef},this.renderHeader(),this.renderContent(),this.renderPopover(),this.renderMask())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.cardData.getCurrentDate();return n!==t.currentDate?{currentDate:n,activeScheduleId:"",date:Zue(n)}:null}}]),t}(tc.Component);function Rat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rat=function(){return!!e})()}function Pat(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,Rat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){var e=this;this.uiViewProxy=Iwe.render(Dat,{visitLink:function(t,n){e.viewer.emitEvent("visitLink",t,n)},theme:this.viewer.theme,cardData:this.cardData,onCurrentDateChange:function(t){e.cardData.setCurrentDate(t),e.cardData.setExtendInfo(),e.cardData.afterChange()}},this.containerNode),jc(this,this.viewer.theme,"themeChange",(function(){var t;null===(t=e.uiViewProxy)||void 0===t||t.rerender({theme:e.viewer.theme})}))}},{key:"destroy",value:function(){nu().unmountComponentAtNode(this.containerNode),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}function Sat(e,t,n){return t=Qe(t),Xe(e,Tat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Tat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tat=function(){return!!e})()}var Aat=function(e){function t(){var e;return Ye(this,t),e=Sat(this,t,arguments),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:null}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerUI&&(t.$CardUI=this.pluginOption.viewerUI),this._ui=this.viewer.createCardUI(this)}},{key:"destroy",value:function(){this._ui&&this._ui.destroy()}}]),t}(Ww);function jat(e,t,n){return t=Qe(t),Xe(e,Iat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Iat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Iat=function(){return!!e})()}Object.defineProperty(Aat,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:rC.extend(Pat)}),Object.defineProperty(Aat,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:sce});var Bat=function(e){function t(){return Ye(this,t),jat(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBlockCard(this,RL.CALENDAR.NODE_NAME,Aat)}}]),t}(Lw);Object.defineProperty(Bat,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"calendar"}),Object.defineProperty(Bat,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:MYe}),Object.defineProperty(Bat,"Colors",{enumerable:!0,configurable:!0,writable:!0,value:ice});var Mat={loadingAction:"",loadingStatus:"",loadingError:null};function Fat(e,t,n){return t=Qe(t),Xe(e,Lat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Lat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lat=function(){return!!e})()}var Uat=function(e){function t(e){var n,r;Ye(this,t),n=Fat(this,t,[e]),Object.defineProperty(Je(n),"containerRef",{enumerable:!0,configurable:!0,writable:!0,value:nc().createRef()}),Object.defineProperty(Je(n),"contentRef",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(Je(n),"getClassName",{enumerable:!0,configurable:!0,writable:!0,value:od("ne-card-vote-viewer")}),Object.defineProperty(Je(n),"isInvalid",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.cardData.getVoteId(),t=n.props.cardData.getItems();return!e||!t}}),Object.defineProperty(Je(n),"isError",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.props.loadingStatus===Ece&&n.props.loadingAction===Dce.QueryDetail&&n.props.loadingError}}),Object.defineProperty(Je(n),"isQueryDetail",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.props.loadingStatus===xce&&n.props.loadingAction===Dce.QueryDetail}}),Object.defineProperty(Je(n),"_isVoted",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return Object.keys(e).filter((function(t){return e[t]})).length>0}}),Object.defineProperty(Je(n),"isBeforeDeadline",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=oh()(),t=n.props.cardData.getDeadline();return e.isBefore(oh()(t))}}),Object.defineProperty(Je(n),"isAllowVote",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.props.allowVote&&n.isBeforeDeadline()}}),Object.defineProperty(Je(n),"handleSelectVoteId",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return function(t){n.props.cardData.getType()===Sce?n.setState({voteData:Ja({},e,t.target.checked)}):n.setState({voteData:Object.assign(Object.assign({},n.state.voteData),Ja({},e,t.target.checked))})}}}),Object.defineProperty(Je(n),"handleVote",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.state.voteData,t=[];Object.keys(e).forEach((function(n){n&&e[n]&&-1===t.indexOf(n)&&t.push(n)})),n.setState({view:"result"},(function(){var e,t=0;(null===(e=n.containerRef)||void 0===e?void 0:e.current)&&(t=n.containerRef.current.getBoundingClientRect().height),n.setState({lastContainerHeight:t})})),n.props.onVote({items:t.join(",")})}}),Object.defineProperty(Je(n),"handleViewData",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.setState({view:"result"},(function(){n.props.onViewData()}))}}),Object.defineProperty(Je(n),"handleReVote",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.setState({view:"form"})}}),Object.defineProperty(Je(n),"renderVoteItems",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.cardData.getType(),t=n.props.cardData.getItems(),r=e===Sce;return nc().createElement("div",{className:n.getClassName("vote-items"),"data-testid":n.getClassName("vote-items")},t.map((function(e,t){return nc().createElement("label",{className:n.getClassName("vote-item"),key:e.id},nc().createElement("div",{className:n.getClassName("vote-item-op")},r?nc().createElement(EDe,{onChange:n.handleSelectVoteId(e.id),checked:n.state.voteData[e.id],"data-testid":n.getClassName("vote-item-op"),"data-testindex":t}):nc().createElement(OCe,{onChange:n.handleSelectVoteId(e.id),checked:n.state.voteData[e.id],"data-testid":n.getClassName("vote-item-op"),"data-testindex":t})),nc().createElement("div",{className:n.getClassName("vote-item-text"),"data-testid":n.getClassName("vote-item-text"),"data-testindex":t},e.value))})))}}),Object.defineProperty(Je(n),"renderVoteFooter",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.isAllowVote();return nc().createElement("div",{className:n.getClassName("content-footer")},nc().createElement(Swe,{className:n.getClassName("content-footer-vote-button"),onClick:n.handleVote,disabled:!e,"data-testid":n.getClassName("vote-button")},gc("投票")),nc().createElement("span",{className:n.getClassName("content-footer-view-data")},n.state.voted&&gc("已投票"),nc().createElement("span",{className:n.getClassName("content-footer-view-data-link"),onClick:n.handleViewData},gc("查看结果"))))}}),Object.defineProperty(Je(n),"renderResultVoteDetail",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t=nc().createElement("div",{className:n.getClassName("result-item-info-data-detail")},nc().createElement("span",null,gc("{count} 票",{count:e.count})),nc().createElement("span",null,"".concat(e.percent,"%")));if(e.members.length){var r=nc().createElement("div",{className:n.getClassName("result-item-info-data-members")},e.members.join(" "));return nc().createElement(Fj,{overlayClassName:n.getClassName("result-popover-overlay"),trigger:"hover",content:r,getPopupContainer:function(){return n.containerRef.current}},t)}return t}}),Object.defineProperty(Je(n),"renderResultItems",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.detail;return e?nc().createElement("div",{className:n.getClassName("result-items"),"data-testid":n.getClassName("result-items")},e.items.map((function(e,t){return nc().createElement("div",{className:n.getClassName("result-item"),key:e.id,"data-voted":e.isVoted},nc().createElement("div",{className:n.getClassName("result-item-info")},nc().createElement("div",{className:n.getClassName("result-item-info-name"),"data-testid":n.getClassName("result-item-name"),"data-testindex":t},e.value),nc().createElement("div",{className:n.getClassName("result-item-info-data")},n.renderResultVoteDetail(e))),nc().createElement("div",{className:n.getClassName("result-item-line")},nc().createElement("div",{className:n.getClassName("result-item-line-length"),style:{width:"".concat(e.percent,"%")}})))}))):null}}),Object.defineProperty(Je(n),"renderResultFooter",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props,t=e.detail,r=e.allowVote;if(!t)return null;var o=oh()(n.props.cardData.getDeadline()),i=oh()().isAfter(o);return nc().createElement("div",{className:n.getClassName("content-footer")},nc().createElement("div",{className:n.getClassName("content-footer-member-count")},t.memberCount," ",gc("人已投票")),nc().createElement("div",{className:n.getClassName("content-footer-deadline")},i?gc("已截止"):"".concat(o.format("YYYY-MM-DD HH:mm:ss")," ").concat(gc("截止"))),i||!r?null:nc().createElement("div",{className:n.getClassName("content-footer-re-vote"),onClick:n.handleReVote,"data-testid":n.getClassName("re-vote-button")},gc("重新投票")))}}),Object.defineProperty(Je(n),"renderContent",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.cardData.getType(),t=n.props.cardData.getTitle(),r=Tce[e],o="form"===n.state.view;return nc().createElement("div",{className:n.getClassName("content"),ref:n.contentRef},nc().createElement("div",{className:n.getClassName("content-header")},nc().createElement("div",{className:n.getClassName("content-header-type"),"data-testid":n.getClassName("type")},gc(r)),nc().createElement("div",{className:n.getClassName("content-header-title"),"data-testid":n.getClassName("title")},t)),o?n.renderVoteItems():n.renderResultItems(),o?n.renderVoteFooter():n.renderResultFooter())}}),Object.defineProperty(Je(n),"renderVotingMask",{enumerable:!0,configurable:!0,writable:!0,value:function(){return n.props.loadingStatus===xce&&n.props.loadingAction===Dce.Vote?nc().createElement("div",{className:n.getClassName("voting-mask")},nc().createElement(tD,{type:"loading"}),gc("投票中...")):null}}),Object.defineProperty(Je(n),"renderQueryDetailLoading",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e={};return 0!==n.state.lastContainerHeight&&(e.height=n.state.lastContainerHeight),nc().createElement("div",{className:n.getClassName(),style:e},nc().createElement("div",{className:n.getClassName("query-detail-loading")},nc().createElement(tD,{type:"loading"}),nc().createElement("span",null,gc("正在获取投票数据..."))))}}),Object.defineProperty(Je(n),"renderError",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return nc().createElement("div",{className:n.getClassName()},nc().createElement("div",{className:n.getClassName("error-tip")},gc(e)))}}),Object.defineProperty(Je(n),"renderSimpleMode",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e=n.props.getCardReadUrl();return nc().createElement("div",null,gc("此处为语雀投票卡片,点击链接查看:"),nc().createElement("a",{href:xh.sanitizeUrl(e),target:"_blank",onClick:function(t){t.preventDefault(),t.stopPropagation(),n.props.visitLink(xh.sanitizeUrl(e),!0)}},e))}});var o=(null===(r=n.props)||void 0===r?void 0:r.voteData)||{},i=n._isVoted(o);return n.state={view:i?"result":"form",voted:i,voteData:o,lastContainerHeight:0},i&&n.props.onViewData(),n}return et(t,e),Ke(t,[{key:"componentDidMount",value:function(){var e=this;!this.isBeforeDeadline()&&this.props.isOwner&&("result"!==this.state.view&&setTimeout((function(){e.props.onViewData()}),100),this.setState({view:"result"}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){!e.voteData||Yr()(e.voteData,this.props.voteData)||Yr()(e.voteData,this.state.voteData)||(0!==Object.keys(e.voteData).length?("result"!==this.state.view&&this.props.onViewData(),this.setState({voteData:e.voteData,voted:!0,view:"result"})):this.setState({voteData:e.voteData,voted:!1}))}},{key:"render",value:function(){return this.props.viewerMode===Kw.Simple?this.renderSimpleMode():this.isInvalid()?this.renderError("投票数据异常"):this.isError()?this.renderError("获取投票数据失败"):this.isQueryDetail()?this.renderQueryDetailLoading():nc().createElement("div",{className:this.getClassName(),ref:this.containerRef},this.renderContent(),this.renderVotingMask())}}]),t}(tc.Component);function Vat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vat=function(){return!!e})()}function Hat(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,Vat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"uiViewProxy",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"updateProps",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.uiViewProxy.rerender(t)}}),Object.defineProperty(Je(e),"getCardReadUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(){return""}}),e}return et(t,e),Ke(t,[{key:"init",value:function(e){var t=this;this.uiViewProxy=Iwe.render(Uat,Object.assign(Object.assign({},e),{visitLink:function(e,n){t.viewer.emitEvent("visitLink",e,n)},viewerMode:this.viewer.option.viewerMode,cardData:this.cardData,allowVote:this.pluginOption.allowVote,isOwner:this.pluginOption.isOwner,onVote:function(e){t.emit("vote",e)},onViewData:function(e){t.emit("viewData")},getCardReadUrl:this.getCardReadUrl}),this.containerNode)}},{key:"destroy",value:function(){Cr(Qe(t.prototype),"destroy",this).call(this),nu().unmountComponentAtNode(this.containerNode),this.uiViewProxy=null}}]),t}(e)}var zat=Hat;function Wat(e,t,n){return t=Qe(t),Xe(e,qat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function qat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qat=function(){return!!e})()}var $at=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},Kat=function(e){function t(){var e;return Ye(this,t),e=Wat(this,t,arguments),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"parseDetail",{enumerable:!0,configurable:!0,writable:!0,value:function(t){if(!t)return null;var n=e.cardData.getItems(),r=0,o={},i=new Set;t.items.forEach((function(e){r+=e.count,o[e.id]=e})),t.items.forEach((function(e){o[e.id].percent=Math.floor((e.count||0)/r*1e4)/100}));var a=n.map((function(e){var n,r,a,l=o[e.id]||null;return l&&l.members.forEach((function(e){i.add(e)})),Object.assign(Object.assign({},e),{id:e.id,value:e.value,count:null!==(n=null==l?void 0:l.count)&&void 0!==n?n:0,members:null!==(r=null==l?void 0:l.members)&&void 0!==r?r:[],percent:null!==(a=null==l?void 0:l.percent)&&void 0!==a?a:0,isVoted:-1!==t.voted.indexOf(e.id)})}));return Object.assign(Object.assign({},t),{totalCount:r,items:a,memberCount:i.size})}}),Object.defineProperty(Je(e),"filterDetail",{enumerable:!0,configurable:!0,writable:!0,value:function(t){if(e.cardData.getType()!==Sce)return t;var n={},r=(t.items||[]).map((function(e){var t=e.count;if(0===t)return e;var r=(e.members||[]).filter((function(r){return n[r]?(t-=1,!1):(n[r]=e.id,!0)}));return Object.assign(Object.assign({},e),{count:t,members:r})})),o=t.voted[0]||[];return Object.assign(Object.assign({},t),{items:r,voted:o})}}),Object.defineProperty(Je(e),"loadingWrapper",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.loadingAction,r=t.exec,o=t.error,i=t.done;return $at(Je(e),void 0,void 0,Sc().mark((function e(){var t;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ui.updateProps({loadingStatus:xce,loadingAction:n,loadingError:null}),t=null,e.prev=2,e.next=5,r();case 5:e.next=11;break;case 7:e.prev=7,e.t0=e.catch(2),o&&o(),t=e.t0;case 11:return e.prev=11,this._ui.updateProps({loadingStatus:Ece,loadingAction:n,loadingError:t}),e.finish(11);case 14:i&&i();case 15:case"end":return e.stop()}}),e,this,[[2,7,11,14]])})))}}),Object.defineProperty(Je(e),"requestVoteDetail",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.cardData.getVoteId(),n=e.cardData.getDeadline(),r=e.cardData.getItems();return new Promise((function(o,i){cs({url:e.pluginOption.queryDetailUrl,method:"get",data:{vote_id:t,deadline:oh()(n).toISOString(),items:r.map((function(e){return e.id})).join(",")},success:function(e){o(e.data)},error:function(e){i(e)}})}))}}),Object.defineProperty(Je(e),"requestVoteCheck",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t=e.cardData.getVoteId(),n=e.cardData.getDeadline();return new Promise((function(r,o){cs({url:e.pluginOption.queryCheckUrl,method:"get",data:{vote_id:t,deadline:oh()(n).toISOString()},success:function(e){r(e.data)},error:function(e){o(e)}})}))}}),Object.defineProperty(Je(e),"queryVoteDetail",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.loadingWrapper({loadingAction:Dce.QueryDetail,exec:function(){return $at(Je(e),void 0,void 0,Sc().mark((function e(){var t,n;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestVoteDetail();case 2:t=e.sent,n=this.filterDetail(t),this._ui.updateProps({detail:this.parseDetail(n)});case 5:case"end":return e.stop()}}),e,this)})))}})}}),Object.defineProperty(Je(e),"requestVote",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n=t.items,r=e.cardData.getVoteId();return new Promise((function(t,o){cs({url:e.pluginOption.voteUrl,method:"post",data:{vote_id:r,items:n},success:function(e){t(e.data)},error:function(e){o(e)}})}))}}),Object.defineProperty(Je(e),"vote",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.loadingWrapper({loadingAction:Dce.Vote,exec:function(){return $at(Je(e),void 0,void 0,Sc().mark((function e(){return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestVote(t);case 2:LE.success(gc("投票成功"));case 3:case"end":return e.stop()}}),e,this)})))},done:function(){e.queryVoteDetail()}})}}),Object.defineProperty(Je(e),"check",{enumerable:!0,configurable:!0,writable:!0,value:function(){e.loadingWrapper({loadingAction:Dce.queryCheck,exec:function(){return $at(Je(e),void 0,void 0,Sc().mark((function e(){var t,n;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.requestVoteCheck();case 2:t=e.sent,n={},t.forEach((function(e){n[e.vote_item_id]=!0})),this._ui.updateProps({voteData:n});case 6:case"end":return e.stop()}}),e,this)})))}})}}),e}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerUI&&(t.$CardUI=this.pluginOption.viewerUI),this._ui=this.viewer.createCardUI(this,Mat),this._ui.on("vote",this.vote),this._ui.on("viewData",this.queryVoteDetail),this.check()}},{key:"destroy",value:function(){this._ui&&this._ui.destroy()}}]),t}(Ww);function Yat(e,t,n){return t=Qe(t),Xe(e,Gat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Gat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gat=function(){return!!e})()}Object.defineProperty(Kat,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:Hat(oC()())}),Object.defineProperty(Kat,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:Fce});var Jat=function(e){function t(){return Ye(this,t),Yat(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBlockCard(this,RL.VOTE.NODE_NAME,Kat)}}]),t}(Lw);function Xat(e,t,n){return t=Qe(t),Xe(e,Qat()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Qat(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qat=function(){return!!e})()}Object.defineProperty(Jat,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:"vote"}),Object.defineProperty(Jat,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(QYe)});var Zat=function(e){function t(){var e;return Ye(this,t),e=Xat(this,t,arguments),Object.defineProperty(Je(e),"onDiagramLoad",{enumerable:!0,configurable:!0,writable:!0,value:function(){var t,n,r,o;null===(n=(t=e.props).onLoad)||void 0===n||n.call(t),null===(o=(r=e.props).onLoaded)||void 0===o||o.call(r)}}),e}return et(t,e),Ke(t,[{key:"render",value:function(){var e,t=this.props,n=t.cardData,r=t.className,o=void 0===r?"":r,i=t.url,a=t.error,l=t.height,u=t.width,c=n.type;if(null!==a)e=nc().createElement("pre",{ref:this.props.onLoaded},a);else if(i){var s={};u&&(s.width=u),l&&(s.height=l),e=nc().createElement("img",{src:xh.sanitizeUrl(i),onLoad:this.onDiagramLoad,onError:this.props.onLoaded,"data-testid":"ne-text-diagram-img",style:s,onDragStart:function(e){e.preventDefault(),e.stopPropagation()}})}else e=nc().createElement("div",{className:"ne-text-diagram-loading"},nc().createElement(tD,{type:"icon-loading-desk",size:36}));return nc().createElement("div",{"data-diagram":c,className:"ne-text-diagram-viewer ".concat(o)},e)}}]),t}(nc().PureComponent);function elt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(elt=function(){return!!e})()}Object.defineProperty(Zat,"defaultProps",{enumerable:!0,configurable:!0,writable:!0,value:{onLoad:function(){},onLoaded:function(){},onBeforeRenderImage:function(e){return e}}});var tlt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},nlt=uVe()("ne:text-diagram:vui");function rlt(e){return function(e){function t(){var e;return Ye(this,t),e=function(e,t,n){return t=Qe(t),Xe(e,elt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}(this,t,arguments),Object.defineProperty(Je(e),"_convertSvgImage",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(Je(e),"_ui",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(Je(e),"updateProps",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var n;null===(n=e._ui)||void 0===n||n.rerender(t)}}),Object.defineProperty(Je(e),"_syncUrl",{enumerable:!0,configurable:!0,writable:!0,value:function(t){e.cardData.update({url:t}),e.cardData.sync(!0)}}),Object.defineProperty(Je(e),"_checkTextDiagramImage",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){var n=new Image;n.addEventListener("error",(function(){null==t||t()})),n.src=e}}),Object.defineProperty(Je(e),"_setTextDiagramImage",{enumerable:!0,configurable:!0,writable:!0,value:function(){return tlt(Je(e),void 0,void 0,Sc().mark((function e(){var t,n,r,o,i,a;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.cardData.code,n=this.cardData.url,t||n){e.next=4;break}return e.abrupt("return");case 4:if(!n){e.next=18;break}if(!this._convertSvgImage){e.next=15;break}return e.next=8,cd(n);case 8:return r=e.sent,o=r.url,i=r.height,a=r.width,this.updateProps({url:o,width:a,height:i}),this._syncUrl(o),e.abrupt("return");case 15:return this.updateProps({url:n}),this._checkTextDiagramImage(n,this._genTextDiagramImage),e.abrupt("return");case 18:return e.next=20,this._genTextDiagramImage();case 20:case"end":return e.stop()}}),e,this)})))}}),Object.defineProperty(Je(e),"_genTextDiagramImage",{enumerable:!0,configurable:!0,writable:!0,value:function(){return tlt(Je(e),void 0,void 0,Sc().mark((function e(){var t,n,r,o,i,a,l,u;return Sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.cardData.type,n=this.cardData.code,e.next=4,this.preview({type:t,code:n});case 4:if((r=e.sent).success){e.next=8;break}return this.updateProps({error:r.message}),e.abrupt("return");case 8:if(!this._convertSvgImage){e.next=18;break}return e.next=11,ud(r.svg);case 11:return o=e.sent,i=o.url,a=o.width,l=o.height,this.updateProps({url:i,width:a,height:l}),this._syncUrl(i),e.abrupt("return");case 18:u=bh.toDataURL(r.svg),this.updateProps({url:u});case 20:case"end":return e.stop()}}),e,this)})))}}),e}return et(t,e),Ke(t,[{key:"isAsyncUI",value:function(){return!0}},{key:"preview",value:function(e){return nlt(e),Promise.resolve({success:!1,message:""})}},{key:"init",value:function(){var e=this,t=this.cardData.toGraph();this._convertSvgImage=this.pluginOption.convertSvgImage,nlt("init use",t),this._ui=Iwe.render(Zat,{cardData:this.cardData,error:null,preview:this.preview,onLoaded:function(){e.loaded()}},this.containerNode),setTimeout((function(){e._setTextDiagramImage().catch((function(t){console.error("convert text-diagram image error:",t),e.updateProps({error:e.cardData.code})}))}))}},{key:"destroy",value:function(){var e;null===(e=this._ui)||void 0===e||e.destroy(),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}function olt(e,t,n){return t=Qe(t),Xe(e,ilt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ilt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ilt=function(){return!!e})()}var alt=function(e){function t(){return Ye(this,t),olt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerUI&&(t.$CardUI=this.pluginOption.viewerUI),this.viewer.createCardUI(this)}}]),t}(Ww);function llt(e,t,n){return t=Qe(t),Xe(e,ult()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function ult(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ult=function(){return!!e})()}Object.defineProperty(alt,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:ose}),Object.defineProperty(alt,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:rC.extend(rlt)});var clt=function(e){function t(){return Ye(this,t),llt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerBlockCard(this,RL.TEXT_DIAGRAM.NODE_NAME,alt)}}]),t}(Lw);function slt(e,t,n){return t=Qe(t),Xe(e,dlt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function dlt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dlt=function(){return!!e})()}Object.defineProperty(clt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:RL.TEXT_DIAGRAM.PLUGIN_NAME}),Object.defineProperty(clt,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:FGe});var flt=function(e){function t(){return Ye(this,t),slt(this,t,arguments)}return et(t,e),Ke(t,[{key:"render",value:function(){return nc().createElement("div",{className:"ne-card-date-card"},nc().createElement(tD,{type:"index-todo-list"}),nc().createElement("span",null,this._getText()))}},{key:"_getText",value:function(){return lde(this.props.cardData.getDate())}}]),t}(tc.Component);function hlt(e,t,n){return t=Qe(t),Xe(e,plt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function plt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(plt=function(){return!!e})()}var vlt=WVe(0,(function(e){return function(e){function t(){return Ye(this,t),hlt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){Iwe.render(flt,{cardData:this.cardData},this.containerNode)}},{key:"destroy",value:function(){this.containerNode&&Iwe.unmount(this.containerNode),Cr(Qe(t.prototype),"destroy",this).call(this)}}]),t}(e)}));function mlt(e,t,n){return t=Qe(t),Xe(e,glt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function glt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(glt=function(){return!!e})()}var blt=function(e){function t(){return Ye(this,t),mlt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(){this.pluginOption.viewerUI&&(t.$CardUI=this.pluginOption.viewerUI),this.viewer.createCardUI(this)}}]),t}(zw);function ylt(e,t,n){return t=Qe(t),Xe(e,wlt()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function wlt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wlt=function(){return!!e})()}Object.defineProperty(blt,"$CardData",{enumerable:!0,configurable:!0,writable:!0,value:nde}),Object.defineProperty(blt,"$CardUI",{enumerable:!0,configurable:!0,writable:!0,value:rC.extend(vlt)});var klt=function(e){function t(){return Ye(this,t),ylt(this,t,arguments)}return et(t,e),Ke(t,[{key:"init",value:function(e){e.registerInlineCard(this,Kse.cardName,blt)}}]),t}(Lw);Object.defineProperty(klt,"PluginName",{enumerable:!0,configurable:!0,writable:!0,value:Kse.pluginName}),Object.defineProperty(klt,"PluginOption",{enumerable:!0,configurable:!0,writable:!0,value:iw(qJe)});var Clt=[Get,Qet,ttt,ott,htt,ytt,Ctt,Stt,V7e,jtt,rnt,cnt,Net,fnt,Nnt,Ent,Pnt,Mnt,rrt,crt,vrt,brt,krt,Nrt,Rrt,Trt,Krt,Jrt,VHe,Zrt,yot,Sot,Wot,Zot,yit,Sit,zit,Xit,b$e,A9e,dat,pat,Bat,Jat,clt,DJe,klt],_lt=(new BI).registerViewerPlugin(Clt).registerKernelPlugin(Nde);function Nlt(e,t,n){var r,o;if(n){var i=(null===(r=n.kernelPlugins)||void 0===r?void 0:r.filter((function(e){return!_lt.kernelPlugins.includes(e)})))||[],a=(null===(o=n.viewerPlugins)||void 0===o?void 0:o.filter((function(e){return!_lt.viewerPlugins.includes(e)})))||[];_lt.registerViewerPlugin(a).registerKernelPlugin(i)}var l=function(e){var t;return e.file&&(t=e.file)&&(!t.viewerBlockUI&&t.blockMiniToolbar&&(t.viewerBlockUI=function(e){function n(){var e;return Ye(this,n),e=det(this,n,arguments),Object.defineProperty(Je(e),"miniToolbarPreOption",{enumerable:!0,configurable:!0,writable:!0,value:null==t?void 0:t.blockMiniToolbar}),e}return et(n,e),Ke(n)}(set.extend(S7e))),!t.editInlineUI&&t.inlineMiniToolbar&&(t.viewerInlineUI=function(e){function n(){var e;return Ye(this,n),e=det(this,n,arguments),Object.defineProperty(Je(e),"miniToolbarPreOption",{enumerable:!0,configurable:!0,writable:!0,value:null==t?void 0:t.inlineMiniToolbar}),e}return et(n,e),Ke(n)}(set.extend(O7e)))),e.image&&function(e){e&&(e.viewerUI||(e.viewerUI=function(t){function n(){var t;return Ye(this,n),t=Oet(this,n,arguments),Object.defineProperty(Je(t),"miniToolbarPreOption",{enumerable:!0,configurable:!0,writable:!0,value:null==e?void 0:e.miniToolbar}),t}return et(n,t),Ke(n)}(set.extend(get))))}(e.image),e}(t);return _lt.createViewer(e,Xf({link:zet,heading:Het},l))}function Olt(e){try{var t=decodeURIComponent(atob(e));return JSON.parse(t)}catch(e){throw console.error(e),new Error("read cangjie failed")}}function xlt(e){return e}var Elt=Ke((function e(){Ye(this,e)}));function Dlt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dlt=function(){return!!e})()}function Rlt(e){return function(e){function t(){var e;Ye(this,t);for(var n=arguments.length,r=new Array(n),o=0;o#BrPukL~OUS!@Vd z3?zWf76JrFhq9CarPO9?no>%Mp_HwKQbU1K3Y2DmQjqw%fT5IrN&dh09%(#IX#Y?9 z{J;PAe9zahUR~+xF6W-}p7;H|+cD#eF_XQ7$!yI9mtDT4^qR_1#&{EZ_gsA0gdNgzqz~frDbV0ex7~Tqr^lau3fKEFV~Td`9oHWE)LpN?kFmmg7?YLT4&8HD z`c3{){GP_~rP~kPcKzqC`hJA5pZ+@b{p|1^&%g7lzx;#0VC-iPF_w5gL)-Znj>P-Z zPe1(>pP)Uf|M<(oJ=pum^!v&Oob^9rra0q8l}BGfN75GOKFKHeIKFC3qP_T|Yrl-Y zfCb?<+H2q+V^4?Q!{70J4O?K+*7JAnVfL+u?!2948Co0uQA<{T=C|H_;~`vMoXPPU z{mQY2Go`yX!bkZ-EQ)WRU|+%eNO$`Xv)M%qO^eFd`z!u-->~gE_R03a&X2;U>*E(- zJjI>P9vwaz{r=zd-+l1EhX{0x;qI)*d^X;0{($SXoU z$z;L-q`Ahhg|@@~h`a~iUHrrG?N_xQZ2w97^BujjtMj9$p$ppw+Yhu~-~N32iygDG zoA#XZ$8p|4b{+c~`x@WHzlPsr_Q%}jCi@NcB)^#bn2)k=@JY6j-_1*Wh}YPCY@Gd^ z-N}BJon~|VB6c(LpoL$>?&2EzJN7s1JNy9q0DBXA7r&CPW%uwFpW$2hCO*s0<2(2^ zzQBHy&qM!7c&;cks|pRP<5^4=gBDG&Buhc3x7bc-)LrZnb}4jrAIq^kE3kf6W`nH4 zs;tI_*f8|(D0*TIn_|;!hRw1%Yp^C;%hs{=(ED52Hg-O{fbC`b*i~#ly9UpBJ-dP3 z$Zle{u;;Q{*=_80b_YAmj+CJ;9qbYIZuTB_f}LdVXCGuAV!y*4Wglk0&pyKb zfPIwxA^RA6oPCmgihY`Wj(whef&Cf#BKtD?3t)(^qUZmL{Wbe0`xg5)`&;0$@3HT* zzh^&W|G<92e#*|UpRs>ozhM8$e#!og{ZGy~=MtBBgh#o;RjzY`$GF8E?(#VIxX%+j z$+NtV=XjnMc#)U+Ag}N$ALb)`jE@6Ht>II=&gXc8H~Bigo^RkA`DVVApU=1R-TV@M z6@L!Dn(ya}{2)KXui@A7>-bIl7XDm*E5Cyu=12JR`JMb8elI`DU&vp?Ujjt<8TMKB zC+ttz#cVe_0FFAuF5?%nMRqN_n(bgkR$_n2jB~zk$7tr+`A2 z*>m`d`ThJpei`4xFXwyt6?`ARlv(UN)?p9uyV#ZNF`%@M1L1CAo7pDt`|q*0vbVGC z>1c^A>-o8T+Bo}KR76ci_+OU#{AkA3&d4eFFIoFBLC~D6{d1VO{H_8$m>u4V0y3WC;U?LQO*{ma@P69i4n+K&q&)Y67Wfe6}}wLdNhdYZLA zAqX0qwf{&EbT?~%QV_H_YyYtz=yTTolptt!*8a30=y=xtj38)x*8Z#@=zZ4yoFE_o z*8USgzyhrOc|kx0to=nnzz3}T=YoI~So^dfUto;>1 zz!t3iRY5=*to=1Xz#FXnmx6#iSo`aOfI(RMuLJ>&u=Y0u0hh4$Ukd_4VeM}U0#;$| zZwUfwVeM}V0)AobzYzo^!`j~w1Wd!)e=7*+hP9s%1f0X#%YuM-So^zzfPGl|dxC(1 zSo`~efQMN7?*suEvGxxH0VA>Y-wOg-V(lLaVlTn=M}mNkSi3C>37MG(*&YyUzJa2;#^s~{je*8Zg+U_I9UH$mZZ{ZD)b0spb~lY)Q* zS^FtLz=W**v>>2E01-jJiLAo~0Wq?UBna4%b!0(6k*pID1U$()Q9(eKtfL45#$+8; z5YQ&;Xo7${Sw|NH1j;(5AYf6}i3tKKWgSZp@G0xqf`C+6#}Nd~$~vwfpjXz33j&U1 z9ZwJtE$jG#*e9_~2m;DwounY(UDinn0`g^@KoBr6>!bw%4YN*05O6W;WCZ~svreBN zU}e_H2?Ax>HmzGs~Y zK|uPfGbsp|pLNy<0{Um2DM7FUSZ7)gECSY<5d_3gVf;jQuT0xw6aGfAdJh)yEA>+;lL7aGSK@cat+bD<|*lrTUiSITG;>34b z1aacE^8|6?wXK3U@!B>)oOtbgL7aH)0zsU3ZMz^&ymp}=PQ0^25GUSg3F5>%I|Xs# zor?r<;+JB#Hqb^2;$V7zd#VD``;yq)BW!j z#OXfw2;y{~dj)a2&rv~~uKhwmoUZ*ML7dKeu^>+8-6x3CdG`zAblyt@aXRm%f;jDa znIMXsbdCvv#mqX#1;KV^otF!O70o)Y5CnUgbzUh5mNo0VN)T*p)_JucSlg`gfFMTw z`5Hm6z**-(L5z6zwSr)kv(D=T!9Hi5*9(HB&N>eXg3Zo4Zx96Qops(Q2zET{yh#u% zVf(Nk*!HaRYl2|qv(Azr*!!&WWH>%3DCd?-9h>*#4Fv zcp+Hly@KG6V4dF<1kVKPoDjsQ4^Ik$w}N%(*+B4Hu+IAh!Gpm%9}omz2J3uK5WE_! z^C3a-Z?Mkq2!f}BbsiN&F|5w-3WE28bsiH0KM3pmo*;NcSm(on;2U9`-xmZg3F~}B z5Tm*O2ZH!6Y(FZ9(_H*RL7e9I#{}`~v3*<+JS?npN)V$l`M4mS!uAt_C<@r2u>rvo z!#bZ7#GZrg9}D6%Z$2f6-;eF51@Zf^r8xlN#GjuP#A)0=Cx~B;EzJiI--|8H2N1sk z+s_N)`>_3jAozV)=g$Pe1H?LC6a-%o>-@PO0%M)ig4hGt(ini?DPo;33xdyxb^byS zyhp6_6+!SLvCdZo!K1`FUlT;p(+46TuMkcNS~B`Ebo=yBY!0_7}*qgBKmOjYs#YXBIWz) zUd`4%rEB^ceT)8p{&xLC`X}|T=s(tUrLF?^f@)_ptXK?@{kF-dDVz z`*-@U^H2CcPu!4rW8yuD?<9wk`;yN~zBT!w;vnF$O=6L4Y*~RQb+4p6?+qb6gy1uXHrgOLCPUQ#lx8@(q z|D>?5aI|ou@UggH$a@WY$N0re%qxXz{e{Aj8U1RSZ zJ2U=)@$XD*o%p~co7^&ac=7|2Ppw&4bIqF1toinuUrfDj>b+BcI`zxx#pxGKpPv5Z z%+Sp3GY`*vc;=h4#_TP#$7jD;kJLBS@2P*Z{^PmA+|IdI%za_*Cyjd=k2S}dcgxtQ}dqYwg?DKDBP|y0@?Ur}a0jKefT$Ft}mQhPQ6`%7*rWw=li%#)Z#q+`aKb zo7_zYH$AxNCz}U0Z{PgR&8IehVaxF??epyOUUlA=w{F_{-mO2`wqx5p+dg!@cK&te zf8zWfTwq)=%HQr?Rs?A=XU-0;<=0WUi_+yzqtGA-S_SO=RGwQ6myfq%8R32DHVk_mCJii469ygs|Yae6YL@Ufw7mu?%%WvuGe zRXd$q8Xn-XVY^Ag$tM+A8rT=nEH4$eHO2qP%|l`m(;@U$@SNyRU>X2Q8Q_4diphb!n1VE_L6Zsf^+TX zaBin{H7Z9`%}vxO>X(DmG3Er01$ z_3&Yy(VNC2y8ejKoUB$)E-fAL!%K#59&B7l(ng@x>Uf)}HG-sCYcz+fX44uvB{s*f zvF7ceA$uMl&{?AG5!hZjojcR0sr7QQwrU;4`%iGZeUX3mxPPYOHu8E+4e%`L$;Cx`*QYn-f? z$L{KG&+Xevt*i!(R1rU9uL`gIdzz$)L_Nn{QZqf-mmP zR(|--dZp5`9^&(rY=0|$NJMrSqFxl)tWgx9f|;+D2NZ`Z1!*0hp4$lFfb9Y%!6ct) z1UbZH%QNLUe8I#IQnpm)rIuu<`xHakDM?X1+K3ubtQl4IMf9ljTuHihJ~1Li_!ZkE zY3DX6vJ-(rNg7*@YFv#jM|DkBmHtsoSzY71XJ5=^nJeltj#=iigoiuJ`+4|t>x3m6 zGu2wTF*DmJgZY!e9Qqh6mBb7{s~dAPXOoa)6VeT7|t(EVS z{J|>Mb?zVbE|hpwd!83KxulsH887KxA|80o#YTFU*`M}&&6wBq?Yl0PBNA`apVGLmkyr7@PM5Z@HM6(!?aJE*?wvf7Wt`;`DtTtva zsN226{*H)goHEQ;N!7vIYx$SuCte%g%ZSGxitM`hg4X=}+3S+Lnt?C*0`vr=xmr#r z<$-FgTE|>~tlq$9Lzz9Jr~|4(qFTxGgo-hpsZ}TWv^tHS>*YjH;EjYbP@SEdPMwh> zF=KP!Xm-ThqMH#eIgXXIT?o>sZADE9E;eB2~*BdB|jChI4 zXw6M{ezkcjo3@hCNIIU$@7wCR0|_^8lT-?2x(XB?;MxO-dW^t=nx=Wk%MPCuA|8^J z1U$agXAnhqc)c;B60?J9cyExD48JAI+`Una#nc;h{aV*{uhk!nDEqIpk1nc`b=A_m z_&e1Ue_WMgG1++Ba9!i^kIM2%`)#uHF01OzdriOT`M&Q7*}~3%-!zIr`J{6i0a^o* zRG(>|Fya?o6!*8L+f0laG z!!Ay@#U8HGF8}Oxq_|%kNGnz@4iVCmd7}UBBm40GzaE7A1d9vtsX_}w`9Nnk{y*=| zIUA2E9(qeMX{SuhyNU3h3M)Mh9ayBOVx?RMdnZGD)u_`H z11Jc0)#?GMe7qCvY9zV4MPG!msGreKv|39oqp7!!Rrj}mwOY$L!^r7NhOw0MeS1VV z41LsU`hM%+sG{r2$N`%EVw?&84Iq!;IfT=FQeQlP)UMM6Sdgkv$+naVl8GQm8ciuf z{*3Z9<*5l|%nXpQoP$b9VFsv;go^FibLz8=>Vi}VRfG`q`*H(CXl_2-ug3!&XnJmb zNY7^U!jRVYJSh^5Bsj2g)YLr9lry@bo7~i`!E#nNEk(y9EBL%%x+Y#+@e8ws!L>22 zo3dW2*4#`oHoCTM%Q20cQ=8WQwmcb$;&PMGNL4dUts0S@<5;>O>6u(cw+$mZShgfw zzKE-5TpWVyuE>roqUR zKd0aWyO8AdY;^$YuS|SQ+vGY0u+NT|IP!OR3(c@gQ3CNrvWkCvp;B=$ArSGITU_pfYpZT4* zp1V1J$j!*PWY!?BL z#h4MM*?`#Y%P?l(ckW0EunKrz+9)kx2x=2@dBDL$fC;LQdf3Pb(BTlgV6YPY!7=q} z_{+>Rj9k2c9&9PJcxR>?7;TuVMTve$(l5M0k4?ryCu$l1HBniUhD|e~aKKSnk+rB9 zv$U9IM|IhVr*ox&e%FXwiml1A8i_a&OV#XxUCdf3SLYERAgGRrY7oFNF_$9IZF(#k z)fEM51pqgSYetNyF?q$pqJPDU0X(A-1&~UvnX#xAm7@Svx)Rf)P%N6QSaHJ{=r83m zaU%j4rp2PzMk01(kHmG=%UZcY!BK4;yJbbw)kst}Wz{eZ+!oEiy|6nH)nq6;GopU) z3V(6oidFrsAqU|lWNT3$K&}PTMVW97bsAK&LgqcXnbd0#Y6J{QA{C(j3Y{QD95z1@W}d^17R{ zvPHY_JNvx-8?GqByQiV|X*jXzS;MGcY@*Stu#1Kj z%n;GSF2%s=+ahL6M-Ss@GF)g_Bc`R=#X`=?#x=rrLbgjlk7Sn(l0UprhGK!?5`b6B z=&hh!pCag9pWVo3%L8g1eGRKE^wJQpe6R0paJ)v`O#z{B9(*KjCLM2}nDiVcF&IzB zVx}H*FBuwo=*k6IQRIb&>$`S78p+07qv}MsWO^3ey=!2IT7ry7VYs|%zlXT+v0#OsnB?s|dg{}m_ z88o=_h_lgYzWEJ@owU!oiaw(c z!ZyPT@yFC=2!49vrAuP_%zd#tE{$DrMU0wDZN?GQPd$H#__2HB$}wNUmFO5W6$bam z!wWp~m^1J_&@u3(z+2G$RUEoUw(P~^4@Ey_W^rwPH5|+b!RY( zRh$KlNK(Fe%3oSKbL!N|rQUUcXqITE!>3f|>X(*$zdP^M?zy;H?`-JQa3JdC=1Kq9 zvBUl`zk2fYi4#l5J$yWgOLqI^yNC_J6W^GI?hI0i(6Sr=I)Uqu49*1(wBzTZvK-C% zMk4$ejT&*N>Q#HhM_-Q{(P)>Cg#V5C-Rml$(K;{@>0Q-}_fHuSU5^)>{=xo2Ic}Kt=)?7f}9lFeFyJ0*_~Hk?&&OQcgPhKXgP2r{szSUt3C)6N&N=y=}`6@3z?^Ou+Pyr`rW~()rxfs>ZV+wa{dHqhydL*-D z-Qag^vE`Z2PaD1+OH|xPl6tPu-}@k{2ZVoBg=N11xosg%Avk88@21nQ_Co7l<4ivRi?0+Tw(i(_9{lcu*WE7gS8ag=$n!cF&;Wd#{ye z!+au?>LXs2!`MJ@K_-M^tkz%ePl5u#vY8~_PFc{`rIJ%9ScN~~%2U52BC)m!KlFY( z=C}MUx;Kv*+mqWVV51Z)gfa3AG^m>ZgaP&l+ETw!ch(8!helfvx?xrHaINQ~tQ~7E z`9{u5m6C}*!`KYKZou(wYSC9D{DfVx247@VY<#q;Cn}S=Pi_%kKc)X&6gUFGFQoVz zA4ptxUBVh1e9oX1ep<0z2&HFOiE=r`bBCe~Dj|gJA#!i5lL)+rg8tohw$JLr3o?Be z@&)qxxCfEl@~X#L$B#d3_x1ITIO>xq^62;0vF35~hmg-dL{1aQ%$1&2gQczZwr%#- z@cq@j5BPdk4j`v`lH%eGSU>QW)yZK~D+6Cb4?`UfV9pm%g#e!f8C;MJbHM`ksG)P2 zl*JPqE~~&vLI+AxQ0!9_HyTY?hGM2|UAMD(Of~!Bwyjr3iwDwv+8ToIoR=p1{Zt{v zT_+WFZ5yb>HgZ|lH%+TN5Xf>Qky46xrEj=Cu!e?uG7D{;ro2(n*3chvZfi+Gt!ixp z&M<0h*CkErMzpq4`PJ>6oJ4z_h^Yp-u)T6Iw!`?inbV5wr4m~8 zq+2PlF%x<+fN~qPeN$5iZM?yrp0=AGjW5POJvAK$H^R+9?Qw!{tN2@nZ$Qj$Ol0a@ zF!i(e8ZPz!^!E z#`r^=PuR+2A(DM4tV8(8eIaNOn3)NK0T8<3XL38!0}ukBh)lSj-Qt)A8sL0KNb`&M}ThSDfaG~78hg!=|xoFz5;h)aw zca`b$lCHP59M9{ieSTk3ouu!3TF3P*14_==Z{X#(TDp^5;Z>j`lls0FLu-WE2%c3) zRS`X#bm#8Zy`$=oF|o{5R&gmx~k%#&X!dOwnSD!=;Qx-Cr{I%y%c2WaUr3@Dh z`6w17>Ra+iqBm0%dkCYih$6xetu`ikkt>r@kRb=Uf)Dc@;oU&-q-!e zVVQI_?VxQ%tVVTbpJI7~-UUwAho)K+15VD3rE6TA>GzF?7s*ZZc`+$s**z^TYdiXO zRvQs(&>O58yp$%dW~RTiaU7lu$M5nz@sxPBjsLYLBcDAfsQ=vaOhR7vPnP~u4{g0V z!GNpr6=9@6MdW+}h#DU->Oj~H6@0BiE5SDa*FR4LDm;Na8&vu4aIc)I1v)n=AQJ-PrclWS~V zd&0vdG9v{&RvMoidB7Uh6EVq7LQVC{5i`nFb<{R3&$0c9L=g1~gN~h^AC2|oPZ-+p z2~Ii1T_5!jWL5<;vJQ{m`Dm*Od7_Z93`aFsAVpq!@@Nt$nuFA=!-?GhR!){@=g651 zD-CR>LMY)3VDCEoo~cWbf=}H<0N@& z#PMIZ=7I}ue*JG9bDc!OajleuvveJ&8K!CAEZyLqFQqIu7IRxThbNuf?`eCt9w-Hq z?scj24+OU(<*YYPQ>&iozxqUEe&bn^<^R;9`1Z+L_rA{mPd&%`wIlBKVEzDX$*!Ck z=40J4+4Nr>k%nkJLST*m_yMHkIb-qBm)!Dh-LQKPkfh;TH4qt%20~7rGY|*eOH$|E zc$XsI7rJIbS&0gQ?_rJ;x+&oq&dzTbeiB@&G?R(HK)1$+1_R0K9~w-_UOtw~IFe<0 z!)a{?#S_04li~xt0~R$Y7UVLTsg+08!QCr#ebrpi@AN$@1npPudCIAAJC0glo2k? zjT^I9#H}QWf@cd5D-K zhA#X|^_05b)pq`R_Z(-{Ip~O$b0%}St5d1t{rhpwUz?}k^fb2|@18^QN{5Zp4E={) zxdY(})oUXTjZjgTxB$0#WV#TcECGb-LZw_^6aps+r!{=WE=W>Lgcvj<7K<605>az0 z38nMW(>*D3Flwpcap4K7WxB95O?aAdl4&Z2ix3gQ)IC`g2fl~{{Wr+hg^>g|V)|0j zM*tVs9DN9rLqgXboW2-ta#BDsuc(fVNE8XfUBu4H({eOpW>r0rFtz+8c|D>9vf{1v z6xBtRMMOE2i}jUrv7DLLwWvaeddZ}gpVM3?ro`yL@9S#T%qS8xxsEGnX2Mp(E5KC^ z)6=~@AIq0PW?oAs<60(`i7L95&qh?!(c*N8khKLC$>K=~_mHn8Nx8w$aY>3&k>JSl znR-PettA^rPGA=9KXKxzU)tASZ~Hrrz8ey_)@#q z+LO;8&%u{^>XbMJIG@Hn8~QikU=dC+X#z<~m=%;5PD` zkB3jIs2E7x5nhXA1%9Of0E}9Jc0;u%sTDRvHc)_nNaBHRzWU~lSMEate{h#xoOgQEo%ENmeF+m&Oqz5`YG zHoCnK#^s*T5C2$QTaRUpq3N07U}WpIRL{7cU{Cf_Ao~N zta9$nxV!o`?_G6$!EabO10#$(V3OhS8p+1))Y4Kacl#Ohy5PFl2j2ukvUiUdkKwsW z;pk(0DK7vCKy_r|ict?lNI#+U=iD`Y`Pq`h^HRDtF>Ka%c`tD3p;Mo1P5LQVDRA2i zBvO9Pdx-XydbTiDyU4TBUUB6mQ$s#O{KQ9FiAAc*>Bk-;gXs$>vJmrc6xfc# zf3z7{1Xt1s1eoHaHX$_0Z-S3V5TMC7MKU%Nr2|l}Bv-37a@kSZ0M5Y{$`p=7+>7jC zc!O2sBNim&RMuxlpHsDlYF0ITztbJG24Z|{0#_WhhPjQre47u)Mz|B@6Jur>CcB#- z$j6_1Www$%`ZliH8RQ^joYx>NAvQEbml+@?@uTxPsK9`7H|Iq8v{8nlPp6raC&kvqQ;OBSC>~`sPJoBSbB6ZiGxJ!`BFekiL&-rp zB5v@I^}-NHvcRd`J`z3ylVsaU4h)?Omp{N8qISrISvHVn;h#Qz*l!|huh~tA`No&3 z^ljC($R|SWK-}+~YawU0TwlqkS*jeat~8}uIZ|C|OYeO0Sa$mt2(nI75=@;)^)7Kl zbW`^t`ttJ0UWW*OA3c*CYH`FLVWal0g=aanxTW_r(A9^-%${$2smCwf_QMsja(~f} zWc>B+zFcW8E>b6iF`eb(%~lIwt>@3kLZ^zc5ScWP!Q%D}T#0(K$2p|c>3bE~U3if( z(mEP`gd?%lY7++-`Vr)@gxv5*wE|;;(~a1_pyn7cQa?lnp*ss) z<&0rihpcO0C-;wyxv@rMemh zK!RWNy-gm=UKD-nkMn(Q|588Cyfu1Jc1(U--=8)64D2}P8Z_sCo{&>6+^S&(0pSPa zB47f-(X79go_Z4DpP#mtPUiIEj~RP({mmLC`He@8>~Cp+0Nt^~x&RukhiZhCFyxBd zU-{4iay49YQ6!CZH%q{F+)D=?yx|ogKJwM!~0Et z`N)wYM=^hw!zu9Ojr)%w3&1!{PJGeM6mpA`@M6uP?mulvND5-IesU#=BC(ZnfZ4Q)_C8f-9>|)f?@vW-?OT$yfcVQwsVA+-hXp8t=WR zLc|?zjMls$qNmJ(k%{C)CKfxR7Y8cAh?|!Ye@pM$?iAZ-_b8P1yZ=)y;5 zjcPSJKAx>sjT%f3-L5(rWo%5zI8|Fub-$V#9WWU4BS_0PZG&qtzAP(}w9|IEKZshn zfl^9|X^T7)UP)Y3GoNvp?pN43HM;8>+eH4i#tqx#njQ`MJU$C+Ay@8CMPq#f{RKol zh5qg7=w#P3L23uO=Rb(PR52Z&6;3?nRTmc_P0kI$^mH7oZ;h&*0|q1hOrTL2-Q@P4C&?Kk)<7~8^S%&P)ByZqqUIK>!f=5q`%(} zUr+tLzvwOc{%QXRd;s`}-V?vTU^$EwIr{N%_(P8ugl;Rc8fi9vKn=q5P*~*?2u+6O zc_RRvNKKP4Ku{sfCPIl3{H_!sPcDrVolJjWw&<1D|8~J~{OqtajgP@Q)Qr=L;3%R6t315CX48Es& z_rZJ^LA}Fn+=u2b(m2WU943@gx+bc%0JboTrvqemsJ2u?vL8wukTl4t0s`tONI~0x zfgnUk*rQNHt-mgof-P$%`wD%Dm|Mz34Wx1DDI;y9D2q(hYMSOCNnU|Tgsq~)KHfj& z_Gg3lAQkM6Xxt2PH~{D3637aH10!NsmWr=Ba{iK@kNj{6@)v_nH@99GcFhW11n7FG?}tLxY%j5nsWKr)0LYifd$!jLGY1hdnLfly1q znTrP_2?-ArVClJsd~QL8Ak^RRs#DFIkZ*#Qn@Fr5cZ#l)9e3Q4oj_`o*vo?j^&K2EQL<;ATw;>6I z71}$!7DbxPmH|LHCP@#lR1fQ0e0f26gRXCB9&0vl zM9^?a_lj0($g(bW@`e5WWJMrA($4;{x*!2o_{;OnFq&z!3aO!3ZMT!_^Cvcg$?(Dm zQX8pHY_u{1{5%AIQ3F2v3wxF#C0m8fMVqKV3rZK=g8_uI2=CLdxyk)EJsUtNVc*O& zwDTMQE94U$0F5}qBh+r#?OXg-^RqfC{S5uosU^iqB#}HBHMZ!ykVsf?K$(Vik!STM zyuU{4Z(OA3h|G7NKwtFsH~o2EL)t>Ts>gD?iS%UCLB@A#-lWutm3SKY*ZL7x4$(Dm z669R5i=9NkHv9%n4Wyk6sQpk(Fm&(%@02fWT&8KyrIsRGOCJsYMors#MBBPf(~jKa zZ$9;04e@hSR@uPBKp!WKsEycj)NVS?Jo5UQt^H_G=(7&<^$pnkImAO&p?!D?8ieyP z!y92kV5C7sl9gSyk!uM-@rL_DoWH2PoZsy#du}+&kE-tO-R@Mz9v($X3Y?05Avj|^ zPA!$cn7`4Lk1YAJJMUhYwMMKFJHt_^Pzs@5Pfzvuu>={_<$ugZ@I4I|vJT)=?lB{c zGImmf>N7MGHaE8bM(S_CY{(ze^RDV;<1|JilwMTEwFBS~je<80K;I?OGg@fM+CxgRCfROo2GlY}qqjrVOBMSn1fuGS%ysg@9>xGE z5rdug-drdwKMs)pcvE2eknbRc(52|98Y(OIw-&ity7H!*t}LC!t|}xIoMyeF$V#G) z439osT|_#8I0F#iN~Az`eJKBiXCJ5aQ4qc(C<zUofI6GmS)?LbS0tU z9Lupa!*pVBDx@x`s2beaex)ywyhPII~QUeXo#FqwDIYj zyR3V}=3Um2Bi21Xr1S6T_WeI#K8N>gh+Bq+Rat#vM=N%TdC6~Hv@>>@dFj(Tc9@r3 za(d@Z^U_O64xzpt5G?eObmd}@qyP#Dpc(k9$X^1fxFU(pV(`%M9zYan=3TCG`9Udi z2dqrhToFdA18vQ5rZ(B5DX%wFx0@Nb!nSjh`_#`)G%Ewi)%qhY#PZ z-a`0T%;O5~ZG}03kj^ku$kc>l092tKNm47|GQ%yQByy+qX+3G&8dnx|f48gNc)8+U zp!*;HSaF-;-d0tP$0p!xF;0Khl`FEV&QC4MFoC=H6Za8%05x0T4M>~PVNqZhllDp|2i2Ls!=I$A2w7p0Vm= ze8eS>A)^ymdqCLWJsu&PLRF{ph#3;LF3;5=dXTUI|FWXuBT5qR$wBhQDh*aI*Q<3% z75oeFHtcCsVvFyPO7I@5&@tprc(Q;}47kuVWG}@nD^3L#up&`hT%i1|;}ld<{(`3B#))S zfChi4-#`fnN_e71RFcA!_?0=41x`)jiPwa6#^m$}r>PXqTufdR%|l*?_8g{fSP4c| zWB5dI4oLE5OWF%Ott`kI>ZFgHYHkK*!KC!z+@6V66eCtyta==*CM~FIkl3wnLDg-` zGg?SdGd!3zl7aw`g39z>qOBHE)!oFz#+a;YmXY))8wS<#_Ae^rKmZ!Wc5#NgBq62B@{EJ>2b46 z8KpLzgx-!}QE@jOlU27Frl#6yp7U>#6Ud&GHAJrBS^36T{B2RmPQW^|T=#{t5$m^O zrh-GXsB}}z4bQXEeTm076qT*WvAApC@w;Z6mxi&!W_(p}B=sX1Rm4Btipu)H?B1a+?D(O8W zYy@UBVMFj^lk0Q1?!g526OsI2`h;fmo&en4TbCnm3x_chkwU6M+19|k2g;y&u&^48Qlb%h3d2w+!b3k%-{4VeDGEd)ae=y} zm&{14F@r1uVwnPJwS_7UHQ&veg(5b~RV`0<^zE<#c1JYiV5;0H@gW zq~H_P@Jtm9MD2GI`Jz=US;eANDq3HTDbgauMB2t0F{7b!uj(8>&(SxU703Du?lU{bJ3Dji zbQGCep=UJgj))rrpWu{`O~T&bxrBqxNTRS2*%YfgV=}igWnB28KPy5A!tU(W376A6(xu0CW$Y; zAYwbAP;iW6kVvtJ3hvV$N#J6++@za!@p={JDz3L3DU{fB`Jg*r1Rq>MD;EA2_~6{h z@+_X{O&)3PzrYb^r^{-w8ZyVql&;ystZXNLKac3&|DAFB5gk zWUYrPH;g2PC4OZfbV^czp{zDgA4!go`powFQ}x~XsEW~=BpbMevm=v;Zrt;HE* zZezAGal|JKa8>`BlbdfX_2tdQ?BV8Z+sUB;r+GiEQeC0hsZe1&u^(2BK$1kL zTkEs1muir6RTZLMq0~+k*<)PbM@9K}c(6ihfGS$yOGKz3{1I;rELnjcsJhLhqVH6dWtSGLxQc)92OW+5~)Ugr{%2xq| z6j@bel^Yt;snk+D6G!QA#Bh_tBMBENH+nnKH=d58q;7(8L?<+quEL$}c=;5nXuSw( z=}ie0pt_bc@^J^bLXP1~!iN>fLTP9bRP57=7YY`#p-N{9D`P}#ONpmPbBSycdu0n@ zDL|O1_zZS&(1dQHj zG$u>jPw;q9^Q?$$8^e)^F}k*hw&0mXegHjljMhCrr#1ui=d{*BwFW3grRP{C3~vzd zj#O2NLq?(g;b{(;2$}x~F(F%M68HcCe=Jf1t}37?ssThb8e#;LRpS`yg>db(p>4D( zNhE3oE~?KlP*^1iP*zt%gGI17y83sHp&yyeX zjlsr3W6R04X+7&2%oKSRFAR ztlxm1#N{Qd(}0!QQW%=CwF}d^-1NfQvC!Qa0;&){#9(n2pc|*)@!X7j@r%fxaZYt% zfO&*|AUmT>95I7cT;^s`3ypb)&y+ZUq`A2UC4MN_MH39B1Rz+o239Jk8VdP39_erP z_cyoD+l%#r7gLbJAdm6Lq_mk!+j-nhbTp<(9_2LwS4N|N|e!%WpUlbW9R~nE3*608TLX9)>GDDXf5I&OEW{y+=lbg^v z2_3cEJRSquJuvO>v*x2%Aksh4@|z#8p_VM2tM&O%NNKC(MVmH$deD6l@*=uCn?>GI zSQA`9%_05c8Bt%zl~XX?!P`CmxdSgX9h_%U^VYIpRrwzo5ff$=J=m`zoxxki@)V9`Il?j%k}sRUhv|B zns!iw>D_H}3G+;$+#^&eQwW+8bYVQtKp6xo&pe5|hC^0ytKG7T2d%2r^zSB#2bRC4~Y?sl=et$Jsktn|`99y_HY z*zTP?`FmlNl#lG-@VQVuF6z8ReJN$Q;Q&P!>d1w7}T@&k4nVD$(dX=m#gYWi63;hcOUH4e{Fu& z9qX?W{JuJ3I5J(Uj{)sBh!~Ptf&O(ddD4VL{G}bp=+Rn zWi_fAegcWB8L^E*9e)La1oaK@aO$XXuzX}{xXK-OD4Of*h_@U%6ph6oG_lB(rpa0+ zLtCg;#YDO*`d{djJaP~Up^d*ltC~PnsOUNh;q?+XRZ9GZ=LmbB^sJcYuixCn9kvYn z+jmSzQ?2to*J*B97`5U2+ZN2v2iaVtKQ|6ZHjqy)T(sWnAJFqvrEkodyP$>1F7BJa zdi8Pm0htdgJrq2mbP@B6{24UbhyeV?-IkATuVN@X`|ho@t+cpzs~tyT#TG1ZbTn?? zy6-%r+dbbn#8ImupLx0dZ>B3G+dP@46J*i+h8Sq22qf+zD$b$`rvc4y#co( zKyi}d6rrzCI5V-cF@sd6S?#s@?3v|BTidHy_%GD-Sj*PxQ}@{YM=fm1rZbX_#Fz20!L0eyNWuYN zPI_^eUiEd;HbCve9+fV1{kS#EZ^~>!ZW+dcZi*3rN{H5=5+Ib&ub#KOe?R_Dx%*~H z8!Bgf{|Lfze(Ap7ol*8KfCtXTT{T>XR_YrBS5C9FY!mvkXIcg|V2ws9QBz?7r0_nV z*5;Vz&me) zR-s)gb|oQla`X(jxaVaIVIg#--m zLy&TS5REYT16CQ?7??0>RiMcNKPg=;*^u&zQU&OZNqZ&3(v+$a(Z{hu6a2=BSGsyc zl~k20vE(a#U7`LLa+KmJeL%MGl0%kEVqGLm64ERP&B;Z;Rpcg-IE9Og<`4>MC>c1I z3I6s?dY>LscE@;BiYhR-sJd@AqH29_dWoLbHp&nOiKI^k&?Y@+^cyc$r_DYXkPZ|! z&C+WMHZWPX!4&Khs2)+Vf~JDa7qFNd6*!XMghP*(MwtRSpQR7Lt~i($T*PaNOz7_7 zixl7&i!Y)lFpt7o7~HgcMAG4)gXzGrfJC^?A{_IpmQ{pBL2EOT(E-x~OExPP!7k~p z%}8h9fOF4)?emN?&iE=8T*M#NTZF6MqgcW@%PT6px4vT3R3U+}PNNR<_7pADh((+J z-Sbq;6tTYJIp_7}BmVD5$^c7*vU*jWTrV3RYmtfUrw1d3j@U$0aWp9|qBq@y$6*;c z!-&d8WXstrW?eTivNz|co-2nLzm24|gpNi36O*CG35{*!FpW@8OM`^j1)CF&E>g2l za1>Wd&5#qDB!mL@>t6=tSVWmDSf-=;V6vtzEk@$`%9w|6O1czJ6~LT}6+N#9aTFwB zSqe1I#M&RSW%G2jG@8m+Bc7b2iztF<3wHXC# z{-XW?Gp`(o9o#EmS-C~OfXR}EB_?UbwH2+Ro>cL^wy0rm5uUz3P@EW9fK~sl;8<{% zUoD9pC$Yq?hteP$hMnJ9icC82mMnF@=dmoYk{N$ZF89EA4w3K>lH)C``%l9{pd7#= zw9E`fs23h<+aMVmq^WEen z{kIv3$mp}m`gwY%yJLr|ZQi_b%Z^6F$fqpZZtSr14aT!e_*Z<@XWI$y#{X+8dwTLe zZkt~UOZ5NU2HD+m{179eW=OQb3$vmjTtZs{mN3Qk0nGx@U9UHu|9s<)I~NxZef2iu z$iSXUc80xjqR`@;3ibZ|9Q+1%y9)>XaI@qMrhN@=@i{SZ`-n$B|EyYK|I^ zxV;L3pr!&cAww7H7-dIc-5;_5D3}H>5n;~8f=m@W533->?OapF#^#*37Uh7bN)s z6lE4v3+}UDb?3qa8YQpRm*n?F$&IisVcpZf_XFDjpkQ|AE^jS+2$OQfyWhI++M{F? zwy2Ke=(YD*_mjV(t9M~#42Cgy>O88nq?%UbK~le><`U6a3eeF~s4)D3`pPi?9O15T zNuQO~5fH-Sm(6=r`~vR|ieKO^?&C=pLNNbMdW)}J{o`6MiyHPb@j@Kp()0Vg2%Qpf z0dwWSbOif%_CAPX;@;U~dinxf+Oy-Kq0d$=9%&s}S~|6iq$-kOWXg2ol4p-c9?|ME zC=y)_mvvZPURBoEn-7FhXnjBOSj^D>)rj0=>hPYcfUGX$EC2*U<%gmDuqbIGpT_h^ zITB_~IY87mbeE$P6q5()9#Qht%tmRF`aMkNn61J&7v|t%-63fI1h6CWUS}Q`e_w?! zj!PCy&DYe50o>0`&1mSCB{LV-1i z>@vJBon%z+M}Df6d!Aj*6?l?t9VkM)(*V(6(YE(})dH)P(`WzAbXPh&)!p`Zr_4*C z4{`=^ZHzy}9^k4N>sl2e2#7RE6*DMxP*fm006utB5l>bX_$YyCdu9J0@UFYg(~3?i zkql7T9mx!>!7`^8oIjYJh$m4M?4_LCmRLUPN>eJovoqAc0 zSWZE)?aWvy&Nr9mn*BT;Pvt4RDeXWaSUTUQ#`M9lb3^Xwuo~%R#P!Ql zNEL@2-3ZG(){(%#8mEZfKw!W)pf&Euo8Rk%KQmBVK9JzCb;i0FH#c($8K3%^H99X1 zVCil^HeIf2Ne_+yJywWEe`&;$10&wuccV-CY~CNZ)}ccd>cxhl;jxyJPymOM-v86w zn}ElaUH6^1ud3cw^bhhVsGe8Y^qxuA%Q>S zB+Ew2o4O_0iD`Q*TXMXKUKG2XNynoe?{X54L)wlV$(dwqdb~xN*oocFq8Z8aJNH$A zpt{{^&o|$E0}`nBUcKeMd(S=hEdO&3p<>1Ekp74Z3)e2PxM-cXxjG?mgTB#-6KoV+ zYMP`l;eS?vAXm<@OELt2F~LB4Z*Tj+fTYS2lVy{xMgJ1yvDgs=B`;oj<|+VetO_+) zq@d>oobzg+(<>kWy%I=_*7{BIM-K4b*}mLBKrq7kG%ypMu)W@*tq%HCsu^^Py+^b= zvLtg?5q6tf!wePXAAZ9Z5zjWy)SO##S}`lYA%U%|9C`Qj^evz<<>6j6-AzzHk4jON z1wJ?@+2`bw^Y4;bA_&^cM4w8oY5uqJSazr+Yk!zQtMzsTI+15Bc~B`XCCl_7BKQeyFyxiIqU zyI*+W%)1|vK5wm2ceu7`pA{oEQ%1TWuMxE1Xs^{eAq!0Mdr1BKiGlv9$=f#;78b0L zp&NsP(fp}Xlfc+peCaQsd!5|}L6_Mp>2{D{CJGWX3JA1Tn6RpUmPj-rNqDviC7w|6 zlyAKK^Pm6e6YdYW-SMOuOMw7!`;VeoB@El%Kl2?JPeZxjFR1A`Ew#a>%$muaQ6j`w zhf}K3Hz8UEWq=fTbCF?9vS?dwImt*gog`0zpBw0*GLCYxorHQnmX4>QPSMZ21+QG9Sk7c?T?jdq?wYK`eO;t| zu#-nTwa>DPVlMrfAx3o{oW?nUk5*i z@BAfd=2fu_f^pIT%A>i_oH*p*cKGBd9U%BF7C5>CfeSC@h(dVxDO11~sKTGyXT@D2KJ_=?T0F`!kQjzBWFU7o(Oce#rb#Fqn+Z+K-sY z$B}*uK1AZ?pArhpQrbbgfP@KQt-aehFW8+ zEfh?F4l|}&AJ8}hSzPr?wu&58eyKOp>mBe9ta{CoG5z- z4*UZz+<2-Sl>Jffzz_$$QNJw17Rm@A)*%JjL1)uJ`Vy^U0;vjj4R4QvuDP&;GRpFP zMH1DGR7r37{FewmaorcT`B7k`2?Ur$G7Uo1zl#iz!CKlH&!Q@5A6{rH7AApc&2Wl+ zKmyZwL$LxA2wzm@yfle zFPmd0zRVP(2Qph|25p_Upv~eSVkF^j@?sjX^wJ3^Rxg86kB?0-ohqimucRLShVR)D3G=et>S{Pm=Ex9}X z@CcCP;EItNI9rO4w#s-ld}>G=9n@&H;jDR$hMp9tp2$1mh|!LD5dlKiJQlnh*j}w- z><@-JoEpCmQfkaqF)#f1gc*Ij8(XYkozXFK|?(&j{Z!zK4w*g`UFIT$Z!k#JHR_F6x(f zXj=-kTqcwuzrven-R>X4DCNIIeNa^<11X2ww}~Z@cuo1w3Gzd7q}%ZA8U5QlCIOPo zAFku-*-VCb&Re%`;nl7N1KV0}YWcSB<-rUqC5Q&J(@^xFo$XdX%V$;JklWtWq7}0a zT|4}dLIwnxpmK>AuHS*TA;&mf-=eE8!&e0*eg-bb(palhk*tAF_gQFJVu-~s8p4X2 zQHfTc=wBEFCZ||=IY_ubQ|GF+%n9SI4U$W1Bnz4C6Mp7YrkHVJ7RpU7o$Tp&y0a&l z-tJAcCp^{}H;*}`cnc<7zbC+gAVMaVv*|y(eQBF`L=6q-$ljyABWnT zP-XmGm|-+ZmAO8Jgd+e&24a#i2$LAd1Qd)U$S&6ajK@-ru&c#C`4;(s3$b15@+`V?OATR4a*y+k)iM6BnC+qc zRE)-vK_?4DOTfCOV`RZTp;UjOug~$Vc;NS0k#^GwjE}hfuph+9DIT+k5wPN9;G??@ zQ0V3`-j0KPlww34X^&7FDTrJCXPgiT?SOccJH~!b)RSz+L_O)LqJUF75Xf>O2`b2n zdEk#DrrVLnKSDl?9}PUWFJbTXvKWYC`z8$IhMV;d+ll=c@s*LV_b2Ql-lNBnmeld1 zP@833r9Bh-Vpx~5-d;P==X$>%!gr|^magi%3U3VgqXj?9Y5k>F%PZjVg|Ng5qL&-} z84)sLuv)Vib(@H-kRjZ9Md}@fKg4on`0iEVJ@WI_KYO(ba|!cewC3-tP>}c@#e2j` zCniIrBMGS|e-JVC=*tL6*2E93B&>}MGkz&L>ze=%Z7bT@)% z^&r7sf^v`riXgaj{@q42ZpIQRQt-ZoLOpIQdd|adOC-N>6UIQ%icFwzxx6J3ITJHo zfMd~zpFE`AU7(Id)JP?cPTK{p1ZrkP&+P*NL1|3;=P;gNWQi7npAaj{TfpMIbs`$a zx=(e>iQT%6p8GJ}DV#*1dP(DOicJ-!3cJ!4r@cY1|4A>5`qrV}kLv?18Aft4nDjZ` z=qYiUVLnAI7dD8x&rJP0Q!`xk-sU~o?>+OTvNF8)89Dc(Z#Er6i>K2z;UyLEzD#L1 zg%BSOihB%Xm%X5%XLkteZt;sSk@(a^Usd#Dj5Vwp17~;qK^PErraa&h=5L0{Dzllo zdyY?j2o+pmbsGr&*)C5JWmaXLQv9UYeL9eU2HQ4~nvB46n08~nUJEr{x7}f!Bsa%i z!OaA%RQZ^z#o2POTF~T&f|oM^s0phY!>0#J3R##y(s$TeD_2J|WtK&2sR^ZgryKVv z4SiG?4Yi>%n(Zhn^k-$lbWdjke@vJIn43Y}#IxhAR>L5KbvNfB?Tul%?9_;~aeyPa zkRZs^ju0=JsRnLLN!l~eK9vbFwi^X#@0CZ)J>)bRH`Tf`61>|Q?KqqCfn)hb%pc`g;6@c@vNTniBxW2$$$SC&jR)2w3^e09M}pvp^CRDbab)8uvxLGK(xHHWdDK>y0Z3AY7wNqAz zrJFv}dM(&o3$NN!vIa9)R*ngT=NG0ycot?};F8iH$#uY-q8cQwLyUpYBa(-}UE&iBHCu<0i89PYXyz~`3jg3#G;Tw3po zhW?s&y6>Ikjdr?2zm;_HPUEw?-fCN!QM>iJt;WCJ5bl13T|=mSA0aKb^34njULbgL zYz_X&=#UQX&83^E`Df4inL}?r)67rW)2V6uJx|n{cA)=6U+O$`k|Ul4Zldr|GI{Gq zKSpJeyY_l&=@(EGTK)b<%*~wE1hqv1j5F*|1fUuU8mq9VQph^F>~^Nh8R*J%4LGHs zdN@I)L<$d2JEuy6k(rsuVCj@IJ-v~T8i&)Kp-MSP0)EcBI7#@!Kb(HMAd(NwhzQe$5P z$EskIL{+%`id5qv^AzlRM$$#0yNP&0MoA=(%r?iTQ6ZY+@TImd>F3>Nc|0YC0g_QX ze^=+WfARU}8H=#5#Kv&1efRXoW@}ijvGd4T2{sCBG!y^6H>gmEe&UGh<%3G6^T76%51e~z#u|Ii^KUn~B&2n* zHz$zSj-UhGkCzW2KS;y4>@dP(g15%CE!fD4bq(Vt(lLDMn8C6`2fla@)ZJS;P*R-- zrb)&+qGHK(lCoa~>}4@TmWU7dJs-vBW=5mKIpXT?VYu&>My3yxN^;>3#xTBlh{OU3 zv7IQUM=FI;K8?~}aW65KZ}L!AiQTu49>B&a5td>IMLEMR^_m0UQYlA>u z6_79R8?yvv%_+hRVebVwLLMHCDu7jl5r-^-dPN^r#ON|*D%Ldh1=9h+`N>q)OHghR zR-W)aPC$iA+9l8PNdlAdJx-ZL9XyftFDBC`z-xGvW+Y&j)d=?+SfzBen4V1iYOcz; z`$zYuJ-?bw^>D-Xj&`!L_dM?FEicj2+w(1axwm=ZDN3P!r`_9Yf2S#tYAACo9blQT zlGgeGTnpK?XgLmFk%$59t(uZ}0FkheCnrLsQSAhZ6*L}?)tD~X$>D+y0O4TEU_Rbe zL8N^6#BicCQ|=gUH!H-Y+z3H8!&%>Rik*OetjtJwXeyM*J{gUbXG)3T6Nk%qblXP` z*1TXa9fHqBxJdB6mOT<4nAQRrG73L>-t6WPUt5!rh;)$!cje?4o*}%VIYUKv5p#*m zSo!3i<|8OL`j|`!W!C!)xNb`h$lgJ8!?B32ZBu&hveR>+gvb2Qtx)!SPY~ zc$LtWf#CR&p7?>26K=+?92noP~eXI@FcwX7gQGuEY60q%y2Ef|(k_2X)VKG){g2tzJzOFpeP7hpMG4 zAbP>jD+mK&2_6R1Z2GHUvA;No5!XENDIf-NF=FIg+XX8&Lo_Z$C5wf$U-V)7U{8M2Rj+E3urr<~WcZBOz+YXVb z`|U(pZ?t_w+c&m-3v&=ZDiMk`p>|A8;fxfau)uQEg0Y}xvur}7R&H_(90n(jk6|K^ z&_*dE$;IIUMn%a!3n^`C4BLez=Z%3vgRyF(Qvo2S5V}O$v<$i7_Qb!9l3js9Rn$QR zlxoFZs3n4AeEtRC#f(l#q@87B zK(vXC_(03Tx-PZ6zU=tzNy~inAa)0z`tncgNd#S3gv>}+CgGI}pf_R!pb`1!WUx(; ziA|}0%ns?$6^l5Ar2+-&l?C!66Y-fYY|)4_dS&`sM@iSFzO zYIAowUVC?^MXrdn>)ecGQ-tmZv3L-Vy-WMyam8!W(SIxzg?e;lC-G6B?KIt&gKFyP z?5uyZzjiRy9i*#A_VyiC(Z{@5??@`u^N?xQW~#v z0DU5*+DRUSs>=>K?m_wlSDmIpcpb`cll95^tDOU)9t$PG9q2RZLVYdf2Eh&s-t*O4 zvrm~GNrd9ADcD|#DFk)>nc1_h^o;(A#inD0Q+Sd_0_so4(?lkMB`sI0!OYB+n^c8K zm@m0vz7CM;B8Dru@qu-^XGsjj(ncD$(icg`5nv7_dChu2@{u3|Y(C^=BCGalyryod zupG_Fd56|oodYCCZ0{toL!@&NryZmszm*4Hrf?o`gj>@`#ei}2sFzhLJLnCJdi_Dw z8z1lv`pDS0yQ+x)0Y!OZPDW+Dm;B(JUVkTNee~m;)-m8s+>@Pc^qnxGzHI-AzJ!rD7y&MmjnoW;W7Z0(aOR$=ZITvprfU1wpA0 zZSR0bWFuM3KXUaCA*Ar}(eO?}UZFom>TnNY&l#m^%}iJ$D-imCXoSZ>D3~U)2uV3e zO*1%1O=w4K5QIzW1-2y@O;Hz?I~ zX-9GnO5JUI^L+s6%{}aCa?rvbV?K*ru3vrjSLU;KjB2yt!bw>DE#$kA+X+Obrw#X zNaZU12Sy^@h5o|B1HsE?EGT&Vs$wDNb*3#sES~5e7#=y>-pK_)VKjH5om0CbBM15` zIZO=GA9wTxUaYCBOI|L?NI8ML3+l0%!*LwUIw9Afv8#YX>G%=p2dzLgTq}rguS32F@-<`>HpCr_o6db$8RqTFMX5JCnt$DX@FMdZF z9A;RfU-`xoF-REW-_dHx|0u$sx<>9hGfcRK-F41N{atOAT#&Z=JjOv24Uy(ryu=T@ zL6bwD4^|ba-{C{&vZjvZYdP@?>a@K(TXWS^zB>HGP%!??I9BSQXMDPv|EXZ;iD3@R z2F1Y+((yKZNMff6tAQZBKw%6LmH=6F0nl5)`~CMHv)*qV+g_X4oLC#{JNu*Wf4_e$ z5;=BtZDOLY?`irn)cMNLt=RpTHZ98^#vTwOFlMXP>-)EUY^_p;%>q4<;vUH!<_wOeQ&}f}z|Uq7QB`|?nINP6;Nc62d_n&1 z)agm8j$)!ckuSOdW#e*`TraxH@a$|n-D3y6LBPrF`jSF>g4b`(Md2TkJ6Y(une9?D zEF7J}ujmE54Fy38AzqQ$mK~KZnV%vxDlBlsnf-L;3fY@U(H|+9bKh0?aw(#7w)5vx zw?92IlTQ*4K4+F9RWY=->@7vjdCNLmXo%~P+6&>Dtlg~WvlA7>4P=nxL{HG6Q?)xi zcoBQdD+AN+a1earc(r8cS{vNzNx#(BqpCvMEF=sKuBtv*b_(IDb3nLJ`m9`2Yrb}m5IKqlIt$oAO1XWM}b!G-Zfb48{Nx@3+ z58Z{;BZeG%6Z6ts1WNvd1@~i*Ski>YN@?a zz>R`pc_W=6SxxduxBUr{(e$=w{vwzl)Yow$=4tPA@${i$K!^@0`;3l#S$8oWk>YO! zUFYpxe2A9FD!@tqU9wHk{bZmuwIW9S0B>$x>(@oYQU8K87K9Tlzf5)uV-|2G@ z?lE8^v(ayFX{s?ggbKh1s$e^@~6+pRB!7<5-zf}{GdZ_ z>r4|4ssTIl(>&0$sd8WdIu7Tc;OYvzkJ##2abKI;6AYXzcpz76mR^imOaORdpe%^{ zL^vmMpY~jZP(uMzhdSPWJ9w~raDV(reE+_#g9p3z>CM5>u`#Pek}J39QfRx&Vz(C@t*Qey?*u?YxI4ddwqKiA3@KotW#-Qln`Kec8fOqF>j61EIm>)5FvXdJPuBlZRT z_oN8!lwb?~q28r55I@SAa|7E6PCDez3|_3xuA>M^!kx^guFMYXtQRHlT&LUK$_Na{ z5Ln4BH-#V#KV%_~Kw()wisVAzJ2{1>jzxiBq3B4|Qq}S!;xTFJ(AN0(Crce<$x@^} zPA4tu$p$2fj7ii9@?W}8EG1X$WUig+tZ}bBM|uVv@M$DJKk48paW6V6UFo%u8p0nXM%f@m29G*`x6_476zCfBk(bS_|oIBl8LDTNV;2&IhSCq znlaz9{n+g6p>yx<_J>EjKT*Lx*ZmErOwaBM{7=~Jzgzt2;&2c`vl;7q&yy$vC?2P? ze%>g=tDh*cVC#vZFlpEHYoGWHbLTW9{7<@qKAcRytRLAI>~B8uggnw8)-q!#e{`uX z?JMlVDj@dXdy7|y6a<_%)e_)$^bbICH5_0VGVzo>-u2M&J<;;v)BNq;TRbw^7wsHB z%-@b9q4A*^MSUvOVW-@IeHABVl~g1f>pA@3iCVP#$m!!Rr(&IBM<;uuonuEP-V+)y zno-$Llf*7VrLe&E(=8i@$QfZooy5KLVKEbVSC|u`sF{F-6$mx&b6z1~q>98ulKT5y5%QR}_jg4a z(NcfW$oF^0+;}c+bUqTE{43$dD#{_(@>)CdyyeqwYeg!F&?a_8JYbp3oy@j??TBz- zQxKtd?tHy#C+=OVFKAs#q~-4CX2?5rOCCC{G zfWbsX5?tXgAjeTW0q+*_u%i&qC+BOitXeDNWoHl@D8?5MH8pO4Nv0YO$Z=)L*n}za zFzpf2DT4%CV=&=pA@>4-!gr*0=W$}F7xQ%GB9<6nzTMQxroe9sM{9(L{#wj1(*;8G zK9DNq9b#rcZITL)_()KJnHceT>GqC{6o#;piA4e-vG1?CcDu^>fQyb`KLgNXkx7}T zmy#Rp%@M^%a(FT*0~n45evtCgMvN++Zrp<9k=fl{<3lsMW<3AV*>mQ zw}5nn8*yBNP}rD?7rIjUH0hEZa6wpZ9S4JWK11T-h`0=_NIa!}9?TmsC!DP$<|A&? zfJw$8?S|v#n7uJcXUno`CIU1wyEDQ2fl-9tx>mekM-tthmsoGsVY{d6h_2xwi>Bdn zNF=1Bwx&>+t?{X(fmo|!wb1~l{z-Rt{Y=kOPxYMnk7wG+ul5sX&g}R7{r!G_zyI?2 z^CuRM9a}u%Jo)6or=Cv_4V8vUrJitW97M>R&4X+{r>yT?A+oZo;fuBB4svJB0KzgrBCHDXK^e$N{#dVO=1sy92} z=bX2<`|MZdo}5k$=zkw?KU%yx<`w(e`}~1fubRK?xWzHQSebS9#jAXPT_HSKbdWln(d_+3I5D2NHixzQNm6QmQyy;j)e(J-}aSo zsr?8aB+_jrJ)!oD-0MX6(Hf^#oV4I8G=+kgrm?bcVlhcG z>$7jMsyH&`;p=nqaE@v*K|emQtd@`p9f+m(X`yTlT~hDn>nc3tSI8iS?26 zvE<%f|698E6w(h(e)#mUV<$-C&~>8x?fHj0orQ0odtUfUI8S6Qw-9g=xu?|{G#U(q zOzIlyjYWOV+{e&YpFi{lK%JWIh8(}mOtOQ@4;%Sc6|S{M<2mz6Uv;T zCrS-NMzvKnSKGR@m1`U|R99nyElfX8X(Opvge~ZwMrZEc1rXQd6P@IoE8xYG%o{Q} zG+qE}uq4@*G*ivgJC!dK2O@`}g|1Ads}Mb8$x8essWxDlTIMS9hsxU)f z5m6#4Li!wKE9wtqOL8W^ww2zOf}!2RO@3`08W<>XxiEM6)pJ;;f$T&3vQJH%bNEzd zZ`~rb!QA@#O;AnS>*vnh)u5(1Q5pk+#P7?Ep=mrsUa|7tPn&2em|7;LzH%)p1=ktP4 z%~$_F%;yD>3$JU+9*n)%JK6%_#rn5tvXa$;U$I1q(sx^!u~d`iNB$5By|X7pV$VrV z!`6H#VVjmb40~DWPwDu}wg81eR_;CxFqM?y+8_kt3GX&;oz|m~cZ85@FmOm3q-P&G z9m)Mftq9?7Fc2C#39z030Yd&PSAY@%+%z9s^cJ4ZjEwMq#p~^D{XY~*qzFy50KZx) zO_mj8Xs#el`HQ>=g-T-y?8R{s{6q&LRz&jQA!he2CKkR`Zj~8m-H1D`gT^7C10{e6 zkSG$mz7ekXgRu6H*B6PQ=w#((F5&-@C^&Eo;^Pl<_uxLaWE+88+X+K})$NQa#!Yty zsYG;#%=%Qx@9Xt{ywvIU_Ps)y>ZNFm($di-^7joqR`UA%Uca-`>-GEYjirp_1F}Bg z;~|z`zy!w>OBNlRmpn+2bB&KF1S&T9f*m5SLbi-L$JuCfV#S^C1H-PIAc!iL-kV8G z7N!Zuh?DnqAoG^8^X+7Tjo}=MMBh@0a2Gq${YWg9EMu5+95s62fEffuw|dO)_9c?i zj!hRP6UlNnW+#wUr@QUHiAQ37l~+DBK%O}x(m4y%iSjlv+_t7ENl!!iY}SxQixE#- z%gi8jx%(Gh845t~Q!*Pvn;MRu89+)3BjXsG7Hx*Qkz|1u3JoLeLaPQ|j0p5D)TMQc z=BG$a0v8x@P{Exqf^oshD%oxL3kw&_g7bwtcfR0!^~)UF^>a_=4RQ57P{d^035k~7 z{Wi$>El?ZrDv-*3pf=VDp%whPn1`_UHL-Dp-EcNMe%U+?5g7j6A8z8*61!k(gCN?J z#L7%}+ zcFCS$Ub1%d4J>RsZ%PkZ+WM{a8yL&(omS(CBA{dO8)c^F1iw4O7|w|N7aj-ICY>h z5;e~{!!iCmRVu|hk9T&SI(0iBMFBLn9k@4Z_J}i3vPbOdvs5Warb?-2yE<_CgmZsT zN#t4REyL1*ddj*izFqPWQd(iykl7{TX?KK!)>5+L=wul~RxMde7F5Un(G$szLnt|g zWX<1`%p2{s;qUVP!22_*pOnUX@_ucPUufUgu6~Z}gk7UuT)4;2<3Wo2g7;f~lcx`Y z>z6jPO|_n7ObVnQrhuVdA`T@vVnJG0Z9XTm_vj1-a!)^U;9qfsXBX7)!>6;!)S)A_ z?+hQ(GvalW;=SGJLn8%$PtDH{911$i@y_ zG}qT_3=2SWN{dSJ6{0`xx_58i2G%xB#Y285gQ-7BcOZG{Zacv=3CsB(49t*O8@GnU z8Mekj^6E+-NVXmklz45a)dMmV_o0Q4kQpP;Mx8jD0l~9q=KKia&VM^^eqi3)m)SQ^ zFjO{8tf3T~NP3S%jDfQoXC*tnk?!pFPs8{kAMnoabIBUy<^~e`dWk4D%{`B*NcHUI zj0*rImMkU>^R!ldTl$6gR70yOdKuIJb4CXWJ0>^&z$I@HzW>MHH@Ny~{qvb~{xf}v zeLbXXA3#cK$>%2Pc9`>^ReMu{ck#yXpWE_ZmQ_vRLgnBkh#dmvP?`GI@mlm)Jo11W zIS}__Ba!F>k=T;C&vJ9qS+_FSI~<$ISIECoR>kPKct_MOMJ02u@dLS*=o03+S#C(&(F* zIyg0+N5L1FfLKwIv2~G`0%$MkTdN@_%uZ!71ju)zQ!H8BjqpveLJG{1KtJ?{d;x%i zYI}#BvEN}k4u8Up$CcC}!Hy>xIX#kU>so1&2!MhaiGJ#psC){%r5&@ZcL=WW9ahqO zN1Vh#=6{%o#Yl7Pyw6GT+1mW1Es5F)4>oun=Ew+DM99J_2gw{@piWTB#4tLd%4geq z|3RW|mMG{k5%obS`OyhBDMDe0t|0S8@{B~9RvE#f;uoNNZ;eoOL*k*yzFZ*_9ZB5{ zj2YH2hO=7?Z8+J*R`9L%F=ktn|+ zwUDMa$0ye1@hO42jE!67XkMdSuv3r81}e>1jcP50>S!)ca462|Yy~1im>fMgD$na9 zyDwp+xzRorStg`eAeYr>-kLm!6Pt$COtvRR4^C;auIWH_o{h{z^)FGz3sYkgBF^S$ zh-C_KPK;6^$2u^>6yP}~{V^suoN6s!nCh#HVJGatFpo$Cy78lT_GZ&U`o;G5m)~@TXK~%Bv7@1nMZFE8TzzrBpZe zEsV{O1U@*SU14Ps#EB)G>>6T6R#cUt_zbz_BY@XQc@T?ctYBhCOtm*Gwc017H->+A@btV zDE**l%qF9zBri}|+yc_^(mbAlUc#>Apb){D-sM?j3*@bI8)FuYQlyqgPM}PXl~68z ziFlFcraR*>Bue2>A&u^2(Drgqdd38|KrsQ^jeS;8`I8`H0;zc({li<};NXu^-={uF zvm*swkGE_$lAix8-AD9bP7)=saD_IZ4DG?V|BgXGq@@s39h zN+qEYVfj*m4?#GKk(gT!8=^}U@OW4Hq;MmuV$RCSYD17bt3-9u8aoz|Iz$Gy^o<;5 zC{`op>y*w%Gld|?E%nmFeB}cEV~!dzWbML0#cm(zD0oJ;Aghld%Z>hzHU-B*qTrri?TGw#C@HLA3=Ks6QJi3x05xQ{j6G=2X0~+nJ#MDKQ2x%-Fr^v`7P*4g>QruX8 z{cT6Z;u-QyI}#es5|Xe#$N+N*w5aE=l(a$(1HZ(KCfF0Q6jI??j2;o)jI=n5IKt?L z(@=(6o{j&C1BQp;8|S?%rKPx*1dp)?qO?Zy2swkB$t{Gs-~&BQyB41k#e zZF0ztc`zN??iiMvB__gcCmoBK0F;;r3JH(w9%jbL<~{dgyb-i3Z%dPTSIHDF9U*;1 z(pCCJ&mn0mLHu+qKf>%}Qp&vKL@IFnvCLYa+$sG&l&U~VfbY@!bSJZnrYT#hZ*jT| zgi*lhC+yF%#OdhKfxNIq(4_bRZ3IQ$MCyBRKl*@^b5d{$*2#|@OGe?=(m~h`@M)5Z z#?m2rp`18~Y!F(aCE_K_=By<;)=I!NSV#&ZuiAZae*L@UyN^fajH9Q$v7-)UD4f4? zBJO|w^T;0@hK3g2H^eJ7D^BcW#nvijQ~VA^Zwl1nbr!#~76h&=-MQ2B zADdcs$*Nv7>NFbkD6w46!VPxN3nA#um$Dk-k-@^iiY6+JWVXQn%Rg+$g-I(6_YEU_ zMNvY+Ap#7sTozSoz!O8@tE0(WlKlYMKZH){;2v~Q$aFNcxeal>*$L1|oZJ#*@i>GWl(om2(+>KX3ZTOQw^J z#{g|-vIDFm?~eJW;-@@PG`7a516?+(?kosuytPtP#zKr2 z&#i3JKV<0HUvviD;{ML0|KaYV-TraEYcUVe7j9iCm9CuHv**UG!NF4xU~ze%shi%* zGgPV)g~)_ybRwt<`6~1Qq&OU2Nsc#r@gFf zzWHduVu~i?r`+U{_1m$Y2S~h;aL6$iF)lJ?Pet@{^fhgyQb3aAozx2u(-u|cw1#k4 zumzgevqseLSwN9VSv4epW&GD)w}~B>brXAO+fg!+>@*Q30qs$1m}X*1lxDikR+_){ z`mGG-ip0N{iFP^(;^Iu(MbV8=%+ZgK^9#~@XrG$sCq+j!DCPvJMfWwc!knTQBXTri zCSgIM$Ku^Wu^Ul{ha_mi%O%D=-dUE~DQ+c61!^p#wL&f8b#_41hh}hrzf51Cp=c(6-Om)ONB8_5l+L6lvE>-OBrEvMwP*7G~s{#K$?2GErdSU~e3M&&07af5ZDN5Dm^Xg}kclQJO@pF~g4 zN%b%j79`kaQWax9&KJw+>K`21m&xr*B?_!kF%W+#Gm-G(Qgo9A*!7A%sg#ORHZz~K zG3#bhe`5QlmFgi6bbBI^Fyej!L6arWaBQFEKqbCsnF%+C`J46F;gd3hPT;CtYs`)p z7&ojiLT!uN@&8uPb3=oW7<t>Ia-Ma&G)7v^MYT9i+)jcN-o#kU1t07jZZDE|6F~K7w=UFQ&0zLo| zpK<$EFJK3SfWy}pzR8r1hn0 zuK?FBKg1bfr8)PZvTXI0^~s+LW~VWhvJ$m;KW!5G=n&i-UpCJLJPIs3v;-rLqJ z{k6wiwfQFZBnz2>R|BQ*Ng2r}=*6pHYr|ucw(+&Z^g>m!z9+wLs_j# z2J#*&hfUSm*A-?V7Z5~~ra}x=8gxaNCkP0aV9a;rzGZ4+aK=TCUWRobtoNliYE$|9 zv*CU&>H7(kkD~7<2LR&&$E{-3w|x7zo4IkHJ^bs3BC`X9eHky=AJlrh^kAW<=w(L& z;TInHRXhQ=hVw0_ve^Abni*CRQGhFx>W|hz&(Jy(Op}sWCMDBt4_IE2Xr8h%BQS4#PaE{#hsng%eaH6z4)GfCWC*&QnTWv{ckc+K7 zky1(DMsHm~aZ{)~Xgb_00izSe-f?3#$#`s-D5_8N9IU_T{}7wrDRA@e1le>!>gbZ^ zMk}Pp4b;^>Yhnuhk(VW@Q>9Pi9xPFGB^4^3c36E_c|x?+zA7RxOZm7?0EIOT4o@;T zLR-Jq09a?`71M!$CCF43=|ly>gaX_Ug$_-Ry1=L_C_|_z0JbfxAPBfTt@%2{RSsL& znnz(S{x~sWy|l8)E#MX7EK)6J7VBke6PG7=tt(eW*pY#YSOd@!2h9EOxQ%$&MudDJ_)iBnXC_EF?3L zu%BIxTWX%Wr;^=Hc64_ndxv`;=)~4-4`=L-PVF8JeR%iU`uA$**KOO^Z;x~pZTQ=- zHpeN6b-2byK0yl*5(ybPMlyxl3FM0rf z#|fE@LV8dkcM@NBP5>tyks!m?4hf~jA}CIzNwgz?WP(b9BE&0xCiJ-9WF2LzNA@z0 zlIHaVJJoK#VE-cn-Qv0*NR9*BB=a^u66(ez(H8{6w*8`ANOOMS2gPiAoxCPK#Rr8T z!u3t`H;Ee-tBFtq%m^h+W{zb3`)KML?EhkKU-~!iks6?X>Up>SB{v6%5RN5(U*&oe zd7!4>R^GKH;J8ro(=1-(;{t0R+#iVnTgi(QPA=t(#XM4`d?0Dw*hRm=$n-lC`^WYt z_Bzhq)&?iE<^vB6`Ci*yp53g85?~Y6Q%s;Jde|_Vf*CxFZ;%{fOBsnj&y)aqPM4%6 zcL_;}B;Y!V9n9yQIpWfZK4{M8w*QKaqQpB%oLC!Dbg%p(Fjh?NDh@k94c5fu_!tIV zS+%h1OimD~&$Du)9F|qBPXG;aTq?f=$_&2xyB|s^H_knC@dq>Y<-^&zo=^)!& z0|eU{+SJ-w!kAF4(66Rk2|45kx)uNO=bq1qNWX(?=zwdE5RvuHwi|8V!APQhiSsyz zK}6hhOhpuVUPcn9927TaI5k6~^^~mrW(b_rXNj86fMY-zHb`j_DM$zezA~|ZV}bS~ z;sHb?n1Jv(1ydQVWF_3GQ}GCPT8#N50*uE&3t242QYRQx2Z71TpeQ5;*J$LDSX3~a zWHKTHS#c|x!H|g!QyYpAjF4aEu(q1ik+L&n2#q1{{@XX>vN&Bw2j?yAh874s!k7vkdQ}ZUlvZLLFymp2h`os2HOSWzFlfU*|YQMY= zE+s=fny*&6I}2Ei-9l$KWpEzDd4v&rS|w1JQIivDCev5$Y|o+I7CXy*nWClMTQe+c zoIbk*orS!n^?u83S9ZN2K!tm6NFWY0_j+$wYq?_3HegbseP|gPQYB-sjye~2$7CUI zi8{q8JN=L+Uz_d+f^ENkKcwCFBHM|ahus@m&>Kc934O2+?f6Nvn=SsoaUbDOd*eKsa zJ!D0xgkcX1*z#$iSH2;=e7(Mi+tsSRQ}eUM!H<- zzk;gJ7CdAX;q>8lm?sQ;# zi0{KdRqj9MEJp1*-?i>uM)j4mH#sI-4L+aY+YO#L&oj#e%5SnQ?O9{*0sby>hl?ED zY+G+T#6ml=bB{V#tZ>G#e(GfzbuEkXspq>Kxc^6eGup0bxU4H!<80+9SH-Ev>LH0F zsmqvF8R7=Aihx(}EQoE)p-xqTZHiC3ta??Ss;GW7psD~0_NcvTA1(#*J20S6T=SeaS%n0j12p`HXa z^Hy*(Pph-)ZR#2DGjCV#Q14XlQtwvhz|y=&y;sev^J+mYs=B(MmefVHtlpetmjSN}r&OZ6M-e^I}w{*}6|?x^2VzpZ{p{cH8R z>i5*YQJ+^|P`|JKt@>Zpzf=ES{cq|I)E}z5>W|d_uKrm4iTYFZXX?+@e^6gkUsC^v z`j6@_)L*Lqr2ez|EA`jvRrNROzo`GJ{+s&m>dWf?RR5Ryiu$VhTceE?ReT#7&w%^a z2GrylaU)@PhHoT|l#!-lc3@<2$mWfL(QXut4x`g38C?_)=`qSiuhC~zjDBOls2Vk6 zkFnR-XABzqjUkW(BgO$^)EG0yjf2L7F=GojSm^$WPG!+-Db@%EUayO+h5t842UF})K%PiyOqp^eS8bu-+y&%@Ao z>Sk0nqUYCE7WuPw$(BEt=Np&e=Nt12m+G5xj@R0*^Lh>Ed}FzOVPSrw&eq!eB3qjl zTh}(~jmY_}C3|6hrM|j2-|*O28CqV2Yc8)Yg?npTn@e=tk}uZ}ZPZscmg&;Evv9G# zaA}D1V|pvxUs>MROt62ov9_vvXlF-y$7_9~d&X_;(E|$?8*7*ALklZw8}(#!=kok> z%a@mL+}mGX)%$+)`$nDKY1F-i<;KEFedxmS%1V7PXzsC`EVYhh?>ol(tSqnA{pP{u zZlbxnu`<7LQQvZFc@wgjZ!9|8eZC=YYA&oSudiR{0L=_vUABDow-)v5uF$)QaCd86 zc4B%b$_iFbEUc}p%&&)6y6mhqhAwm5qPNe}q70vx>#L04^2Wl}hAe*al^pW~dq8G`}*mwR*MQSiZ1aUo5@RdF9u9DNWdQb?$Xf=zq=83tOwq zVhHNqgNuLXNjv9-FfwZ6XA*sL#l;T812#@b4~c|CiZ%d1;V zh|Bb(zjKN{xU)+?%`eqc;kPoZYpbjEh0RQOK*(_D{PiLEjE9HT=eIUm+l_i-Yc&Xu z3$4#LHis@W<}cTq4Qd|Cx6a^U&{nHqh43(!EnL!9HEE~W{$0l*qGk*49c(s7KeS0E z8=Lj@q4V5r_de`&t@*b4duG$_uh(dk+iJ+#dQ5Nfu#HRbwVesWJ6>I0py|9@V}9uB z@?w3BcieTXwRd^#{PIfOU0l9!VF)H(UrgxD<)u{^0Rtt+nNpfI!>=0k%QT{SUZcLs zBbXVSXUTBLG?5A8$seZU%KUZSz=ppruWu}GBd!5#Y%SK^ z`g7~^tBaZ|unD1XWK))Y^jq8ry7QW!>E!wp_ zZ|lwV#S6aP*w{MH+ib1W^WpCG%aF?9g-4;EO*%HF_qc+!q25R@HP*J6DA#$V3qzaN*Xyy1 z^v$Mqk$z#!q8C}{k{8z+%Qs*laMK3k8>4w^o3Z89^J~vVmsc;WS<9;%>kM*yd1C`6 zqu*?&FyzKyk2|5E+@{P`hy!(|rq$ff%A$jbaR59;Qm z=BT>OJ!ZcdZd%O&POpfpbAD@u{@dDIyRiJ6vvb7L1Spi=U?qskUR>6E=`@aUqHM3s zZzlBCS_3kwFZz0CqrSo$F+akyHXHSN_{A2pSD)vuAXp4-T!cm}Sv-+C?3FconTuRD zE`{7SDx2oz`K8tRrgM3IS*T}zF)CZO2tp#6IhX58jNIC4-I4{A8$|isifOWQF3Y^w zR_c)e0ag=3^HZ>?-DuQOf4*}oCJytP@kSL@d_eYkoW<4!`L?#>BgniHzT-7{cuQ6>e%rDdvGK53x4R~DrT4JrSG{3rhL%*g8|5@MK zwANu4EFJdxJS=u$el@O_|8NRNW!r_;7;9mJX1M9BFT-`{yv@k^@@j%#=BF@=&Ff~k z6Q?=XheAmwD%(8iT58IkqI+WQ#581r?bZtLkv zx5ln)@pkbBqb0NF8brWo=yBeN!>1V9Aqa5847a0@!KhiDJpN*=QD3S* zmlSr5untE>I;uCgNcQ!|RUT5O(JU0KxLl{Vxo&;sIyYQj6W*~}=N4>Y9N@h5t&NLv zk>0;lU!-Mh3%_Y?ZCs>5>uWqfSUA@9f~xN zz8YKSuRE;QL-XgM9!qb@V>p7izIM%(Exm$l*crL(O6qaZLF`rx9{;VKRnQ4 zI5q^sw5qSTB0mi2Mby!o@^azU#rc&BanWv?iU-5x`M|)hZuqS=WbqPV({$7 z2Af-#&u<8Sx5Le?_1GpvvJu;Ch~CEgGjU~6uS-$<9@3it6-`U+-w>GaW%R-)! z)q04Tfta&!@%j+rSN1iB7!3dZgXR_s_R3ZMgWHn?{VV-}ue R-B??@EUZL-(kRT5|2LiI<=0?!0:typeof process!="undefined"?process.platform==="win32":!1},A}();F.Environment=n})(Q||(Q={}));var Q;(function(F){var n=function(){function w(s,d,a){this.type=s,this.detail=d,this.timestamp=a}return w}();F.LoaderEvent=n;var A=function(){function w(s){this._events=[new n(1,"",s)]}return w.prototype.record=function(s,d){this._events.push(new n(s,d,F.Utilities.getHighPerformanceTimestamp()))},w.prototype.getEvents=function(){return this._events},w}();F.LoaderEventRecorder=A;var D=function(){function w(){}return w.prototype.record=function(s,d){},w.prototype.getEvents=function(){return[]},w.INSTANCE=new w,w}();F.NullLoaderEventRecorder=D})(Q||(Q={}));var Q;(function(F){var n=function(){function A(){}return A.fileUriToFilePath=function(D,w){if(w=decodeURI(w).replace(/%23/g,"#"),D){if(/^file:\/\/\//.test(w))return w.substr(8);if(/^file:\/\//.test(w))return w.substr(5)}else if(/^file:\/\//.test(w))return w.substr(7);return w},A.startsWith=function(D,w){return D.length>=w.length&&D.substr(0,w.length)===w},A.endsWith=function(D,w){return D.length>=w.length&&D.substr(D.length-w.length)===w},A.containsQueryString=function(D){return/^[^\#]*\?/gi.test(D)},A.isAbsolutePath=function(D){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(D)},A.forEachProperty=function(D,w){if(D){var s=void 0;for(s in D)D.hasOwnProperty(s)&&w(s,D[s])}},A.isEmpty=function(D){var w=!0;return A.forEachProperty(D,function(){w=!1}),w},A.recursiveClone=function(D){if(!D||typeof D!="object"||D instanceof RegExp||!Array.isArray(D)&&Object.getPrototypeOf(D)!==Object.prototype)return D;var w=Array.isArray(D)?[]:{};return A.forEachProperty(D,function(s,d){d&&typeof d=="object"?w[s]=A.recursiveClone(d):w[s]=d}),w},A.generateAnonymousModule=function(){return"===anonymous"+A.NEXT_ANONYMOUS_ID+++"==="},A.isAnonymousModule=function(D){return A.startsWith(D,"===anonymous")},A.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=F.global.performance&&typeof F.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?F.global.performance.now():Date.now()},A.NEXT_ANONYMOUS_ID=1,A.PERFORMANCE_NOW_PROBED=!1,A.HAS_PERFORMANCE_NOW=!1,A}();F.Utilities=n})(Q||(Q={}));var Q;(function(F){function n(w){if(w instanceof Error)return w;var s=new Error(w.message||String(w)||"Unknown Error");return w.stack&&(s.stack=w.stack),s}F.ensureError=n;var A=function(){function w(){}return w.validateConfigurationOptions=function(s){function d(u){if(u.phase==="loading"){console.error('Loading "'+u.moduleId+'" failed'),console.error(u),console.error("Here are the modules that depend on it:"),console.error(u.neededBy);return}if(u.phase==="factory"){console.error('The factory method of "'+u.moduleId+'" has thrown an exception'),console.error(u);return}}if(s=s||{},typeof s.baseUrl!="string"&&(s.baseUrl=""),typeof s.isBuild!="boolean"&&(s.isBuild=!1),typeof s.paths!="object"&&(s.paths={}),typeof s.config!="object"&&(s.config={}),typeof s.catchError=="undefined"&&(s.catchError=!1),typeof s.recordStats=="undefined"&&(s.recordStats=!1),typeof s.urlArgs!="string"&&(s.urlArgs=""),typeof s.onError!="function"&&(s.onError=d),Array.isArray(s.ignoreDuplicateModules)||(s.ignoreDuplicateModules=[]),s.baseUrl.length>0&&(F.Utilities.endsWith(s.baseUrl,"/")||(s.baseUrl+="/")),typeof s.cspNonce!="string"&&(s.cspNonce=""),typeof s.preferScriptTags=="undefined"&&(s.preferScriptTags=!1),Array.isArray(s.nodeModules)||(s.nodeModules=[]),s.nodeCachedData&&typeof s.nodeCachedData=="object"&&(typeof s.nodeCachedData.seed!="string"&&(s.nodeCachedData.seed="seed"),(typeof s.nodeCachedData.writeDelay!="number"||s.nodeCachedData.writeDelay<0)&&(s.nodeCachedData.writeDelay=1e3*7),!s.nodeCachedData.path||typeof s.nodeCachedData.path!="string")){var a=n(new Error("INVALID cached data configuration, 'path' MUST be set"));a.phase="configuration",s.onError(a),s.nodeCachedData=void 0}return s},w.mergeConfigurationOptions=function(s,d){s===void 0&&(s=null),d===void 0&&(d=null);var a=F.Utilities.recursiveClone(d||{});return F.Utilities.forEachProperty(s,function(u,c){u==="ignoreDuplicateModules"&&typeof a.ignoreDuplicateModules!="undefined"?a.ignoreDuplicateModules=a.ignoreDuplicateModules.concat(c):u==="paths"&&typeof a.paths!="undefined"?F.Utilities.forEachProperty(c,function(C,e){return a.paths[C]=e}):u==="config"&&typeof a.config!="undefined"?F.Utilities.forEachProperty(c,function(C,e){return a.config[C]=e}):a[u]=F.Utilities.recursiveClone(c)}),w.validateConfigurationOptions(a)},w}();F.ConfigurationOptionsUtil=A;var D=function(){function w(s,d){if(this._env=s,this.options=A.mergeConfigurationOptions(d),this._createIgnoreDuplicateModulesMap(),this._createNodeModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""){if(this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){var a=this.options.nodeRequire.main.filename,u=Math.max(a.lastIndexOf("/"),a.lastIndexOf("\\"));this.options.baseUrl=a.substring(0,u+1)}if(this.options.nodeMain&&this._env.isNode){var a=this.options.nodeMain,u=Math.max(a.lastIndexOf("/"),a.lastIndexOf("\\"));this.options.baseUrl=a.substring(0,u+1)}}}return w.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var s=0;s=5)){if(i.length0?(b=i.slice(0,16),N=i.slice(16),e.record(60,C)):e.record(61,C),S()})}},u.prototype._verifyCachedData=function(c,C,e,f,m){var N=this;!f||c.cachedDataRejected||setTimeout(function(){var b=N._crypto.createHash("md5").update(C,"utf8").digest();f.equals(b)||(m.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+e+"' now, but a RESTART IS REQUIRED")),N._fs.unlink(e,function(h){h&&m.getConfig().onError(h)}))},Math.ceil(5e3*(1+Math.random())))},u._BOM=65279,u._PREFIX="(function (require, define, __filename, __dirname) { ",u._SUFFIX=` -});`,u}();function d(u,c){if(c.__$__isRecorded)return c;var C=function(f){u.record(33,f);try{return c(f)}finally{u.record(34,f)}};return C.__$__isRecorded=!0,C}F.ensureRecordedNodeRequire=d;function a(u){return new n(u)}F.createScriptLoader=a})(Q||(Q={}));var Q;(function(F){var n=function(){function a(u){var c=u.lastIndexOf("/");c!==-1?this.fromModulePath=u.substr(0,c+1):this.fromModulePath=""}return a._normalizeModuleId=function(u){var c=u,C;for(C=/\/\.\//;C.test(c);)c=c.replace(C,"/");for(c=c.replace(/^\.\//g,""),C=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;C.test(c);)c=c.replace(C,"/");return c=c.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),c},a.prototype.resolveModule=function(u){var c=u;return F.Utilities.isAbsolutePath(c)||(F.Utilities.startsWith(c,"./")||F.Utilities.startsWith(c,"../"))&&(c=a._normalizeModuleId(this.fromModulePath+c)),c},a.ROOT=new a(""),a}();F.ModuleIdResolver=n;var A=function(){function a(u,c,C,e,f,m){this.id=u,this.strId=c,this.dependencies=C,this._callback=e,this._errorback=f,this.moduleIdResolver=m,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return a._safeInvokeFunction=function(u,c){try{return{returnedValue:u.apply(F.global,c),producedError:null}}catch(C){return{returnedValue:null,producedError:C}}},a._invokeFactory=function(u,c,C,e){return u.isBuild()&&!F.Utilities.isAnonymousModule(c)?{returnedValue:null,producedError:null}:u.shouldCatchError()?this._safeInvokeFunction(C,e):{returnedValue:C.apply(F.global,e),producedError:null}},a.prototype.complete=function(u,c,C){this._isComplete=!0;var e=null;if(this._callback)if(typeof this._callback=="function"){u.record(21,this.strId);var f=a._invokeFactory(c,this.strId,this._callback,C);e=f.producedError,u.record(22,this.strId),!e&&typeof f.returnedValue!="undefined"&&(!this.exportsPassedIn||F.Utilities.isEmpty(this.exports))&&(this.exports=f.returnedValue)}else this.exports=this._callback;if(e){var m=F.ensureError(e);m.phase="factory",m.moduleId=this.strId,this.error=m,c.onError(m)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},a.prototype.onDependencyError=function(u){return this._isComplete=!0,this.error=u,this._errorback?(this._errorback(u),!0):!1},a.prototype.isComplete=function(){return this._isComplete},a}();F.Module=A;var D=function(){function a(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return a.prototype.getMaxModuleId=function(){return this._nextId},a.prototype.getModuleId=function(u){var c=this._strModuleIdToIntModuleId.get(u);return typeof c=="undefined"&&(c=this._nextId++,this._strModuleIdToIntModuleId.set(u,c),this._intModuleIdToStrModuleId[c]=u),c},a.prototype.getStrModuleId=function(u){return this._intModuleIdToStrModuleId[u]},a}(),w=function(){function a(u){this.id=u}return a.EXPORTS=new a(0),a.MODULE=new a(1),a.REQUIRE=new a(2),a}();F.RegularDependency=w;var s=function(){function a(u,c,C){this.id=u,this.pluginId=c,this.pluginParam=C}return a}();F.PluginDependency=s;var d=function(){function a(u,c,C,e,f){f===void 0&&(f=0),this._env=u,this._scriptLoader=c,this._loaderAvailableTimestamp=f,this._defineFunc=C,this._requireFunc=e,this._moduleIdProvider=new D,this._config=new F.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[]}return a.prototype.reset=function(){return new a(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},a.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},a.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},a._findRelevantLocationInStack=function(u,c){for(var C=function(r){return r.replace(/\\/g,"/")},e=C(u),f=c.split(/\n/),m=0;m=0){var e=c.resolveModule(u.substr(0,C)),f=c.resolveModule(u.substr(C+1)),m=this._moduleIdProvider.getModuleId(e+"!"+f),N=this._moduleIdProvider.getModuleId(e);return new s(m,N,f)}return new w(this._moduleIdProvider.getModuleId(c.resolveModule(u)))},a.prototype._normalizeDependencies=function(u,c){for(var C=[],e=0,f=0,m=u.length;f0;){var h=b.shift(),S=this._modules2[h];S&&(N=S.onDependencyError(C)||N);var p=this._inverseDependencies2[h];if(p)for(var f=0,m=p.length;f0;){var b=N.shift(),h=b.dependencies;if(h)for(var f=0,m=h.length;f=e.length)c._onLoadError(u,b);else{var h=e[m],S=c.getRecorder();if(c._config.isBuild()&&h==="empty:"){c._buildInfoPath[u]=h,c.defineModule(c._moduleIdProvider.getStrModuleId(u),[],null,null,null),c._onLoad(u);return}S.record(10,h),c._scriptLoader.load(c,h,function(){c._config.isBuild()&&(c._buildInfoPath[u]=h),S.record(11,h),c._onLoad(u)},function(p){S.record(12,h),N(p)})}};N(null)}},a.prototype._loadPluginDependency=function(u,c){var C=this;if(!(this._modules2[c.id]||this._knownModules2[c.id])){this._knownModules2[c.id]=!0;var e=function(f){C.defineModule(C._moduleIdProvider.getStrModuleId(c.id),[],f,null,null)};e.error=function(f){C._config.onError(C._createLoadError(c.id,f))},u.load(c.pluginParam,this._createRequire(n.ROOT),e,this._config.getOptionsLiteral())}},a.prototype._resolve=function(u){var c=this,C=u.dependencies;if(C)for(var e=0,f=C.length;e -`)),u.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[m.id]=this._inverseDependencies2[m.id]||[],this._inverseDependencies2[m.id].push(u.id),m instanceof s){var h=this._modules2[m.pluginId];if(h&&h.isComplete()){this._loadPluginDependency(h.exports,m);continue}var S=this._inversePluginDependencies2.get(m.pluginId);S||(S=[],this._inversePluginDependencies2.set(m.pluginId,S)),S.push(m),this._loadModule(m.pluginId);continue}this._loadModule(m.id)}u.unresolvedDependenciesCount===0&&this._onModuleComplete(u)},a.prototype._onModuleComplete=function(u){var c=this,C=this.getRecorder();if(!u.isComplete()){var e=u.dependencies,f=[];if(e)for(var m=0,N=e.length;m{throw m.stack?new Error(m.message+` - -`+m.stack):m},0)}}emit(m){this.listeners.forEach(N=>{N(m)})}onUnexpectedError(m){this.unexpectedErrorHandler(m),this.emit(m)}onUnexpectedExternalError(m){this.unexpectedErrorHandler(m)}}n.ErrorHandler=A,n.errorHandler=new A;function D(f){a(f)||n.errorHandler.onUnexpectedError(f)}n.onUnexpectedError=D;function w(f){a(f)||n.errorHandler.onUnexpectedExternalError(f)}n.onUnexpectedExternalError=w;function s(f){if(f instanceof Error){let{name:m,message:N}=f;const b=f.stacktrace||f.stack;return{$isError:!0,name:m,message:N,stack:b}}return f}n.transformErrorForSerialization=s;const d="Canceled";function a(f){return f instanceof Error&&f.name===d&&f.message===d}n.isPromiseCanceledError=a;function u(){const f=new Error(d);return f.name=f.message,f}n.canceled=u;function c(f){return f?new Error(`Illegal argument: ${f}`):new Error("Illegal argument")}n.illegalArgument=c;function C(f){return f?new Error(`Illegal state: ${f}`):new Error("Illegal state")}n.illegalState=C;class e extends Error{constructor(m){super("NotSupported");m&&(this.message=m)}}n.NotSupportedError=e}),j(z[15],G([0,1]),function(F,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.once=void 0;function A(D){const w=this;let s=!1,d;return function(){return s||(s=!0,d=D.apply(w,arguments)),d}}n.once=A}),j(z[16],G([0,1]),function(F,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Iterable=void 0;var A;(function(D){function w(l){return l&&typeof l=="object"&&typeof l[Symbol.iterator]=="function"}D.is=w;const s=Object.freeze([]);function d(){return s}D.empty=d;function*a(l){yield l}D.single=a;function u(l){return l||s}D.from=u;function c(l){return!l||l[Symbol.iterator]().next().done===!0}D.isEmpty=c;function C(l){return l[Symbol.iterator]().next().value}D.first=C;function e(l,g){for(const v of l)if(g(v))return!0;return!1}D.some=e;function f(l,g){for(const v of l)if(g(v))return v}D.find=f;function*m(l,g){for(const v of l)g(v)&&(yield v)}D.filter=m;function*N(l,g){let v=0;for(const o of l)yield g(o,v++)}D.map=N;function*b(...l){for(const g of l)for(const v of g)yield v}D.concat=b;function*h(l){for(const g of l)for(const v of g)yield v}D.concatNested=h;function S(l,g,v){let o=v;for(const _ of l)o=g(o,_);return o}D.reduce=S;function*p(l,g,v=l.length){for(g<0&&(g+=l.length),v<0?v+=l.length:v>l.length&&(v=l.length);go===_){const o=l[Symbol.iterator](),_=g[Symbol.iterator]();for(;;){const L=o.next(),E=_.next();if(L.done!==E.done)return!1;if(L.done)return!0;if(!v(L.value,E.value))return!1}}D.equals=r})(A=n.Iterable||(n.Iterable={}))}),j(z[17],G([0,1]),function(F,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.KeyChord=n.KeyCodeUtils=n.IMMUTABLE_KEY_CODE_TO_CODE=n.IMMUTABLE_CODE_TO_KEY_CODE=n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE=n.EVENT_KEY_CODE_MAP=void 0;class A{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(f,m){this._keyCodeToStr[f]=m,this._strToKeyCode[m.toLowerCase()]=f}keyCodeToStr(f){return this._keyCodeToStr[f]}strToKeyCode(f){return this._strToKeyCode[f.toLowerCase()]||0}}const D=new A,w=new A,s=new A;n.EVENT_KEY_CODE_MAP=new Array(230),n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE={};const d=[],a=Object.create(null),u=Object.create(null);n.IMMUTABLE_CODE_TO_KEY_CODE=[],n.IMMUTABLE_KEY_CODE_TO_CODE=[];for(let e=0;e<=193;e++)n.IMMUTABLE_CODE_TO_KEY_CODE[e]=-1;for(let e=0;e<=126;e++)n.IMMUTABLE_KEY_CODE_TO_CODE[e]=-1;(function(){const e="",f=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let m=[],N=[];for(const b of f){const[h,S,p,i,r,l,g,v,o,_]=b;if(N[p]||(N[p]=!0,d[p]=i,a[i]=p,u[i.toLowerCase()]=p,S&&(n.IMMUTABLE_CODE_TO_KEY_CODE[p]=r,r!==0&&r!==3&&r!==5&&r!==4&&r!==6&&r!==57&&(n.IMMUTABLE_KEY_CODE_TO_CODE[r]=p))),!m[r]){if(m[r]=!0,!l)throw new Error(`String representation missing for key code ${r} around scan code ${i}`);D.define(r,l),w.define(r,o||l),s.define(r,_||o||l)}g&&(n.EVENT_KEY_CODE_MAP[g]=r),v&&(n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[v]=r)}n.IMMUTABLE_KEY_CODE_TO_CODE[3]=46})();var c;(function(e){function f(p){return D.keyCodeToStr(p)}e.toString=f;function m(p){return D.strToKeyCode(p)}e.fromString=m;function N(p){return w.keyCodeToStr(p)}e.toUserSettingsUS=N;function b(p){return s.keyCodeToStr(p)}e.toUserSettingsGeneral=b;function h(p){return w.strToKeyCode(p)||s.strToKeyCode(p)}e.fromUserSettings=h;function S(p){if(p>=93&&p<=108)return null;switch(p){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return D.keyCodeToStr(p)}e.toElectronAccelerator=S})(c=n.KeyCodeUtils||(n.KeyCodeUtils={}));function C(e,f){const m=(f&65535)<<16>>>0;return(e|m)>>>0}n.KeyChord=C}),j(z[8],G([0,1,15,16]),function(F,n,A,D){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ImmortalReference=n.MutableDisposable=n.Disposable=n.DisposableStore=n.toDisposable=n.combinedDisposable=n.dispose=n.isDisposable=n.MultiDisposeError=n.markAsSingleton=n.setDisposableTracker=void 0;const w=!1;let s=null;function d(l){s=l}if(n.setDisposableTracker=d,w){const l="__is_disposable_tracked__";d(new class{trackDisposable(g){const v=new Error("Potentially leaked disposable").stack;setTimeout(()=>{g[l]||console.log(v)},3e3)}setParent(g,v){if(g&&g!==p.None)try{g[l]=!0}catch(o){}}markAsDisposed(g){if(g&&g!==p.None)try{g[l]=!0}catch(v){}}markAsSingleton(g){}})}function a(l){return s==null||s.trackDisposable(l),l}function u(l){s==null||s.markAsDisposed(l)}function c(l,g){s==null||s.setParent(l,g)}function C(l,g){if(!!s)for(const v of l)s.setParent(v,g)}function e(l){return s==null||s.markAsSingleton(l),l}n.markAsSingleton=e;class f extends Error{constructor(g){super(`Encountered errors while disposing of store. Errors: [${g.join(", ")}]`);this.errors=g}}n.MultiDisposeError=f;function m(l){return typeof l.dispose=="function"&&l.dispose.length===0}n.isDisposable=m;function N(l){if(D.Iterable.is(l)){let g=[];for(const v of l)if(v)try{v.dispose()}catch(o){g.push(o)}if(g.length===1)throw g[0];if(g.length>1)throw new f(g);return Array.isArray(l)?[]:l}else if(l)return l.dispose(),l}n.dispose=N;function b(...l){const g=h(()=>N(l));return C(l,g),g}n.combinedDisposable=b;function h(l){const g=a({dispose:(0,A.once)(()=>{u(g),l()})});return g}n.toDisposable=h;class S{constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(u(this),this._isDisposed=!0,this.clear())}clear(){try{N(this._toDispose.values())}finally{this._toDispose.clear()}}add(g){if(!g)return g;if(g===this)throw new Error("Cannot register a disposable on itself!");return c(g,this),this._isDisposed?S.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(g),g}}n.DisposableStore=S,S.DISABLE_DISPOSED_WARNING=!1;class p{constructor(){this._store=new S,a(this),c(this._store,this)}dispose(){u(this),this._store.dispose()}_register(g){if(g===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(g)}}n.Disposable=p,p.None=Object.freeze({dispose(){}});class i{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(g){var v;this._isDisposed||g===this._value||((v=this._value)===null||v===void 0||v.dispose(),g&&c(g,this),this._value=g)}clear(){this.value=void 0}dispose(){var g;this._isDisposed=!0,u(this),(g=this._value)===null||g===void 0||g.dispose(),this._value=void 0}clearAndLeak(){const g=this._value;return this._value=void 0,g&&c(g,null),g}}n.MutableDisposable=i;class r{constructor(g){this.object=g}dispose(){}}n.ImmortalReference=r}),j(z[18],G([0,1]),function(F,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkedList=void 0;class A{constructor(s){this.element=s,this.next=A.Undefined,this.prev=A.Undefined}}A.Undefined=new A(void 0);class D{constructor(){this._first=A.Undefined,this._last=A.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===A.Undefined}clear(){let s=this._first;for(;s!==A.Undefined;){const d=s.next;s.prev=A.Undefined,s.next=A.Undefined,s=d}this._first=A.Undefined,this._last=A.Undefined,this._size=0}unshift(s){return this._insert(s,!1)}push(s){return this._insert(s,!0)}_insert(s,d){const a=new A(s);if(this._first===A.Undefined)this._first=a,this._last=a;else if(d){const c=this._last;this._last=a,a.prev=c,c.next=a}else{const c=this._first;this._first=a,a.next=c,c.prev=a}this._size+=1;let u=!1;return()=>{u||(u=!0,this._remove(a))}}shift(){if(this._first!==A.Undefined){const s=this._first.element;return this._remove(this._first),s}}pop(){if(this._last!==A.Undefined){const s=this._last.element;return this._remove(this._last),s}}_remove(s){if(s.prev!==A.Undefined&&s.next!==A.Undefined){const d=s.prev;d.next=s.next,s.next.prev=d}else s.prev===A.Undefined&&s.next===A.Undefined?(this._first=A.Undefined,this._last=A.Undefined):s.next===A.Undefined?(this._last=this._last.prev,this._last.next=A.Undefined):s.prev===A.Undefined&&(this._first=this._first.next,this._first.prev=A.Undefined);this._size-=1}*[Symbol.iterator](){let s=this._first;for(;s!==A.Undefined;)yield s.element,s=s.next}}n.LinkedList=D}),j(z[2],G([0,1]),function(F,n){"use strict";var A;Object.defineProperty(n,"__esModule",{value:!0}),n.isLittleEndian=n.OS=n.setImmediate=n.userAgent=n.isIOS=n.isWeb=n.isNative=n.isLinux=n.isMacintosh=n.isWindows=n.globals=void 0;const D="en";let w=!1,s=!1,d=!1,a=!1,u=!1,c=!1,C=!1,e,f=D,m,N;n.globals=typeof self=="object"?self:typeof global=="object"?global:{};let b;typeof n.globals.vscode!="undefined"&&typeof n.globals.vscode.process!="undefined"?b=n.globals.vscode.process:typeof process!="undefined"&&(b=process);const h=typeof((A=b==null?void 0:b.versions)===null||A===void 0?void 0:A.electron)=="string"&&b.type==="renderer";if(typeof navigator=="object"&&!h)N=navigator.userAgent,w=N.indexOf("Windows")>=0,s=N.indexOf("Macintosh")>=0,C=(N.indexOf("Macintosh")>=0||N.indexOf("iPad")>=0||N.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=N.indexOf("Linux")>=0,c=!0,e=navigator.language,f=e;else if(typeof b=="object"){w=b.platform==="win32",s=b.platform==="darwin",d=b.platform==="linux",a=d&&!!b.env.SNAP&&!!b.env.SNAP_REVISION,e=D,f=D;const l=b.env.VSCODE_NLS_CONFIG;if(l)try{const g=JSON.parse(l),v=g.availableLanguages["*"];e=g.locale,f=v||D,m=g._translationsConfigFile}catch(g){}u=!0}else console.error("Unable to resolve platform.");let S=0;s?S=1:w?S=3:d&&(S=2),n.isWindows=w,n.isMacintosh=s,n.isLinux=d,n.isNative=u,n.isWeb=c,n.isIOS=C,n.userAgent=N,n.setImmediate=function(){if(n.globals.setImmediate)return n.globals.setImmediate.bind(n.globals);if(typeof n.globals.postMessage=="function"&&!n.globals.importScripts){let v=[];n.globals.addEventListener("message",_=>{if(_.data&&_.data.vscodeSetImmediateId)for(let L=0,E=v.length;L{const L=++o;v.push({id:L,callback:_}),n.globals.postMessage({vscodeSetImmediateId:L},"*")}}if(typeof(b==null?void 0:b.nextTick)=="function")return b.nextTick.bind(b);const g=Promise.resolve();return v=>g.then(v)}(),n.OS=s||C?2:w?1:3;let p=!0,i=!1;function r(){if(!i){i=!0;const l=new Uint8Array(2);l[0]=1,l[1]=2,p=new Uint16Array(l.buffer)[0]===(2<<8)+1}return p}n.isLittleEndian=r}),j(z[19],G([0,1,2]),function(F,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.platform=n.env=n.cwd=void 0;let D;if(typeof A.globals.vscode!="undefined"&&typeof A.globals.vscode.process!="undefined"){const w=A.globals.vscode.process;D={get platform(){return w.platform},get arch(){return w.arch},get env(){return w.env},cwd(){return w.cwd()},nextTick(s){return(0,A.setImmediate)(s)}}}else typeof process!="undefined"?D={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()},nextTick(w){return process.nextTick(w)}}:D={get platform(){return A.isWindows?"win32":A.isMacintosh?"darwin":"linux"},get arch(){},nextTick(w){return(0,A.setImmediate)(w)},get env(){return{}},cwd(){return"/"}};n.cwd=D.cwd,n.env=D.env,n.platform=D.platform}),j(z[20],G([0,1,19]),function(F,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.sep=n.extname=n.basename=n.dirname=n.relative=n.resolve=n.normalize=n.posix=n.win32=void 0;const D=65,w=97,s=90,d=122,a=46,u=47,c=92,C=58,e=63;class f extends Error{constructor(r,l,g){let v;typeof l=="string"&&l.indexOf("not ")===0?(v="must not be",l=l.replace(/^not /,"")):v="must be";const o=r.indexOf(".")!==-1?"property":"argument";let _=`The "${r}" ${o} ${v} of type ${l}`;_+=`. Received type ${typeof g}`,super(_),this.code="ERR_INVALID_ARG_TYPE"}}function m(i,r){if(typeof i!="string")throw new f(r,"string",i)}function N(i){return i===u||i===c}function b(i){return i===u}function h(i){return i>=D&&i<=s||i>=w&&i<=d}function S(i,r,l,g){let v="",o=0,_=-1,L=0,E=0;for(let y=0;y<=i.length;++y){if(y2){const P=v.lastIndexOf(l);P===-1?(v="",o=0):(v=v.slice(0,P),o=v.length-1-v.lastIndexOf(l)),_=y,L=0;continue}else if(v.length!==0){v="",o=0,_=y,L=0;continue}}r&&(v+=v.length>0?`${l}..`:"..",o=2)}else v.length>0?v+=`${l}${i.slice(_+1,y)}`:v=i.slice(_+1,y),o=y-_-1;_=y,L=0}else E===a&&L!==-1?++L:L=-1}return v}function p(i,r){if(r===null||typeof r!="object")throw new f("pathObject","Object",r);const l=r.dir||r.root,g=r.base||`${r.name||""}${r.ext||""}`;return l?l===r.root?`${l}${g}`:`${l}${i}${g}`:g}n.win32={resolve(...i){let r="",l="",g=!1;for(let v=i.length-1;v>=-1;v--){let o;if(v>=0){if(o=i[v],m(o,"path"),o.length===0)continue}else r.length===0?o=A.cwd():(o=A.env[`=${r}`]||A.cwd(),(o===void 0||o.slice(0,2).toLowerCase()!==r.toLowerCase()&&o.charCodeAt(2)===c)&&(o=`${r}\\`));const _=o.length;let L=0,E="",y=!1;const P=o.charCodeAt(0);if(_===1)N(P)&&(L=1,y=!0);else if(N(P))if(y=!0,N(o.charCodeAt(1))){let R=2,V=R;for(;R<_&&!N(o.charCodeAt(R));)R++;if(R<_&&R!==V){const B=o.slice(V,R);for(V=R;R<_&&N(o.charCodeAt(R));)R++;if(R<_&&R!==V){for(V=R;R<_&&!N(o.charCodeAt(R));)R++;(R===_||R!==V)&&(E=`\\\\${B}\\${o.slice(V,R)}`,L=R)}}}else L=1;else h(P)&&o.charCodeAt(1)===C&&(E=o.slice(0,2),L=2,_>2&&N(o.charCodeAt(2))&&(y=!0,L=3));if(E.length>0)if(r.length>0){if(E.toLowerCase()!==r.toLowerCase())continue}else r=E;if(g){if(r.length>0)break}else if(l=`${o.slice(L)}\\${l}`,g=y,y&&r.length>0)break}return l=S(l,!g,"\\",N),g?`${r}\\${l}`:`${r}${l}`||"."},normalize(i){m(i,"path");const r=i.length;if(r===0)return".";let l=0,g,v=!1;const o=i.charCodeAt(0);if(r===1)return b(o)?"\\":i;if(N(o))if(v=!0,N(i.charCodeAt(1))){let L=2,E=L;for(;L2&&N(i.charCodeAt(2))&&(v=!0,l=3));let _=l0&&N(i.charCodeAt(r-1))&&(_+="\\"),g===void 0?v?`\\${_}`:_:v?`${g}\\${_}`:`${g}${_}`},isAbsolute(i){m(i,"path");const r=i.length;if(r===0)return!1;const l=i.charCodeAt(0);return N(l)||r>2&&h(l)&&i.charCodeAt(1)===C&&N(i.charCodeAt(2))},join(...i){if(i.length===0)return".";let r,l;for(let o=0;o0&&(r===void 0?r=l=_:r+=`\\${_}`)}if(r===void 0)return".";let g=!0,v=0;if(typeof l=="string"&&N(l.charCodeAt(0))){++v;const o=l.length;o>1&&N(l.charCodeAt(1))&&(++v,o>2&&(N(l.charCodeAt(2))?++v:g=!1))}if(g){for(;v=2&&(r=`\\${r.slice(v)}`)}return n.win32.normalize(r)},relative(i,r){if(m(i,"from"),m(r,"to"),i===r)return"";const l=n.win32.resolve(i),g=n.win32.resolve(r);if(l===g||(i=l.toLowerCase(),r=g.toLowerCase(),i===r))return"";let v=0;for(;vv&&i.charCodeAt(o-1)===c;)o--;const _=o-v;let L=0;for(;LL&&r.charCodeAt(E-1)===c;)E--;const y=E-L,P=_P){if(r.charCodeAt(L+V)===c)return g.slice(L+V+1);if(V===2)return g.slice(L+V)}_>P&&(i.charCodeAt(v+V)===c?R=V:V===2&&(R=3)),R===-1&&(R=0)}let B="";for(V=v+R+1;V<=o;++V)(V===o||i.charCodeAt(V)===c)&&(B+=B.length===0?"..":"\\..");return L+=R,B.length>0?`${B}${g.slice(L,E)}`:(g.charCodeAt(L)===c&&++L,g.slice(L,E))},toNamespacedPath(i){if(typeof i!="string")return i;if(i.length===0)return"";const r=n.win32.resolve(i);if(r.length<=2)return i;if(r.charCodeAt(0)===c){if(r.charCodeAt(1)===c){const l=r.charCodeAt(2);if(l!==e&&l!==a)return`\\\\?\\UNC\\${r.slice(2)}`}}else if(h(r.charCodeAt(0))&&r.charCodeAt(1)===C&&r.charCodeAt(2)===c)return`\\\\?\\${r}`;return i},dirname(i){m(i,"path");const r=i.length;if(r===0)return".";let l=-1,g=0;const v=i.charCodeAt(0);if(r===1)return N(v)?i:".";if(N(v)){if(l=g=1,N(i.charCodeAt(1))){let L=2,E=L;for(;L2&&N(i.charCodeAt(2))?3:2,g=l);let o=-1,_=!0;for(let L=r-1;L>=g;--L)if(N(i.charCodeAt(L))){if(!_){o=L;break}}else _=!1;if(o===-1){if(l===-1)return".";o=l}return i.slice(0,o)},basename(i,r){r!==void 0&&m(r,"ext"),m(i,"path");let l=0,g=-1,v=!0,o;if(i.length>=2&&h(i.charCodeAt(0))&&i.charCodeAt(1)===C&&(l=2),r!==void 0&&r.length>0&&r.length<=i.length){if(r===i)return"";let _=r.length-1,L=-1;for(o=i.length-1;o>=l;--o){const E=i.charCodeAt(o);if(N(E)){if(!v){l=o+1;break}}else L===-1&&(v=!1,L=o+1),_>=0&&(E===r.charCodeAt(_)?--_==-1&&(g=o):(_=-1,g=L))}return l===g?g=L:g===-1&&(g=i.length),i.slice(l,g)}for(o=i.length-1;o>=l;--o)if(N(i.charCodeAt(o))){if(!v){l=o+1;break}}else g===-1&&(v=!1,g=o+1);return g===-1?"":i.slice(l,g)},extname(i){m(i,"path");let r=0,l=-1,g=0,v=-1,o=!0,_=0;i.length>=2&&i.charCodeAt(1)===C&&h(i.charCodeAt(0))&&(r=g=2);for(let L=i.length-1;L>=r;--L){const E=i.charCodeAt(L);if(N(E)){if(!o){g=L+1;break}continue}v===-1&&(o=!1,v=L+1),E===a?l===-1?l=L:_!==1&&(_=1):l!==-1&&(_=-1)}return l===-1||v===-1||_===0||_===1&&l===v-1&&l===g+1?"":i.slice(l,v)},format:p.bind(null,"\\"),parse(i){m(i,"path");const r={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return r;const l=i.length;let g=0,v=i.charCodeAt(0);if(l===1)return N(v)?(r.root=r.dir=i,r):(r.base=r.name=i,r);if(N(v)){if(g=1,N(i.charCodeAt(1))){let R=2,V=R;for(;R0&&(r.root=i.slice(0,g));let o=-1,_=g,L=-1,E=!0,y=i.length-1,P=0;for(;y>=g;--y){if(v=i.charCodeAt(y),N(v)){if(!E){_=y+1;break}continue}L===-1&&(E=!1,L=y+1),v===a?o===-1?o=y:P!==1&&(P=1):o!==-1&&(P=-1)}return L!==-1&&(o===-1||P===0||P===1&&o===L-1&&o===_+1?r.base=r.name=i.slice(_,L):(r.name=i.slice(_,o),r.base=i.slice(_,L),r.ext=i.slice(o,L))),_>0&&_!==g?r.dir=i.slice(0,_-1):r.dir=r.root,r},sep:"\\",delimiter:";",win32:null,posix:null},n.posix={resolve(...i){let r="",l=!1;for(let g=i.length-1;g>=-1&&!l;g--){const v=g>=0?i[g]:A.cwd();m(v,"path"),v.length!==0&&(r=`${v}/${r}`,l=v.charCodeAt(0)===u)}return r=S(r,!l,"/",b),l?`/${r}`:r.length>0?r:"."},normalize(i){if(m(i,"path"),i.length===0)return".";const r=i.charCodeAt(0)===u,l=i.charCodeAt(i.length-1)===u;return i=S(i,!r,"/",b),i.length===0?r?"/":l?"./":".":(l&&(i+="/"),r?`/${i}`:i)},isAbsolute(i){return m(i,"path"),i.length>0&&i.charCodeAt(0)===u},join(...i){if(i.length===0)return".";let r;for(let l=0;l0&&(r===void 0?r=g:r+=`/${g}`)}return r===void 0?".":n.posix.normalize(r)},relative(i,r){if(m(i,"from"),m(r,"to"),i===r||(i=n.posix.resolve(i),r=n.posix.resolve(r),i===r))return"";const l=1,g=i.length,v=g-l,o=1,_=r.length-o,L=v<_?v:_;let E=-1,y=0;for(;yL){if(r.charCodeAt(o+y)===u)return r.slice(o+y+1);if(y===0)return r.slice(o+y)}else v>L&&(i.charCodeAt(l+y)===u?E=y:y===0&&(E=0));let P="";for(y=l+E+1;y<=g;++y)(y===g||i.charCodeAt(y)===u)&&(P+=P.length===0?"..":"/..");return`${P}${r.slice(o+E)}`},toNamespacedPath(i){return i},dirname(i){if(m(i,"path"),i.length===0)return".";const r=i.charCodeAt(0)===u;let l=-1,g=!0;for(let v=i.length-1;v>=1;--v)if(i.charCodeAt(v)===u){if(!g){l=v;break}}else g=!1;return l===-1?r?"/":".":r&&l===1?"//":i.slice(0,l)},basename(i,r){r!==void 0&&m(r,"ext"),m(i,"path");let l=0,g=-1,v=!0,o;if(r!==void 0&&r.length>0&&r.length<=i.length){if(r===i)return"";let _=r.length-1,L=-1;for(o=i.length-1;o>=0;--o){const E=i.charCodeAt(o);if(E===u){if(!v){l=o+1;break}}else L===-1&&(v=!1,L=o+1),_>=0&&(E===r.charCodeAt(_)?--_==-1&&(g=o):(_=-1,g=L))}return l===g?g=L:g===-1&&(g=i.length),i.slice(l,g)}for(o=i.length-1;o>=0;--o)if(i.charCodeAt(o)===u){if(!v){l=o+1;break}}else g===-1&&(v=!1,g=o+1);return g===-1?"":i.slice(l,g)},extname(i){m(i,"path");let r=-1,l=0,g=-1,v=!0,o=0;for(let _=i.length-1;_>=0;--_){const L=i.charCodeAt(_);if(L===u){if(!v){l=_+1;break}continue}g===-1&&(v=!1,g=_+1),L===a?r===-1?r=_:o!==1&&(o=1):r!==-1&&(o=-1)}return r===-1||g===-1||o===0||o===1&&r===g-1&&r===l+1?"":i.slice(r,g)},format:p.bind(null,"/"),parse(i){m(i,"path");const r={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return r;const l=i.charCodeAt(0)===u;let g;l?(r.root="/",g=1):g=0;let v=-1,o=0,_=-1,L=!0,E=i.length-1,y=0;for(;E>=g;--E){const P=i.charCodeAt(E);if(P===u){if(!L){o=E+1;break}continue}_===-1&&(L=!1,_=E+1),P===a?v===-1?v=E:y!==1&&(y=1):v!==-1&&(y=-1)}if(_!==-1){const P=o===0&&l?1:o;v===-1||y===0||y===1&&v===_-1&&v===o+1?r.base=r.name=i.slice(P,_):(r.name=i.slice(P,v),r.base=i.slice(P,_),r.ext=i.slice(v,_))}return o>0?r.dir=i.slice(0,o-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null},n.posix.win32=n.win32.win32=n.win32,n.posix.posix=n.win32.posix=n.posix,n.normalize=A.platform==="win32"?n.win32.normalize:n.posix.normalize,n.resolve=A.platform==="win32"?n.win32.resolve:n.posix.resolve,n.relative=A.platform==="win32"?n.win32.relative:n.posix.relative,n.dirname=A.platform==="win32"?n.win32.dirname:n.posix.dirname,n.basename=A.platform==="win32"?n.win32.basename:n.posix.basename,n.extname=A.platform==="win32"?n.win32.extname:n.posix.extname,n.sep=A.platform==="win32"?n.win32.sep:n.posix.sep}),j(z[9],G([0,1,2]),function(F,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StopWatch=void 0;const D=A.globals.performance&&typeof A.globals.performance.now=="function";class w{constructor(d){this._highResolution=D&&d,this._startTime=this._now(),this._stopTime=-1}static create(d=!0){return new w(d)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?A.globals.performance.now():Date.now()}}n.StopWatch=w}),j(z[5],G([0,1,7,8,18,9]),function(F,n,A,D,w,s){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Relay=n.EventBufferer=n.DebounceEmitter=n.PauseableEmitter=n.Emitter=n.Event=void 0;var d;(function(b){b.None=()=>D.Disposable.None;function h(U){return(T,q=null,O)=>{let t=!1,W;return W=U(Y=>{if(!t)return W?W.dispose():t=!0,T.call(q,Y)},null,O),t&&W.dispose(),W}}b.once=h;function S(U,T){return v((q,O=null,t)=>U(W=>q.call(O,T(W)),null,t))}b.map=S;function p(U,T){return v((q,O=null,t)=>U(W=>{T(W),q.call(O,W)},null,t))}b.forEach=p;function i(U,T){return v((q,O=null,t)=>U(W=>T(W)&&q.call(O,W),null,t))}b.filter=i;function r(U){return U}b.signal=r;function l(...U){return(T,q=null,O)=>(0,D.combinedDisposable)(...U.map(t=>t(W=>T.call(q,W),null,O)))}b.any=l;function g(U,T,q){let O=q;return S(U,t=>(O=T(O,t),O))}b.reduce=g;function v(U){let T;const q=new C({onFirstListenerAdd(){T=U(q.fire,q)},onLastListenerRemove(){T.dispose()}});return q.event}function o(U,T,q=100,O=!1,t){let W,Y,Z,ie=0;const re=new C({leakWarningThreshold:t,onFirstListenerAdd(){W=U(oe=>{ie++,Y=T(Y,oe),O&&!Z&&(re.fire(Y),Y=void 0),clearTimeout(Z),Z=setTimeout(()=>{const se=Y;Y=void 0,Z=void 0,(!O||ie>1)&&re.fire(se),ie=0},q)})},onLastListenerRemove(){W.dispose()}});return re.event}b.debounce=o;function _(U,T=(q,O)=>q===O){let q=!0,O;return i(U,t=>{const W=q||!T(t,O);return q=!1,O=t,W})}b.latch=_;function L(U,T){return[b.filter(U,T),b.filter(U,q=>!T(q))]}b.split=L;function E(U,T=!1,q=[]){let O=q.slice(),t=U(Z=>{O?O.push(Z):Y.fire(Z)});const W=()=>{O&&O.forEach(Z=>Y.fire(Z)),O=null},Y=new C({onFirstListenerAdd(){t||(t=U(Z=>Y.fire(Z)))},onFirstListenerDidAdd(){O&&(T?setTimeout(W):W())},onLastListenerRemove(){t&&t.dispose(),t=null}});return Y.event}b.buffer=E;class y{constructor(T){this.event=T}map(T){return new y(S(this.event,T))}forEach(T){return new y(p(this.event,T))}filter(T){return new y(i(this.event,T))}reduce(T,q){return new y(g(this.event,T,q))}latch(){return new y(_(this.event))}debounce(T,q=100,O=!1,t){return new y(o(this.event,T,q,O,t))}on(T,q,O){return this.event(T,q,O)}once(T,q,O){return h(this.event)(T,q,O)}}function P(U){return new y(U)}b.chain=P;function R(U,T,q=O=>O){const O=(...Z)=>Y.fire(q(...Z)),t=()=>U.on(T,O),W=()=>U.removeListener(T,O),Y=new C({onFirstListenerAdd:t,onLastListenerRemove:W});return Y.event}b.fromNodeEventEmitter=R;function V(U,T,q=O=>O){const O=(...Z)=>Y.fire(q(...Z)),t=()=>U.addEventListener(T,O),W=()=>U.removeEventListener(T,O),Y=new C({onFirstListenerAdd:t,onLastListenerRemove:W});return Y.event}b.fromDOMEventEmitter=V;function B(U){return new Promise(T=>h(U)(T))}b.toPromise=B})(d=n.Event||(n.Event={}));class a{constructor(h){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${h}_${a._idPool++}`}start(h){this._stopWatch=new s.StopWatch(!0),this._listenerCount=h}stop(){if(this._stopWatch){const h=this._stopWatch.elapsed();this._elapsedOverall+=h,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${h.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}a._idPool=0;let u=-1;class c{constructor(h,S=Math.random().toString(18).slice(2,5)){this.customThreshold=h,this.name=S,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(h){let S=u;if(typeof this.customThreshold=="number"&&(S=this.customThreshold),S<=0||h{const r=this._stacks.get(p)||0;this._stacks.set(p,r-1)}}}class C{constructor(h){var S;this._disposed=!1,this._options=h,this._leakageMon=u>0?new c(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((S=this._options)===null||S===void 0?void 0:S._profName)?new a(this._options._profName):void 0}get event(){return this._event||(this._event=(h,S,p)=>{var i;this._listeners||(this._listeners=new w.LinkedList);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const l=this._listeners.push(S?[h,S]:h);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,h,S);const g=(i=this._leakageMon)===null||i===void 0?void 0:i.check(this._listeners.size),v=(0,D.toDisposable)(()=>{g&&g(),this._disposed||(l(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return p instanceof D.DisposableStore?p.add(v):Array.isArray(p)&&p.push(v),v}),this._event}fire(h){var S,p;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new w.LinkedList);for(let i of this._listeners)this._deliveryQueue.push([i,h]);for((S=this._perfMon)===null||S===void 0||S.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[i,r]=this._deliveryQueue.shift();try{typeof i=="function"?i.call(void 0,r):i[0].call(i[1],r)}catch(l){(0,A.onUnexpectedError)(l)}}(p=this._perfMon)===null||p===void 0||p.stop()}}dispose(){var h,S,p,i,r;this._disposed||(this._disposed=!0,(h=this._listeners)===null||h===void 0||h.clear(),(S=this._deliveryQueue)===null||S===void 0||S.clear(),(i=(p=this._options)===null||p===void 0?void 0:p.onLastListenerRemove)===null||i===void 0||i.call(p),(r=this._leakageMon)===null||r===void 0||r.dispose())}}n.Emitter=C;class e extends C{constructor(h){super(h);this._isPaused=0,this._eventQueue=new w.LinkedList,this._mergeFn=h==null?void 0:h.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const h=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(h))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(h){this._listeners&&(this._isPaused!==0?this._eventQueue.push(h):super.fire(h))}}n.PauseableEmitter=e;class f extends e{constructor(h){var S;super(h);this._delay=(S=h.delay)!==null&&S!==void 0?S:100}fire(h){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(h)}}n.DebounceEmitter=f;class m{constructor(){this.buffers=[]}wrapEvent(h){return(S,p,i)=>h(r=>{const l=this.buffers[this.buffers.length-1];l?l.push(()=>S.call(p,r)):S.call(p,r)},void 0,i)}bufferEvents(h){const S=[];this.buffers.push(S);const p=h();return this.buffers.pop(),S.forEach(i=>i()),p}}n.EventBufferer=m;class N{constructor(){this.listening=!1,this.inputEvent=d.None,this.inputEventListener=D.Disposable.None,this.emitter=new C({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}n.Relay=N}),j(z[21],G([0,1,5]),function(F,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CancellationTokenSource=n.CancellationToken=void 0;const D=Object.freeze(function(a,u){const c=setTimeout(a.bind(u),0);return{dispose(){clearTimeout(c)}}});var w;(function(a){function u(c){return c===a.None||c===a.Cancelled||c instanceof s?!0:!c||typeof c!="object"?!1:typeof c.isCancellationRequested=="boolean"&&typeof c.onCancellationRequested=="function"}a.isCancellationToken=u,a.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:A.Event.None}),a.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:D})})(w=n.CancellationToken||(n.CancellationToken={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?D:(this._emitter||(this._emitter=new A.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class d{constructor(u){this._token=void 0,this._parentListener=void 0,this._parentListener=u&&u.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=w.Cancelled}dispose(u=!1){u&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=w.None}}n.CancellationTokenSource=d}),j(z[4],G([0,1]),function(F,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getLeftDeleteOffset=n.breakBetweenGraphemeBreakType=n.getGraphemeBreakType=n.singleLetterHash=n.containsUppercaseCharacter=n.startsWithUTF8BOM=n.UTF8_BOM_CHARACTER=n.isEmojiImprecise=n.isFullWidthCharacter=n.containsFullWidthCharacter=n.containsUnusualLineTerminators=n.UNUSUAL_LINE_TERMINATORS=n.isBasicASCII=n.containsEmoji=n.containsRTL=n.prevCharLength=n.nextCharLength=n.getNextCodePoint=n.computeCodePoint=n.isLowSurrogate=n.isHighSurrogate=n.commonSuffixLength=n.commonPrefixLength=n.startsWithIgnoreCase=n.equalsIgnoreCase=n.isUpperAsciiLetter=n.isLowerAsciiLetter=n.compareSubstringIgnoreCase=n.compareIgnoreCase=n.compareSubstring=n.compare=n.lastNonWhitespaceIndex=n.getLeadingWhitespace=n.firstNonWhitespaceIndex=n.splitLines=n.regExpFlags=n.regExpLeadsToEndlessLoop=n.createRegExp=n.stripWildcards=n.convertSimple2RegExpPattern=n.rtrim=n.ltrim=n.trim=n.escapeRegExpCharacters=n.escape=n.format=n.isFalsyOrWhitespace=void 0;function A(M){return!M||typeof M!="string"?!0:M.trim().length===0}n.isFalsyOrWhitespace=A;const D=/{(\d+)}/g;function w(M,...I){return I.length===0?M:M.replace(D,function(k,H){const $=parseInt(H,10);return isNaN($)||$<0||$>=I.length?k:I[$]})}n.format=w;function s(M){return M.replace(/[<>&]/g,function(I){switch(I){case"<":return"<";case">":return">";case"&":return"&";default:return I}})}n.escape=s;function d(M){return M.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}n.escapeRegExpCharacters=d;function a(M,I=" "){const k=u(M,I);return c(k,I)}n.trim=a;function u(M,I){if(!M||!I)return M;const k=I.length;if(k===0||M.length===0)return M;let H=0;for(;M.indexOf(I,H)===H;)H=H+k;return M.substring(H)}n.ltrim=u;function c(M,I){if(!M||!I)return M;const k=I.length,H=M.length;if(k===0||H===0)return M;let $=H,X=-1;for(;X=M.lastIndexOf(I,$-1),!(X===-1||X+k!==$);){if(X===0)return"";$=X}return M.substring(0,$)}n.rtrim=c;function C(M){return M.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}n.convertSimple2RegExpPattern=C;function e(M){return M.replace(/\*/g,"")}n.stripWildcards=e;function f(M,I,k={}){if(!M)throw new Error("Cannot create regex from empty string");I||(M=d(M)),k.wholeWord&&(/\B/.test(M.charAt(0))||(M="\\b"+M),/\B/.test(M.charAt(M.length-1))||(M=M+"\\b"));let H="";return k.global&&(H+="g"),k.matchCase||(H+="i"),k.multiline&&(H+="m"),k.unicode&&(H+="u"),new RegExp(M,H)}n.createRegExp=f;function m(M){return M.source==="^"||M.source==="^$"||M.source==="$"||M.source==="^\\s*$"?!1:!!(M.exec("")&&M.lastIndex===0)}n.regExpLeadsToEndlessLoop=m;function N(M){return(M.global?"g":"")+(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")}n.regExpFlags=N;function b(M){return M.split(/\r\n|\r|\n/)}n.splitLines=b;function h(M){for(let I=0,k=M.length;I=0;k--){const H=M.charCodeAt(k);if(H!==32&&H!==9)return k}return-1}n.lastNonWhitespaceIndex=p;function i(M,I){return MI?1:0}n.compare=i;function r(M,I,k=0,H=M.length,$=0,X=I.length){for(;kte)return 1}const J=H-k,K=X-$;return JK?1:0}n.compareSubstring=r;function l(M,I){return g(M,I,0,M.length,0,I.length)}n.compareIgnoreCase=l;function g(M,I,k=0,H=M.length,$=0,X=I.length){for(;k=128||te>=128)return r(M.toLowerCase(),I.toLowerCase(),k,H,$,X);v(x)&&(x-=32),v(te)&&(te-=32);const ce=x-te;if(ce!==0)return ce}const J=H-k,K=X-$;return JK?1:0}n.compareSubstringIgnoreCase=g;function v(M){return M>=97&&M<=122}n.isLowerAsciiLetter=v;function o(M){return M>=65&&M<=90}n.isUpperAsciiLetter=o;function _(M,I){return M.length===I.length&&g(M,I)===0}n.equalsIgnoreCase=_;function L(M,I){const k=I.length;return I.length>M.length?!1:g(M,I,0,k)===0}n.startsWithIgnoreCase=L;function E(M,I){let k,H=Math.min(M.length,I.length);for(k=0;k1){const H=M.charCodeAt(I-2);if(P(H))return V(H,k)}return k}function T(M,I){const k=ee.getInstance(),H=I,$=M.length,X=B(M,$,I);I+=X>=65536?2:1;let J=k.getGraphemeBreakType(X);for(;I<$;){const K=B(M,$,I),x=k.getGraphemeBreakType(K);if(ue(J,x))break;I+=K>=65536?2:1,J=x}return I-H}n.nextCharLength=T;function q(M,I){const k=ee.getInstance(),H=I,$=U(M,I);I-=$>=65536?2:1;let X=k.getGraphemeBreakType($);for(;I>0;){const J=U(M,I),K=k.getGraphemeBreakType(J);if(ue(K,X))break;I-=J>=65536?2:1,X=K}return H-I}n.prevCharLength=q;const O=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function t(M){return O.test(M)}n.containsRTL=t;const W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function Y(M){return W.test(M)}n.containsEmoji=Y;const Z=/^[\t\n\r\x20-\x7E]*$/;function ie(M){return Z.test(M)}n.isBasicASCII=ie,n.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function re(M){return n.UNUSUAL_LINE_TERMINATORS.test(M)}n.containsUnusualLineTerminators=re;function oe(M){for(let I=0,k=M.length;I=11904&&M<=55215||M>=63744&&M<=64255||M>=65281&&M<=65374}n.isFullWidthCharacter=se;function ae(M){return M>=127462&&M<=127487||M===8986||M===8987||M===9200||M===9203||M>=9728&&M<=10175||M===11088||M===11093||M>=127744&&M<=128591||M>=128640&&M<=128764||M>=128992&&M<=129003||M>=129280&&M<=129535||M>=129648&&M<=129750}n.isEmojiImprecise=ae,n.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function de(M){return!!(M&&M.length>0&&M.charCodeAt(0)===65279)}n.startsWithUTF8BOM=de;function me(M,I=!1){return M?(I&&(M=M.replace(/\\./g,"")),M.toLowerCase()!==M):!1}n.containsUppercaseCharacter=me;function ge(M){const I=90-65+1;return M=M%(2*I),Mk[3*$+1])$=2*$+1;else return k[3*$+2];return 0}}ee._INSTANCE=null;function ve(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Le(M,I){if(M===0)return 0;const k=Ce(M,I);if(k!==void 0)return k;const H=U(I,M);return M-=le(H),M}n.getLeftDeleteOffset=Le;function Ce(M,I){let k=U(I,M);for(M-=le(k);be(k)||k===65039||k===8419;){if(M===0)return;k=U(I,M),M-=le(k)}if(!!ae(k)){if(M>=0){const H=U(I,M);H===8205&&(M-=le(H))}return M}}function le(M){return M>=65536?2:1}function be(M){return 127995<=M&&M<=127999}}),j(z[22],G([0,1,4]),function(F,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StringSHA1=n.toHexString=n.stringHash=n.numberHash=n.doHash=n.hash=void 0;function D(b){return w(b,0)}n.hash=D;function w(b,h){switch(typeof b){case"object":return b===null?s(349,h):Array.isArray(b)?u(b,h):c(b,h);case"string":return a(b,h);case"boolean":return d(b,h);case"number":return s(b,h);case"undefined":return s(937,h);default:return s(617,h)}}n.doHash=w;function s(b,h){return(h<<5)-h+b|0}n.numberHash=s;function d(b,h){return s(b?433:863,h)}function a(b,h){h=s(149417,h);for(let S=0,p=b.length;Sw(p,S),h)}function c(b,h){return h=s(181387,h),Object.keys(b).sort().reduce((S,p)=>(S=a(p,S),w(b[p],S)),h)}function C(b,h,S=32){const p=S-h,i=~((1<>>p)>>>0}function e(b,h=0,S=b.byteLength,p=0){for(let i=0;iS.toString(16).padStart(2,"0")).join(""):f((b>>>0).toString(16),h/4)}n.toHexString=m;class N{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(h){const S=h.length;if(S===0)return;const p=this._buff;let i=this._buffLen,r=this._leftoverHighSurrogate,l,g;for(r!==0?(l=r,g=-1,r=0):(l=h.charCodeAt(0),g=0);;){let v=l;if(A.isHighSurrogate(l))if(g+1>>6,h[S++]=128|(p&63)>>>0):p<65536?(h[S++]=224|(p&61440)>>>12,h[S++]=128|(p&4032)>>>6,h[S++]=128|(p&63)>>>0):(h[S++]=240|(p&1835008)>>>18,h[S++]=128|(p&258048)>>>12,h[S++]=128|(p&4032)>>>6,h[S++]=128|(p&63)>>>0),S>=64&&(this._step(),S-=64,this._totalLen+=64,h[0]=h[64+0],h[1]=h[64+1],h[2]=h[64+2]),S}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),m(this._h0)+m(this._h1)+m(this._h2)+m(this._h3)+m(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,e(this._buff,this._buffLen),this._buffLen>56&&(this._step(),e(this._buff));const h=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(h/4294967296),!1),this._buffDV.setUint32(60,h%4294967296,!1),this._step()}_step(){const h=N._bigBlock32,S=this._buffDV;for(let L=0;L<64;L+=4)h.setUint32(L,S.getUint32(L,!1),!1);for(let L=64;L<320;L+=4)h.setUint32(L,C(h.getUint32(L-12,!1)^h.getUint32(L-32,!1)^h.getUint32(L-56,!1)^h.getUint32(L-64,!1),1),!1);let p=this._h0,i=this._h1,r=this._h2,l=this._h3,g=this._h4,v,o,_;for(let L=0;L<80;L++)L<20?(v=i&r|~i&l,o=1518500249):L<40?(v=i^r^l,o=1859775393):L<60?(v=i&r|i&l|r&l,o=2400959708):(v=i^r^l,o=3395469782),_=C(p,5)+v+g+o+h.getUint32(L*4,!1)&4294967295,g=l,l=r,r=C(i,30),i=p,p=_;this._h0=this._h0+p&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+r&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+g&4294967295}}n.StringSHA1=N,N._bigBlock32=new DataView(new ArrayBuffer(320))}),j(z[10],G([0,1,14,22]),function(F,n,A,D){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LcsDiff=n.MyArray=n.Debug=n.stringDiff=n.StringDiffSequence=void 0;class w{constructor(e){this.source=e}getElements(){const e=this.source,f=new Int32Array(e.length);for(let m=0,N=e.length;m0||this.m_modifiedCount>0)&&this.m_changes.push(new A.DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,f){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,f),this.m_originalCount++}AddModifiedElement(e,f){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,f),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class c{constructor(e,f,m=null){this.ContinueProcessingPredicate=m,this._originalSequence=e,this._modifiedSequence=f;const[N,b,h]=c._getElements(e),[S,p,i]=c._getElements(f);this._hasStrings=h&&i,this._originalStringElements=N,this._originalElementsOrHash=b,this._modifiedStringElements=S,this._modifiedElementsOrHash=p,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const f=e.getElements();if(c._isStringArray(f)){const m=new Int32Array(f.length);for(let N=0,b=f.length;N=e&&N>=m&&this.ElementsAreEqual(f,N);)f--,N--;if(e>f||m>N){let l;return m<=N?(d.Assert(e===f+1,"originalStart should only be one more than originalEnd"),l=[new A.DiffChange(e,0,m,N-m+1)]):e<=f?(d.Assert(m===N+1,"modifiedStart should only be one more than modifiedEnd"),l=[new A.DiffChange(e,f-e+1,m,0)]):(d.Assert(e===f+1,"originalStart should only be one more than originalEnd"),d.Assert(m===N+1,"modifiedStart should only be one more than modifiedEnd"),l=[]),l}const h=[0],S=[0],p=this.ComputeRecursionPoint(e,f,m,N,h,S,b),i=h[0],r=S[0];if(p!==null)return p;if(!b[0]){const l=this.ComputeDiffRecursive(e,i,m,r,b);let g=[];return b[0]?g=[new A.DiffChange(i+1,f-(i+1)+1,r+1,N-(r+1)+1)]:g=this.ComputeDiffRecursive(i+1,f,r+1,N,b),this.ConcatenateChanges(l,g)}return[new A.DiffChange(e,f-e+1,m,N-m+1)]}WALKTRACE(e,f,m,N,b,h,S,p,i,r,l,g,v,o,_,L,E,y){let P=null,R=null,V=new u,B=f,U=m,T=v[0]-L[0]-N,q=-1073741824,O=this.m_forwardHistory.length-1;do{const t=T+e;t===B||t=0&&(i=this.m_forwardHistory[O],e=i[0],B=1,U=i.length-1)}while(--O>=-1);if(P=V.getReverseChanges(),y[0]){let t=v[0]+1,W=L[0]+1;if(P!==null&&P.length>0){const Y=P[P.length-1];t=Math.max(t,Y.getOriginalEnd()),W=Math.max(W,Y.getModifiedEnd())}R=[new A.DiffChange(t,g-t+1,W,_-W+1)]}else{V=new u,B=h,U=S,T=v[0]-L[0]-p,q=1073741824,O=E?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const t=T+b;t===B||t=r[t+1]?(l=r[t+1]-1,o=l-T-p,l>q&&V.MarkNextChange(),q=l+1,V.AddOriginalElement(l+1,o+1),T=t+1-b):(l=r[t-1],o=l-T-p,l>q&&V.MarkNextChange(),q=l,V.AddModifiedElement(l+1,o+1),T=t-1-b),O>=0&&(r=this.m_reverseHistory[O],b=r[0],B=1,U=r.length-1)}while(--O>=-1);R=V.getChanges()}return this.ConcatenateChanges(P,R)}ComputeRecursionPoint(e,f,m,N,b,h,S){let p=0,i=0,r=0,l=0,g=0,v=0;e--,m--,b[0]=0,h[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const o=f-e+(N-m),_=o+1,L=new Int32Array(_),E=new Int32Array(_),y=N-m,P=f-e,R=e-m,V=f-N,U=(P-y)%2==0;L[y]=e,E[P]=f,S[0]=!1;for(let T=1;T<=o/2+1;T++){let q=0,O=0;r=this.ClipDiagonalBound(y-T,T,y,_),l=this.ClipDiagonalBound(y+T,T,y,_);for(let W=r;W<=l;W+=2){W===r||Wq+O&&(q=p,O=i),!U&&Math.abs(W-P)<=T-1&&p>=E[W])return b[0]=p,h[0]=i,Y<=E[W]&&1447>0&&T<=1447+1?this.WALKTRACE(y,r,l,R,P,g,v,V,L,E,p,f,b,i,N,h,U,S):null}const t=(q-e+(O-m)-T)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(q,t))return S[0]=!0,b[0]=q,h[0]=O,t>0&&1447>0&&T<=1447+1?this.WALKTRACE(y,r,l,R,P,g,v,V,L,E,p,f,b,i,N,h,U,S):(e++,m++,[new A.DiffChange(e,f-e+1,m,N-m+1)]);g=this.ClipDiagonalBound(P-T,T,P,_),v=this.ClipDiagonalBound(P+T,T,P,_);for(let W=g;W<=v;W+=2){W===g||W=E[W+1]?p=E[W+1]-1:p=E[W-1],i=p-(W-P)-V;const Y=p;for(;p>e&&i>m&&this.ElementsAreEqual(p,i);)p--,i--;if(E[W]=p,U&&Math.abs(W-y)<=T&&p<=L[W])return b[0]=p,h[0]=i,Y>=L[W]&&1447>0&&T<=1447+1?this.WALKTRACE(y,r,l,R,P,g,v,V,L,E,p,f,b,i,N,h,U,S):null}if(T<=1447){let W=new Int32Array(l-r+2);W[0]=y-r+1,a.Copy2(L,r,W,1,l-r+1),this.m_forwardHistory.push(W),W=new Int32Array(v-g+2),W[0]=P-g+1,a.Copy2(E,g,W,1,v-g+1),this.m_reverseHistory.push(W)}}return this.WALKTRACE(y,r,l,R,P,g,v,V,L,E,p,f,b,i,N,h,U,S)}PrettifyChanges(e){for(let f=0;f0,S=m.modifiedLength>0;for(;m.originalStart+m.originalLength=0;f--){const m=e[f];let N=0,b=0;if(f>0){const l=e[f-1];N=l.originalStart+l.originalLength,b=l.modifiedStart+l.modifiedLength}const h=m.originalLength>0,S=m.modifiedLength>0;let p=0,i=this._boundaryScore(m.originalStart,m.originalLength,m.modifiedStart,m.modifiedLength);for(let l=1;;l++){const g=m.originalStart-l,v=m.modifiedStart-l;if(gi&&(i=_,p=l)}m.originalStart-=p,m.modifiedStart-=p;const r=[null];if(f>0&&this.ChangesOverlap(e[f-1],e[f],r)){e[f-1]=r[0],e.splice(f,1),f++;continue}}if(this._hasStrings)for(let f=1,m=e.length;f0&&v>p&&(p=v,i=l,r=g)}return p>0?[i,r]:null}_contiguousSequenceScore(e,f,m){let N=0;for(let b=0;b=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,f){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(f>0){const m=e+f;if(this._OriginalIsBoundary(m-1)||this._OriginalIsBoundary(m))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,f){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(f>0){const m=e+f;if(this._ModifiedIsBoundary(m-1)||this._ModifiedIsBoundary(m))return!0}return!1}_boundaryScore(e,f,m,N){const b=this._OriginalRegionIsBoundary(e,f)?1:0,h=this._ModifiedRegionIsBoundary(m,N)?1:0;return b+h}ConcatenateChanges(e,f){let m=[];if(e.length===0||f.length===0)return f.length>0?f:e;if(this.ChangesOverlap(e[e.length-1],f[0],m)){const N=new Array(e.length+f.length-1);return a.Copy(e,0,N,0,e.length-1),N[e.length-1]=m[0],a.Copy(f,1,N,e.length,f.length-1),N}else{const N=new Array(e.length+f.length);return a.Copy(e,0,N,0,e.length),a.Copy(f,0,N,e.length,f.length),N}}ChangesOverlap(e,f,m){if(d.Assert(e.originalStart<=f.originalStart,"Left change is not less than or equal to right change"),d.Assert(e.modifiedStart<=f.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=f.originalStart||e.modifiedStart+e.modifiedLength>=f.modifiedStart){const N=e.originalStart;let b=e.originalLength;const h=e.modifiedStart;let S=e.modifiedLength;return e.originalStart+e.originalLength>=f.originalStart&&(b=f.originalStart+f.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=f.modifiedStart&&(S=f.modifiedStart+f.modifiedLength-e.modifiedStart),m[0]=new A.DiffChange(N,b,h,S),!0}else return m[0]=null,!1}ClipDiagonalBound(e,f,m,N){if(e>=0&&efunction(){const _=Array.prototype.slice.call(arguments,0);return l(o,_)};let v={};for(const o of r)v[o]=g(o);return v}n.createProxyObject=S;function p(r){return r===null?void 0:r}n.withNullAsUndefined=p;function i(r,l="Unreachable"){throw new Error(l)}n.assertNever=i}),j(z[12],G([0,1]),function(F,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.toUint32=n.toUint8=void 0;function A(w){return w<0?0:w>255?255:w|0}n.toUint8=A;function D(w){return w<0?0:w>4294967295?4294967295:w|0}n.toUint32=D}),j(z[13],G([0,1,20,2]),function(F,n,A,D){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.uriToFsPath=n.URI=void 0;const w=/^\w[\w\d+.-]*$/,s=/^\//,d=/^\/\//;function a(o,_){if(!o.scheme&&_)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${o.authority}", path: "${o.path}", query: "${o.query}", fragment: "${o.fragment}"}`);if(o.scheme&&!w.test(o.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(o.path){if(o.authority){if(!s.test(o.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(d.test(o.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function u(o,_){return!o&&!_?"file":o}function c(o,_){switch(o){case"https":case"http":case"file":_?_[0]!==e&&(_=e+_):_=e;break}return _}const C="",e="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{constructor(_,L,E,y,P,R=!1){typeof _=="object"?(this.scheme=_.scheme||C,this.authority=_.authority||C,this.path=_.path||C,this.query=_.query||C,this.fragment=_.fragment||C):(this.scheme=u(_,R),this.authority=L||C,this.path=c(this.scheme,E||C),this.query=y||C,this.fragment=P||C,a(this,R))}static isUri(_){return _ instanceof m?!0:_?typeof _.authority=="string"&&typeof _.fragment=="string"&&typeof _.path=="string"&&typeof _.query=="string"&&typeof _.scheme=="string"&&typeof _.fsPath=="string"&&typeof _.with=="function"&&typeof _.toString=="function":!1}get fsPath(){return i(this,!1)}with(_){if(!_)return this;let{scheme:L,authority:E,path:y,query:P,fragment:R}=_;return L===void 0?L=this.scheme:L===null&&(L=C),E===void 0?E=this.authority:E===null&&(E=C),y===void 0?y=this.path:y===null&&(y=C),P===void 0?P=this.query:P===null&&(P=C),R===void 0?R=this.fragment:R===null&&(R=C),L===this.scheme&&E===this.authority&&y===this.path&&P===this.query&&R===this.fragment?this:new b(L,E,y,P,R)}static parse(_,L=!1){const E=f.exec(_);return E?new b(E[2]||C,v(E[4]||C),v(E[5]||C),v(E[7]||C),v(E[9]||C),L):new b(C,C,C,C,C)}static file(_){let L=C;if(D.isWindows&&(_=_.replace(/\\/g,e)),_[0]===e&&_[1]===e){const E=_.indexOf(e,2);E===-1?(L=_.substring(2),_=e):(L=_.substring(2,E),_=_.substring(E)||e)}return new b("file",L,_,C,C)}static from(_){const L=new b(_.scheme,_.authority,_.path,_.query,_.fragment);return a(L,!0),L}static joinPath(_,...L){if(!_.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let E;return D.isWindows&&_.scheme==="file"?E=m.file(A.win32.join(i(_,!0),...L)).path:E=A.posix.join(_.path,...L),_.with({path:E})}toString(_=!1){return r(this,_)}toJSON(){return this}static revive(_){if(_){if(_ instanceof m)return _;{const L=new b(_);return L._formatted=_.external,L._fsPath=_._sep===N?_.fsPath:null,L}}else return _}}n.URI=m;const N=D.isWindows?1:void 0;class b extends m{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=i(this,!1)),this._fsPath}toString(_=!1){return _?r(this,!0):(this._formatted||(this._formatted=r(this,!1)),this._formatted)}toJSON(){const _={$mid:1};return this._fsPath&&(_.fsPath=this._fsPath,_._sep=N),this._formatted&&(_.external=this._formatted),this.path&&(_.path=this.path),this.scheme&&(_.scheme=this.scheme),this.authority&&(_.authority=this.authority),this.query&&(_.query=this.query),this.fragment&&(_.fragment=this.fragment),_}}const h={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function S(o,_){let L,E=-1;for(let y=0;y=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||_&&P===47)E!==-1&&(L+=encodeURIComponent(o.substring(E,y)),E=-1),L!==void 0&&(L+=o.charAt(y));else{L===void 0&&(L=o.substr(0,y));const R=h[P];R!==void 0?(E!==-1&&(L+=encodeURIComponent(o.substring(E,y)),E=-1),L+=R):E===-1&&(E=y)}}return E!==-1&&(L+=encodeURIComponent(o.substring(E))),L!==void 0?L:o}function p(o){let _;for(let L=0;L1&&o.scheme==="file"?L=`//${o.authority}${o.path}`:o.path.charCodeAt(0)===47&&(o.path.charCodeAt(1)>=65&&o.path.charCodeAt(1)<=90||o.path.charCodeAt(1)>=97&&o.path.charCodeAt(1)<=122)&&o.path.charCodeAt(2)===58?_?L=o.path.substr(1):L=o.path[1].toLowerCase()+o.path.substr(2):L=o.path,D.isWindows&&(L=L.replace(/\//g,"\\")),L}n.uriToFsPath=i;function r(o,_){const L=_?p:S;let E="",{scheme:y,authority:P,path:R,query:V,fragment:B}=o;if(y&&(E+=y,E+=":"),(P||y==="file")&&(E+=e,E+=e),P){let U=P.indexOf("@");if(U!==-1){const T=P.substr(0,U);P=P.substr(U+1),U=T.indexOf(":"),U===-1?E+=L(T,!1):(E+=L(T.substr(0,U),!1),E+=":",E+=L(T.substr(U+1),!1)),E+="@"}P=P.toLowerCase(),U=P.indexOf(":"),U===-1?E+=L(P,!1):(E+=L(P.substr(0,U),!1),E+=P.substr(U))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58){const U=R.charCodeAt(1);U>=65&&U<=90&&(R=`/${String.fromCharCode(U+32)}:${R.substr(3)}`)}else if(R.length>=2&&R.charCodeAt(1)===58){const U=R.charCodeAt(0);U>=65&&U<=90&&(R=`${String.fromCharCode(U+32)}:${R.substr(2)}`)}E+=L(R,!0)}return V&&(E+="?",E+=L(V,!1)),B&&(E+="#",E+=_?B:S(B,!1)),E}function l(o){try{return decodeURIComponent(o)}catch(_){return o.length>3?o.substr(0,3)+l(o.substr(3)):o}}const g=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(o){return o.match(g)?o.replace(g,_=>l(_)):o}}),j(z[34],G([0,1,7,5,8,2,11,4]),function(F,n,A,D,w,s,d,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.create=n.SimpleWorkerServer=n.SimpleWorkerClient=n.logOnceWebWorkerWarning=void 0;const u="$initialize";let c=!1;function C(v){!s.isWeb||(c||(c=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(v.message))}n.logOnceWebWorkerWarning=C;class e{constructor(o,_,L,E){this.vsWorker=o,this.req=_,this.method=L,this.args=E,this.type=0}}class f{constructor(o,_,L,E){this.vsWorker=o,this.seq=_,this.res=L,this.err=E,this.type=1}}class m{constructor(o,_,L,E){this.vsWorker=o,this.req=_,this.eventName=L,this.arg=E,this.type=2}}class N{constructor(o,_,L){this.vsWorker=o,this.req=_,this.event=L,this.type=3}}class b{constructor(o,_){this.vsWorker=o,this.req=_,this.type=4}}class h{constructor(o){this._workerId=-1,this._handler=o,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(o){this._workerId=o}sendMessage(o,_){const L=String(++this._lastSentReq);return new Promise((E,y)=>{this._pendingReplies[L]={resolve:E,reject:y},this._send(new e(this._workerId,L,o,_))})}listen(o,_){let L=null;const E=new D.Emitter({onFirstListenerAdd:()=>{L=String(++this._lastSentReq),this._pendingEmitters.set(L,E),this._send(new m(this._workerId,L,o,_))},onLastListenerRemove:()=>{this._pendingEmitters.delete(L),this._send(new b(this._workerId,L)),L=null}});return E.event}handleMessage(o){!o||!o.vsWorker||this._workerId!==-1&&o.vsWorker!==this._workerId||this._handleMessage(o)}_handleMessage(o){switch(o.type){case 1:return this._handleReplyMessage(o);case 0:return this._handleRequestMessage(o);case 2:return this._handleSubscribeEventMessage(o);case 3:return this._handleEventMessage(o);case 4:return this._handleUnsubscribeEventMessage(o)}}_handleReplyMessage(o){if(!this._pendingReplies[o.seq]){console.warn("Got reply to unknown seq");return}let _=this._pendingReplies[o.seq];if(delete this._pendingReplies[o.seq],o.err){let L=o.err;o.err.$isError&&(L=new Error,L.name=o.err.name,L.message=o.err.message,L.stack=o.err.stack),_.reject(L);return}_.resolve(o.res)}_handleRequestMessage(o){let _=o.req;this._handler.handleMessage(o.method,o.args).then(E=>{this._send(new f(this._workerId,_,E,void 0))},E=>{E.detail instanceof Error&&(E.detail=(0,A.transformErrorForSerialization)(E.detail)),this._send(new f(this._workerId,_,void 0,(0,A.transformErrorForSerialization)(E)))})}_handleSubscribeEventMessage(o){const _=o.req,L=this._handler.handleEvent(o.eventName,o.arg)(E=>{this._send(new N(this._workerId,_,E))});this._pendingEvents.set(_,L)}_handleEventMessage(o){if(!this._pendingEmitters.has(o.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(o.req).fire(o.event)}_handleUnsubscribeEventMessage(o){if(!this._pendingEvents.has(o.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(o.req).dispose(),this._pendingEvents.delete(o.req)}_send(o){let _=[];if(o.type===0)for(let L=0;L{this._Common.handleMessage(B)},B=>{E&&E(B)})),this._Common=new h({sendMessage:(B,U)=>{this._worker.postMessage(B,U)},handleMessage:(B,U)=>{if(typeof L[B]!="function")return Promise.reject(new Error("Missing method "+B+" on main thread host."));try{return Promise.resolve(L[B].apply(L,U))}catch(T){return Promise.reject(T)}},handleEvent:(B,U)=>{if(i(B)){const T=L[B].call(L,U);if(typeof T!="function")throw new Error(`Missing dynamic event ${B} on main thread host.`);return T}if(p(B)){const T=L[B];if(typeof T!="function")throw new Error(`Missing event ${B} on main thread host.`);return T}throw new Error(`Malformed event name ${B}`)}}),this._Common.setWorkerId(this._worker.getId());let y=null;typeof s.globals.require!="undefined"&&typeof s.globals.require.getConfig=="function"?y=s.globals.require.getConfig():typeof s.globals.requirejs!="undefined"&&(y=s.globals.requirejs.s.contexts._.config);const P=d.getAllMethodNames(L);this._onModuleLoaded=this._Common.sendMessage(u,[this._worker.getId(),JSON.parse(JSON.stringify(y)),_,P]);const R=(B,U)=>this._request(B,U),V=(B,U)=>this._Common.listen(B,U);this._lazyProxy=new Promise((B,U)=>{E=U,this._onModuleLoaded.then(T=>{B(r(T,R,V))},T=>{U(T),this._onError("Worker failed to load "+_,T)})})}getProxyObject(){return this._lazyProxy}_request(o,_){return new Promise((L,E)=>{this._onModuleLoaded.then(()=>{this._Common.sendMessage(o,_).then(L,E)},E)})}_onError(o,_){console.error(o),console.info(_)}}n.SimpleWorkerClient=S;function p(v){return v[0]==="o"&&v[1]==="n"&&a.isUpperAsciiLetter(v.charCodeAt(2))}function i(v){return/^onDynamic/.test(v)&&a.isUpperAsciiLetter(v.charCodeAt(9))}function r(v,o,_){const L=P=>function(){const R=Array.prototype.slice.call(arguments,0);return o(P,R)},E=P=>function(R){return _(P,R)};let y={};for(const P of v){if(i(P)){y[P]=E(P);continue}if(p(P)){y[P]=_(P,void 0);continue}y[P]=L(P)}return y}class l{constructor(o,_){this._requestHandlerFactory=_,this._requestHandler=null,this._Common=new h({sendMessage:(L,E)=>{o(L,E)},handleMessage:(L,E)=>this._handleMessage(L,E),handleEvent:(L,E)=>this._handleEvent(L,E)})}onmessage(o){this._Common.handleMessage(o)}_handleMessage(o,_){if(o===u)return this.initialize(_[0],_[1],_[2],_[3]);if(!this._requestHandler||typeof this._requestHandler[o]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+o));try{return Promise.resolve(this._requestHandler[o].apply(this._requestHandler,_))}catch(L){return Promise.reject(L)}}_handleEvent(o,_){if(!this._requestHandler)throw new Error("Missing requestHandler");if(i(o)){const L=this._requestHandler[o].call(this._requestHandler,_);if(typeof L!="function")throw new Error(`Missing dynamic event ${o} on request handler.`);return L}if(p(o)){const L=this._requestHandler[o];if(typeof L!="function")throw new Error(`Missing event ${o} on request handler.`);return L}throw new Error(`Malformed event name ${o}`)}initialize(o,_,L,E){this._Common.setWorkerId(o);const R=r(E,(V,B)=>this._Common.sendMessage(V,B),(V,B)=>this._Common.listen(V,B));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(R),Promise.resolve(d.getAllMethodNames(this._requestHandler))):(_&&(typeof _.baseUrl!="undefined"&&delete _.baseUrl,typeof _.paths!="undefined"&&typeof _.paths.vs!="undefined"&&delete _.paths.vs,typeof _.trustedTypesPolicy!==void 0&&delete _.trustedTypesPolicy,_.catchError=!0,s.globals.require.config(_)),new Promise((V,B)=>{(s.globals.require||F)([L],T=>{if(this._requestHandler=T.create(R),!this._requestHandler){B(new Error("No RequestHandler!"));return}V(d.getAllMethodNames(this._requestHandler))},B)}))}}n.SimpleWorkerServer=l;function g(v){return new l(v,null)}n.create=g}),j(z[23],G([0,1,12]),function(F,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CharacterSet=n.CharacterClassifier=void 0;class D{constructor(d){let a=(0,A.toUint8)(d);this._defaultValue=a,this._asciiMap=D._createAsciiMap(a),this._map=new Map}static _createAsciiMap(d){let a=new Uint8Array(256);for(let u=0;u<256;u++)a[u]=d;return a}set(d,a){let u=(0,A.toUint8)(a);d>=0&&d<256?this._asciiMap[d]=u:this._map.set(d,u)}get(d){return d>=0&&d<256?this._asciiMap[d]:this._map.get(d)||this._defaultValue}}n.CharacterClassifier=D;class w{constructor(){this._actual=new D(0)}add(d){this._actual.set(d,1)}has(d){return this._actual.get(d)===1}}n.CharacterSet=w}),j(z[3],G([0,1]),function(F,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Position=void 0;class A{constructor(w,s){this.lineNumber=w,this.column=s}with(w=this.lineNumber,s=this.column){return w===this.lineNumber&&s===this.column?this:new A(w,s)}delta(w=0,s=0){return this.with(this.lineNumber+w,this.column+s)}equals(w){return A.equals(this,w)}static equals(w,s){return!w&&!s?!0:!!w&&!!s&&w.lineNumber===s.lineNumber&&w.column===s.column}isBefore(w){return A.isBefore(this,w)}static isBefore(w,s){return w.lineNumbera||s===a&&d>u?(this.startLineNumber=a,this.startColumn=u,this.endLineNumber=s,this.endColumn=d):(this.startLineNumber=s,this.startColumn=d,this.endLineNumber=a,this.endColumn=u)}isEmpty(){return D.isEmpty(this)}static isEmpty(s){return s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn}containsPosition(s){return D.containsPosition(this,s)}static containsPosition(s,d){return!(d.lineNumbers.endLineNumber||d.lineNumber===s.startLineNumber&&d.columns.endColumn)}containsRange(s){return D.containsRange(this,s)}static containsRange(s,d){return!(d.startLineNumbers.endLineNumber||d.endLineNumber>s.endLineNumber||d.startLineNumber===s.startLineNumber&&d.startColumns.endColumn)}strictContainsRange(s){return D.strictContainsRange(this,s)}static strictContainsRange(s,d){return!(d.startLineNumbers.endLineNumber||d.endLineNumber>s.endLineNumber||d.startLineNumber===s.startLineNumber&&d.startColumn<=s.startColumn||d.endLineNumber===s.endLineNumber&&d.endColumn>=s.endColumn)}plusRange(s){return D.plusRange(this,s)}static plusRange(s,d){let a,u,c,C;return d.startLineNumbers.endLineNumber?(c=d.endLineNumber,C=d.endColumn):d.endLineNumber===s.endLineNumber?(c=d.endLineNumber,C=Math.max(d.endColumn,s.endColumn)):(c=s.endLineNumber,C=s.endColumn),new D(a,u,c,C)}intersectRanges(s){return D.intersectRanges(this,s)}static intersectRanges(s,d){let a=s.startLineNumber,u=s.startColumn,c=s.endLineNumber,C=s.endColumn,e=d.startLineNumber,f=d.startColumn,m=d.endLineNumber,N=d.endColumn;return am?(c=m,C=N):c===m&&(C=Math.min(C,N)),a>c||a===c&&u>C?null:new D(a,u,c,C)}equalsRange(s){return D.equalsRange(this,s)}static equalsRange(s,d){return!!s&&!!d&&s.startLineNumber===d.startLineNumber&&s.startColumn===d.startColumn&&s.endLineNumber===d.endLineNumber&&s.endColumn===d.endColumn}getEndPosition(){return D.getEndPosition(this)}static getEndPosition(s){return new A.Position(s.endLineNumber,s.endColumn)}getStartPosition(){return D.getStartPosition(this)}static getStartPosition(s){return new A.Position(s.startLineNumber,s.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(s,d){return new D(this.startLineNumber,this.startColumn,s,d)}setStartPosition(s,d){return new D(s,d,this.endLineNumber,this.endColumn)}collapseToStart(){return D.collapseToStart(this)}static collapseToStart(s){return new D(s.startLineNumber,s.startColumn,s.startLineNumber,s.startColumn)}static fromPositions(s,d=s){return new D(s.lineNumber,s.column,d.lineNumber,d.column)}static lift(s){return s?new D(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn):null}static isIRange(s){return s&&typeof s.startLineNumber=="number"&&typeof s.startColumn=="number"&&typeof s.endLineNumber=="number"&&typeof s.endColumn=="number"}static areIntersectingOrTouching(s,d){return!(s.endLineNumbers.startLineNumber}}n.Range=D}),j(z[24],G([0,1,3,6]),function(F,n,A,D){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Selection=void 0;class w extends D.Range{constructor(d,a,u,c){super(d,a,u,c);this.selectionStartLineNumber=d,this.selectionStartColumn=a,this.positionLineNumber=u,this.positionColumn=c}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(d){return w.selectionsEqual(this,d)}static selectionsEqual(d,a){return d.selectionStartLineNumber===a.selectionStartLineNumber&&d.selectionStartColumn===a.selectionStartColumn&&d.positionLineNumber===a.positionLineNumber&&d.positionColumn===a.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(d,a){return this.getDirection()===0?new w(this.startLineNumber,this.startColumn,d,a):new w(d,a,this.startLineNumber,this.startColumn)}getPosition(){return new A.Position(this.positionLineNumber,this.positionColumn)}setStartPosition(d,a){return this.getDirection()===0?new w(d,a,this.endLineNumber,this.endColumn):new w(this.endLineNumber,this.endColumn,d,a)}static fromPositions(d,a=d){return new w(d.lineNumber,d.column,a.lineNumber,a.column)}static liftSelection(d){return new w(d.selectionStartLineNumber,d.selectionStartColumn,d.positionLineNumber,d.positionColumn)}static selectionsArrEqual(d,a){if(d&&!a||!d&&a)return!1;if(!d&&!a)return!0;if(d.length!==a.length)return!1;for(let u=0,c=d.length;u0&&S.originalLength<20&&S.modifiedLength>0&&S.modifiedLength<20&&r()){const y=p.createCharSequence(h,S.originalStart,S.originalStart+S.originalLength-1),P=i.createCharSequence(h,S.modifiedStart,S.modifiedStart+S.modifiedLength-1);let R=s(y,P,r,!0).changes;g&&(R=c(R)),E=[];for(let V=0,B=R.length;V1&&R>1;){const V=E.charCodeAt(P-2),B=y.charCodeAt(R-2);if(V!==B)break;P--,R--}(P>1||R>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,P,l+1,1,R)}{let P=m(E,1),R=m(y,1);const V=E.length+1,B=y.length+1;for(;P!0;const h=Date.now();return()=>Date.now()-h/?";function A(a=""){let u="(-?\\d*\\.\\d\\w*)|([^";for(const c of n.USUAL_WORD_SEPARATORS)a.indexOf(c)>=0||(u+="\\"+c);return u+="\\s]+)",new RegExp(u,"g")}n.DEFAULT_WORD_REGEXP=A();function D(a){let u=n.DEFAULT_WORD_REGEXP;if(a&&a instanceof RegExp)if(a.global)u=a;else{let c="g";a.ignoreCase&&(c+="i"),a.multiline&&(c+="m"),a.unicode&&(c+="u"),u=new RegExp(a.source,c)}return u.lastIndex=0,u}n.ensureValidWordDefinition=D;const w={maxLen:1e3,windowSize:15,timeBudget:150};function s(a,u,c,C,e=w){if(c.length>e.maxLen){let h=a-e.maxLen/2;return h<0?h=0:C+=h,c=c.substring(h,a+e.maxLen/2),s(a,u,c,C,e)}const f=Date.now(),m=a-1-C;let N=-1,b=null;for(let h=1;!(Date.now()-f>=e.timeBudget);h++){const S=m-e.windowSize*h;u.lastIndex=Math.max(0,S);const p=d(u,c,m,N);if(!p&&b||(b=p,S<=0))break;N=S}if(b){let h={word:b[0],startColumn:C+1+b.index,endColumn:C+1+b.index+b[0].length};return u.lastIndex=0,h}return null}n.getWordAtText=s;function d(a,u,c,C){let e;for(;e=a.exec(u);){const f=e.index||0;if(f<=c&&a.lastIndex>=c)return e;if(C>0&&f>C)return null}return null}}),j(z[28],G([0,1,23]),function(F,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.computeLinks=n.LinkComputer=n.StateMachine=n.Uint8Matrix=void 0;class D{constructor(f,m,N){const b=new Uint8Array(f*m);for(let h=0,S=f*m;hm&&(m=i),p>N&&(N=p),r>N&&(N=r)}m++,N++;let b=new D(N,m,0);for(let h=0,S=f.length;h=this._maxCharCode?0:this._states.get(f,m)}}n.StateMachine=w;let s=null;function d(){return s===null&&(s=new w([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),s}let a=null;function u(){if(a===null){a=new A.CharacterClassifier(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let m=0;mb);if(b>0){const p=m.charCodeAt(b-1),i=m.charCodeAt(S);(p===40&&i===41||p===91&&i===93||p===123&&i===125)&&S--}return{range:{startLineNumber:N,startColumn:b+1,endLineNumber:N,endColumn:S+2},url:m.substring(b,S+1)}}static computeLinks(f,m=d()){const N=u();let b=[];for(let h=1,S=f.getLineCount();h<=S;h++){const p=f.getLineContent(h),i=p.length;let r=0,l=0,g=0,v=1,o=!1,_=!1,L=!1,E=!1;for(;r=0?(a+=d?1:-1,a<0?a=w.length-1:a%=w.length,w[a]):null}}n.BasicInplaceReplace=A,A.INSTANCE=new A}),j(z[30],G([0,1]),function(F,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.WrappingIndent=n.TrackedRangeStickiness=n.TextEditorCursorStyle=n.TextEditorCursorBlinkingStyle=n.SymbolTag=n.SymbolKind=n.SignatureHelpTriggerKind=n.SelectionDirection=n.ScrollbarVisibility=n.ScrollType=n.RenderMinimap=n.RenderLineNumbersType=n.OverviewRulerLane=n.OverlayWidgetPositionPreference=n.MouseTargetType=n.MinimapPosition=n.MarkerTag=n.MarkerSeverity=n.KeyCode=n.InlineCompletionTriggerKind=n.InlayHintKind=n.IndentAction=n.EndOfLineSequence=n.EndOfLinePreference=n.EditorOption=n.EditorAutoIndentStrategy=n.DocumentHighlightKind=n.DefaultEndOfLine=n.CursorChangeReason=n.ContentWidgetPositionPreference=n.CompletionTriggerKind=n.CompletionItemTag=n.CompletionItemKind=n.CompletionItemInsertTextRule=n.AccessibilitySupport=void 0;var A;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(A=n.AccessibilitySupport||(n.AccessibilitySupport={}));var D;(function(t){t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(D=n.CompletionItemInsertTextRule||(n.CompletionItemInsertTextRule={}));var w;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(w=n.CompletionItemKind||(n.CompletionItemKind={}));var s;(function(t){t[t.Deprecated=1]="Deprecated"})(s=n.CompletionItemTag||(n.CompletionItemTag={}));var d;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(d=n.CompletionTriggerKind||(n.CompletionTriggerKind={}));var a;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(a=n.ContentWidgetPositionPreference||(n.ContentWidgetPositionPreference={}));var u;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(u=n.CursorChangeReason||(n.CursorChangeReason={}));var c;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(c=n.DefaultEndOfLine||(n.DefaultEndOfLine={}));var C;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(C=n.DocumentHighlightKind||(n.DocumentHighlightKind={}));var e;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(e=n.EditorAutoIndentStrategy||(n.EditorAutoIndentStrategy={}));var f;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.autoClosingBrackets=5]="autoClosingBrackets",t[t.autoClosingDelete=6]="autoClosingDelete",t[t.autoClosingOvertype=7]="autoClosingOvertype",t[t.autoClosingQuotes=8]="autoClosingQuotes",t[t.autoIndent=9]="autoIndent",t[t.automaticLayout=10]="automaticLayout",t[t.autoSurround=11]="autoSurround",t[t.bracketPairColorization=12]="bracketPairColorization",t[t.guides=13]="guides",t[t.codeLens=14]="codeLens",t[t.codeLensFontFamily=15]="codeLensFontFamily",t[t.codeLensFontSize=16]="codeLensFontSize",t[t.colorDecorators=17]="colorDecorators",t[t.columnSelection=18]="columnSelection",t[t.comments=19]="comments",t[t.contextmenu=20]="contextmenu",t[t.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",t[t.cursorBlinking=22]="cursorBlinking",t[t.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",t[t.cursorStyle=24]="cursorStyle",t[t.cursorSurroundingLines=25]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",t[t.cursorWidth=27]="cursorWidth",t[t.disableLayerHinting=28]="disableLayerHinting",t[t.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",t[t.domReadOnly=30]="domReadOnly",t[t.dragAndDrop=31]="dragAndDrop",t[t.emptySelectionClipboard=32]="emptySelectionClipboard",t[t.extraEditorClassName=33]="extraEditorClassName",t[t.fastScrollSensitivity=34]="fastScrollSensitivity",t[t.find=35]="find",t[t.fixedOverflowWidgets=36]="fixedOverflowWidgets",t[t.folding=37]="folding",t[t.foldingStrategy=38]="foldingStrategy",t[t.foldingHighlight=39]="foldingHighlight",t[t.foldingImportsByDefault=40]="foldingImportsByDefault",t[t.unfoldOnClickAfterEndOfLine=41]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=42]="fontFamily",t[t.fontInfo=43]="fontInfo",t[t.fontLigatures=44]="fontLigatures",t[t.fontSize=45]="fontSize",t[t.fontWeight=46]="fontWeight",t[t.formatOnPaste=47]="formatOnPaste",t[t.formatOnType=48]="formatOnType",t[t.glyphMargin=49]="glyphMargin",t[t.gotoLocation=50]="gotoLocation",t[t.hideCursorInOverviewRuler=51]="hideCursorInOverviewRuler",t[t.hover=52]="hover",t[t.inDiffEditor=53]="inDiffEditor",t[t.inlineSuggest=54]="inlineSuggest",t[t.letterSpacing=55]="letterSpacing",t[t.lightbulb=56]="lightbulb",t[t.lineDecorationsWidth=57]="lineDecorationsWidth",t[t.lineHeight=58]="lineHeight",t[t.lineNumbers=59]="lineNumbers",t[t.lineNumbersMinChars=60]="lineNumbersMinChars",t[t.linkedEditing=61]="linkedEditing",t[t.links=62]="links",t[t.matchBrackets=63]="matchBrackets",t[t.minimap=64]="minimap",t[t.mouseStyle=65]="mouseStyle",t[t.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=67]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",t[t.multiCursorModifier=69]="multiCursorModifier",t[t.multiCursorPaste=70]="multiCursorPaste",t[t.occurrencesHighlight=71]="occurrencesHighlight",t[t.overviewRulerBorder=72]="overviewRulerBorder",t[t.overviewRulerLanes=73]="overviewRulerLanes",t[t.padding=74]="padding",t[t.parameterHints=75]="parameterHints",t[t.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",t[t.quickSuggestions=78]="quickSuggestions",t[t.quickSuggestionsDelay=79]="quickSuggestionsDelay",t[t.readOnly=80]="readOnly",t[t.renameOnType=81]="renameOnType",t[t.renderControlCharacters=82]="renderControlCharacters",t[t.renderFinalNewline=83]="renderFinalNewline",t[t.renderLineHighlight=84]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=86]="renderValidationDecorations",t[t.renderWhitespace=87]="renderWhitespace",t[t.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",t[t.roundedSelection=89]="roundedSelection",t[t.rulers=90]="rulers",t[t.scrollbar=91]="scrollbar",t[t.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=93]="scrollBeyondLastLine",t[t.scrollPredominantAxis=94]="scrollPredominantAxis",t[t.selectionClipboard=95]="selectionClipboard",t[t.selectionHighlight=96]="selectionHighlight",t[t.selectOnLineNumbers=97]="selectOnLineNumbers",t[t.showFoldingControls=98]="showFoldingControls",t[t.showUnused=99]="showUnused",t[t.snippetSuggestions=100]="snippetSuggestions",t[t.smartSelect=101]="smartSelect",t[t.smoothScrolling=102]="smoothScrolling",t[t.stickyTabStops=103]="stickyTabStops",t[t.stopRenderingLineAfter=104]="stopRenderingLineAfter",t[t.suggest=105]="suggest",t[t.suggestFontSize=106]="suggestFontSize",t[t.suggestLineHeight=107]="suggestLineHeight",t[t.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",t[t.suggestSelection=109]="suggestSelection",t[t.tabCompletion=110]="tabCompletion",t[t.tabIndex=111]="tabIndex",t[t.unusualLineTerminators=112]="unusualLineTerminators",t[t.useShadowDOM=113]="useShadowDOM",t[t.useTabStops=114]="useTabStops",t[t.wordSeparators=115]="wordSeparators",t[t.wordWrap=116]="wordWrap",t[t.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=119]="wordWrapColumn",t[t.wordWrapOverride1=120]="wordWrapOverride1",t[t.wordWrapOverride2=121]="wordWrapOverride2",t[t.wrappingIndent=122]="wrappingIndent",t[t.wrappingStrategy=123]="wrappingStrategy",t[t.showDeprecated=124]="showDeprecated",t[t.inlayHints=125]="inlayHints",t[t.editorClassName=126]="editorClassName",t[t.pixelRatio=127]="pixelRatio",t[t.tabFocusMode=128]="tabFocusMode",t[t.layoutInfo=129]="layoutInfo",t[t.wrappingInfo=130]="wrappingInfo"})(f=n.EditorOption||(n.EditorOption={}));var m;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(m=n.EndOfLinePreference||(n.EndOfLinePreference={}));var N;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(N=n.EndOfLineSequence||(n.EndOfLineSequence={}));var b;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(b=n.IndentAction||(n.IndentAction={}));var h;(function(t){t[t.Other=0]="Other",t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(h=n.InlayHintKind||(n.InlayHintKind={}));var S;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(S=n.InlineCompletionTriggerKind||(n.InlineCompletionTriggerKind={}));var p;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.NumLock=78]="NumLock",t[t.ScrollLock=79]="ScrollLock",t[t.Semicolon=80]="Semicolon",t[t.Equal=81]="Equal",t[t.Comma=82]="Comma",t[t.Minus=83]="Minus",t[t.Period=84]="Period",t[t.Slash=85]="Slash",t[t.Backquote=86]="Backquote",t[t.BracketLeft=87]="BracketLeft",t[t.Backslash=88]="Backslash",t[t.BracketRight=89]="BracketRight",t[t.Quote=90]="Quote",t[t.OEM_8=91]="OEM_8",t[t.IntlBackslash=92]="IntlBackslash",t[t.Numpad0=93]="Numpad0",t[t.Numpad1=94]="Numpad1",t[t.Numpad2=95]="Numpad2",t[t.Numpad3=96]="Numpad3",t[t.Numpad4=97]="Numpad4",t[t.Numpad5=98]="Numpad5",t[t.Numpad6=99]="Numpad6",t[t.Numpad7=100]="Numpad7",t[t.Numpad8=101]="Numpad8",t[t.Numpad9=102]="Numpad9",t[t.NumpadMultiply=103]="NumpadMultiply",t[t.NumpadAdd=104]="NumpadAdd",t[t.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=106]="NumpadSubtract",t[t.NumpadDecimal=107]="NumpadDecimal",t[t.NumpadDivide=108]="NumpadDivide",t[t.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",t[t.ABNT_C1=110]="ABNT_C1",t[t.ABNT_C2=111]="ABNT_C2",t[t.AudioVolumeMute=112]="AudioVolumeMute",t[t.AudioVolumeUp=113]="AudioVolumeUp",t[t.AudioVolumeDown=114]="AudioVolumeDown",t[t.BrowserSearch=115]="BrowserSearch",t[t.BrowserHome=116]="BrowserHome",t[t.BrowserBack=117]="BrowserBack",t[t.BrowserForward=118]="BrowserForward",t[t.MediaTrackNext=119]="MediaTrackNext",t[t.MediaTrackPrevious=120]="MediaTrackPrevious",t[t.MediaStop=121]="MediaStop",t[t.MediaPlayPause=122]="MediaPlayPause",t[t.LaunchMediaPlayer=123]="LaunchMediaPlayer",t[t.LaunchMail=124]="LaunchMail",t[t.LaunchApp2=125]="LaunchApp2",t[t.MAX_VALUE=126]="MAX_VALUE"})(p=n.KeyCode||(n.KeyCode={}));var i;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(i=n.MarkerSeverity||(n.MarkerSeverity={}));var r;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(r=n.MarkerTag||(n.MarkerTag={}));var l;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(l=n.MinimapPosition||(n.MinimapPosition={}));var g;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(g=n.MouseTargetType||(n.MouseTargetType={}));var v;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(v=n.OverlayWidgetPositionPreference||(n.OverlayWidgetPositionPreference={}));var o;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(o=n.OverviewRulerLane||(n.OverviewRulerLane={}));var _;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(_=n.RenderLineNumbersType||(n.RenderLineNumbersType={}));var L;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(L=n.RenderMinimap||(n.RenderMinimap={}));var E;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(E=n.ScrollType||(n.ScrollType={}));var y;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(y=n.ScrollbarVisibility||(n.ScrollbarVisibility={}));var P;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(P=n.SelectionDirection||(n.SelectionDirection={}));var R;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(R=n.SignatureHelpTriggerKind||(n.SignatureHelpTriggerKind={}));var V;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(V=n.SymbolKind||(n.SymbolKind={}));var B;(function(t){t[t.Deprecated=1]="Deprecated"})(B=n.SymbolTag||(n.SymbolTag={}));var U;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(U=n.TextEditorCursorBlinkingStyle||(n.TextEditorCursorBlinkingStyle={}));var T;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(T=n.TextEditorCursorStyle||(n.TextEditorCursorStyle={}));var q;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(q=n.TrackedRangeStickiness||(n.TrackedRangeStickiness={}));var O;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(O=n.WrappingIndent||(n.WrappingIndent={}))}),j(z[31],G([0,1,21,5,17,13,3,6,24,25,30]),function(F,n,A,D,w,s,d,a,u,c,C){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createMonacoBaseAPI=n.KeyMod=void 0;class e{static chord(N,b){return(0,w.KeyChord)(N,b)}}n.KeyMod=e,e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256;function f(){return{editor:void 0,languages:void 0,CancellationTokenSource:A.CancellationTokenSource,Emitter:D.Emitter,KeyCode:C.KeyCode,KeyMod:e,Position:d.Position,Range:a.Range,Selection:u.Selection,SelectionDirection:C.SelectionDirection,MarkerSeverity:C.MarkerSeverity,MarkerTag:C.MarkerTag,Uri:s.URI,Token:c.Token}}n.createMonacoBaseAPI=f}),j(z[32],G([0,1,12]),function(F,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PrefixSumComputer=n.PrefixSumIndexOfResult=void 0;class D{constructor(d,a){this._prefixSumIndexOfResultBrand=void 0,this.index=d,this.remainder=a}}n.PrefixSumIndexOfResult=D;class w{constructor(d){this.values=d,this.prefixSum=new Uint32Array(d.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(d,a){d=(0,A.toUint32)(d);const u=this.values,c=this.prefixSum,C=a.length;return C===0?!1:(this.values=new Uint32Array(u.length+C),this.values.set(u.subarray(0,d),0),this.values.set(u.subarray(d),d+C),this.values.set(a,d),d-1=0&&this.prefixSum.set(c.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(d,a){return d=(0,A.toUint32)(d),a=(0,A.toUint32)(a),this.values[d]===a?!1:(this.values[d]=a,d-1=u.length)return!1;let C=u.length-d;return a>=C&&(a=C),a===0?!1:(this.values=new Uint32Array(u.length-a),this.values.set(u.subarray(0,d),0),this.values.set(u.subarray(d+a),d),this.prefixSum=new Uint32Array(this.values.length),d-1=0&&this.prefixSum.set(c.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(d){return d<0?0:(d=(0,A.toUint32)(d),this._getPrefixSum(d))}_getPrefixSum(d){if(d<=this.prefixSumValidIndex[0])return this.prefixSum[d];let a=this.prefixSumValidIndex[0]+1;a===0&&(this.prefixSum[0]=this.values[0],a++),d>=this.values.length&&(d=this.values.length-1);for(let u=a;u<=d;u++)this.prefixSum[u]=this.prefixSum[u-1]+this.values[u];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],d),this.prefixSum[d]}getIndexOf(d){d=Math.floor(d),this.getTotalSum();let a=0,u=this.values.length-1,c=0,C=0,e=0;for(;a<=u;)if(c=a+(u-a)/2|0,C=this.prefixSum[c],e=C-this.values[c],d=C)a=c+1;else break;return new D(c,d-e)}}n.PrefixSumComputer=w}),j(z[33],G([0,1,4,3,32]),function(F,n,A,D,w){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MirrorTextModel=void 0;class s{constructor(a,u,c,C){this._uri=a,this._lines=u,this._eol=c,this._versionId=C,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(a){a.eol&&a.eol!==this._eol&&(this._eol=a.eol,this._lineStarts=null);const u=a.changes;for(const c of u)this._acceptDeleteRange(c.range),this._acceptInsertText(new D.Position(c.range.startLineNumber,c.range.startColumn),c.text);this._versionId=a.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const a=this._eol.length,u=this._lines.length,c=new Uint32Array(u);for(let C=0;Cthis._lines.length)r=this._lines.length,l=this._lines[r-1].length+1,g=!0;else{let v=this._lines[r-1].length+1;l<1?(l=1,g=!0):l>v&&(l=v,g=!0)}return g?{lineNumber:r,column:l}:i}}n.MirrorModel=b;class h{constructor(i,r){this._host=i,this._models=Object.create(null),this._foreignModuleFactory=r,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(i){return this._models[i]}_getModels(){let i=[];return Object.keys(this._models).forEach(r=>i.push(this._models[r])),i}acceptNewModel(i){this._models[i.url]=new b(w.URI.parse(i.url),i.lines,i.EOL,i.versionId)}acceptModelChanged(i,r){if(!this._models[i])return;this._models[i].onEvents(r)}acceptRemovedModel(i){!this._models[i]||delete this._models[i]}computeDiff(i,r,l,g){return ne(this,void 0,void 0,function*(){const v=this._getModel(i),o=this._getModel(r);if(!v||!o)return null;const _=v.getLinesContent(),L=o.getLinesContent(),y=new a.DiffComputer(_,L,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:l,shouldMakePrettyDiff:!0,maxComputationTime:g}).computeDiff(),P=y.changes.length>0?!1:this._modelsAreIdentical(v,o);return{quitEarly:y.quitEarly,identical:P,changes:y.changes}})}_modelsAreIdentical(i,r){const l=i.getLineCount(),g=r.getLineCount();if(l!==g)return!1;for(let v=1;v<=l;v++){const o=i.getLineContent(v),_=r.getLineContent(v);if(o!==_)return!1}return!0}computeMoreMinimalEdits(i,r){return ne(this,void 0,void 0,function*(){const l=this._getModel(i);if(!l)return r;const g=[];let v;r=r.slice(0).sort((o,_)=>{if(o.range&&_.range)return d.Range.compareRangesUsingStarts(o.range,_.range);let L=o.range?0:1,E=_.range?0:1;return L-E});for(let{range:o,text:_,eol:L}of r){if(typeof L=="number"&&(v=L),d.Range.isEmpty(o)&&!_)continue;const E=l.getValueInRange(o);if(_=_.replace(/\r\n|\n|\r/g,l.eol),E===_)continue;if(Math.max(_.length,E.length)>h._diffLimit){g.push({range:o,text:_});continue}const y=(0,A.stringDiff)(E,_,!1),P=l.offsetAt(d.Range.lift(o).getStartPosition());for(const R of y){const V=l.positionAt(P+R.originalStart),B=l.positionAt(P+R.originalStart+R.originalLength),U={text:_.substr(R.modifiedStart,R.modifiedLength),range:{startLineNumber:V.lineNumber,startColumn:V.column,endLineNumber:B.lineNumber,endColumn:B.column}};l.getValueInRange(U.range)!==U.text&&g.push(U)}}return typeof v=="number"&&g.push({eol:v,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),g})}computeLinks(i){return ne(this,void 0,void 0,function*(){let r=this._getModel(i);return r?(0,C.computeLinks)(r):null})}textualSuggest(i,r,l,g){return ne(this,void 0,void 0,function*(){const v=new N.StopWatch(!0),o=new RegExp(l,g),_=new Set;e:for(let L of i){const E=this._getModel(L);if(!!E){for(let y of E.words(o))if(!(y===r||!isNaN(Number(y)))&&(_.add(y),_.size>h._suggestionsLimit))break e}}return{words:Array.from(_),duration:v.elapsed()}})}computeWordRanges(i,r,l,g){return ne(this,void 0,void 0,function*(){let v=this._getModel(i);if(!v)return Object.create(null);const o=new RegExp(l,g),_=Object.create(null);for(let L=r.startLineNumber;Lthis._host.fhr(_,L);let o={host:m.createProxyObject(l,g),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,r),Promise.resolve(m.getAllMethodNames(this._foreignModule))):new Promise((_,L)=>{F([i],E=>{this._foreignModule=E.create(o,r),_(m.getAllMethodNames(this._foreignModule))},L)})}fmr(i,r){if(!this._foreignModule||typeof this._foreignModule[i]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+i));try{return Promise.resolve(this._foreignModule[i].apply(this._foreignModule,r))}catch(l){return Promise.reject(l)}}}n.EditorSimpleWorker=h,h._diffLimit=1e5,h._suggestionsLimit=1e4;function S(p){return new h(p,null)}n.create=S,typeof importScripts=="function"&&(D.globals.monaco=(0,f.createMonacoBaseAPI)())}),function(){var F,n;const A=self.MonacoEnvironment,D=A&&A.baseUrl?A.baseUrl:"../../../",w=typeof((F=self.trustedTypes)===null||F===void 0?void 0:F.createPolicy)=="function"?(n=self.trustedTypes)===null||n===void 0?void 0:n.createPolicy("amdLoader",{createScriptURL:C=>C,createScript:(C,...e)=>{const f=e.slice(0,-1).join(","),m=e.pop().toString();return`(function anonymous(${f}) { -${m} -})`}}):void 0;function s(){try{return(w?self.eval(w.createScript("","true")):new Function("true")).call(self),!0}catch(C){return!1}}function d(){return new Promise((C,e)=>{if(typeof self.define=="function"&&self.define.amd)return C();const f=D+"vs/loader.js";if(!(/^((http:)|(https:)|(file:))/.test(f)&&f.substring(0,self.origin.length)!==self.origin)&&s()){fetch(f).then(N=>{if(N.status!==200)throw new Error(N.statusText);return N.text()}).then(N=>{N=`${N} -//# sourceURL=${f}`,(w?self.eval(w.createScript("",N)):new Function(N)).call(self),C()}).then(void 0,e);return}w?importScripts(w.createScriptURL(f)):importScripts(f),C()})}const a=function(C){d().then(()=>{require.config({baseUrl:D,catchError:!0,trustedTypesPolicy:w,amdModulesPattern:/^vs\//}),require([C],function(e){setTimeout(function(){let f=e.create((m,N)=>{self.postMessage(m,N)},null);for(self.onmessage=m=>f.onmessage(m.data,m.ports);c.length>0;)self.onmessage(c.shift())},0)})})};let u=!0,c=[];self.onmessage=C=>{if(!u){c.push(C);return}u=!1,a(C.data)}}()}).call(this); - -//# sourceMappingURL=../../../../min-maps/vs/base/worker/workerMain.js.map \ No newline at end of file diff --git a/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/basic-languages/javascript/javascript.js b/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/basic-languages/javascript/javascript.js deleted file mode 100644 index 98fdbb89..00000000 --- a/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/basic-languages/javascript/javascript.js +++ /dev/null @@ -1,7 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * monaco-languages version: 0.30.1(5a7ba61be909ae9e4889768a3453ebb0dec392e2) - * Released under the MIT license - * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md - *-----------------------------------------------------------------------------*/ -define("vs/basic-languages/typescript/typescript",["require","exports","../fillers/monaco-editor-core"],(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.language=t.conf=void 0,t.conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:n.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:n.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:n.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:n.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},t.language={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<",">",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}})),define("vs/basic-languages/javascript/javascript",["require","exports","../typescript/typescript"],(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.language=t.conf=void 0,t.conf=n.conf,t.language={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:n.language.operators,symbols:n.language.symbols,escapes:n.language.escapes,digits:n.language.digits,octaldigits:n.language.octaldigits,binarydigits:n.language.binarydigits,hexdigits:n.language.hexdigits,regexpctl:n.language.regexpctl,regexpesc:n.language.regexpesc,tokenizer:n.language.tokenizer}})); \ No newline at end of file diff --git a/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/editor/editor.main.css b/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/editor/editor.main.css deleted file mode 100644 index 8f9a481f..00000000 --- a/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/editor/editor.main.css +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.30.1(829382514cb1065f5ebb90f436e1c6103e153953) - * Released under the MIT license - * https://github.com/microsoft/vscode/blob/main/LICENSE.txt - *-----------------------------------------------------------*/.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-label{margin-right:1px}.monaco-aria-container{position:absolute;left:-999em}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;text-align:center;cursor:pointer;justify-content:center;align-items:center}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled,.monaco-button.disabled:focus{opacity:.4!important;cursor:default}.monaco-text-button>.codicon{margin:0 .2em;color:inherit!important}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown>.monaco-dropdown-button{margin-left:1px}.monaco-description-button{flex-direction:column}.monaco-description-button .monaco-button-label{font-weight:500}.monaco-description-button .monaco-button-description{font-style:italic}.monaco-custom-checkbox{margin-left:2px;float:left;cursor:pointer;overflow:hidden;opacity:.7;width:20px;height:20px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-custom-checkbox.checked,.monaco-custom-checkbox:hover{opacity:1}.hc-black .monaco-custom-checkbox,.hc-black .monaco-custom-checkbox:hover{background:none}.monaco-custom-checkbox.monaco-simple-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-checkbox.monaco-simple-checkbox:not(.checked):before{visibility:hidden}@font-face{font-family:codicon;font-display:block;src:url(../base/browser/ui/codicons/codicon/codicon.ttf) format("truetype")}.codicon[class*=codicon-]{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(1turn)}}.codicon-gear.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin,.codicon-sync.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute;z-index:2500}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;z-index:2500;color:inherit}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:50%;background-repeat:no-repeat}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:hsla(0,0%,100%,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:hsla(0,0%,100%,.44)}99%{background:transparent}}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover .code,.monaco-hover p,.monaco-hover ul{margin:8px 0}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0;border-right:0;margin:4px -8px -4px;height:1px}.monaco-hover .code:first-child,.monaco-hover p:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover .code:last-child,.monaco-hover p:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ol,.monaco-hover ul{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link,.monaco-hover .hover-contents a.code-link:hover{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:0;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;font-size:inherit}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;-ms-overflow-style:none;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter{display:flex;align-items:center;position:absolute;border-radius:2px;padding:0 3px;max-width:calc(100% - 10px);text-overflow:ellipsis;overflow:hidden;text-align:right;box-sizing:border-box;cursor:all-scroll;font-size:13px;line-height:18px;height:20px;z-index:1;top:4px}.monaco-list-type-filter.dragging{transition:top .2s,left .2s}.monaco-list-type-filter.ne{right:4px}.monaco-list-type-filter.nw{left:4px}.monaco-list-type-filter>.controls{display:flex;align-items:center;box-sizing:border-box;transition:width .2s;width:0}.monaco-list-type-filter.dragging>.controls,.monaco-list-type-filter:hover>.controls{width:36px}.monaco-list-type-filter>.controls>*{border:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;background:none;width:16px;height:16px;flex-shrink:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.monaco-list-type-filter>.controls>.filter{margin-left:4px}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-list-type-filter{cursor:grab}.monaco-list-type-filter.dragging{cursor:grabbing}.monaco-mouse-cursor-text{cursor:text}.hc-black.mac .monaco-mouse-cursor-text,.hc-black .mac .monaco-mouse-cursor-text,.vs-dark.mac .monaco-mouse-cursor-text,.vs-dark .mac .monaco-mouse-cursor-text{cursor:-webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x,url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8,text}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear;transform:translateZ(0)}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}:root{--sash-size:4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--sash-size)*2);width:calc(var(--sash-size)*2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--sash-size)*-0.5);top:calc(var(--sash-size)*-1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--sash-size)*-0.5);bottom:calc(var(--sash-size)*-1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--sash-size)*-0.5);left:calc(var(--sash-size)*-1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--sash-size)*-0.5);right:calc(var(--sash-size)*-1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color .1s ease-out;background:transparent}.monaco-sash.vertical:before{width:var(--sash-hover-size);left:calc(50% - var(--sash-hover-size)/2)}.monaco-sash.horizontal:before{height:var(--sash-hover-size);top:calc(50% - var(--sash-hover-size)/2)}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:transparent;transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:auto}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:normal;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-td,.monaco-table-th{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--sash-size)/2);width:0;border-left:1px solid transparent}.monaco-table>.monaco-split-view2,.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent;transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translateX(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.quick-input-widget{position:absolute;width:600px;z-index:2000;padding:0 1px 1px;left:50%;margin-left:-300px}.quick-input-titlebar{display:flex;align-items:center}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:50%;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:6px 6px 0;margin-bottom:-2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:27.5px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px 5px 2px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px;margin-top:6px}.quick-input-widget.hidden-input .quick-input-list{margin-top:0}.quick-input-list .monaco-list{overflow:hidden;max-height:440px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:8px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent}.monaco-editor .inputarea.ime-input{z-index:10}.monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.mtkcontrol{color:#fff!important;background:#960000!important}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{box-sizing:border-box;background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:hsla(0,0%,100%,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar{background:transparent}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:hsla(0,0%,67.1%,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:none}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box}.monaco-editor .contentWidgets .codicon-light-bulb,.monaco-editor .contentWidgets .codicon-lightbulb-autofix{display:flex;align-items:center;justify-content:center}.monaco-editor .contentWidgets .codicon-light-bulb:hover,.monaco-editor .contentWidgets .codicon-lightbulb-autofix:hover{cursor:pointer}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{user-select:none;-webkit-user-select:none;-ms-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .colorpicker-hover:focus{outline:none}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:216px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px;position:absolute;left:8px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid #fff;border-radius:100%;box-shadow:0 0 2px rgba(0,0,0,.8);position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid hsla(0,0%,100%,.71);box-shadow:0 0 1px rgba(0,0,0,.85)}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.monaco-editor.vs .dnd-target{border-right:2px dotted #000;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #aeafad;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines{cursor:default}.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px))}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:4px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions,.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:50%;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{opacity:.3;cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .margin-view-overlays .codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-expanded{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays:hover .codicon{opacity:1}.monaco-editor .inline-folded:after{color:grey;margin:.1em .2em 0;content:"⋯";display:inline;line-height:1em;cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text{font-style:italic}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;z-index:1000;border:8px solid transparent;position:absolute}.monaco-editor .monaco-editor-overlaymessage.below .anchor.below,.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .parameter-hints-widget{z-index:10;display:flex;flex-direction:column;line-height:1.5em}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.visible{transition:left .05s ease-in-out}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:normal}.monaco-editor .parameter-hints-widget .docs .markdown-docs code{font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs code{border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;opacity:.5;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:center;font-size:13px;margin-left:20px;min-width:0}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .rename-box{z-index:100;color:inherit}.monaco-editor .rename-box.preview{padding:3px 3px 0}.monaco-editor .rename-box .rename-input{padding:3px;width:calc(100% - 6px)}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .snippet-placeholder{min-width:2px}.monaco-editor .finish-snippet-placeholder,.monaco-editor .snippet-placeholder{outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-details,.monaco-editor .suggest-widget{flex:0 1 auto;width:100%;border-style:solid;border-width:1px}.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-black .suggest-widget{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid transparent;overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{opacity:.5;color:inherit}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:normal;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:50%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:normal;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ol,.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjhWNC4wMXpNNC4wMDguMDA4QTQuMDAzIDQuMDAzIDAgMDAuMDA1IDQuMDFWMzIuMDNhNC4wMDMgNC4wMDMgMCAwMDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAwNC4wMDMtNC4wMDJWNC4wMUE0LjAwMyA0LjAwMyAwIDAwNDguMDM2LjAwOEg0LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxVjguMDEzem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJWOC4wMTN6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyVjguMDEzem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDNWOC4wMTN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDNWOC4wMTN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnYtNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNoLTQuMDAzdi00LjAwM3ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzdi00LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM2g4LjAwNXptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzdi00LjAwM3ptNC4wMDMgMGgyMC4wMTN2NC4wMDNIMTYuMDE2di00LjAwM3ptMjguMDE4IDBINDAuMDN2NC4wMDNoNC4wMDN2LTQuMDAzeiIgZmlsbD0iIzQyNDI0MiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzYgNC4wMUg0LjAwOFYzMi4wM2g0NC4wMjhWNC4wMXpNNC4wMDguMDA4QTQuMDAzIDQuMDAzIDAgMDAuMDA1IDQuMDFWMzIuMDNhNC4wMDMgNC4wMDMgMCAwMDQuMDAzIDQuMDAyaDQ0LjAyOGE0LjAwMyA0LjAwMyAwIDAwNC4wMDMtNC4wMDJWNC4wMUE0LjAwMyA0LjAwMyAwIDAwNDguMDM2LjAwOEg0LjAwOHpNOC4wMSA4LjAxM2g0LjAwM3Y0LjAwM0g4LjAxVjguMDEzem0xMi4wMDggMGgtNC4wMDJ2NC4wMDNoNC4wMDJWOC4wMTN6bTQuMDAzIDBoNC4wMDJ2NC4wMDNoLTQuMDAyVjguMDEzem0xMi4wMDggMGgtNC4wMDN2NC4wMDNoNC4wMDNWOC4wMTN6bTQuMDAyIDBoNC4wMDN2NC4wMDNINDAuMDNWOC4wMTN6bS0yNC4wMTUgOC4wMDVIOC4wMXY0LjAwM2g4LjAwNnYtNC4wMDN6bTQuMDAyIDBoNC4wMDN2NC4wMDNoLTQuMDAzdi00LjAwM3ptMTIuMDA4IDBoLTQuMDAzdjQuMDAzaDQuMDAzdi00LjAwM3ptMTIuMDA4IDB2NC4wMDNoLTguMDA1di00LjAwM2g4LjAwNXptLTMyLjAyMSA4LjAwNUg4LjAxdjQuMDAzaDQuMDAzdi00LjAwM3ptNC4wMDMgMGgyMC4wMTN2NC4wMDNIMTYuMDE2di00LjAwM3ptMjguMDE4IDBINDAuMDN2NC4wMDNoNC4wMDN2LTQuMDAzeiIgZmlsbD0iI0M1QzVDNSIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDUzdjM2SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+) 50% no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:10px}.tokens-inspect-separator{height:1px;border:0}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,86.7%,.4);border:1px solid hsla(0,0%,80%,.4);border-bottom-color:hsla(0,0%,73.3%,.4);box-shadow:inset 0 -1px 0 hsla(0,0%,73.3%,.4);color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:1px solid #6fc3df;box-shadow:none;color:#fff}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,50.2%,.17);border:1px solid rgba(51,51,51,.6);border-bottom-color:rgba(68,68,68,.6);box-shadow:inset 0 -1px 0 rgba(68,68,68,.6);color:#ccc}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor.hc-black{-ms-high-contrast-adjust:none}@media screen and (-ms-high-contrast:active){.monaco-editor.vs-dark .view-overlays .current-line,.monaco-editor.vs .view-overlays .current-line{border-color:windowtext!important;border-left:0;border-right:0}.monaco-editor.vs-dark .cursor,.monaco-editor.vs .cursor{background-color:windowtext!important}.monaco-editor.vs-dark .dnd-target,.monaco-editor.vs .dnd-target{border-color:windowtext!important}.monaco-editor.vs-dark .selected-text,.monaco-editor.vs .selected-text{background-color:highlight!important}.monaco-editor.vs-dark .view-line,.monaco-editor.vs .view-line{-ms-high-contrast-adjust:none}.monaco-editor.vs-dark .view-line span,.monaco-editor.vs .view-line span{color:windowtext!important}.monaco-editor.vs-dark .view-line span.inline-selected-text,.monaco-editor.vs .view-line span.inline-selected-text{color:highlighttext!important}.monaco-editor.vs-dark .view-overlays,.monaco-editor.vs .view-overlays{-ms-high-contrast-adjust:none}.monaco-editor.vs-dark .reference-decoration,.monaco-editor.vs-dark .selectionHighlight,.monaco-editor.vs-dark .wordHighlight,.monaco-editor.vs-dark .wordHighlightStrong,.monaco-editor.vs .reference-decoration,.monaco-editor.vs .selectionHighlight,.monaco-editor.vs .wordHighlight,.monaco-editor.vs .wordHighlightStrong{border:2px dotted highlight!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs-dark .rangeHighlight,.monaco-editor.vs .rangeHighlight{background:transparent!important;border:1px dotted activeborder!important;box-sizing:border-box}.monaco-editor.vs-dark .bracket-match,.monaco-editor.vs .bracket-match{border-color:windowtext!important;background:transparent!important}.monaco-editor.vs-dark .currentFindMatch,.monaco-editor.vs-dark .findMatch,.monaco-editor.vs .currentFindMatch,.monaco-editor.vs .findMatch{border:2px dotted activeborder!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs-dark .find-widget,.monaco-editor.vs .find-widget{border:1px solid windowtext}.monaco-editor.vs-dark .monaco-list .monaco-list-row,.monaco-editor.vs .monaco-list .monaco-list-row{-ms-high-contrast-adjust:none;color:windowtext!important}.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused,.monaco-editor.vs .monaco-list .monaco-list-row.focused{color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover,.monaco-editor.vs .monaco-list .monaco-list-row:hover{background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar,.monaco-editor.vs .monaco-scrollable-element>.scrollbar{-ms-high-contrast-adjust:none;background:background!important;border:1px solid windowtext;box-sizing:border-box}.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider,.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider{background:windowtext!important}.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider:hover,.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider:hover{background:highlight!important}.monaco-editor.vs-dark .decorationsOverviewRuler,.monaco-editor.vs .decorationsOverviewRuler{opacity:0}.monaco-editor.vs-dark .minimap,.monaco-editor.vs .minimap{display:none}.monaco-editor.vs-dark .squiggly-d-error,.monaco-editor.vs .squiggly-d-error{background:transparent!important;border-bottom:4px double #e47777}.monaco-editor.vs-dark .squiggly-b-info,.monaco-editor.vs-dark .squiggly-c-warning,.monaco-editor.vs .squiggly-b-info,.monaco-editor.vs .squiggly-c-warning{border-bottom:4px double #71b771}.monaco-editor.vs-dark .squiggly-a-hint,.monaco-editor.vs .squiggly-a-hint{border-bottom:4px double #6c6c6c}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{-ms-high-contrast-adjust:none;color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label{-ms-high-contrast-adjust:none;background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-diff-editor.vs-dark .diffOverviewRuler,.monaco-diff-editor.vs .diffOverviewRuler{display:none}.monaco-editor.vs-dark .line-delete,.monaco-editor.vs-dark .line-insert,.monaco-editor.vs .line-delete,.monaco-editor.vs .line-insert{background:transparent!important;border:1px solid highlight!important;box-sizing:border-box}.monaco-editor.vs-dark .char-delete,.monaco-editor.vs-dark .char-insert,.monaco-editor.vs .char-delete,.monaco-editor.vs .char-insert{background:transparent!important}}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-light)}.hc-black .monaco-action-bar .action-item.menu-entry .action-label,.vs-dark .monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-light)}.hc-black .monaco-dropdown-with-default>.action-container.menu-entry>.action-label,.vs-dark .monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:50%;background-repeat:no-repeat}.context-view .monaco-menu{min-width:130px} \ No newline at end of file diff --git a/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/editor/editor.main.js b/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/editor/editor.main.js deleted file mode 100644 index fdd5e8be..00000000 --- a/src/Parts/H.LowCode.Components.Extension/wwwroot/MonacoEditor/editor/editor.main.js +++ /dev/null @@ -1,809 +0,0 @@ -/*!----------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.30.1(829382514cb1065f5ebb90f436e1c6103e153953) - * Released under the MIT license - * https://github.com/microsoft/vscode/blob/main/LICENSE.txt - *-----------------------------------------------------------*/(function(){var J=["require","exports","vs/base/common/lifecycle","vs/editor/common/core/range","vs/base/common/event","vs/nls","vs/nls!vs/editor/editor.main","vs/base/browser/dom","vs/base/common/strings","vs/platform/instantiation/common/instantiation","vs/platform/theme/common/themeService","vs/base/common/errors","vs/css!vs/editor/editor.main","vs/editor/common/core/position","vs/base/common/async","vs/platform/contextkey/common/contextkey","vs/editor/browser/editorExtensions","vs/base/common/platform","vs/editor/common/modes","vs/base/common/arrays","vs/base/common/types","vs/platform/theme/common/colorRegistry","vs/editor/common/core/selection","vs/base/common/cancellation","vs/base/common/uri","vs/editor/common/editorContextKeys","vs/platform/commands/common/commands","vs/base/common/codicons","vs/editor/browser/services/codeEditorService","vs/base/common/color","vs/base/browser/fastDomNode","vs/editor/common/config/editorOptions","vs/editor/common/model/textModel","vs/platform/registry/common/platform","vs/base/browser/browser","vs/platform/actions/common/actions","vs/platform/notification/common/notification","vs/editor/common/modes/languageConfigurationRegistry","vs/base/common/objects","vs/editor/common/services/modeService","vs/platform/keybinding/common/keybinding","vs/platform/configuration/common/configuration","vs/editor/common/services/modelService","vs/editor/common/controller/cursorCommon","vs/base/common/resources","vs/base/browser/ui/aria/aria","vs/editor/common/view/editorColorRegistry","vs/base/common/map","vs/base/common/network","vs/editor/common/model","vs/editor/browser/view/viewPart","vs/base/common/actions","vs/base/browser/keyboardEvent","vs/base/browser/ui/widget","vs/base/common/iterator","vs/base/common/keyCodes","vs/base/browser/mouseEvent","vs/platform/opener/common/opener","vs/base/browser/touch","vs/editor/common/core/editOperation","vs/editor/common/viewModel/viewModel","vs/platform/accessibility/common/accessibility","vs/platform/progress/common/progress","vs/editor/browser/config/configuration","vs/base/browser/ui/scrollbar/scrollableElement","vs/editor/common/standaloneStrings","vs/editor/common/services/resolverService","vs/editor/browser/core/editorState","vs/base/common/filters","vs/base/common/htmlContent","vs/platform/instantiation/common/extensions","vs/platform/contextview/browser/contextView","vs/platform/log/common/log","vs/platform/storage/common/storage","vs/base/common/linkedList","vs/base/common/path","vs/base/common/severity","vs/editor/common/modes/nullMode","vs/editor/common/services/editorWorkerService","vs/platform/quickinput/common/quickInput","vs/platform/keybinding/common/keybindingsRegistry","vs/platform/theme/common/iconRegistry","vs/base/common/functional","vs/base/common/stopwatch","vs/editor/common/core/stringBuilder","vs/editor/common/model/bracketPairs/impl/length","vs/base/browser/ui/actionbar/actionbar","vs/editor/common/core/lineTokens","vs/platform/clipboard/common/clipboardService","vs/platform/markers/common/markers","vs/platform/telemetry/common/telemetry","vs/editor/contrib/suggest/suggest","vs/base/common/decorators","vs/base/common/keybindings","vs/base/browser/event","vs/base/common/hash","vs/base/browser/globalMouseMoveMonitor","vs/editor/common/core/characterClassifier","vs/editor/common/commands/replaceCommand","vs/editor/common/model/textModelEvents","vs/editor/browser/view/dynamicViewOverlay","vs/platform/configuration/common/configurationRegistry","vs/platform/quickinput/common/quickAccess","vs/platform/theme/common/theme","vs/base/browser/ui/tree/tree","vs/base/common/buffer","vs/base/common/numbers","vs/base/common/iconLabels","vs/base/browser/ui/iconLabel/iconLabels","vs/base/common/mime","vs/base/browser/ui/sash/sash","vs/base/browser/ui/list/listWidget","vs/editor/common/controller/wordCharacterClassifier","vs/editor/common/editorCommon","vs/editor/browser/editorBrowser","vs/editor/common/model/bracketPairs/impl/smallImmutableSet","vs/editor/common/modes/languageConfiguration","vs/editor/common/view/renderingContext","vs/editor/common/viewLayout/viewLineRenderer","vs/editor/common/viewModel/viewEventHandler","vs/editor/contrib/snippet/snippetParser","vs/base/browser/ui/actionbar/actionViewItems","vs/editor/contrib/gotoSymbol/referencesModel","vs/editor/standalone/common/standaloneThemeService","vs/platform/dialogs/common/dialogs","vs/platform/label/common/label","vs/editor/browser/core/markdownRenderer","vs/editor/common/modes/modesRegistry","vs/platform/theme/common/styler","vs/platform/undoRedo/common/undoRedo","vs/editor/contrib/peekView/peekView","vs/base/common/idGenerator","vs/base/common/range","vs/base/common/scrollable","vs/base/common/diff/diff","vs/base/common/uint","vs/base/browser/ui/codicons/codiconStyles","vs/base/browser/ui/mouseCursor/mouseCursor","vs/css!vs/base/parts/quickinput/browser/media/quickInput","vs/editor/common/config/editorZoom","vs/editor/common/controller/cursorColumns","vs/editor/common/core/token","vs/editor/common/model/bracketPairs/impl/ast","vs/editor/common/model/wordHelper","vs/editor/common/viewLayout/lineDecorations","vs/editor/contrib/codeAction/types","vs/editor/browser/services/bulkEditService","vs/editor/common/modes/languageFeatureRegistry","vs/editor/common/model/tokensStore","vs/editor/common/services/textResourceConfigurationService","vs/platform/instantiation/common/serviceCollection","vs/platform/layout/browser/layoutService","vs/editor/contrib/codeAction/codeAction","vs/editor/contrib/message/messageController","vs/platform/list/browser/listService","vs/editor/common/controller/cursorWordOperations","vs/editor/browser/controller/coreCommands","vs/editor/browser/widget/codeEditorWidget","vs/editor/browser/widget/embeddedCodeEditorWidget","vs/editor/contrib/find/findModel","vs/base/common/lazy","vs/base/browser/canIUse","vs/base/common/extpath","vs/base/browser/ui/tree/indexTreeModel","vs/base/browser/ui/tree/objectTreeModel","vs/base/browser/formattedTextRenderer","vs/base/browser/ui/highlightedlabel/highlightedLabel","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/base/common/labels","vs/base/browser/dnd","vs/base/browser/ui/checkbox/checkbox","vs/base/browser/ui/list/listView","vs/editor/browser/editorDom","vs/editor/common/config/fontInfo","vs/editor/browser/controller/textAreaInput","vs/editor/browser/view/viewLayer","vs/editor/common/model/textModelSearch","vs/editor/common/modes/supports","vs/editor/common/modes/supports/richEditBrackets","vs/editor/common/standalone/standaloneEnums","vs/editor/common/view/viewEvents","vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/editor/common/viewModel/viewModelEventDispatcher","vs/editor/contrib/folding/foldingRanges","vs/editor/contrib/inlineCompletions/ghostText","vs/editor/contrib/inlineCompletions/inlineCompletionToGhostText","vs/base/browser/ui/iconLabel/iconLabel","vs/base/browser/ui/tree/abstractTree","vs/base/browser/ui/inputbox/inputBox","vs/base/common/keybindingLabels","vs/editor/common/services/markersDecorationService","vs/editor/contrib/parameterHints/provideSignatureHelp","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/editor/common/config/commonEditorConfig","vs/platform/actions/browser/menuEntryActionViewItem","vs/editor/common/commands/shiftCommand","vs/editor/browser/controller/mouseTarget","vs/editor/common/controller/cursorMoveOperations","vs/editor/common/controller/cursorDeleteOperations","vs/editor/common/controller/cursorTypeOperations","vs/editor/contrib/inlineCompletions/inlineCompletionsModel","vs/platform/workspace/common/workspace","vs/editor/standalone/browser/simpleServices","vs/editor/contrib/snippet/snippetController2","vs/base/browser/iframe","vs/base/browser/ui/scrollbar/scrollbarState","vs/base/common/assert","vs/base/common/collections","vs/base/browser/ui/tree/treeIcons","vs/base/common/glob","vs/base/common/marshalling","vs/base/browser/ui/scrollbar/abstractScrollbar","vs/base/common/worker/simpleWorker","vs/base/parts/quickinput/common/quickInput","vs/css!vs/base/browser/ui/actionbar/actionbar","vs/base/browser/ui/contextview/contextview","vs/base/browser/ui/countBadge/countBadge","vs/css!vs/base/browser/ui/dropdown/dropdown","vs/css!vs/base/browser/ui/findinput/findInput","vs/css!vs/base/browser/ui/list/list","vs/base/browser/ui/hover/hoverWidget","vs/base/browser/ui/splitview/splitview","vs/base/parts/quickinput/browser/quickInputUtils","vs/editor/browser/config/elementSizeObserver","vs/editor/browser/viewParts/minimap/minimapCharSheet","vs/editor/browser/controller/textAreaState","vs/editor/browser/widget/diffNavigator","vs/editor/common/core/rgba","vs/editor/common/editorAction","vs/editor/common/model/bracketPairs/impl/beforeEditPositionMapper","vs/editor/common/model/textChange","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase","vs/editor/common/standalone/standaloneBase","vs/editor/common/view/overviewZoneManager","vs/editor/common/viewModel/prefixSumComputer","vs/editor/browser/viewParts/margin/margin","vs/editor/contrib/folding/syntaxRangeProvider","vs/editor/contrib/format/formattingEdit","vs/editor/contrib/gotoSymbol/link/clickLinkGesture","vs/editor/contrib/hover/hoverOperation","vs/editor/contrib/hover/hoverTypes","vs/editor/contrib/indentation/indentUtils","vs/editor/contrib/inlineCompletions/consts","vs/editor/contrib/inlineCompletions/utils","vs/editor/contrib/smartSelect/bracketSelections","vs/editor/contrib/suggest/resizable","vs/editor/standalone/common/monarch/monarchCommon","vs/base/browser/ui/findinput/findInputCheckboxes","vs/base/browser/ui/tree/objectTree","vs/editor/common/model/editStack","vs/platform/files/common/files","vs/platform/instantiation/common/descriptors","vs/editor/common/model/bracketPairs/impl/tokenizer","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/editor/common/modes/textToHtmlTokenizer","vs/editor/common/viewModel/minimapTokensColorTracker","vs/editor/contrib/documentSymbols/outlineModel","vs/editor/standalone/common/monarch/monarchLexer","vs/editor/common/services/getSemanticTokens","vs/editor/contrib/codelens/codelens","vs/editor/contrib/colorPicker/color","vs/platform/contextkey/common/contextkeys","vs/platform/keybinding/common/keybindingResolver","vs/platform/keybinding/common/resolvedKeybindingItem","vs/editor/contrib/suggest/suggestWidgetDetails","vs/editor/common/services/editorWorkerServiceImpl","vs/editor/contrib/comment/blockCommentCommand","vs/editor/browser/viewParts/lines/viewLine","vs/editor/common/services/semanticTokensProviderStyling","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/editor/contrib/quickAccess/editorNavigationQuickAccess","vs/editor/contrib/symbolIcons/symbolIcons","vs/editor/standalone/browser/standaloneCodeServiceImpl","vs/editor/contrib/format/format","vs/editor/contrib/gotoSymbol/goToSymbol","vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode","vs/editor/common/controller/cursorAtomicMoveOperations","vs/editor/browser/view/viewUserInputEvents","vs/editor/common/controller/cursorMoveCommands","vs/editor/common/controller/cursor","vs/editor/common/services/modelServiceImpl","vs/editor/browser/widget/diffEditorWidget","vs/editor/contrib/codeAction/codeActionCommands","vs/editor/contrib/colorPicker/colorDetector","vs/editor/contrib/find/findController","vs/editor/contrib/wordOperations/wordOperations","vs/editor/contrib/gotoError/gotoError","vs/editor/contrib/gotoSymbol/peek/referencesController","vs/editor/contrib/gotoSymbol/goToCommands","vs/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition","vs/editor/standalone/browser/standaloneServices","vs/editor/contrib/snippet/snippetSession","vs/editor/contrib/suggest/suggestController","vs/editor/contrib/inlineCompletions/ghostTextController","vs/editor/contrib/hover/hover","vs/base/browser/ui/list/list","vs/base/browser/ui/list/splice","vs/base/common/diff/diffChange","vs/base/common/navigator","vs/base/common/history","vs/base/common/process","vs/base/browser/ui/list/rangeMap","vs/base/browser/ui/scrollbar/scrollbarVisibilityController","vs/base/common/comparers","vs/base/browser/ui/tree/compressedObjectTreeModel","vs/base/common/fuzzyScorer","vs/base/common/search","vs/base/browser/ui/list/rowCache","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/base/browser/markdownRenderer","vs/base/common/uuid","vs/base/parts/storage/common/storage","vs/base/worker/defaultWorkerFactory","vs/css!vs/base/browser/ui/aria/aria","vs/css!vs/base/browser/ui/button/button","vs/base/browser/ui/button/button","vs/css!vs/base/browser/ui/checkbox/checkbox","vs/css!vs/base/browser/ui/codicons/codicon/codicon","vs/css!vs/base/browser/ui/codicons/codicon/codicon-modifiers","vs/css!vs/base/browser/ui/contextview/contextview","vs/css!vs/base/browser/ui/countBadge/countBadge","vs/css!vs/base/browser/ui/hover/hover","vs/css!vs/base/browser/ui/iconLabel/iconlabel","vs/css!vs/base/browser/ui/inputbox/inputBox","vs/css!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/css!vs/base/browser/ui/mouseCursor/mouseCursor","vs/css!vs/base/browser/ui/progressbar/progressbar","vs/base/browser/ui/progressbar/progressbar","vs/css!vs/base/browser/ui/sash/sash","vs/css!vs/base/browser/ui/scrollbar/media/scrollbars","vs/base/browser/ui/list/listPaging","vs/css!vs/base/browser/ui/splitview/splitview","vs/css!vs/base/browser/ui/table/table","vs/base/browser/ui/table/tableWidget","vs/css!vs/base/browser/ui/tree/media/tree","vs/css!vs/editor/browser/controller/textAreaHandler","vs/css!vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/css!vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/css!vs/editor/browser/viewParts/indentGuides/indentGuides","vs/css!vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/css!vs/editor/browser/viewParts/lines/viewLines","vs/css!vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/css!vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/css!vs/editor/browser/viewParts/minimap/minimap","vs/css!vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/css!vs/editor/browser/viewParts/rulers/rulers","vs/css!vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/css!vs/editor/browser/viewParts/selections/selections","vs/css!vs/editor/browser/viewParts/viewCursors/viewCursors","vs/css!vs/editor/browser/widget/media/diffEditor","vs/css!vs/editor/browser/widget/media/diffReview","vs/css!vs/editor/browser/widget/media/editor","vs/css!vs/editor/contrib/anchorSelect/anchorSelect","vs/css!vs/editor/contrib/bracketMatching/bracketMatching","vs/css!vs/editor/contrib/codeAction/lightBulbWidget","vs/css!vs/editor/contrib/codelens/codelensWidget","vs/css!vs/editor/contrib/colorPicker/colorPicker","vs/css!vs/editor/contrib/dnd/dnd","vs/css!vs/editor/contrib/find/findWidget","vs/css!vs/editor/contrib/folding/folding","vs/css!vs/editor/contrib/gotoError/media/gotoErrorWidget","vs/css!vs/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition","vs/css!vs/editor/contrib/gotoSymbol/peek/referencesWidget","vs/css!vs/editor/contrib/inlineCompletions/ghostText","vs/css!vs/editor/contrib/links/links","vs/css!vs/editor/contrib/message/messageController","vs/css!vs/editor/contrib/parameterHints/parameterHints","vs/css!vs/editor/contrib/peekView/media/peekViewWidget","vs/css!vs/editor/contrib/rename/renameInputField","vs/css!vs/editor/contrib/snippet/snippetSession","vs/css!vs/editor/contrib/suggest/media/suggest","vs/css!vs/editor/contrib/zoneWidget/zoneWidget","vs/css!vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp","vs/css!vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/css!vs/editor/standalone/browser/inspectTokens/inspectTokens","vs/css!vs/editor/standalone/browser/quickInput/standaloneQuickInput","vs/css!vs/editor/standalone/browser/standalone-tokens","vs/css!vs/platform/actions/browser/menuEntryActionViewItem","vs/css!vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/services/abstractCodeEditorService","vs/editor/browser/viewParts/minimap/minimapCharRenderer","vs/editor/browser/viewParts/minimap/minimapPreBaked","vs/editor/browser/viewParts/minimap/minimapCharRendererFactory","vs/editor/common/commands/trimTrailingWhitespaceCommand","vs/editor/common/commands/surroundSelectionCommand","vs/editor/common/diff/diffComputer","vs/editor/common/model/bracketPairs/bracketPairs","vs/editor/common/model/bracketPairs/impl/nodeReader","vs/editor/common/model/bracketPairs/impl/concat23Trees","vs/editor/common/model/bracketPairs/impl/parser","vs/editor/common/model/indentationGuesser","vs/editor/common/model/intervalTree","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/editor/common/modes/languageSelector","vs/editor/common/modes/linkComputer","vs/editor/common/modes/supports/characterPair","vs/editor/common/modes/supports/indentRules","vs/editor/common/modes/supports/inplaceReplaceSupport","vs/editor/common/modes/supports/onEnter","vs/editor/common/modes/supports/electricCharacter","vs/editor/common/modes/supports/tokenization","vs/editor/common/modes/tokenizationRegistry","vs/editor/common/services/semanticTokensDto","vs/editor/browser/viewParts/lines/rangeUtil","vs/editor/common/view/viewContext","vs/editor/common/viewLayout/linesLayout","vs/editor/common/viewLayout/viewLinesViewportData","vs/editor/common/model/mirrorTextModel","vs/editor/common/services/editorSimpleWorker","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/editor/browser/viewParts/decorations/decorations","vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/editor/browser/viewParts/overviewRuler/overviewRuler","vs/editor/browser/viewParts/viewZones/viewZones","vs/editor/common/viewModel/monospaceLineBreaksComputer","vs/editor/common/viewLayout/viewLayout","vs/editor/contrib/caretOperations/moveCaretCommand","vs/editor/contrib/colorPicker/colorPickerModel","vs/editor/contrib/dnd/dragAndDropCommand","vs/editor/contrib/find/replaceAllCommand","vs/editor/contrib/find/replacePattern","vs/editor/contrib/folding/foldingModel","vs/editor/contrib/folding/hiddenRangeModel","vs/editor/contrib/folding/intializingRangeProvider","vs/editor/contrib/inPlaceReplace/inPlaceReplaceCommand","vs/editor/contrib/linesOperations/copyLinesCommand","vs/editor/contrib/linesOperations/sortLinesCommand","vs/editor/contrib/smartSelect/wordSelections","vs/editor/contrib/suggest/completionModel","vs/editor/contrib/suggest/suggestCommitCharacters","vs/editor/contrib/suggest/suggestOvertypingCapturer","vs/editor/contrib/suggest/wordDistance","vs/editor/standalone/common/monarch/monarchCompile","vs/nls!vs/base/browser/ui/actionbar/actionViewItems","vs/nls!vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/browser/ui/findinput/findInputCheckboxes","vs/nls!vs/base/browser/ui/findinput/replaceInput","vs/nls!vs/base/browser/ui/iconLabel/iconLabelHover","vs/base/browser/ui/iconLabel/iconLabelHover","vs/nls!vs/base/browser/ui/inputbox/inputBox","vs/nls!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/nls!vs/base/browser/ui/menu/menu","vs/nls!vs/base/browser/ui/tree/abstractTree","vs/base/browser/ui/tree/dataTree","vs/base/browser/ui/tree/asyncDataTree","vs/nls!vs/base/common/actions","vs/base/browser/ui/dropdown/dropdown","vs/base/browser/ui/dropdown/dropdownActionViewItem","vs/base/browser/ui/findinput/findInput","vs/base/browser/ui/findinput/replaceInput","vs/base/browser/ui/menu/menu","vs/base/parts/quickinput/browser/quickInputBox","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/common/keybindingLabels","vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/nls!vs/base/parts/quickinput/browser/quickInput","vs/nls!vs/base/parts/quickinput/browser/quickInputList","vs/base/parts/quickinput/browser/quickInputList","vs/base/parts/quickinput/browser/quickInput","vs/nls!vs/editor/browser/controller/coreCommands","vs/nls!vs/editor/browser/controller/textAreaHandler","vs/nls!vs/editor/browser/core/keybindingCancellation","vs/nls!vs/editor/browser/editorExtensions","vs/nls!vs/editor/browser/widget/codeEditorWidget","vs/nls!vs/editor/browser/widget/diffEditorWidget","vs/nls!vs/editor/browser/widget/diffReview","vs/nls!vs/editor/browser/widget/inlineDiffMargin","vs/editor/browser/widget/inlineDiffMargin","vs/nls!vs/editor/common/config/commonEditorConfig","vs/nls!vs/editor/common/config/editorOptions","vs/editor/browser/config/charWidthReader","vs/editor/common/viewModel/viewModelDecorations","vs/nls!vs/editor/common/editorContextKeys","vs/nls!vs/editor/common/model/editStack","vs/nls!vs/editor/common/modes/modesRegistry","vs/nls!vs/editor/common/standaloneStrings","vs/nls!vs/editor/common/view/editorColorRegistry","vs/nls!vs/editor/contrib/anchorSelect/anchorSelect","vs/nls!vs/editor/contrib/bracketMatching/bracketMatching","vs/nls!vs/editor/contrib/caretOperations/caretOperations","vs/nls!vs/editor/contrib/caretOperations/transpose","vs/nls!vs/editor/contrib/clipboard/clipboard","vs/nls!vs/editor/contrib/codeAction/codeActionCommands","vs/nls!vs/editor/contrib/codeAction/lightBulbWidget","vs/nls!vs/editor/contrib/codelens/codelensController","vs/nls!vs/editor/contrib/colorPicker/colorPickerWidget","vs/nls!vs/editor/contrib/comment/comment","vs/nls!vs/editor/contrib/contextmenu/contextmenu","vs/nls!vs/editor/contrib/cursorUndo/cursorUndo","vs/nls!vs/editor/contrib/find/findController","vs/nls!vs/editor/contrib/find/findWidget","vs/nls!vs/editor/contrib/folding/folding","vs/nls!vs/editor/contrib/folding/foldingDecorations","vs/nls!vs/editor/contrib/fontZoom/fontZoom","vs/nls!vs/editor/contrib/format/format","vs/nls!vs/editor/contrib/format/formatActions","vs/nls!vs/editor/contrib/gotoError/gotoError","vs/nls!vs/editor/contrib/gotoError/gotoErrorWidget","vs/nls!vs/editor/contrib/gotoSymbol/goToCommands","vs/nls!vs/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition","vs/nls!vs/editor/contrib/gotoSymbol/peek/referencesController","vs/nls!vs/editor/contrib/gotoSymbol/peek/referencesTree","vs/nls!vs/editor/contrib/gotoSymbol/peek/referencesWidget","vs/nls!vs/editor/contrib/gotoSymbol/referencesModel","vs/nls!vs/editor/contrib/gotoSymbol/symbolNavigation","vs/nls!vs/editor/contrib/hover/hover","vs/nls!vs/editor/contrib/hover/markdownHoverParticipant","vs/nls!vs/editor/contrib/hover/markerHoverParticipant","vs/nls!vs/editor/contrib/inPlaceReplace/inPlaceReplace","vs/nls!vs/editor/contrib/indentation/indentation","vs/nls!vs/editor/contrib/inlineCompletions/ghostTextController","vs/nls!vs/editor/contrib/inlineCompletions/inlineCompletionsHoverParticipant","vs/nls!vs/editor/contrib/linesOperations/linesOperations","vs/nls!vs/editor/contrib/linkedEditing/linkedEditing","vs/nls!vs/editor/contrib/links/links","vs/nls!vs/editor/contrib/message/messageController","vs/nls!vs/editor/contrib/multicursor/multicursor","vs/nls!vs/editor/contrib/parameterHints/parameterHints","vs/nls!vs/editor/contrib/parameterHints/parameterHintsWidget","vs/nls!vs/editor/contrib/peekView/peekView","vs/nls!vs/editor/contrib/quickAccess/gotoLineQuickAccess","vs/nls!vs/editor/contrib/quickAccess/gotoSymbolQuickAccess","vs/nls!vs/editor/contrib/rename/rename","vs/nls!vs/editor/contrib/rename/renameInputField","vs/nls!vs/editor/contrib/smartSelect/smartSelect","vs/nls!vs/editor/contrib/snippet/snippetController2","vs/nls!vs/editor/contrib/snippet/snippetVariables","vs/nls!vs/editor/contrib/suggest/suggest","vs/nls!vs/editor/contrib/suggest/suggestController","vs/nls!vs/editor/contrib/suggest/suggestWidget","vs/nls!vs/editor/contrib/suggest/suggestWidgetDetails","vs/nls!vs/editor/contrib/suggest/suggestWidgetRenderer","vs/nls!vs/editor/contrib/suggest/suggestWidgetStatus","vs/nls!vs/editor/contrib/symbolIcons/symbolIcons","vs/nls!vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode","vs/nls!vs/editor/contrib/tokenization/tokenization","vs/nls!vs/editor/contrib/unusualLineTerminators/unusualLineTerminators","vs/nls!vs/editor/contrib/wordHighlighter/wordHighlighter","vs/nls!vs/editor/contrib/wordOperations/wordOperations","vs/nls!vs/platform/actions/browser/menuEntryActionViewItem","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/contextkey/browser/contextKeyService","vs/nls!vs/platform/contextkey/common/contextkeys","vs/nls!vs/platform/keybinding/common/abstractKeybindingService","vs/nls!vs/platform/list/browser/listService","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/quickinput/browser/commandsQuickAccess","vs/nls!vs/platform/quickinput/browser/helpQuickAccess","vs/nls!vs/platform/theme/common/colorRegistry","vs/nls!vs/platform/theme/common/iconRegistry","vs/nls!vs/platform/undoRedo/common/undoRedoService","vs/platform/browser/historyWidgetKeybindingHint","vs/platform/clipboard/browser/clipboardService","vs/platform/editor/common/editor","vs/platform/extensions/common/extensions","vs/platform/instantiation/common/graph","vs/editor/common/model/bracketPairs/impl/brackets","vs/editor/common/model/bracketPairs/bracketPairsImpl","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/editor/common/model/textModelTokens","vs/editor/standalone/browser/colorizer","vs/editor/contrib/documentSymbols/documentSymbols","vs/editor/contrib/links/getLinks","vs/editor/contrib/parameterHints/parameterHintsModel","vs/editor/contrib/suggest/suggestAlternatives","vs/editor/contrib/suggest/wordContextKey","vs/platform/instantiation/common/instantiationService","vs/platform/keybinding/common/abstractKeybindingService","vs/platform/keybinding/common/baseResolvedKeybinding","vs/platform/keybinding/common/usLayoutResolvedKeybinding","vs/platform/contextview/browser/contextViewService","vs/editor/contrib/gotoError/markerNavigationService","vs/platform/markers/common/markerService","vs/editor/browser/services/openerService","vs/platform/quickinput/browser/pickerQuickAccess","vs/editor/browser/view/domLineBreaksComputer","vs/editor/browser/view/viewOverlays","vs/editor/browser/viewParts/viewCursors/viewCursor","vs/editor/contrib/hover/modesGlyphHover","vs/editor/common/services/getIconClasses","vs/editor/common/services/languagesRegistry","vs/editor/common/services/modeServiceImpl","vs/editor/common/services/webWorker","vs/editor/contrib/comment/lineCommentCommand","vs/platform/accessibility/browser/accessibilityService","vs/platform/configuration/common/configurationModels","vs/platform/contextkey/browser/contextKeyService","vs/platform/quickinput/browser/helpQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess","vs/platform/quickinput/browser/quickAccess","vs/editor/contrib/codelens/codeLensCache","vs/editor/contrib/suggest/suggestMemory","vs/platform/quickinput/browser/commandsQuickAccess","vs/editor/contrib/quickAccess/commandsQuickAccess","vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/viewParts/lines/viewLines","vs/editor/browser/services/codeEditorServiceImpl","vs/editor/browser/viewParts/editorScrollbar/editorScrollbar","vs/editor/browser/viewParts/minimap/minimap","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/selections/selections","vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/editor/browser/controller/textAreaHandler","vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler","vs/editor/browser/viewParts/rulers/rulers","vs/editor/browser/viewParts/viewCursors/viewCursors","vs/editor/common/model/bracketPairs/colorizedBracketPairsDecorationProvider","vs/editor/common/services/markerDecorationsServiceImpl","vs/editor/contrib/colorPicker/colorPickerWidget","vs/editor/contrib/gotoSymbol/peek/referencesTree","vs/editor/contrib/quickAccess/gotoLineQuickAccess","vs/editor/contrib/quickAccess/gotoSymbolQuickAccess","vs/editor/contrib/rename/renameInputField","vs/editor/standalone/common/themes","vs/editor/browser/core/keybindingCancellation","vs/editor/browser/services/markerDecorations","vs/editor/contrib/anchorSelect/anchorSelect","vs/editor/contrib/caretOperations/caretOperations","vs/editor/contrib/clipboard/clipboard","vs/editor/contrib/codeAction/codeActionMenu","vs/editor/contrib/codeAction/codeActionModel","vs/editor/contrib/comment/comment","vs/editor/contrib/contextmenu/contextmenu","vs/editor/contrib/cursorUndo/cursorUndo","vs/editor/contrib/fontZoom/fontZoom","vs/editor/contrib/format/formatActions","vs/editor/contrib/gotoSymbol/symbolNavigation","vs/editor/contrib/hover/getHover","vs/editor/contrib/hover/markdownHoverParticipant","vs/editor/contrib/inlayHints/inlayHintsController","vs/editor/contrib/rename/rename","vs/editor/contrib/smartSelect/smartSelect","vs/editor/contrib/tokenization/tokenization","vs/editor/contrib/unusualLineTerminators/unusualLineTerminators","vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp","vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/standalone/browser/inspectTokens/inspectTokens","vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess","vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess","vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast","vs/editor/contrib/suggest/suggestWidgetStatus","vs/platform/actions/common/menuService","vs/platform/browser/contextScopedHistoryWidget","vs/platform/contextview/browser/contextMenuService","vs/platform/quickinput/browser/quickInput","vs/editor/standalone/browser/quickInput/standaloneQuickInputServiceImpl","vs/platform/severityIcon/common/severityIcon","vs/editor/browser/widget/diffReview","vs/editor/contrib/parameterHints/parameterHintsWidget","vs/editor/contrib/parameterHints/parameterHints","vs/editor/contrib/suggest/suggestWidgetRenderer","vs/platform/theme/browser/iconsStyleSheet","vs/editor/standalone/browser/standaloneThemeServiceImpl","vs/editor/browser/viewParts/indentGuides/indentGuides","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/editor/common/controller/cursorColumnSelection","vs/editor/browser/view/viewController","vs/editor/browser/view/viewImpl","vs/editor/common/controller/oneCursor","vs/editor/common/controller/cursorCollection","vs/editor/common/viewModel/splitLinesCollection","vs/editor/common/viewModel/viewModelImpl","vs/editor/contrib/bracketMatching/bracketMatching","vs/editor/contrib/caretOperations/transpose","vs/editor/contrib/codeAction/lightBulbWidget","vs/editor/contrib/codeAction/codeActionUi","vs/editor/contrib/codeAction/codeActionContributions","vs/editor/contrib/codelens/codelensWidget","vs/editor/contrib/codelens/codelensController","vs/editor/contrib/dnd/dnd","vs/editor/contrib/find/findDecorations","vs/editor/contrib/find/findOptionsWidget","vs/editor/contrib/find/findState","vs/editor/contrib/find/findWidget","vs/editor/contrib/folding/foldingDecorations","vs/editor/contrib/folding/indentRangeProvider","vs/editor/contrib/folding/folding","vs/editor/contrib/hover/colorHoverParticipant","vs/editor/contrib/inPlaceReplace/inPlaceReplace","vs/editor/contrib/indentation/indentation","vs/editor/contrib/inlineCompletions/ghostTextWidget","vs/editor/contrib/linesOperations/moveLinesCommand","vs/editor/contrib/linesOperations/linesOperations","vs/editor/contrib/linkedEditing/linkedEditing","vs/editor/contrib/links/links","vs/editor/contrib/multicursor/multicursor","vs/editor/contrib/suggest/suggestWidget","vs/editor/contrib/viewportSemanticTokens/viewportSemanticTokens","vs/editor/contrib/wordHighlighter/wordHighlighter","vs/editor/contrib/wordPartOperations/wordPartOperations","vs/editor/contrib/zoneWidget/zoneWidget","vs/editor/contrib/gotoError/gotoErrorWidget","vs/editor/contrib/gotoSymbol/peek/referencesWidget","vs/editor/contrib/hover/markerHoverParticipant","vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch","vs/platform/undoRedo/common/undoRedoService","vs/editor/standalone/browser/standaloneCodeEditor","vs/editor/standalone/browser/standaloneEditor","vs/editor/standalone/browser/standaloneLanguages","vs/editor/editor.api","vs/platform/workspaces/common/workspaces","vs/editor/contrib/snippet/snippetVariables","vs/editor/contrib/suggest/suggestModel","vs/editor/contrib/inlineCompletions/suggestWidgetInlineCompletionProvider","vs/editor/contrib/inlineCompletions/suggestWidgetPreviewModel","vs/editor/contrib/inlineCompletions/ghostTextModel","vs/editor/contrib/inlineCompletions/inlineCompletionsHoverParticipant","vs/editor/contrib/hover/modesContentHover","vs/editor/contrib/colorPicker/colorContributions","vs/editor/editor.all","vs/base/browser/dompurify/dompurify","vs/base/common/marked/marked","vs/editor/edcore.main"],ee=function(j){for(var e=[],w=0,N=j.length;w=0)},p}();function w(p,C,n){var g;return C.length===0?g=p:g=p.replace(/\{(\d+)\}/g,function(t,s){var c=s[0],u=C[c],d=t;return typeof u=="string"?d=u:(typeof u=="number"||typeof u=="boolean"||u===void 0||u===null)&&(d=String(u)),d}),n.isPseudo&&(g="\uFF3B"+g.replace(/[aouei]/g,"$&$&")+"\uFF3D"),g}function N(p,C){var n=p[C];return n||(n=p["*"],n)?n:null}function T(p,C,n){for(var g=[],t=3;t1?w-1:0),T=1;T/gm),rn=dt(/^data-[\-\w.\u00B7-\uFFFF]/),on=dt(/^aria-[\-\w]+$/),an=dt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ln=dt(/^(?:\w+script|data):/i),dn=dt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j};function at(j){if(Array.isArray(j)){for(var e=0,w=Array(j.length);e0&&arguments[0]!==void 0?arguments[0]:un(),e=function(_e){return ci(_e)};if(e.version="2.3.1",e.removed=[],!j||!j.document||j.document.nodeType!==9)return e.isSupported=!1,e;var w=j.document,N=j.document,T=j.DocumentFragment,D=j.HTMLTemplateElement,S=j.Node,p=j.Element,C=j.NodeFilter,n=j.NamedNodeMap,g=n===void 0?j.NamedNodeMap||j.MozNamedAttrMap:n,t=j.Text,s=j.Comment,c=j.DOMParser,u=j.trustedTypes,d=p.prototype,a=Dt(d,"cloneNode"),r=Dt(d,"nextSibling"),o=Dt(d,"childNodes"),i=Dt(d,"parentNode");if(typeof D=="function"){var l=N.createElement("template");l.content&&l.content.ownerDocument&&(N=l.content.ownerDocument)}var h=cn(u,w),f=h&&pe?h.createHTML(""):"",y=N,_=y.implementation,b=y.createNodeIterator,v=y.createDocumentFragment,m=y.getElementsByTagName,E=w.importNode,I={};try{I=ft(N).documentMode?N.documentMode:{}}catch(we){}var k={};e.isSupported=typeof i=="function"&&_&&typeof _.createHTMLDocument!="undefined"&&I!==9;var M=nn,P=sn,F=rn,R=on,A=ln,O=dn,L=an,B=null,W=Xe({},[].concat(at(ai),at(Bt),at(xt),at(Wt),at(li))),K=null,H=Xe({},[].concat(at(di),at(Vt),at(ui),at(It))),Y=null,X=null,Z=!0,se=!0,oe=!1,G=!1,x=!1,U=!1,$=!1,V=!1,Q=!1,ue=!0,pe=!1,fe=!0,re=!0,ie=!1,ae={},q=null,ne=Xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ce=null,le=Xe({},["audio","video","img","source","image","track"]),de=null,z=Xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),te="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml",ve=ge,Se=!1,Ee=null,Ae=N.createElement("form"),Ne=function(_e){Ee&&Ee===_e||((!_e||(typeof _e=="undefined"?"undefined":_t(_e))!=="object")&&(_e={}),_e=ft(_e),B="ALLOWED_TAGS"in _e?Xe({},_e.ALLOWED_TAGS):W,K="ALLOWED_ATTR"in _e?Xe({},_e.ALLOWED_ATTR):H,de="ADD_URI_SAFE_ATTR"in _e?Xe(ft(z),_e.ADD_URI_SAFE_ATTR):z,ce="ADD_DATA_URI_TAGS"in _e?Xe(ft(le),_e.ADD_DATA_URI_TAGS):le,q="FORBID_CONTENTS"in _e?Xe({},_e.FORBID_CONTENTS):ne,Y="FORBID_TAGS"in _e?Xe({},_e.FORBID_TAGS):{},X="FORBID_ATTR"in _e?Xe({},_e.FORBID_ATTR):{},ae="USE_PROFILES"in _e?_e.USE_PROFILES:!1,Z=_e.ALLOW_ARIA_ATTR!==!1,se=_e.ALLOW_DATA_ATTR!==!1,oe=_e.ALLOW_UNKNOWN_CommonS||!1,G=_e.SAFE_FOR_TEMPLATES||!1,x=_e.WHOLE_DOCUMENT||!1,V=_e.RETURN_DOM||!1,Q=_e.RETURN_DOM_FRAGMENT||!1,ue=_e.RETURN_DOM_IMPORT!==!1,pe=_e.RETURN_TRUSTED_TYPE||!1,$=_e.FORCE_BODY||!1,fe=_e.SANITIZE_DOM!==!1,re=_e.KEEP_CONTENT!==!1,ie=_e.IN_PLACE||!1,L=_e.ALLOWED_URI_REGEXP||L,ve=_e.NAMESPACE||ge,G&&(se=!1),Q&&(V=!0),ae&&(B=Xe({},[].concat(at(li))),K=[],ae.html===!0&&(Xe(B,ai),Xe(K,di)),ae.svg===!0&&(Xe(B,Bt),Xe(K,Vt),Xe(K,It)),ae.svgFilters===!0&&(Xe(B,xt),Xe(K,Vt),Xe(K,It)),ae.mathMl===!0&&(Xe(B,Wt),Xe(K,ui),Xe(K,It))),_e.ADD_TAGS&&(B===W&&(B=ft(B)),Xe(B,_e.ADD_TAGS)),_e.ADD_ATTR&&(K===H&&(K=ft(K)),Xe(K,_e.ADD_ATTR)),_e.ADD_URI_SAFE_ATTR&&Xe(de,_e.ADD_URI_SAFE_ATTR),_e.FORBID_CONTENTS&&(q===ne&&(q=ft(q)),Xe(q,_e.FORBID_CONTENTS)),re&&(B["#text"]=!0),x&&Xe(B,["html","head","body"]),B.table&&(Xe(B,["tbody"]),delete Y.tbody),st&&st(_e),Ee=_e)},ze=Xe({},["mi","mo","mn","ms","mtext"]),xe=Xe({},["foreignobject","desc","title","annotation-xml"]),We=Xe({},Bt);Xe(We,xt),Xe(We,en);var Ue=Xe({},Wt);Xe(Ue,tn);var Le=function(_e){var Pe=i(_e);(!Pe||!Pe.tagName)&&(Pe={namespaceURI:ge,tagName:"template"});var Te=gt(_e.tagName),Ve=gt(Pe.tagName);if(_e.namespaceURI===he)return Pe.namespaceURI===ge?Te==="svg":Pe.namespaceURI===te?Te==="svg"&&(Ve==="annotation-xml"||ze[Ve]):Boolean(We[Te]);if(_e.namespaceURI===te)return Pe.namespaceURI===ge?Te==="math":Pe.namespaceURI===he?Te==="math"&&xe[Ve]:Boolean(Ue[Te]);if(_e.namespaceURI===ge){if(Pe.namespaceURI===he&&!xe[Ve]||Pe.namespaceURI===te&&!ze[Ve])return!1;var je=Xe({},["title","style","font","a","script"]);return!Ue[Te]&&(je[Te]||!We[Te])}return!1},ye=function(_e){bt(e.removed,{element:_e});try{_e.parentNode.removeChild(_e)}catch(Pe){try{_e.outerHTML=f}catch(Te){_e.remove()}}},Oe=function(_e,Pe){try{bt(e.removed,{attribute:Pe.getAttributeNode(_e),from:Pe})}catch(Te){bt(e.removed,{attribute:null,from:Pe})}if(Pe.removeAttribute(_e),_e==="is"&&!K[_e])if(V||Q)try{ye(Pe)}catch(Te){}else try{Pe.setAttribute(_e,"")}catch(Te){}},He=function(_e){var Pe=void 0,Te=void 0;if($)_e=""+_e;else{var Ve=ri(_e,/^[\r\n\t ]+/);Te=Ve&&Ve[0]}var je=h?h.createHTML(_e):_e;if(ve===ge)try{Pe=new c().parseFromString(je,"text/html")}catch(Ge){}if(!Pe||!Pe.documentElement){Pe=_.createDocument(ve,"template",null);try{Pe.documentElement.innerHTML=Se?"":je}catch(Ge){}}var qe=Pe.body||Pe.documentElement;return _e&&Te&&qe.insertBefore(N.createTextNode(Te),qe.childNodes[0]||null),ve===ge?m.call(Pe,x?"html":"body")[0]:x?Pe.documentElement:qe},Be=function(_e){return b.call(_e.ownerDocument||_e,_e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,null,!1)},Ke=function(_e){return _e instanceof t||_e instanceof s?!1:typeof _e.nodeName!="string"||typeof _e.textContent!="string"||typeof _e.removeChild!="function"||!(_e.attributes instanceof g)||typeof _e.removeAttribute!="function"||typeof _e.setAttribute!="function"||typeof _e.namespaceURI!="string"||typeof _e.insertBefore!="function"},ke=function(_e){return(typeof S=="undefined"?"undefined":_t(S))==="object"?_e instanceof S:_e&&(typeof _e=="undefined"?"undefined":_t(_e))==="object"&&typeof _e.nodeType=="number"&&typeof _e.nodeName=="string"},Ie=function(_e,Pe,Te){!k[_e]||Yi(k[_e],function(Ve){Ve.call(e,Pe,Te,Ee)})},Me=function(_e){var Pe=void 0;if(Ie("beforeSanitizeElements",_e,null),Ke(_e)||ri(_e.nodeName,/[\u0080-\uFFFF]/))return ye(_e),!0;var Te=gt(_e.nodeName);if(Ie("uponSanitizeElement",_e,{tagName:Te,allowedTags:B}),!ke(_e.firstElementChild)&&(!ke(_e.content)||!ke(_e.content.firstElementChild))&&ut(/<[/\w]/g,_e.innerHTML)&&ut(/<[/\w]/g,_e.textContent)||Te==="select"&&ut(/
".concat(new Array(this._viewNode.attrs.colCount).join(""),"