@arcgis/coding-components 4.34.0-next.133 → 4.34.0-next.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/{NBC2N7DQ.js → 26U6WQKS.js} +2 -2
  3. package/dist/cdn/{TVXP2N25.js → 2UM2Y7V2.js} +2 -2
  4. package/dist/cdn/2YZ4PMTC.js +4 -0
  5. package/dist/cdn/{YSBS6TWD.js → 3UHKPHDU.js} +1 -1
  6. package/dist/cdn/{XHW3JCAA.js → 46WSIHRW.js} +1 -1
  7. package/dist/cdn/{SFZHBHD6.js → 4JBVT7NK.js} +2 -2
  8. package/dist/cdn/{ADOFXSHY.js → 55VBZFUY.js} +2 -2
  9. package/dist/cdn/{TY4ZPHY5.js → 6OYS3NK4.js} +2 -2
  10. package/dist/cdn/{HAQPAAAD.js → 6ZCJY3FM.js} +2 -2
  11. package/dist/cdn/{ELU3G7A2.js → 77PW5YJT.js} +2 -2
  12. package/dist/cdn/{EZPQRXVF.js → AE2DO5IY.js} +2 -2
  13. package/dist/cdn/{PMG7E6F7.js → B3WO75T6.js} +1 -1
  14. package/dist/cdn/{NJ4ZAXGL.js → B7UNWQLJ.js} +2 -2
  15. package/dist/cdn/{444YJJLQ.js → BEDVSMT5.js} +2 -2
  16. package/dist/cdn/{OAXYRUYW.js → BETHAEVX.js} +1 -1
  17. package/dist/cdn/{NJ5RM7DS.js → C5WNJSRL.js} +2 -2
  18. package/dist/cdn/{LB5UVB2T.js → CM223OSI.js} +2 -2
  19. package/dist/cdn/{IFNUEEY6.js → FLYTO5LR.js} +2 -2
  20. package/dist/cdn/{BHKLXIUC.js → GPNOANBI.js} +2 -2
  21. package/dist/cdn/{JYIKHQHZ.js → GQJIRLDI.js} +2 -2
  22. package/dist/cdn/{33FMU32I.js → GYLNCWS4.js} +2 -2
  23. package/dist/cdn/{H5JKFDB4.js → JEBKTCTX.js} +2 -2
  24. package/dist/cdn/JUM2FAM6.js +63 -0
  25. package/dist/cdn/{INUF6LI3.js → K6MDQLJP.js} +2 -2
  26. package/dist/cdn/{VTGZADX5.js → K6PW6FNL.js} +1 -1
  27. package/dist/cdn/{7RHH4P5M.js → KKYF7BKF.js} +2 -2
  28. package/dist/cdn/{RGU2XCZ4.js → LZRLMCLP.js} +2 -2
  29. package/dist/cdn/{KOTYZLXM.js → MFBQC4FM.js} +2 -2
  30. package/dist/cdn/{TXLNSKBC.js → MO6V6DS4.js} +4 -4
  31. package/dist/cdn/{3J4MHZTC.js → PACGWRLY.js} +2 -2
  32. package/dist/cdn/{OYEHPNOM.js → QQYFC2FJ.js} +2 -2
  33. package/dist/cdn/{RLM24PPW.js → RJBRWRLR.js} +2 -2
  34. package/dist/cdn/{SMJH5SA6.js → RQDDULN7.js} +2 -2
  35. package/dist/cdn/{MPYVEDWN.js → SGGSM4FY.js} +2 -2
  36. package/dist/cdn/{YR54KJQM.js → SOIAM2PR.js} +2 -2
  37. package/dist/cdn/{5ODW6NHY.js → SU575K7S.js} +2 -2
  38. package/dist/cdn/{DSIF4ZUF.js → TMK3TWBH.js} +2 -2
  39. package/dist/cdn/{HX5KCZE7.js → TR6FAD3O.js} +1 -1
  40. package/dist/cdn/{YUXMLOLC.js → UBQG6BIZ.js} +2 -2
  41. package/dist/cdn/{7XLORGVX.js → UQ56X7GZ.js} +1 -1
  42. package/dist/cdn/{B2ETOF6E.js → UT2IYCOE.js} +2 -2
  43. package/dist/cdn/{IIV3BOUP.js → V7RMMP2N.js} +2 -2
  44. package/dist/cdn/{6G3BWD4I.js → WAWAPHMK.js} +2 -2
  45. package/dist/cdn/{VCVT33O7.js → YXQYVIZ3.js} +2 -2
  46. package/dist/cdn/assets/code-editor/arcade.worker.js +1626 -1705
  47. package/dist/cdn/assets/code-editor/css.worker.js +1513 -1592
  48. package/dist/cdn/assets/code-editor/editor.worker.js +2010 -2089
  49. package/dist/cdn/assets/code-editor/html.worker.js +2222 -2301
  50. package/dist/cdn/assets/code-editor/json.worker.js +2148 -2227
  51. package/dist/cdn/assets/code-editor/sql-expr.worker.js +36616 -36602
  52. package/dist/cdn/assets/code-editor/ts.worker.js +23578 -23657
  53. package/dist/cdn/index.js +2 -2
  54. package/dist/chunks/arcade-defaults.js +1 -1
  55. package/dist/chunks/arcade-executor.js +1 -1
  56. package/dist/chunks/arcade-mode.js +1 -1
  57. package/dist/chunks/arcade-service-accessors.js +1 -1
  58. package/dist/chunks/editor.js +1 -1
  59. package/dist/chunks/fields.js +1 -1
  60. package/dist/chunks/language-defaults-base.js +1 -1
  61. package/dist/chunks/markdown.js +45 -40
  62. package/dist/chunks/monaco-importer.js +1 -1
  63. package/dist/chunks/runtime.js +1 -1
  64. package/dist/chunks/setup-monaco.js +1 -1
  65. package/dist/chunks/sql-expr-contribution.js +1 -1
  66. package/dist/chunks/sql-expr-defaults.js +1 -1
  67. package/dist/chunks/sql-expr-mode.js +1 -1
  68. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  69. package/dist/chunks/useT9n.js +1 -1
  70. package/dist/components/arcgis-arcade-coding-assistant/customElement.d.ts +8 -0
  71. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  72. package/dist/components/arcgis-arcade-editor/customElement.d.ts +71 -0
  73. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  74. package/dist/components/arcgis-arcade-results/customElement.d.ts +14 -0
  75. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  76. package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +8 -0
  77. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  78. package/dist/components/arcgis-code-editor/customElement.d.ts +53 -0
  79. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  80. package/dist/components/arcgis-editor-variables/customElement.d.ts +19 -0
  81. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  82. package/dist/components/arcgis-language-api-panel/customElement.d.ts +23 -0
  83. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  84. package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +28 -0
  85. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  86. package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +8 -0
  87. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  88. package/dist/docs/api.json +2 -2
  89. package/dist/docs/docs.json +2 -2
  90. package/dist/docs/web-types.json +1 -1
  91. package/dist/index.js +1 -1
  92. package/dist/loader.js +1 -1
  93. package/dist/monacoStyles.js +1 -1
  94. package/dist/types/preact.d.ts +6 -6
  95. package/dist/types/preact10.d.ts +41 -0
  96. package/package.json +5 -5
  97. package/dist/cdn/CARPBLSL.js +0 -63
  98. package/dist/cdn/ZCOIOSPC.js +0 -4
package/dist/cdn/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.133 */
4
- import{C as i,o as e}from"./DSIF4ZUF.js";import"./YSBS6TWD.js";import"./PMG7E6F7.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./OYEHPNOM.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./HAQPAAAD.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./444YJJLQ.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./TVXP2N25.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./NBC2N7DQ.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./NJ4ZAXGL.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./33FMU32I.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./B2ETOF6E.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./ELU3G7A2.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet();var ___=new CSSStyleSheet();___.replaceSync(`@layer{/*!-----------------------------------------------------------
3
+ v4.34.0-next.135 */
4
+ import{C as i,o as e}from"./TMK3TWBH.js";import"./3UHKPHDU.js";import"./B3WO75T6.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./QQYFC2FJ.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./6ZCJY3FM.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./BEDVSMT5.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./2UM2Y7V2.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./26U6WQKS.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./B7UNWQLJ.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./GYLNCWS4.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./UT2IYCOE.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./77PW5YJT.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet();var ___=new CSSStyleSheet();___.replaceSync(`@layer{/*!-----------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
6
6
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
7
7
  * Released under the MIT license
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } f
5
5
  import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
8
- v4.34.0-next.133 */
8
+ v4.34.0-next.135 */
9
9
  async function C(e) {
10
10
  const { apiVersion: r, bundles: t, hiddenApiItems: i } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
11
11
  return { apiVersion: r, bundles: t, variables: n, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
@@ -1,7 +1,7 @@
1
1
  import { createArcadeExecutor as C } from "@arcgis/core/arcade.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.133 */
4
+ v4.34.0-next.135 */
5
5
  const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
6
6
  function u(t) {
7
7
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
@@ -9,7 +9,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
9
9
  import { Deferred as _ } from "@arcgis/toolkit/promise";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.133 */
12
+ v4.34.0-next.135 */
13
13
  const S = [
14
14
  "<=",
15
15
  ">=",
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.133 */
3
+ v4.34.0-next.135 */
4
4
  async function a() {
5
5
  return (await e()).getArcadeDiagnosticService();
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { css as e } from "lit";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.133 */
4
+ v4.34.0-next.135 */
5
5
  const o = e`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}.side-panel calcite-flow{height:100%}}}`;
6
6
  export {
7
7
  o as s
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.133 */
3
+ v4.34.0-next.135 */
4
4
  const n = "cube";
5
5
  function u(e, t) {
6
6
  switch (e.type) {
@@ -15,7 +15,7 @@ import { filterApiLibraryForContext as de } from "@arcgis/languages-api-utils";
15
15
  import { Emitter as G, Uri as E } from "monaco-editor";
16
16
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
17
17
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
18
- v4.34.0-next.133 */
18
+ v4.34.0-next.135 */
19
19
  function k(t) {
20
20
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && w(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
21
21
  }
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as ie } from "monaco-editor/esm/vs/editor/stand
4
4
  import { generateTokensCSSForColorMap as we } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
7
- v4.34.0-next.133 */
7
+ v4.34.0-next.135 */
8
8
  async function ye(r, e) {
9
9
  return await (await me()).colorize(r, e, { tabSize: 2 });
10
10
  }
@@ -13,11 +13,11 @@ async function ct(r, e) {
13
13
  return;
14
14
  const n = Array.from(
15
15
  r.querySelectorAll("code.language-arcade, code.language-sql"),
16
- async (s) => await $e(s, s.textContent, e)
16
+ async (s) => await Se(s, s.textContent, e)
17
17
  );
18
18
  await Promise.all(n);
19
19
  }
20
- async function $e(r, e, n) {
20
+ async function Se(r, e, n) {
21
21
  !r || r.tagName !== "CODE" || (r.innerHTML = await ye(e ?? "", n));
22
22
  }
23
23
  function ht() {
@@ -27,14 +27,14 @@ function ht() {
27
27
  function pt(r) {
28
28
  return le.get(ie).onDidColorThemeChange(() => r());
29
29
  }
30
- function O() {
30
+ function N() {
31
31
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
32
32
  }
33
- var S = O();
33
+ var $ = N();
34
34
  function ae(r) {
35
- S = r;
35
+ $ = r;
36
36
  }
37
- var A = { exec: () => null };
37
+ var _ = { exec: () => null };
38
38
  function u(r, e = "") {
39
39
  let n = typeof r == "string" ? r : r.source, s = { replace: (t, i) => {
40
40
  let l = typeof i == "string" ? i : i.source;
@@ -42,8 +42,8 @@ function u(r, e = "") {
42
42
  }, getRegex: () => new RegExp(n, e) };
43
43
  return s;
44
44
  }
45
- var x = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), htmlBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i") }, Se = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, _ = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ze = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Q = /(?:[*+-]|\d{1,9}[.)])/, oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ce = u(oe).replace(/bull/g, Q).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ae = u(oe).replace(/bull/g, Q).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, _e = /^[^\n]+/, H = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ce = u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", H).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Q).getRegex(), E = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", G = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ie = u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", G).replace("tag", E).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), he = u(j).replace("hr", _).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex(), ve = u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", he).getRegex(), F = { blockquote: ve, code: Re, def: Ce, fences: Te, heading: ze, hr: _, html: Ie, lheading: ce, list: Pe, newline: Se, paragraph: he, table: A, text: _e }, ee = u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", _).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex(), Le = { ...F, lheading: Ae, table: ee, paragraph: u(j).replace("hr", _).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ee).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex() }, Ee = { ...F, html: u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", G).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: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: A, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: u(j).replace("hr", _).replace("heading", ` *#{1,6} *[^
46
- ]`).replace("lheading", ce).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, qe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Be = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pe = /^( {2,}|\\)\n(?!\s*$)/, Ze = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, q = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, De = u(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ge = /(?!~)[\p{P}\p{S}]/u, Me = /(?!~)[\s\p{P}\p{S}]/u, Ne = /(?:[^\s\p{P}\p{S}]|~)/u, Oe = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, ke = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Qe = u(ke, "u").replace(/punct/g, q).getRegex(), je = u(ke, "u").replace(/punct/g, ge).getRegex(), fe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = u(fe, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, q).getRegex(), Ge = u(fe, "gu").replace(/notPunctSpace/g, Ne).replace(/punctSpace/g, Me).replace(/punct/g, ge).getRegex(), Fe = u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, q).getRegex(), We = u(/\\(punct)/, "gu").replace(/punct/g, q).getRegex(), Xe = u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ue = u(G).replace("(?:-->|$)", "-->").getRegex(), Je = u("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ue).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), I = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Ke = u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", I).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = u(/^!?\[(label)\]\[(ref)\]/).replace("label", I).replace("ref", H).getRegex(), xe = u(/^!?\[(ref)\](?:\[\])?/).replace("ref", H).getRegex(), Ve = u("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", xe).getRegex(), X = { _backpedal: A, anyPunctuation: We, autolink: Xe, blockSkip: Oe, br: pe, code: Be, del: A, emStrongLDelim: Qe, emStrongRDelimAst: He, emStrongRDelimUnd: Fe, escape: qe, link: Ke, nolink: xe, punctuation: De, reflink: de, reflinkSearch: Ve, tag: Je, text: Ze, url: A }, Ye = { ...X, link: u(/^!?\[(label)\]\((.*?)\)/).replace("label", I).getRegex(), reflink: u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", I).getRegex() }, D = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: je, url: u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, et = { ...D, br: u(pe).replace("{2,}", "*").getRegex(), text: u(D.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: F, gfm: Le, pedantic: Ee }, T = { normal: X, gfm: D, breaks: et, pedantic: Ye }, tt = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, te = (r) => tt[r];
45
+ var x = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), htmlBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i") }, $e = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ze = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, O = /(?:[*+-]|\d{1,9}[.)])/, oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ce = u(oe).replace(/bull/g, O).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ae = u(oe).replace(/bull/g, O).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, _e = /^[^\n]+/, j = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ce = u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", j).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, O).getRegex(), E = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", G = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ie = u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", G).replace("tag", E).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), he = u(Q).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex(), ve = u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", he).getRegex(), F = { blockquote: ve, code: Re, def: Ce, fences: Te, heading: ze, hr: C, html: Ie, lheading: ce, list: Pe, newline: $e, paragraph: he, table: _, text: _e }, ee = u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex(), Le = { ...F, lheading: Ae, table: ee, paragraph: u(Q).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ee).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex() }, Ee = { ...F, html: u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", G).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: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: u(Q).replace("hr", C).replace("heading", ` *#{1,6} *[^
46
+ ]`).replace("lheading", ce).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, qe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Be = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pe = /^( {2,}|\\)\n(?!\s*$)/, Ze = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, q = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Me = u(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ge = /(?!~)[\p{P}\p{S}]/u, De = /(?!~)[\s\p{P}\p{S}]/u, He = /(?:[^\s\p{P}\p{S}]|~)/u, Ne = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, ke = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Oe = u(ke, "u").replace(/punct/g, q).getRegex(), Qe = u(ke, "u").replace(/punct/g, ge).getRegex(), fe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", je = u(fe, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, q).getRegex(), Ge = u(fe, "gu").replace(/notPunctSpace/g, He).replace(/punctSpace/g, De).replace(/punct/g, ge).getRegex(), Fe = u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, q).getRegex(), We = u(/\\(punct)/, "gu").replace(/punct/g, q).getRegex(), Xe = u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ue = u(G).replace("(?:-->|$)", "-->").getRegex(), Je = u("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ue).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), I = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Ke = u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", I).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = u(/^!?\[(label)\]\[(ref)\]/).replace("label", I).replace("ref", j).getRegex(), xe = u(/^!?\[(ref)\](?:\[\])?/).replace("ref", j).getRegex(), Ve = u("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", xe).getRegex(), X = { _backpedal: _, anyPunctuation: We, autolink: Xe, blockSkip: Ne, br: pe, code: Be, del: _, emStrongLDelim: Oe, emStrongRDelimAst: je, emStrongRDelimUnd: Fe, escape: qe, link: Ke, nolink: xe, punctuation: Me, reflink: de, reflinkSearch: Ve, tag: Je, text: Ze, url: _ }, Ye = { ...X, link: u(/^!?\[(label)\]\((.*?)\)/).replace("label", I).getRegex(), reflink: u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", I).getRegex() }, M = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: Qe, url: u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, et = { ...M, br: u(pe).replace("{2,}", "*").getRegex(), text: u(M.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, P = { normal: F, gfm: Le, pedantic: Ee }, T = { normal: X, gfm: M, breaks: et, pedantic: Ye }, tt = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, te = (r) => tt[r];
47
47
  function m(r, e) {
48
48
  if (e) {
49
49
  if (x.escapeTest.test(r)) return r.replace(x.escapeReplace, te);
@@ -109,7 +109,7 @@ var v = class {
109
109
  rules;
110
110
  lexer;
111
111
  constructor(r) {
112
- this.options = r || S;
112
+ this.options = r || $;
113
113
  }
114
114
  space(r) {
115
115
  let e = this.rules.block.newline.exec(r);
@@ -384,25 +384,25 @@ ${h}` : h;
384
384
  return { type: "text", raw: e[0], text: e[0], escaped: n };
385
385
  }
386
386
  }
387
- }, w = class M {
387
+ }, w = class D {
388
388
  tokens;
389
389
  options;
390
390
  state;
391
391
  tokenizer;
392
392
  inlineQueue;
393
393
  constructor(e) {
394
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || S, this.options.tokenizer = this.options.tokenizer || new v(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
395
- let n = { other: x, block: C.normal, inline: T.normal };
396
- this.options.pedantic ? (n.block = C.pedantic, n.inline = T.pedantic) : this.options.gfm && (n.block = C.gfm, this.options.breaks ? n.inline = T.breaks : n.inline = T.gfm), this.tokenizer.rules = n;
394
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || $, this.options.tokenizer = this.options.tokenizer || new v(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
395
+ let n = { other: x, block: P.normal, inline: T.normal };
396
+ this.options.pedantic ? (n.block = P.pedantic, n.inline = T.pedantic) : this.options.gfm && (n.block = P.gfm, this.options.breaks ? n.inline = T.breaks : n.inline = T.gfm), this.tokenizer.rules = n;
397
397
  }
398
398
  static get rules() {
399
- return { block: C, inline: T };
399
+ return { block: P, inline: T };
400
400
  }
401
401
  static lex(e, n) {
402
- return new M(n).lex(e);
402
+ return new D(n).lex(e);
403
403
  }
404
404
  static lexInline(e, n) {
405
- return new M(n).inlineTokens(e);
405
+ return new D(n).inlineTokens(e);
406
406
  }
407
407
  lex(e) {
408
408
  e = e.replace(x.carriageReturn, `
@@ -519,6 +519,7 @@ ${h}` : h;
519
519
  }
520
520
  for (; (t = this.tokenizer.rules.inline.anyPunctuation.exec(s)) != null; ) s = s.slice(0, t.index) + "++" + s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
521
521
  for (; (t = this.tokenizer.rules.inline.blockSkip.exec(s)) != null; ) s = s.slice(0, t.index) + "[" + "a".repeat(t[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
522
+ s = this.options.hooks?.emStrongMask?.call({ lexer: this }, s) ?? s;
522
523
  let i = !1, l = "";
523
524
  for (; e; ) {
524
525
  i || (l = ""), i = !1;
@@ -593,7 +594,7 @@ ${h}` : h;
593
594
  options;
594
595
  parser;
595
596
  constructor(r) {
596
- this.options = r || S;
597
+ this.options = r || $;
597
598
  }
598
599
  space(r) {
599
600
  return "";
@@ -739,18 +740,18 @@ ${r}</tr>
739
740
  br() {
740
741
  return "";
741
742
  }
742
- }, y = class N {
743
+ }, y = class H {
743
744
  options;
744
745
  renderer;
745
746
  textRenderer;
746
747
  constructor(e) {
747
- this.options = e || S, this.options.renderer = this.options.renderer || new L(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new U();
748
+ this.options = e || $, this.options.renderer = this.options.renderer || new L(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new U();
748
749
  }
749
750
  static parse(e, n) {
750
- return new N(n).parse(e);
751
+ return new H(n).parse(e);
751
752
  }
752
753
  static parseInline(e, n) {
753
- return new N(n).parseInline(e);
754
+ return new H(n).parseInline(e);
754
755
  }
755
756
  parse(e, n = !0) {
756
757
  let s = "";
@@ -883,13 +884,14 @@ ${r}</tr>
883
884
  }
884
885
  return s;
885
886
  }
886
- }, P = class {
887
+ }, A = class {
887
888
  options;
888
889
  block;
889
890
  constructor(r) {
890
- this.options = r || S;
891
+ this.options = r || $;
891
892
  }
892
- static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
893
+ static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
894
+ static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
893
895
  preprocess(r) {
894
896
  return r;
895
897
  }
@@ -899,6 +901,9 @@ ${r}</tr>
899
901
  processAllTokens(r) {
900
902
  return r;
901
903
  }
904
+ emStrongMask(r) {
905
+ return r;
906
+ }
902
907
  provideLexer() {
903
908
  return this.block ? w.lex : w.lexInline;
904
909
  }
@@ -906,7 +911,7 @@ ${r}</tr>
906
911
  return this.block ? y.parse : y.parseInline;
907
912
  }
908
913
  }, st = class {
909
- defaults = O();
914
+ defaults = N();
910
915
  options = this.setOptions;
911
916
  parse = this.parseMarkdown(!0);
912
917
  parseInline = this.parseMarkdown(!1);
@@ -915,7 +920,7 @@ ${r}</tr>
915
920
  TextRenderer = U;
916
921
  Lexer = w;
917
922
  Tokenizer = v;
918
- Hooks = P;
923
+ Hooks = A;
919
924
  constructor(...r) {
920
925
  this.use(...r);
921
926
  }
@@ -989,13 +994,13 @@ ${r}</tr>
989
994
  s.tokenizer = t;
990
995
  }
991
996
  if (n.hooks) {
992
- let t = this.defaults.hooks || new P();
997
+ let t = this.defaults.hooks || new A();
993
998
  for (let i in n.hooks) {
994
999
  if (!(i in t)) throw new Error(`hook '${i}' does not exist`);
995
1000
  if (["options", "block"].includes(i)) continue;
996
1001
  let l = i, a = n.hooks[l], o = t[l];
997
- P.passThroughHooks.has(i) ? t[l] = (c) => {
998
- if (this.defaults.async) return Promise.resolve(a.call(t, c)).then((k) => o.call(t, k));
1002
+ A.passThroughHooks.has(i) ? t[l] = (c) => {
1003
+ if (this.defaults.async && A.passThroughHooksRespectAsync.has(i)) return Promise.resolve(a.call(t, c)).then((k) => o.call(t, k));
999
1004
  let h = a.call(t, c);
1000
1005
  return o.call(t, h);
1001
1006
  } : t[l] = (...c) => {
@@ -1055,22 +1060,22 @@ Please report this to https://github.com/markedjs/marked.`, r) {
1055
1060
  throw n;
1056
1061
  };
1057
1062
  }
1058
- }, $ = new st();
1063
+ }, S = new st();
1059
1064
  function p(r, e) {
1060
- return $.parse(r, e);
1065
+ return S.parse(r, e);
1061
1066
  }
1062
1067
  p.options = p.setOptions = function(r) {
1063
- return $.setOptions(r), p.defaults = $.defaults, ae(p.defaults), p;
1068
+ return S.setOptions(r), p.defaults = S.defaults, ae(p.defaults), p;
1064
1069
  };
1065
- p.getDefaults = O;
1066
- p.defaults = S;
1070
+ p.getDefaults = N;
1071
+ p.defaults = $;
1067
1072
  p.use = function(...r) {
1068
- return $.use(...r), p.defaults = $.defaults, ae(p.defaults), p;
1073
+ return S.use(...r), p.defaults = S.defaults, ae(p.defaults), p;
1069
1074
  };
1070
1075
  p.walkTokens = function(r, e) {
1071
- return $.walkTokens(r, e);
1076
+ return S.walkTokens(r, e);
1072
1077
  };
1073
- p.parseInline = $.parseInline;
1078
+ p.parseInline = S.parseInline;
1074
1079
  p.Parser = y;
1075
1080
  p.parser = y.parse;
1076
1081
  p.Renderer = L;
@@ -1078,7 +1083,7 @@ p.TextRenderer = U;
1078
1083
  p.Lexer = w;
1079
1084
  p.lexer = w.lex;
1080
1085
  p.Tokenizer = v;
1081
- p.Hooks = P;
1086
+ p.Hooks = A;
1082
1087
  p.parse = p;
1083
1088
  p.options;
1084
1089
  p.setOptions;
@@ -1103,7 +1108,7 @@ function ut(r) {
1103
1108
  }
1104
1109
  export {
1105
1110
  ct as a,
1106
- $e as b,
1111
+ Se as b,
1107
1112
  ut as c,
1108
1113
  ht as g,
1109
1114
  pt as o
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
6
6
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
9
- v4.34.0-next.133 */
9
+ v4.34.0-next.135 */
10
10
  function $(e, n, l, i) {
11
11
  if (!n)
12
12
  return [];
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
3
3
  import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
4
4
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
6
- v4.34.0-next.133 */
6
+ v4.34.0-next.135 */
7
7
  const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
8
8
  t.t = s;
9
9
  t.o = r;
@@ -1,7 +1,7 @@
1
1
  import w from "@arcgis/core/request.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.133 */
4
+ v4.34.0-next.135 */
5
5
  function d() {
6
6
  return !!window.MonacoEnvironment?.getWorker;
7
7
  }
@@ -9,7 +9,7 @@ import { a as n } from "./sql-expr-defaults.js";
9
9
  import { g as m } from "./sql-expr-service-accessors.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.133 */
12
+ v4.34.0-next.135 */
13
13
  const s = /* @__PURE__ */ new Set();
14
14
  function g(e, o) {
15
15
  return () => {
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
4
4
  import { g as b } from "./runtime.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
7
- v4.34.0-next.133 */
7
+ v4.34.0-next.135 */
8
8
  const x = (r) => {
9
9
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
10
10
  return {
@@ -9,7 +9,7 @@ import { debounce as N } from "@arcgis/toolkit/function";
9
9
  import { g as f } from "./sql-expr-service-accessors.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.133 */
12
+ v4.34.0-next.135 */
13
13
  let h = new _();
14
14
  class k {
15
15
  constructor(e) {
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.133 */
3
+ v4.34.0-next.135 */
4
4
  async function t() {
5
5
  return await import("./sql-expr-mode.js");
6
6
  }
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
2
2
  import { g as t } from "./runtime.js";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
5
- v4.34.0-next.133 */
5
+ v4.34.0-next.135 */
6
6
  const s = o(t);
7
7
  export {
8
8
  s as u
@@ -14,14 +14,22 @@ import { PropertyValues } from 'lit';
14
14
  export declare class ArcgisArcadeCodingAssistant extends LitElement {
15
15
  closePanel?: (e: Event) => void;
16
16
  insertText?: (text: string) => void;
17
+ /** @default "" */
17
18
  helpBase?: string;
19
+ /**
20
+ * Whether ai assistants are enabled in the organization's settings.
21
+ *
22
+ * @default false
23
+ */
18
24
  assistantsEnabled: boolean;
19
25
  layer: __esri.CatalogFootprintLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.SceneLayer | __esri.Sublayer | __esri.SubtypeSublayer | __esri.VoxelLayer | __esri.WFSLayer;
20
26
  portalUrl: string;
21
27
  serviceUrl: string;
28
+ /** @default false */
22
29
  closed: boolean;
23
30
  editorRef: ArcgisArcadeEditor;
24
31
  feedbackServiceUrl?: string;
25
32
  appVersion?: string;
33
+ /** Permanently destroy the component */
26
34
  destroy(): Promise<void>;
27
35
  }
@@ -17,7 +17,7 @@ import X from "@arcgis/core/Graphic.js";
17
17
  import { b as Z } from "../../chunks/language-defaults-base.js";
18
18
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
19
19
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
20
- v4.34.0-next.133 */
20
+ v4.34.0-next.135 */
21
21
  const ee = W`:host(:not([closed])){--calcite-block-border-color: var(--calcite-color-transparent);flex:1 0 auto;border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box;max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);.submission-actions-wrapper{display:flex;flex-direction:column;width:100%;gap:.75rem}.submission-actions{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.gaps{display:flex;gap:.25rem}.align-inline-end{margin-inline-start:auto}.action .error-display{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem;max-height:30vh;overflow-y:auto}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent;margin-block:0}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}.type-suggestion{--calcite-color-foreground-1: var(--calcite-color-foreground-current);--calcite-color-text-3: var(--calcite-color-text-2);--calcite-icon-color: var(--calcite-color-brand)}.type-history{--calcite-icon-color: var(--calcite-color-text-2)}.type-response{--calcite-icon-color: var(--calcite-color-brand);--calcite-font-family: monospace}.block-response{align-self:flex-start;margin-block-end:4rem;border-block-end:0;--calcite-block-text-color: var(--calcite-color-brand)}calcite-list-item calcite-button{margin-inline-end:.25rem}.type-docs{--calcite-color-foreground-1: var(--calcite-color-foreground-3);--calcite-icon-color: var(--calcite-color-text-1)}.type-error{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-font-family: monospace;border:1px solid var(--calcite-color-status-danger)}#thumbs-up{margin-inline-start:auto;--calcite-icon-color: var(--calcite-color-border-input)}#thumbs-down{--calcite-icon-color: var(--calcite-color-border-input)}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}.no-space-block,.no-space-block[open]{margin:0}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;border-radius:var(--calcite-corner-radius-round);margin:.75rem;overflow:hidden;--calcite-color-border-input: transparent;position:sticky;box-shadow:var(--calcite-shadow-sm);flex:none}calcite-text-area{height:auto;min-height:5.75rem;overflow:hidden;border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-tooltip{--calcite-tooltip-z-index: 1000}.standalone-list{margin:1rem;width:calc(100% - 2rem)}.result-disclaimer{display:block;width:24rem;max-width:90%;margin:1rem auto;text-align:center;line-height:1.125rem;font-size:.875rem;font-style:italic}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.break-spaces{white-space:break-spaces}.feedback-button-container{margin-inline-start:auto;gap:0}.info-heading{font-size:var(--calcite-font-size-1);color:var(--calcite-color-text-1)}.unstyled-h3{margin:unset;font-size:var(--calcite-font-size-md)}.unstyled-shell{position:unset;inset:unset;display:unset;block-size:unset;inline-size:unset}.suggestion-button{font-weight:var(--calcite-font-weight-medium)}.info-block{max-width:450px}#result-block{calcite-card-group{--calcite-card-group-gap: 1.25rem}calcite-card{--calcite-card-corner-radius: var(--calcite-corner-radius-round);--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=title] calcite-chip{margin-block-start:.25rem}.code-response-wrapper{position:relative;background:var(--calcite-color-foreground-2);border-radius:var(--calcite-corner-radius-round);margin-top:-1.5rem}.prior-prompt{display:flex;flex-direction:row;padding:0;overflow-y:hidden;overflow-x:auto;margin:.25rem 0 .75rem;align-items:center;max-width:100%;span{overflow-x:auto;overflow-y:hidden}}.copy-feedback{display:none}.copy-prompt-button{align-self:flex-start;margin-inline-start:auto}.response-secondary-action-button[data-copied]+.copy-feedback,.copy-prompt-button[data-copied]+.copy-feedback{display:block;span{padding:.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text--2);font-weight:var(--calcite-font-weight-medium)}}.copy-prompt-button[data-copied]~.copy-tooltip,.response-secondary-action-button[data-copied]~.copy-tooltip{display:none}code{white-space:pre;font-size:12px;margin:0;overflow-x:auto;font-family:Fira Mono,Consolas,Menlo,monospace;display:block;max-height:12rem;position:relative;padding:.5rem}.code-collapse{margin-inline-start:auto}.response-secondary-action-button{margin-left:.5rem}.add-to-editor-button{--calcite-internal-button-border-color: unset}}.collapsible-code{padding:.5rem}.collapsible-code summary{cursor:pointer;font-weight:500;color:var(--calcite-color-brand);outline:none;padding:.25rem 0}.collapsible-code[open] summary{color:var(--calcite-color-text-2)}.collapsible-error{padding:.5rem}.collapsible-error summary{cursor:pointer;font-weight:500;color:var(--calcite-color-status-danger);outline:none;padding:.25rem 0}.collapsible-error[open] summary{color:var(--calcite-color-text-2)}.response-error-container{padding:.5rem;background:color-mix(in srgb,var(--calcite-color-status-warning) 10%,transparent);border-radius:var(--calcite-corner-radius-round);margin:1rem 0;font-size:var(--calcite-font-size--2);--calcite-input-message-icon-color: var(--calcite-color-status-warning)}.response-error-chip{--calcite-internal-chip-background-color: var(--calcite-color-status-warning);--calcite-chip-icon-color: var(--calcite-color-foreground-1);--calcite-chip-border-color: var(--calcite-color-transparent)}.feedback-actions{gap:unset}}:host([closed]){display:none}`;
22
22
  class y extends Error {
23
23
  constructor({
@@ -39,22 +39,93 @@ type WithCustomPanels = {
39
39
  * [Read more...](https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-arcade-editor/)
40
40
  */
41
41
  export declare class ArcgisArcadeEditor<T extends WithCustomPanels = object> extends LitElement {
42
+ /**
43
+ * Options to update on the editor.
44
+ * For example:
45
+ * ```json
46
+ * {
47
+ * "fontSize": 18
48
+ * }
49
+ * ```
50
+ *
51
+ * To get the full list of available options, see the Monaco Editor options [documentation](https://microsoft.github.io/monaco-editor/typedoc/variables/editor.EditorOptions.html) for more details.
52
+ */
42
53
  editorOptions?: Editor.IEditorOptions & Editor.IGlobalEditorOptions;
54
+ /**
55
+ * If true, it will hide the documentation action in the side panel
56
+ *
57
+ * @default false
58
+ */
43
59
  hideDocumentationActions: boolean;
60
+ /**
61
+ * If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
62
+ *
63
+ * @default false
64
+ */
44
65
  hideSideBar: boolean;
66
+ /**
67
+ * The name of the opened side panel. 'none' means 'no panel opened'.
68
+ *
69
+ * @default "none"
70
+ */
45
71
  openedSidePanel: T extends Required<WithCustomPanels> ? SidePanelName : string;
72
+ /**
73
+ * The profile contains metadata used by the editor for editing context and help.
74
+ * Example:
75
+ * ```
76
+ * {
77
+ * bundles: ["core", "dataAccess", "geometry", "portal-access"],
78
+ * variables: [
79
+ * {
80
+ * name: "$feature",
81
+ * description: "The feature passed to the script during execution.",
82
+ * definition: aFeatureLayerInstance
83
+ * }
84
+ * ]
85
+ * }
86
+ * ```
87
+ */
46
88
  profile?: IEditorProfileDefinition | IPredefinedProfile;
89
+ /**
90
+ * The arcade script. Use this property to define or update the script.
91
+ *
92
+ * @default ""
93
+ */
47
94
  script: string;
95
+ /**
96
+ * If true, the side action bar will be expanded
97
+ *
98
+ * @default false
99
+ */
48
100
  sideActionBarExpanded: boolean;
101
+ /** Collection of snippets */
49
102
  snippets?: ApiSnippet[];
103
+ /** Collection of suggestions */
50
104
  suggestions?: IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[];
105
+ /** Test data used to execute the script in the editor. If undefined the execute script UX will be hidden. */
51
106
  testData?: IEditorTestContext;
107
+ /**
108
+ * Custom panels to be displayed in the side panel.
109
+ * Will be placed below the default panels but above the help panel.
110
+ *
111
+ * @internal
112
+ */
52
113
  customPanels?: ICustomPanel[];
114
+ /**
115
+ * enables and configures the arcade assistant
116
+ *
117
+ * @internal
118
+ */
53
119
  arcadeAssistant?: ArcadeAssistantConfig;
120
+ /** @deprecated **Deprecated** since 4.30. Use `script` property instead. */
54
121
  getScript(): Promise<string | undefined>;
122
+ /** Returns the Arcade result for the script for the provided test data. */
55
123
  getTestResult(): Promise<ArcadeResult>;
124
+ /** Set the focus on the element. */
56
125
  setFocus(): Promise<void>;
126
+ /** Emitted when the diagnostics collection has changed. */
57
127
  readonly arcgisDiagnosticsChange: TargetedEvent<this, Diagnostic[]>;
128
+ /** Emitted when the script string has changed. */
58
129
  readonly arcgisScriptChange: TargetedEvent<this, string>;
59
130
  }
60
131
  export {};
@@ -17,7 +17,7 @@ import { s as F } from "../../chunks/editor.js";
17
17
  import U from "@arcgis/core/identity/IdentityManager.js";
18
18
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
19
19
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
20
- v4.34.0-next.133 */
20
+ v4.34.0-next.135 */
21
21
  const j = E`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border)!important;box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.main-action-bar{border-bottom:var(--arcgis-coding-components-border)!important;flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border)!important;box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}.hidden{display:none}}}`, z = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", N = (i) => {
22
22
  const { aiAssistantsEnabled: e } = i;
23
23
  return e === void 0 ? (console.warn("areAiAssistantsEnabled is not defined in the organizations settings."), !1) : e;