@arcgis/ai-components 5.2.0-next.75 → 5.2.0-next.77
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.
- package/dist/agents/tools/filter/clearFilters/adapter.d.ts +8 -0
- package/dist/{chunks/adapter12.js → agents/tools/filter/clearFilters/adapter.js} +1 -1
- package/dist/agents/tools/filter/resetMap/adapter.d.ts +8 -0
- package/dist/{chunks/adapter13.js → agents/tools/filter/resetMap/adapter.js} +1 -1
- package/dist/agents/tools/filter/setFeatureEffect/adapter.d.ts +8 -0
- package/dist/{chunks/adapter14.js → agents/tools/filter/setFeatureEffect/adapter.js} +2 -2
- package/dist/agents/tools/help/listFields/adapter.d.ts +11 -0
- package/dist/{chunks/adapter11.js → agents/tools/help/listFields/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToAddress/adapter.d.ts +10 -0
- package/dist/{chunks/adapter2.js → agents/tools/navigation/goToAddress/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToBookmark/adapter.d.ts +8 -0
- package/dist/{chunks/adapter3.js → agents/tools/navigation/goToBookmark/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToFeatures/adapter.d.ts +8 -0
- package/dist/{chunks/adapter4.js → agents/tools/navigation/goToFeatures/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToFullExtent/adapter.d.ts +8 -0
- package/dist/{chunks/adapter5.js → agents/tools/navigation/goToFullExtent/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToHomeExtent/adapter.d.ts +8 -0
- package/dist/{chunks/adapter6.js → agents/tools/navigation/goToHomeExtent/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToLayer/adapter.d.ts +8 -0
- package/dist/{chunks/adapter7.js → agents/tools/navigation/goToLayer/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToScale/adapter.d.ts +8 -0
- package/dist/{chunks/adapter8.js → agents/tools/navigation/goToScale/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToViewpoint/adapter.d.ts +8 -0
- package/dist/{chunks/adapter9.js → agents/tools/navigation/goToViewpoint/adapter.js} +1 -1
- package/dist/agents/tools/navigation/goToZoom/adapter.d.ts +8 -0
- package/dist/{chunks/adapter10.js → agents/tools/navigation/goToZoom/adapter.js} +1 -1
- package/dist/agents/tools/query/getAttribute/adapter.d.ts +8 -0
- package/dist/{chunks/adapter15.js → agents/tools/query/getAttribute/adapter.js} +2 -2
- package/dist/agents/tools/query/getStatistics/adapter.d.ts +8 -0
- package/dist/{chunks/adapter16.js → agents/tools/query/getStatistics/adapter.js} +4 -4
- package/dist/agents/tools/query/getTopFeatures/adapter.d.ts +8 -0
- package/dist/{chunks/adapter17.js → agents/tools/query/getTopFeatures/adapter.js} +4 -4
- package/dist/agents/tools/query/queryFeatures/adapter.d.ts +8 -0
- package/dist/{chunks/adapter18.js → agents/tools/query/queryFeatures/adapter.js} +4 -4
- package/dist/cdn/{GRHIFCQX.js → 2EY3BQQX.js} +1 -1
- package/dist/cdn/{253R5CBD.js → 2SQKAJ73.js} +1 -1
- package/dist/cdn/{MM33KJPF.js → 4OGR5QKS.js} +1 -1
- package/dist/cdn/{66SKMECC.js → 4WIDLQUH.js} +1 -1
- package/dist/cdn/{WMZ24LWS.js → 5X7EG7D2.js} +1 -1
- package/dist/cdn/{5R6QUF5B.js → 7V6OSTFC.js} +1 -1
- package/dist/cdn/{5WLNL4HZ.js → 7ZFAFKJT.js} +1 -1
- package/dist/cdn/{QZ3NQTNQ.js → BWLXDT75.js} +1 -1
- package/dist/cdn/{I6PD2HSL.js → CJMUJXPL.js} +1 -1
- package/dist/cdn/{CWD37QFT.js → CZM4URK7.js} +1 -1
- package/dist/cdn/{2VBPA27M.js → DOXBIASP.js} +1 -1
- package/dist/cdn/{TQXLSW4A.js → EZYONVBU.js} +1 -1
- package/dist/cdn/{VYTYVWR6.js → FZ4CURWW.js} +1 -1
- package/dist/cdn/{HZ5ARNAM.js → GFEOVHJK.js} +1 -1
- package/dist/cdn/{MDM2K3U7.js → GOKLRL6M.js} +1 -1
- package/dist/cdn/{UPWAOZXQ.js → GPZJANRQ.js} +1 -1
- package/dist/cdn/{6CLF7KIK.js → GZGDLURS.js} +1 -1
- package/dist/cdn/{NIY32GK2.js → H6IJRTHM.js} +1 -1
- package/dist/cdn/{TKYI5QRL.js → JO5ETMPS.js} +1 -1
- package/dist/cdn/{323DHVYA.js → JSMNXHYG.js} +1 -1
- package/dist/cdn/{U6FBRUM4.js → LZP3OBKS.js} +1 -1
- package/dist/cdn/{K33MZ726.js → PUHRBGKB.js} +1 -1
- package/dist/cdn/{5DVRVY4L.js → Q57QWN5W.js} +1 -1
- package/dist/cdn/{QRHZXLZN.js → RBE55SWR.js} +1 -1
- package/dist/cdn/{IRNSIUBT.js → RCFAXADI.js} +1 -1
- package/dist/cdn/{RADWN4ZP.js → T4RIGOXB.js} +1 -1
- package/dist/cdn/{S6OYR4VI.js → TYZ3FRGW.js} +1 -1
- package/dist/cdn/{5RVELJU4.js → UB6PAQZ7.js} +1 -1
- package/dist/cdn/{7E2QMWK6.js → UHZG7SKO.js} +1 -1
- package/dist/cdn/{V6HOUZPZ.js → YLGKKWZK.js} +1 -1
- package/dist/cdn/YLVJA4ZE.js +2 -0
- package/dist/cdn/ZOEMBHRF.js +2 -0
- package/dist/cdn/agent-utils/index.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/adapter.js +7 -7
- package/dist/chunks/helpGraph.js +1 -1
- package/dist/chunks/navigationGraph.js +9 -9
- package/dist/chunks/utils2.js +10 -41
- package/dist/chunks/utils3.js +41 -10
- package/dist/components/arcgis-assistant/customElement.js +1 -1
- package/dist/components/arcgis-assistant-agent/customElement.js +18 -18
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +11 -11
- package/dist/components/arcgis-assistant-help-agent/customElement.js +17 -17
- package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +18 -18
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +18 -18
- package/dist/components/arcgis-assistant-navigation-agent/customElement.js +9 -9
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +22 -5
- package/dist/cdn/IDUC4CPV.js +0 -2
- package/dist/cdn/K335IAIE.js +0 -2
- /package/dist/cdn/{BS2PFNU4.js → 5WYRJMBW.js} +0 -0
- /package/dist/cdn/{RU2T7GUX.js → 5ZFUGNRN.js} +0 -0
- /package/dist/cdn/{4YXYLX4H.js → 6HF36IKA.js} +0 -0
- /package/dist/cdn/{77QFSIWW.js → 7SRLZQVC.js} +0 -0
- /package/dist/cdn/{KA3FF3ZO.js → JKIESH74.js} +0 -0
- /package/dist/cdn/{CGXQAB3A.js → K2R6XVK3.js} +0 -0
- /package/dist/cdn/{LCFIADOZ.js → KITIP6J2.js} +0 -0
- /package/dist/cdn/{T2GJLEYV.js → KWD2ECTM.js} +0 -0
- /package/dist/cdn/{DYASSC7Z.js → LLUGJKAQ.js} +0 -0
- /package/dist/cdn/{3UEKINYC.js → MMHDT4KV.js} +0 -0
- /package/dist/cdn/{WS3T73IY.js → OAKRPM7D.js} +0 -0
- /package/dist/cdn/{Q4IQUEZN.js → U2D53TAX.js} +0 -0
- /package/dist/cdn/{4MFEKBKL.js → V52XWEGV.js} +0 -0
- /package/dist/cdn/{EAEQONP7.js → VLLZ2FFU.js} +0 -0
- /package/dist/cdn/{DY36ATOA.js → WKTQVBFJ.js} +0 -0
- /package/dist/cdn/{5PJXNTLZ.js → Y7XD7ZRD.js} +0 -0
- /package/dist/cdn/{UIXX3XEN.js → YEZ3AMNX.js} +0 -0
- /package/dist/cdn/{QVOMX3R6.js → Z5W4V7RC.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { tool as l } from "@langchain/core/tools";
|
|
3
3
|
import o from "zod";
|
|
4
|
-
import { f } from "
|
|
4
|
+
import { f } from "../../../../chunks/fetchAgentContext.js";
|
|
5
5
|
const i = (a) => {
|
|
6
6
|
const r = a.map?.allLayers.filter((t) => t.type === "feature");
|
|
7
7
|
let e = 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { tool as n } from "@langchain/core/tools";
|
|
3
3
|
import i from "zod";
|
|
4
|
-
import { f as l } from "
|
|
4
|
+
import { f as l } from "../../../../chunks/fetchAgentContext.js";
|
|
5
5
|
const f = async (e) => {
|
|
6
6
|
e.map?.allLayers.filter((t) => t.type === "feature")?.forEach((t) => {
|
|
7
7
|
const s = t;
|
|
@@ -3,8 +3,8 @@ import e from "zod";
|
|
|
3
3
|
import { tool as h } from "@langchain/core/tools";
|
|
4
4
|
import m from "@arcgis/core/layers/support/FeatureEffect.js";
|
|
5
5
|
import b from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
6
|
-
import { g as y, d } from "
|
|
7
|
-
import { f as w } from "
|
|
6
|
+
import { g as y, d } from "../../../../chunks/types.js";
|
|
7
|
+
import { f as w } from "../../../../chunks/fetchAgentContext.js";
|
|
8
8
|
const g = async (t, o, u, n, r, c) => {
|
|
9
9
|
const a = t.map?.allLayers.find((i) => i.id === o);
|
|
10
10
|
if (!a)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StructuredToolInterface } from "@langchain/core/tools";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Lists registered fields for a user-specified layer.
|
|
5
|
+
*
|
|
6
|
+
* Use only when the user explicitly requests fields, columns, or attributes
|
|
7
|
+
* for a named layer.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export const listLayerFieldsTool: StructuredToolInterface;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { tool as n } from "@langchain/core/tools";
|
|
3
3
|
import s from "zod";
|
|
4
|
-
import { f as c } from "
|
|
4
|
+
import { f as c } from "../../../../chunks/fetchService.js";
|
|
5
5
|
const y = (i, r) => {
|
|
6
6
|
const t = Array.from(i.values()).find(
|
|
7
7
|
({ layerItem: e }) => e.title?.toLowerCase().includes(r.toLowerCase())
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StructuredToolInterface } from "@langchain/core/tools";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A tool that geocodes an address or place name and navigates the map to the result.
|
|
5
|
+
* It uses the map view provided by the agent's runtime context.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
* @since 5.2
|
|
9
|
+
*/
|
|
10
|
+
export const goToAddressTool: StructuredToolInterface;
|
|
@@ -5,7 +5,7 @@ import f from "@arcgis/core/Graphic.js";
|
|
|
5
5
|
import u from "@arcgis/core/portal/Portal.js";
|
|
6
6
|
import { addressToLocations as S } from "@arcgis/core/rest/locator.js";
|
|
7
7
|
import v from "@arcgis/core/symbols/PictureMarkerSymbol.js";
|
|
8
|
-
import { f as w } from "
|
|
8
|
+
import { f as w } from "../../../../chunks/fetchAgentContext.js";
|
|
9
9
|
import c from "zod";
|
|
10
10
|
async function y(e, t) {
|
|
11
11
|
const a = u.getDefault().helperServices, n = a.geocode.find((h) => h.name === "ArcGIS World Geocoding Service") ?? a.geocode[0];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { z as i } from "zod";
|
|
3
3
|
import { tool as k } from "@langchain/core/tools";
|
|
4
|
-
import { f as s } from "
|
|
4
|
+
import { f as s } from "../../../../chunks/fetchAgentContext.js";
|
|
5
5
|
async function c(o, t) {
|
|
6
6
|
const e = t.map.bookmarks;
|
|
7
7
|
if (!e || e.length === 0)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { z as i } from "zod";
|
|
3
3
|
import { tool as u } from "@langchain/core/tools";
|
|
4
|
-
import { f as c } from "
|
|
4
|
+
import { f as c } from "../../../../chunks/fetchAgentContext.js";
|
|
5
5
|
async function f(o, a, n) {
|
|
6
6
|
const e = n.map?.allLayers.find((r) => r.id === o);
|
|
7
7
|
if (!e)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z as n } from "zod";
|
|
3
3
|
import r from "@arcgis/core/geometry/Extent.js";
|
|
4
4
|
import { tool as i } from "@langchain/core/tools";
|
|
5
|
-
import { f as l } from "
|
|
5
|
+
import { f as l } from "../../../../chunks/fetchAgentContext.js";
|
|
6
6
|
async function m(o) {
|
|
7
7
|
const t = new r({
|
|
8
8
|
xmin: -180,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { tool as n } from "@langchain/core/tools";
|
|
3
3
|
import i from "zod";
|
|
4
|
-
import { f as r } from "
|
|
4
|
+
import { f as r } from "../../../../chunks/fetchAgentContext.js";
|
|
5
5
|
async function a(e) {
|
|
6
6
|
const t = e.map.initialViewProperties?.viewpoint?.targetGeometry;
|
|
7
7
|
if (t)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { z as r } from "zod";
|
|
3
3
|
import { tool as i } from "@langchain/core/tools";
|
|
4
|
-
import { f as c } from "
|
|
4
|
+
import { f as c } from "../../../../chunks/fetchAgentContext.js";
|
|
5
5
|
async function l(o, t) {
|
|
6
6
|
await t.when();
|
|
7
7
|
const e = t.map?.allLayers.find((n) => n.id === o);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import t from "zod";
|
|
3
3
|
import { tool as a } from "@langchain/core/tools";
|
|
4
|
-
import { f as i } from "
|
|
4
|
+
import { f as i } from "../../../../chunks/fetchAgentContext.js";
|
|
5
5
|
async function n(o, e) {
|
|
6
6
|
return await e.goTo({ scale: o }), { text: `Successfully zoomed to: ${o}` };
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import t from "zod";
|
|
3
3
|
import { tool as c } from "@langchain/core/tools";
|
|
4
4
|
import l from "@arcgis/core/geometry/Point.js";
|
|
5
|
-
import { f as r } from "
|
|
5
|
+
import { f as r } from "../../../../chunks/fetchAgentContext.js";
|
|
6
6
|
async function m(e, a, o) {
|
|
7
7
|
const i = {
|
|
8
8
|
target: new l({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import t from "zod";
|
|
3
3
|
import { tool as m } from "@langchain/core/tools";
|
|
4
|
-
import { f as i } from "
|
|
4
|
+
import { f as i } from "../../../../chunks/fetchAgentContext.js";
|
|
5
5
|
async function r(o, e) {
|
|
6
6
|
return await e.goTo({ zoom: o }), { text: `Successfully zoomed to: ${o}` };
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { tool as f } from "@langchain/core/tools";
|
|
3
3
|
import i from "zod";
|
|
4
|
-
import { f as h, g } from "
|
|
5
|
-
import { f as y } from "
|
|
4
|
+
import { f as h, g } from "../../../../chunks/formatFeatureAttributes.js";
|
|
5
|
+
import { f as y } from "../../../../chunks/fetchAgentContext.js";
|
|
6
6
|
const b = (a, e, o) => {
|
|
7
7
|
const t = a.createQuery();
|
|
8
8
|
return t.outFields = [e], t.where = o || "1=1", t.num = 1, t;
|
|
@@ -4,10 +4,10 @@ import t from "zod";
|
|
|
4
4
|
import V from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
5
5
|
import E from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
6
6
|
import O from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
7
|
-
import { c as x, m as b } from "
|
|
8
|
-
import { g as N, i as v, a as C, d as S } from "
|
|
9
|
-
import { f as R } from "
|
|
10
|
-
import { f as U } from "
|
|
7
|
+
import { c as x, m as b } from "../../../../chunks/mergeWhereClauses.js";
|
|
8
|
+
import { g as N, i as v, a as C, d as S } from "../../../../chunks/types.js";
|
|
9
|
+
import { f as R } from "../../../../chunks/fetchAgentContext.js";
|
|
10
|
+
import { f as U } from "../../../../chunks/fetchService.js";
|
|
11
11
|
const W = async (h) => {
|
|
12
12
|
const { targetLayer: r, fieldName: n, statisticType: l, mapView: a, layersAndFieldsRegistry: p, geometryFilter: e } = h, s = a.map?.allLayers.find((i) => i.id === r.layerId);
|
|
13
13
|
if (!s)
|
|
@@ -3,10 +3,10 @@ import { tool as T } from "@langchain/core/tools";
|
|
|
3
3
|
import e from "zod";
|
|
4
4
|
import S from "@arcgis/core/rest/support/TopFeaturesQuery.js";
|
|
5
5
|
import B from "@arcgis/core/rest/support/TopFilter.js";
|
|
6
|
-
import { m as C, c as v } from "
|
|
7
|
-
import { a as I } from "
|
|
8
|
-
import { g as q, d as y } from "
|
|
9
|
-
import { f as N } from "
|
|
6
|
+
import { m as C, c as v } from "../../../../chunks/mergeWhereClauses.js";
|
|
7
|
+
import { a as I } from "../../../../chunks/formatFeatureAttributes.js";
|
|
8
|
+
import { g as q, d as y } from "../../../../chunks/types.js";
|
|
9
|
+
import { f as N } from "../../../../chunks/fetchAgentContext.js";
|
|
10
10
|
const k = (i) => i.flatMap((t) => t.split(",")).map((t) => t.trim()).map((t) => t.split(/\s+/u)[0]?.replace(/^"|"$/gu, "")).filter((t) => !!t), x = async (i, t, a, s, l) => {
|
|
11
11
|
const n = a.map?.allLayers.find((o) => o.id === i.layerId), d = await a.whenLayerView(n), c = n.title ?? i.layerId;
|
|
12
12
|
let u;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { tool as v } from "@langchain/core/tools";
|
|
3
|
-
import { a as C } from "
|
|
4
|
-
import { g as O, i as S, a as F, d as I } from "
|
|
5
|
-
import { c as j, m as N } from "
|
|
3
|
+
import { a as C } from "../../../../chunks/formatFeatureAttributes.js";
|
|
4
|
+
import { g as O, i as S, a as F, d as I } from "../../../../chunks/types.js";
|
|
5
|
+
import { c as j, m as N } from "../../../../chunks/mergeWhereClauses.js";
|
|
6
6
|
import t from "zod";
|
|
7
|
-
import { f as R } from "
|
|
7
|
+
import { f as R } from "../../../../chunks/fetchAgentContext.js";
|
|
8
8
|
const p = 25, x = (i) => i.flatMap((r) => r.split(",")).map((r) => r.trim()).map((r) => r.split(/\s+/u)[0]?.replace(/^"|"$/gu, "")).filter((r) => !!r), W = async (i, r, e, f) => {
|
|
9
9
|
const a = r.map?.allLayers.find((u) => u.id === i.layerId), l = await r.whenLayerView(a), y = a.title ?? i.layerId;
|
|
10
10
|
let c;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./
|
|
2
|
+
import{a}from"./Y7XD7ZRD.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export{a as goToBookmarkTool};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import q from"./
|
|
2
|
+
import q from"./DOXBIASP.js";import p from"./ONMNQBPO.js";import n from"./TYZ3FRGW.js";import m from"./KITIP6J2.js";import"./Z5W4V7RC.js";import l from"./KWD2ECTM.js";import k from"./U2D53TAX.js";import j from"./OAKRPM7D.js";import h from"./V52XWEGV.js";import g from"./CCC6LBMY.js";import"./34O57OGV.js";import{a as o,c as a}from"./YLGKKWZK.js";import"./7SRLZQVC.js";import"./FDOMMK2M.js";import f from"./6HF36IKA.js";import"./Y7XD7ZRD.js";import"./VLLZ2FFU.js";import e from"./5ZFUGNRN.js";import"./LLUGJKAQ.js";import"./WKTQVBFJ.js";import"./K2R6XVK3.js";import"./MMHDT4KV.js";import"./RLEHNAIA.js";import d from"./AT4XVTJR.js";import"./7M6VKBTK.js";import"./5WYRJMBW.js";import"./YEZ3AMNX.js";import c from"./JKIESH74.js";import b from"./QNNGPA3Q.js";import"./ONQ6JSBJ.js";import{v as i,z as r}from"./6TA5KFAQ.js";import"./R74ZHFA6.js";import"./7VAQUCBU.js";import"./VOKXKU7M.js";import"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([,,,,,,,,,,,,,,,,,,,,,s])=>{var t=class extends i{constructor(){super(...arguments),this.agent=s}static{this.properties={referenceElement:1}}#t;#i;getContext(){if(!this.#t)throw new Error("arcgis-assistant-data-exploration-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=o(this,"arcgis-assistant-data-exploration-agent"),this.#i=a(this)}disconnectedCallback(){this.#i?.unregister(this.agent.id),super.disconnectedCallback()}};r("arcgis-assistant-data-exploration-agent",t);return t},"identity/IdentityManager","portal/Portal","request","config","core/reactiveUtils","layers/FeatureLayer","views/LinkChartView","rest/knowledgeGraphService",b,c,d,e,f,g,h,j,k,l,m,n,p,q)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./
|
|
2
|
+
import{a}from"./K2R6XVK3.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export{a as goToScaleTool};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./U2D53TAX.js";import"./34O57OGV.js";import"./FDOMMK2M.js";import a from"./QNNGPA3Q.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([,a])=>{return a},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./
|
|
2
|
+
import{a}from"./VLLZ2FFU.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export{a as goToFeaturesTool};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./KWD2ECTM.js";import a from"./CCC6LBMY.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([,a])=>{return a},a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./6HF36IKA.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([a])=>{return a},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as D,c as M}from"./V6HOUZPZ.js";import"./3UEKINYC.js";import"./RLEHNAIA.js";import d from"./FAR3DFFK.js";import"./CP5BVGJU.js";import b from"./OWTGH34K.js";import{a as R,b as F,e as W}from"./ZLWWWTH4.js";import a from"./AT4XVTJR.js";import{e as q}from"./7M6VKBTK.js";import{v as P,z as I}from"./6TA5KFAQ.js";import"./R74ZHFA6.js";import"./7VAQUCBU.js";import"./HHFNQR6Z.js";import"./VOKXKU7M.js";import{W as C,ka as v}from"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import{Dd as c}from"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([z,U,{property:n,subclass:l},O,N,,,,,,,L,$])=>{var X=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,y=(t,e,o,s)=>{for(var r=s>1?void 0:s?Y(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&X(e,o,r),r},p=class extends N{constructor(t){super(t)}static fromJSON(t){return new p({id:t.id,sourceAnchorId:t.source_anchor_id,sourceNodeId:t.source_node_id,targetAnchorId:t.target_anchor_id,targetNodeId:t.target_node_id})}};y([n()],p.prototype,"id",2);y([n()],p.prototype,"sourceAnchorId",2);y([n()],p.prototype,"sourceNodeId",2);y([n()],p.prototype,"targetAnchorId",2);y([n()],p.prototype,"targetNodeId",2);p=y([l("Edge")],p);var tt=Object.defineProperty,et=Object.getOwnPropertyDescriptor,S=(t,e,o,s)=>{for(var r=s>1?void 0:s?et(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&tt(e,o,r),r},m=class extends N{constructor(t){super(t)}async load(){return await Promise.resolve(this)}compile(t){return{runtimeNode:this.createRuntimeNode(),edges:t.outgoingEdges.map(e=>({from:this.id,to:e.targetNodeId}))}}static fromJSON(t){throw new Error("BaseNode is abstract and cannot be instantiated directly.")}};S([n()],m.prototype,"id",2);S([n()],m.prototype,"label",2);S([n()],m.prototype,"type",2);m=S([l("BaseNode")],m);var rt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,E=(t,e,o,s)=>{for(var r=s>1?void 0:s?ot(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&rt(e,o,r),r},d=class extends N{constructor(t){super(t),this.messages=[]}static fromJSON(t){let e=d._normalizeMessages(t.messages);return new d({id:t.id,messages:e})}static _normalizeMessages(t){return Array.isArray(t)?t.filter(e=>typeof e.content=="string").map(e=>({content:e.content,role:e.role??"system"})):[]}};E([n()],d.prototype,"id",2);E([n()],d.prototype,"messages",2);d=E([l("Prompt")],d);function G(t){let e=new Set(t.required),o=Object.fromEntries(Object.entries(t.properties).map(([s,r])=>{let a=B(r);return[s,e.has(s)?a:a.optional()]}));return c.object(o)}function B(t){let e;switch(t.type){case"array":e=c.array(t.items?B(t.items):c.unknown());break;case"boolean":e=c.boolean();break;case"number":e=c.number();break;case"object":e=G({properties:t.properties??{},required:t.required});break;case"string":e=t.enum?.length?c.enum(t.enum):c.string();break}return t.description?e.describe(t.description):e}var st=new Map([["clear_filters",async()=>(await import("./QRHZXLZN.js")).clearFiltersTool],["reset_map",async()=>(await import("./RADWN4ZP.js")).resetMapTool],["set_feature_effect",async()=>(await import("./7E2QMWK6.js").then(m=>m.default.then(e=>({setFeatureEffectTool:e})))).setFeatureEffectTool],["list_layer_fields",async()=>(await import("./I6PD2HSL.js")).listLayerFieldsTool],["go_to_address",async()=>(await import("./5WLNL4HZ.js").then(m=>m.default.then(e=>({goToAddressTool:e})))).goToAddressTool],["go_to_bookmark",async()=>(await import("./GRHIFCQX.js")).goToBookmarkTool],["go_to_features",async()=>(await import("./WMZ24LWS.js")).goToFeaturesTool],["go_to_full_extent",async()=>(await import("./K335IAIE.js").then(m=>m.default.then(e=>({goToFullExtentTool:e})))).goToFullExtentTool],["go_to_home_extent",async()=>(await import("./TKYI5QRL.js")).goToHomeExtentTool],["go_to_layer",async()=>(await import("./5DVRVY4L.js")).goToLayerTool],["go_to_scale",async()=>(await import("./MM33KJPF.js")).goToScaleTool],["go_to_viewpoint",async()=>(await import("./IDUC4CPV.js").then(m=>m.default.then(e=>({goToViewpointTool:e})))).goToViewpointTool],["go_to_zoom",async()=>(await import("./K33MZ726.js")).goToZoomTool],["get_attribute",async()=>(await import("./5R6QUF5B.js").then(m=>m.default.then(e=>({getAttributeTool:e})))).getAttributeTool],["get_statistics",async()=>(await import("./66SKMECC.js").then(m=>m.default.then(e=>({getStatisticsTool:e})))).getStatisticsTool],["get_top_features",async()=>(await import("./CWD37QFT.js").then(m=>m.default.then(e=>({getTopFeaturesTool:e})))).getTopFeaturesTool],["query_features",async()=>(await import("./HZ5ARNAM.js").then(m=>m.default.then(e=>({queryFeaturesTool:e})))).queryFeaturesTool]]);async function at(t){let e=st.get(t);if(!e)throw new Error(`ArcGIS tool is not supported in the browser runtime: ${t}`);return await e()}var it=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,T=(t,e,o,s)=>{for(var r=s>1?void 0:s?nt(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&it(e,o,r),r},g=class extends N{constructor(t){super(t),this.type="arcgis-tool"}async createRuntimeTools(){if(!this.name)throw new Error("ArcgisTool name is required");return[await at(this.name)]}static fromJSON(t){return new g({name:t.name,requireApproval:t.require_approval})}};T([n()],g.prototype,"name",2);T([n()],g.prototype,"requireApproval",2);T([n()],g.prototype,"type",2);g=T([l("ArcgisTool")],g);var ct=Object.defineProperty,pt=Object.getOwnPropertyDescriptor,H=t=>{throw TypeError(t)},b=(t,e,o,s)=>{for(var r=s>1?void 0:s?pt(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&ct(e,o,r),r},mt=(t,e,o)=>e.has(t)||H("Cannot "+o),dt=(t,e,o)=>e.has(t)?H("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),ut=(t,e,o)=>(mt(t,e,"access private method"),o),j,V,u=class extends m{constructor(t){super(t),dt(this,j),this.type="agent-node"}createRuntimeNode(){let t;return async(e,o)=>{t??=ut(this,j,V).call(this);let s=await(await t).run(e,o),r=this.outputSchema?.safeParse(s);if(r&&!r.success)throw r.error;let a=r?.data,i=a??s.outputMessage;return{agentExecutionContext:s.agentExecutionContext,...a?{}:{outputMessage:s.outputMessage},status:s.status,summary:s.summary,nodes:{[this.id]:{output:i}}}}}compile(t){let e=t.outgoingEdges[0]?.targetNodeId;return{runtimeNode:this.createRuntimeNode(),edges:[{from:this.id,decide:o=>o.status==="failed"?void 0:e}],schemas:[c.object({output:this.outputSchema??c.string()})]}}static fromJSON(t){let e=new u({id:t.id,label:t.label,type:"agent-node"});return t.prompt&&(typeof t.prompt=="string"?e.prompt=d.fromJSON({id:`prompt_${t.id}`,type:"plain_text",messages:[{content:t.prompt,role:"system"}]}):e.prompt=d.fromJSON(t.prompt)),t.structured_output&&(e.outputSchema=G(t.structured_output)),e.tools=t.tools?.filter(o=>o.type==="arcgis_tool").map(o=>g.fromJSON(o)),e}};j=new WeakSet;V=async function(){let t=this.prompt?.messages?.[0].content;if(!t?.trim())throw new Error(`WebAgent agent node "${this.id}" requires a prompt.`);let e=[];if(this.tools)for(let o of this.tools){let s=await o.createRuntimeTools();e.push(...s)}return new $({name:this.id,outputSchema:this.outputSchema,prompt:t,tools:e})};b([n()],u.prototype,"type",2);b([n()],u.prototype,"prompt",2);b([n()],u.prototype,"outputSchema",2);b([n()],u.prototype,"tools",2);u=b([l("AgentNode")],u);var lt=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,k=(t,e,o,s)=>{for(var r=s>1?void 0:s?gt(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&<(e,o,r),r},h=class extends m{constructor(t){super(t),this.type="end-message-node"}createRuntimeNode(){return async t=>{let e=await C.fromTemplate(this.message,{templateFormat:"mustache"}).format(t);return{outputMessage:e,status:"success",summary:e}}}compile(t){return{runtimeNode:this.createRuntimeNode(),edges:[]}}static fromJSON(t){let e=new h({id:t.id,label:t.label,type:"end-message-node"});return e.message=t.message,e}};k([n()],h.prototype,"type",2);k([n()],h.prototype,"message",2);h=k([l("EndMessageNode")],h);var ht=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,Z=(t,e,o,s)=>{for(var r=s>1?void 0:s?ft(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&ht(e,o,r),r},w=class extends m{constructor(t){super(t),this.type="start-node"}createRuntimeNode(){return t=>({question:t.agentExecutionContext.userRequest})}static fromJSON(t){return new w({id:t.id,label:t.label,type:"start-node"})}};Z([n()],w.prototype,"type",2);w=Z([l("StartNode")],w);function yt(t){switch(t.type){case"agent_node":return u.fromJSON(t);case"end_message_node":return h.fromJSON(t);case"start_node":return w.fromJSON(t);default:throw new Error(`WebAgent node "${t.id}" uses unsupported type "${t.type}".`)}}function wt(t={}){let e=Object.keys(t);if(R(e),e.includes("nodes"))throw new Error("node state cannot define reserved field: nodes.");let o=F(t);return v.Root({...o,nodes:v({reducer:(s,r)=>({...s,...r}),default:()=>({})}),...q()})}function K(t){let e=new Set;for(let s of t)for(let r of Object.keys(s.shape??{}))r!=="nodes"&&e.add(r);let o=Object.fromEntries([...e].map(s=>[s,void 0]));return wt(o)}var A=class t{constructor(e,o,s){this.sourceJSON=e,this.edges=o,this.nodes=s,this._loaded=!1}static fromJSON(e){return new t(e,e.graph.edges.map(o=>p.fromJSON(o)),e.graph.nodes.map(o=>yt(o)))}async load(){return this._loadPromise??=Promise.all(this.nodes.map(async e=>await e.load())).then(()=>{this._loaded=!0}),await this._loadPromise,this}getSchemas(){let e=Object.fromEntries(this._getNodeCompilations().flatMap((o,s)=>{let r=this.nodes[s];return o.schemas?.map(a=>[r.id,a])??[]}));return[c.object({loopCounts:c.record(c.string(),c.number()).optional(),nodes:c.object(e).partial().optional(),question:c.string().optional()})]}generate(){this._assertLoaded(),this._nodeCompilations=void 0;let e=this._getNodeCompilations(),o=K(this.getSchemas()),s=this.nodes.find(i=>i.type==="start-node")?.id,r={},a=[];for(let[i,Q]of this.nodes.entries()){let _=e[i];_&&(_.runtimeNode&&(r[Q.id]=_.runtimeNode),a.push(..._.edges))}return{createGraph:()=>W(r,a,o,{entryNode:s}),workspace:o}}_assertLoaded(){if(!this._loaded)throw new Error("AgenticWorkflowRuntime must be loaded before it can generate a graph.")}_getNodeCompilations(){return this._assertLoaded(),this._nodeCompilations??=this.nodes.map(e=>e.compile({outgoingEdges:this.edges.filter(o=>o.sourceNodeId===e.id)}))}},bt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,x=(t,e,o,s)=>{for(var r=s>1?void 0:s?_t(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&bt(e,o,r),r},Ot=()=>{throw new Error("WebAgent must be loaded before it can run.")},f=class extends L{constructor(t){super(t)}async load(){if(this.portalItem){try{await this.portalItem.load()}catch(o){throw new O("web-agent:load-portal-item","Failed to load portal item",{error:o})}let e=await this.portalItem.fetchData();if(this.sourceJSON=e,!this.portalItem.title)throw new O("web-agent:missing-title","The portal item is missing a title")}if(!this.sourceJSON)throw new O("web-agent:missing-source-json","The source JSON is missing");if(!this.sourceJSON.description)throw new O("web-agent:missing-description","The source JSON is missing a description");let t=A.fromJSON(this.sourceJSON);return await t.load(),this._runtime=t,this.description=this.sourceJSON.description,this.name=this.portalItem?.title??`web-agent-${Date.now()}`,this.generate(),this}getSchemas(){return this._runtime?.getSchemas()??[]}generate(){if(!this._runtime){this._set("workspace",K([])),this._set("createGraph",Ot);return}let{createGraph:t,workspace:e}=this._runtime.generate();this._set("workspace",e),this._set("createGraph",t)}};x([n({type:z})],f.prototype,"portalItem",2);x([n()],f.prototype,"sourceJSON",2);f=x([l("WebAgent")],f);var J=class extends P{static{this.properties={agent:0,context:0,itemId:1,workflow:0}}#t;async getContext(){return D(this.context)?await this.context():this.context}async load(){let e;if(this.itemId){let o=U.getDefault();e=new f({portalItem:new z({id:this.itemId,portal:o})})}else this.workflow&&(e=new f({sourceJSON:this.workflow}));if(e&&(await e.load(),this.agent=e.registration),!this.agent)throw new Error("Failed to initialize the assistant agent because the agent registration is missing.");this.#t=M(this)}disconnectedCallback(){this.#t?.unregister(this.agent.id),super.disconnectedCallback()}};I("arcgis-assistant-agent",J);return J},"portal/PortalItem","portal/Portal","core/accessorSupport/decorators","core/Error","core/Accessor","identity/IdentityManager","request","config","core/reactiveUtils","layers/FeatureLayer",a,b,d)
|
|
2
|
+
import{b as D,c as M}from"./YLGKKWZK.js";import"./MMHDT4KV.js";import"./RLEHNAIA.js";import d from"./FAR3DFFK.js";import"./CP5BVGJU.js";import b from"./OWTGH34K.js";import{a as R,b as F,e as W}from"./ZLWWWTH4.js";import a from"./AT4XVTJR.js";import{e as q}from"./7M6VKBTK.js";import{v as P,z as I}from"./6TA5KFAQ.js";import"./R74ZHFA6.js";import"./7VAQUCBU.js";import"./HHFNQR6Z.js";import"./VOKXKU7M.js";import{W as C,ka as v}from"./EWLXNGKH.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import{Dd as c}from"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([z,U,{property:n,subclass:l},O,N,,,,,,,L,$])=>{var X=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,y=(t,e,o,s)=>{for(var r=s>1?void 0:s?Y(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&X(e,o,r),r},p=class extends N{constructor(t){super(t)}static fromJSON(t){return new p({id:t.id,sourceAnchorId:t.source_anchor_id,sourceNodeId:t.source_node_id,targetAnchorId:t.target_anchor_id,targetNodeId:t.target_node_id})}};y([n()],p.prototype,"id",2);y([n()],p.prototype,"sourceAnchorId",2);y([n()],p.prototype,"sourceNodeId",2);y([n()],p.prototype,"targetAnchorId",2);y([n()],p.prototype,"targetNodeId",2);p=y([l("Edge")],p);var tt=Object.defineProperty,et=Object.getOwnPropertyDescriptor,S=(t,e,o,s)=>{for(var r=s>1?void 0:s?et(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&tt(e,o,r),r},m=class extends N{constructor(t){super(t)}async load(){return await Promise.resolve(this)}compile(t){return{runtimeNode:this.createRuntimeNode(),edges:t.outgoingEdges.map(e=>({from:this.id,to:e.targetNodeId}))}}static fromJSON(t){throw new Error("BaseNode is abstract and cannot be instantiated directly.")}};S([n()],m.prototype,"id",2);S([n()],m.prototype,"label",2);S([n()],m.prototype,"type",2);m=S([l("BaseNode")],m);var rt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,E=(t,e,o,s)=>{for(var r=s>1?void 0:s?ot(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&rt(e,o,r),r},d=class extends N{constructor(t){super(t),this.messages=[]}static fromJSON(t){let e=d._normalizeMessages(t.messages);return new d({id:t.id,messages:e})}static _normalizeMessages(t){return Array.isArray(t)?t.filter(e=>typeof e.content=="string").map(e=>({content:e.content,role:e.role??"system"})):[]}};E([n()],d.prototype,"id",2);E([n()],d.prototype,"messages",2);d=E([l("Prompt")],d);function G(t){let e=new Set(t.required),o=Object.fromEntries(Object.entries(t.properties).map(([s,r])=>{let a=B(r);return[s,e.has(s)?a:a.optional()]}));return c.object(o)}function B(t){let e;switch(t.type){case"array":e=c.array(t.items?B(t.items):c.unknown());break;case"boolean":e=c.boolean();break;case"number":e=c.number();break;case"object":e=G({properties:t.properties??{},required:t.required});break;case"string":e=t.enum?.length?c.enum(t.enum):c.string();break}return t.description?e.describe(t.description):e}var st=new Map([["clear_filters",async()=>(await import("./RBE55SWR.js")).clearFiltersTool],["reset_map",async()=>(await import("./T4RIGOXB.js")).resetMapTool],["set_feature_effect",async()=>(await import("./UHZG7SKO.js").then(m=>m.default.then(e=>({setFeatureEffectTool:e})))).setFeatureEffectTool],["list_layer_fields",async()=>(await import("./CJMUJXPL.js")).listLayerFieldsTool],["go_to_address",async()=>(await import("./7ZFAFKJT.js").then(m=>m.default.then(e=>({goToAddressTool:e})))).goToAddressTool],["go_to_bookmark",async()=>(await import("./2EY3BQQX.js")).goToBookmarkTool],["go_to_features",async()=>(await import("./5X7EG7D2.js")).goToFeaturesTool],["go_to_full_extent",async()=>(await import("./YLVJA4ZE.js").then(m=>m.default.then(e=>({goToFullExtentTool:e})))).goToFullExtentTool],["go_to_home_extent",async()=>(await import("./JO5ETMPS.js")).goToHomeExtentTool],["go_to_layer",async()=>(await import("./Q57QWN5W.js")).goToLayerTool],["go_to_scale",async()=>(await import("./4OGR5QKS.js")).goToScaleTool],["go_to_viewpoint",async()=>(await import("./ZOEMBHRF.js").then(m=>m.default.then(e=>({goToViewpointTool:e})))).goToViewpointTool],["go_to_zoom",async()=>(await import("./PUHRBGKB.js")).goToZoomTool],["get_attribute",async()=>(await import("./7V6OSTFC.js").then(m=>m.default.then(e=>({getAttributeTool:e})))).getAttributeTool],["get_statistics",async()=>(await import("./4WIDLQUH.js").then(m=>m.default.then(e=>({getStatisticsTool:e})))).getStatisticsTool],["get_top_features",async()=>(await import("./GFEOVHJK.js").then(m=>m.default.then(e=>({getTopFeaturesTool:e})))).getTopFeaturesTool],["query_features",async()=>(await import("./CZM4URK7.js").then(m=>m.default.then(e=>({queryFeaturesTool:e})))).queryFeaturesTool]]);async function at(t){let e=st.get(t);if(!e)throw new Error(`ArcGIS tool is not supported in the browser runtime: ${t}`);return await e()}var it=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,T=(t,e,o,s)=>{for(var r=s>1?void 0:s?nt(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&it(e,o,r),r},g=class extends N{constructor(t){super(t),this.type="arcgis-tool"}async createRuntimeTools(){if(!this.name)throw new Error("ArcgisTool name is required");return[await at(this.name)]}static fromJSON(t){return new g({name:t.name,requireApproval:t.require_approval})}};T([n()],g.prototype,"name",2);T([n()],g.prototype,"requireApproval",2);T([n()],g.prototype,"type",2);g=T([l("ArcgisTool")],g);var ct=Object.defineProperty,pt=Object.getOwnPropertyDescriptor,H=t=>{throw TypeError(t)},b=(t,e,o,s)=>{for(var r=s>1?void 0:s?pt(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&ct(e,o,r),r},mt=(t,e,o)=>e.has(t)||H("Cannot "+o),dt=(t,e,o)=>e.has(t)?H("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),ut=(t,e,o)=>(mt(t,e,"access private method"),o),j,V,u=class extends m{constructor(t){super(t),dt(this,j),this.type="agent-node"}createRuntimeNode(){let t;return async(e,o)=>{t??=ut(this,j,V).call(this);let s=await(await t).run(e,o),r=this.outputSchema?.safeParse(s);if(r&&!r.success)throw r.error;let a=r?.data,i=a??s.outputMessage;return{agentExecutionContext:s.agentExecutionContext,...a?{}:{outputMessage:s.outputMessage},status:s.status,summary:s.summary,nodes:{[this.id]:{output:i}}}}}compile(t){let e=t.outgoingEdges[0]?.targetNodeId;return{runtimeNode:this.createRuntimeNode(),edges:[{from:this.id,decide:o=>o.status==="failed"?void 0:e}],schemas:[c.object({output:this.outputSchema??c.string()})]}}static fromJSON(t){let e=new u({id:t.id,label:t.label,type:"agent-node"});return t.prompt&&(typeof t.prompt=="string"?e.prompt=d.fromJSON({id:`prompt_${t.id}`,type:"plain_text",messages:[{content:t.prompt,role:"system"}]}):e.prompt=d.fromJSON(t.prompt)),t.structured_output&&(e.outputSchema=G(t.structured_output)),e.tools=t.tools?.filter(o=>o.type==="arcgis_tool").map(o=>g.fromJSON(o)),e}};j=new WeakSet;V=async function(){let t=this.prompt?.messages?.[0].content;if(!t?.trim())throw new Error(`WebAgent agent node "${this.id}" requires a prompt.`);let e=[];if(this.tools)for(let o of this.tools){let s=await o.createRuntimeTools();e.push(...s)}return new $({name:this.id,outputSchema:this.outputSchema,prompt:t,tools:e})};b([n()],u.prototype,"type",2);b([n()],u.prototype,"prompt",2);b([n()],u.prototype,"outputSchema",2);b([n()],u.prototype,"tools",2);u=b([l("AgentNode")],u);var lt=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,k=(t,e,o,s)=>{for(var r=s>1?void 0:s?gt(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&<(e,o,r),r},h=class extends m{constructor(t){super(t),this.type="end-message-node"}createRuntimeNode(){return async t=>{let e=await C.fromTemplate(this.message,{templateFormat:"mustache"}).format(t);return{outputMessage:e,status:"success",summary:e}}}compile(t){return{runtimeNode:this.createRuntimeNode(),edges:[]}}static fromJSON(t){let e=new h({id:t.id,label:t.label,type:"end-message-node"});return e.message=t.message,e}};k([n()],h.prototype,"type",2);k([n()],h.prototype,"message",2);h=k([l("EndMessageNode")],h);var ht=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,Z=(t,e,o,s)=>{for(var r=s>1?void 0:s?ft(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&ht(e,o,r),r},w=class extends m{constructor(t){super(t),this.type="start-node"}createRuntimeNode(){return t=>({question:t.agentExecutionContext.userRequest})}static fromJSON(t){return new w({id:t.id,label:t.label,type:"start-node"})}};Z([n()],w.prototype,"type",2);w=Z([l("StartNode")],w);function yt(t){switch(t.type){case"agent_node":return u.fromJSON(t);case"end_message_node":return h.fromJSON(t);case"start_node":return w.fromJSON(t);default:throw new Error(`WebAgent node "${t.id}" uses unsupported type "${t.type}".`)}}function wt(t={}){let e=Object.keys(t);if(R(e),e.includes("nodes"))throw new Error("node state cannot define reserved field: nodes.");let o=F(t);return v.Root({...o,nodes:v({reducer:(s,r)=>({...s,...r}),default:()=>({})}),...q()})}function K(t){let e=new Set;for(let s of t)for(let r of Object.keys(s.shape??{}))r!=="nodes"&&e.add(r);let o=Object.fromEntries([...e].map(s=>[s,void 0]));return wt(o)}var A=class t{constructor(e,o,s){this.sourceJSON=e,this.edges=o,this.nodes=s,this._loaded=!1}static fromJSON(e){return new t(e,e.graph.edges.map(o=>p.fromJSON(o)),e.graph.nodes.map(o=>yt(o)))}async load(){return this._loadPromise??=Promise.all(this.nodes.map(async e=>await e.load())).then(()=>{this._loaded=!0}),await this._loadPromise,this}getSchemas(){let e=Object.fromEntries(this._getNodeCompilations().flatMap((o,s)=>{let r=this.nodes[s];return o.schemas?.map(a=>[r.id,a])??[]}));return[c.object({loopCounts:c.record(c.string(),c.number()).optional(),nodes:c.object(e).partial().optional(),question:c.string().optional()})]}generate(){this._assertLoaded(),this._nodeCompilations=void 0;let e=this._getNodeCompilations(),o=K(this.getSchemas()),s=this.nodes.find(i=>i.type==="start-node")?.id,r={},a=[];for(let[i,Q]of this.nodes.entries()){let _=e[i];_&&(_.runtimeNode&&(r[Q.id]=_.runtimeNode),a.push(..._.edges))}return{createGraph:()=>W(r,a,o,{entryNode:s}),workspace:o}}_assertLoaded(){if(!this._loaded)throw new Error("AgenticWorkflowRuntime must be loaded before it can generate a graph.")}_getNodeCompilations(){return this._assertLoaded(),this._nodeCompilations??=this.nodes.map(e=>e.compile({outgoingEdges:this.edges.filter(o=>o.sourceNodeId===e.id)}))}},bt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,x=(t,e,o,s)=>{for(var r=s>1?void 0:s?_t(e,o):e,a=t.length-1,i;a>=0;a--)(i=t[a])&&(r=(s?i(e,o,r):i(r))||r);return s&&r&&bt(e,o,r),r},Ot=()=>{throw new Error("WebAgent must be loaded before it can run.")},f=class extends L{constructor(t){super(t)}async load(){if(this.portalItem){try{await this.portalItem.load()}catch(o){throw new O("web-agent:load-portal-item","Failed to load portal item",{error:o})}let e=await this.portalItem.fetchData();if(this.sourceJSON=e,!this.portalItem.title)throw new O("web-agent:missing-title","The portal item is missing a title")}if(!this.sourceJSON)throw new O("web-agent:missing-source-json","The source JSON is missing");if(!this.sourceJSON.description)throw new O("web-agent:missing-description","The source JSON is missing a description");let t=A.fromJSON(this.sourceJSON);return await t.load(),this._runtime=t,this.description=this.sourceJSON.description,this.name=this.portalItem?.title??`web-agent-${Date.now()}`,this.generate(),this}getSchemas(){return this._runtime?.getSchemas()??[]}generate(){if(!this._runtime){this._set("workspace",K([])),this._set("createGraph",Ot);return}let{createGraph:t,workspace:e}=this._runtime.generate();this._set("workspace",e),this._set("createGraph",t)}};x([n({type:z})],f.prototype,"portalItem",2);x([n()],f.prototype,"sourceJSON",2);f=x([l("WebAgent")],f);var J=class extends P{static{this.properties={agent:0,context:0,itemId:1,workflow:0}}#t;async getContext(){return D(this.context)?await this.context():this.context}async load(){let e;if(this.itemId){let o=U.getDefault();e=new f({portalItem:new z({id:this.itemId,portal:o})})}else this.workflow&&(e=new f({sourceJSON:this.workflow}));if(e&&(await e.load(),this.agent=e.registration),!this.agent)throw new Error("Failed to initialize the assistant agent because the agent registration is missing.");this.#t=M(this)}disconnectedCallback(){this.#t?.unregister(this.agent.id),super.disconnectedCallback()}};I("arcgis-assistant-agent",J);return J},"portal/PortalItem","portal/Portal","core/accessorSupport/decorators","core/Error","core/Accessor","identity/IdentityManager","request","config","core/reactiveUtils","layers/FeatureLayer",a,b,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./
|
|
2
|
+
import{a}from"./7SRLZQVC.js";import"./FDOMMK2M.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export{a as listLayerFieldsTool};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./V52XWEGV.js";import b from"./CCC6LBMY.js";import"./34O57OGV.js";import a from"./QNNGPA3Q.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import d from"./ONMNQBPO.js";import c from"./
|
|
2
|
+
import d from"./ONMNQBPO.js";import c from"./TYZ3FRGW.js";import b from"./CCC6LBMY.js";import{a as y}from"./FDOMMK2M.js";import a from"./AT4XVTJR.js";import{a as k}from"./ONQ6JSBJ.js";import{a as n}from"./7VAQUCBU.js";import{Ya as N,a as $,b as S}from"./EWLXNGKH.js";import{ea as C}from"./AI6DYOKR.js";export default $arcgis.t(([,,,,,,U,W,{n:A,p:T},{a:M},{a:V,c:w,d:R,e:z,r:L,s:D,t:F,u:O},b])=>{var B=async(e,t)=>(await n({text:"Exiting Data Exploration agent"},t),e),H=async(e,t)=>{await n({text:"Requesting LLM for layer filter results"},t);let a=await w("data_explore_filter_prompt");if(!t?.configurable)throw new Error("config.configurable is required for layer filter tools");let{userTimezone:d,userTimezoneOffset:o}=M(),s={layerFieldInfo:e.layerFieldInfo,userTimezone:d,userTimezoneOffset:o,queryResponse:e.queryResponse,assignedTask:e.agentExecutionContext.assignedTask,userRequest:e.agentExecutionContext.userRequest,priorSteps:e.agentExecutionContext.priorSteps},i=await T({promptText:a,modelTier:"advanced",config:t,messages:e.dataExplorationMessages,inputVariables:s,tools:F}),r=[...e.dataExplorationMessages,i];if(!((i.tool_calls?.length??0)>0))return await n({text:"LLM determined no filter changes needed"},t),{...e,dataExplorationMessages:r};let c=r,l=i.content.toString();return await b(i,t),{...e,dataExplorationMessages:c,outputMessage:l}},J=async(e,t)=>{await n({text:"Requesting LLM for layer query results"},t);let a=await w("data_explore_query_prompt");if(!t?.configurable)throw new Error("config.configurable is required for layer query tools");let{userTimezone:d,userTimezoneOffset:o}=M(),s=e.agentExecutionContext.sharedState,i=s.lastNavigatedFeatures?.value,r=s.lastResolvedLocation?.value,c="none";if(i!=null)try{c=JSON.stringify(i)}catch{c="none"}let l="none";if(r!=null)try{l=JSON.stringify({address:r.address,location:r.location})}catch{l="none"}let g={layerFieldInfo:e.layerFieldInfo,userTimezone:d,userTimezoneOffset:o,assignedTask:e.agentExecutionContext.assignedTask,userRequest:e.agentExecutionContext.userRequest,priorSteps:e.agentExecutionContext.priorSteps,lastNavigatedFeatures:c,lastResolvedLocation:l},m=await T({promptText:a,modelTier:"advanced",config:t,messages:e.dataExplorationMessages,inputVariables:g,tools:D}),h=(m.tool_calls?.length??0)>0,f=m.content.toString();return await b(m,t),{...e,dataExplorationMessages:[...e.dataExplorationMessages,m],...h?{}:{outputMessage:f},status:"success",summary:f&&!h?R(f):"Query planning completed."}},P=async(e,t)=>{try{await n({text:"Requesting LLM for summary on query results"},t);let a=await w("summarize_query_response_prompt"),d={queryResponse:e.queryResponse,assignedTask:e.agentExecutionContext.assignedTask,userRequest:e.agentExecutionContext.userRequest,priorSteps:e.agentExecutionContext.priorSteps},o=await A({promptText:a,modelTier:"fast",config:t,messages:e.dataExplorationMessages,inputVariables:d}),s=typeof o=="string"?o:o.content,i=new C(s);await n({text:`Received response from LLM: ${s}`},t);let r=s;return{...e,outputMessage:r,status:"success",summary:r?R(r):"Summary generated.",dataExplorationMessages:[...e.dataExplorationMessages,i]}}catch(a){throw await n({text:"Error during filter LLM request"},t),new Error(`Error during filter LLM request: ${a instanceof Error?a.message:String(a)}`)}};async function K(e,t){if((e.queryResponse??[]).some(d=>{let o=d.details;return typeof o=="object"&&o!==null&&"error"in o}))return await n({text:"Skipping layer filter tool because query response contains an error."},t),{...e};let a=await new V(F,{handleToolErrors:!1}).invoke({messages:e.dataExplorationMessages},t);return await n({text:`Finished executing layer filter tool: ${a.messages.map(d=>d.content).join(", ")}`},t),{...e}}var X=10,Y=["string","small-integer","integer"],Z=async(e,t,{includeSummaryStatistics:a=!0,includeUniqueValues:d=!0}={})=>{let o=null,s=null;try{if(t.type!=="geometry"&&t.type!=="oid"&&t.type!=="global-id"){a&&(o=await U({layer:e,field:t.name}));let i=t.domain?.type==="coded-value"?t.domain:null;d&&(Y.includes(t.type)||i)&&(s=(await W({layer:e,field:t.name})).uniqueValueInfos.sort((r,c)=>c.count-r.count).slice(0,X),i&&(s=s.map(r=>({...r,value:i.getName(r.value)??r.value}))))}}catch(i){console.error(`Error fetching statistics for field ${t.name}:`,i)}return{summaryStatistics:o,uniqueValues:s}};function ee(e,t){return["string","small-integer","integer"].includes(e)||t==="coded-value"}async function te(e,t,a,d=!0){let o=[],s=[],i=[];for(let r of e){let c=function(p){let u=t.get(p)?.layerItem;return u?[u.name&&`Name: ${u.name}`,u.title&&`Title: ${u.title}`,u.description&&`Description: ${u.description}`].filter(Boolean).join(" | "):p},{layerId:l,results:g}=r,m=a.map?.allLayers.find(p=>p.id===l),h=t.get(l)?.fieldRegistry;if(!h)continue;let f=o.find(p=>p.layerId===l);f||(f={layerId:l,layerSummary:c(l),fieldInfos:[]},o.push(f));for(let p of g){let u=h.get(p.name);if(!u)continue;let x=u.statistics,v=d&&!x?.summaryStatistics,q=ee(u.type,u.domain?.type)&&!x?.uniqueValues,_=v||q;if(i.push({layerId:l,fieldName:u.name,didFetchStatistics:_}),_){let G=Z(m,u,{includeSummaryStatistics:v,includeUniqueValues:q}).then(I=>{let E={summaryStatistics:x?.summaryStatistics??null,uniqueValues:x?.uniqueValues??null};v&&(E.summaryStatistics=I.summaryStatistics),q&&(E.uniqueValues=I.uniqueValues),h.set(u.name,{...u,statistics:E}),u.statistics=E});s.push(G)}f.fieldInfos.push(u)}}return await Promise.all(s),{layerFieldInfo:o,didFetchStatistics:s.length>0,fieldStatisticsFetchStatus:i}}var j=/\b(average|avg|mean|median|max(?:imum)?|min(?:imum)?|sum|total|count|std(?:dev|\s*deviation)|variance|null\s*count|missing\s*values?|range)\b/iu;function ae(e,t){return j.test(e)||j.test(t)}var se=async(e,t)=>{try{await n({text:"Preparing field information for vector search results"},t);let a=y(t,"layersAndFieldsRegistry"),{mapView:d}=k(t,["mapView"]),{assignedTask:o,userRequest:s}=e.agentExecutionContext,i=ae(o,s),{layerFieldInfo:r,didFetchStatistics:c,fieldStatisticsFetchStatus:l}=await te(e.vectorSearchFieldResults,a,d,i);c?await n({text:"Statistics fetched"},t):await n({text:"Statistics skipped"},t);for(let g of l)await n({text:` - ${g.fieldName} - stats ${g.didFetchStatistics?"fetched":"skipped"}`},t);return await n({text:"Field information prepared"},t),{...e,layerFieldInfo:r}}catch(a){throw await n({text:"Error during fetching statistics"},t),new Error(`Error during fetching statistics: ${a instanceof Error?a.message:String(a)}`)}},Q=.7,re=10,ie=async(e,t)=>{try{await n({text:"Similarity search to find fields"},t);let a=y(t,"fieldSearch"),d=y(t,"layersAndFieldsRegistry"),o=y(t,"embeddingCache"),s=await a.searchFields({text:e.agentExecutionContext.assignedTask,layerIds:e.vectorSearchLayerIds,minScore:Q,topResults:re,embeddingCache:o}),i=s.map(({layerId:c,results:l})=>{let g=l.map(m=>` - ${m.name} (${m.score.toFixed(2)})`).join(`
|
|
3
3
|
`);return`${d.get(c)?.layerItem.name??c}:
|
|
4
4
|
${g}`}).join(`
|
|
5
5
|
`),r;return s.length>0?r=`Vector search completed. Matching layers and fields with scores:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./
|
|
2
|
+
import b from"./TYZ3FRGW.js";import a from"./AT4XVTJR.js";import{a as c,b as k}from"./7VAQUCBU.js";import{Ya as x,a as w,b as d,j as f}from"./EWLXNGKH.js";import{ea as u}from"./AI6DYOKR.js";export default $arcgis.t(([,,,,,,{n:_,p:b},{A:M,B:T,C:E,D:C,E:G,F:N,G:R,a:v,c:m,d:h,e:A,w:y,x:K,y:q,z:S}])=>{var z=[T,E,N,C,M,R,G];async function $(e,a){let o=await m("arcgis_knowledge_tool_prompt"),s=K(a),n={assignedTask:e.agentExecutionContext.assignedTask,userRequest:e.agentExecutionContext.userRequest,priorSteps:e.agentExecutionContext.priorSteps,contextType:s},r=await b({promptText:o,messages:e.arcgisKnowledgeMessages,inputVariables:n,tools:z,config:a}),i=(r.tool_calls?.length??0)>0,t=typeof r.text=="string"?r.text.trim():"",l=t.length>0,p=r.content.toString();return!i&&(s==="map"||s==="knowledgeGraph")?{...e,arcgisKnowledgeMessages:[...e.arcgisKnowledgeMessages,r],outputMessage:s==="map"?"No tools were found for the current view and prompt. Maps do not support changing nonspatial visibility, layout changes, or generation from queries.":"No tools were found for the current prompt and knowledge graph service. A knowledge graph service only supports search and query.",status:"success"}:{...e,arcgisKnowledgeMessages:[...e.arcgisKnowledgeMessages,r],outputMessage:i?p:t,status:i?e.status:l?"success":"failed",summary:p?h(p):"ArcGIS Knowledge Agent tool executed."}}var L={generateCypher:"generated-cypher-query",queryGraphData:"graph-query-result",searchGraphData:"graph-search-result",addRecords:"added-records",applyLayout:"applied-layout",changeNonspatialVisibility:"changed-nonspatial-visibility",createLinkChart:"created-link-chart"};function I(e){return!!e&&e.status==="success"&&!!L[e.toolName]}function D(e){return{type:L[e.toolName],data:e.details}}async function F(e,a){let o=new v(z,{handleToolErrors:!1});try{let s=await o.invoke({messages:e.arcgisKnowledgeMessages},a),n=[];for(let t of s.messages){let l;if(typeof t.content!="string")throw new Error(`Unexpected tool message content type: ${typeof t.content}. Expected string.`);try{l=JSON.parse(t.content)}catch{throw new Error(`Failed to parse tool message content as JSON. Tool: ${t.name??"unknown"}.
|
|
3
3
|
|
|
4
4
|
Original Content: ${t.content}`)}if(!l||typeof l!="object"||!("toolName"in l))throw new Error(`Parsed tool message content does not have expected structure. Parsed content: ${JSON.stringify(l)}`);n.push(l)}await c({text:`Finished executing ArcGIS Knowledge Agent tools: ${s.messages.filter(t=>t.name).map(t=>t.name).join(", ")}`},a);let r=n.filter(t=>typeof t!="string").map(t=>`- Called Tool: ${t.toolName}, Status: ${t.status}`),i=n[0];return i&&I(i)&&await k(D(i),a),{...e,outputMessage:r.join(`
|
|
5
5
|
`),summary:r.length?h(r.join(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import d from"./ONMNQBPO.js";import b from"./
|
|
2
|
+
import d from"./ONMNQBPO.js";import b from"./TYZ3FRGW.js";import{a as h}from"./7SRLZQVC.js";import{a as m}from"./FDOMMK2M.js";import a from"./AT4XVTJR.js";import{a as p}from"./7VAQUCBU.js";import{Ya as c,a as u,b as n}from"./EWLXNGKH.js";export default $arcgis.t(([,,,,,,{p:g},{a:f,c:y,d:x,e:E,v:d},S])=>{var _=[h],v=e=>{if(!e||e.size===0)return"No layers available in this map.";let t=Array.from(e.values()).map(({layerItem:r,fieldRegistry:s},o)=>{let a=Array.from(s.values()).map(i=>i.name).slice(0,10).join(", "),l=s.size>10?` (and ${s.size-10} more)`:"";return`${o+1}. "${r.title}". Description: ${r.description}
|
|
3
3
|
Fields: ${a}${l}`}).join(`
|
|
4
4
|
|
|
5
5
|
`);return`This map contains ${e.size} layer(s):
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./OAKRPM7D.js";import b from"./CCC6LBMY.js";import"./34O57OGV.js";import a from"./QNNGPA3Q.js";import"./ONQ6JSBJ.js";import"./AI6DYOKR.js";import"./VXFQANGJ.js";import"./MWYBF3F3.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|