@arcgis/portal-components 5.2.0-next.131 → 5.2.0-next.134

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.
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import c from"./HATTAFCL.js";import b from"./4RPNBHB5.js";import"./PQ75545K.js";import a from"./K4LXMVNH.js";import"./S2BGAMSA.js";import"./X4GCKBT2.js";import"./ASDS73QU.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
2
+ import c from"./XMSFS5AT.js";import b from"./4RPNBHB5.js";import"./PQ75545K.js";import a from"./K4LXMVNH.js";import"./S2BGAMSA.js";import"./X4GCKBT2.js";import"./ASDS73QU.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./UZLQALHY.js";var e='---\nname: query\ndescription: Answers questions about feature-layer data, including counts, matching records, field values, aggregates, rankings, and spatially constrained results. Use when the user asks to inspect or summarize map data.\nallowed-tools: listSharedResources findRelevantLayers findRelevantFields getAttribute getStatistics getTopFeatures queryFeatures\n---\n\n# Query\n\n- When the task refers to geometry produced by an earlier agent, call `listSharedResources` with `point`, `polyline` and `polygon` as the requested kinds. If a resource description clearly matches, pass its exact ID as `geometryFilter.sharedResourceId` and use `where: "1=1"` unless the user requests an additional attribute filter. If no resource clearly matches, state that the spatial constraint is unavailable and do not guess geometry.\n- Start with `findRelevantLayers` unless a previous tool result from this run explicitly identifies the relevant layer ID. Use the assigned task as the semantic query.\n- If no relevant layers are returned, explain that no matching map layer was found and stop. Never invent a layer ID.\n- Before querying, call `findRelevantFields` with only relevant layer IDs. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Set `includeSummaryStatistics` to true when the requested answer directly depends on whole-layer numeric summary statistics such as average, minimum, maximum, sum, variance, standard deviation, null count, or range. Otherwise leave it false and use `getStatistics` later if analysis requires statistics under an attribute or spatial constraint.\n- Use statistics returned by `findRelevantFields` when they directly answer an unfiltered whole-layer question. Use `getStatistics` when a where clause or spatial constraint must be applied.\n- Use `queryFeatures` to count, find, or list matching features. It is the default query tool.\n- Use `getTopFeatures` for highest, lowest, first, last, or top-N records ranked by an existing field.\n- Use `getAttribute` only when retrieving a particular attribute from a specifically identified feature.\n- Use real field names rather than aliases in SQL-92 where clauses. Use `1=1` when no attribute filter is requested.\n- Set `useCurrentExtent` only when the user explicitly refers to the current view or visible map area.\n- If the request asks to visually show, display, highlight, map, filter, reveal, emphasize, hide, include, or exclude matching features, preserve the information needed for a visual operation in the working context: layer ID, where clause, geometry filter, `useCurrentExtent`, object IDs when available, and count. Preserve the exact values returned or used by tools so another skill can reuse them without repeating discovery.\n- Only answer requests about the current map\'s layers, features, fields, spatial relationships, or supported map actions. Do not use general model knowledge to answer unrelated requests, even when the assigned task or user asks for it. For an unsupported request, respond only: "I can help with questions about the data and features in this map."\n- Answer the assigned question directly. Do not provide unsolicited recommendations about dataset design, publishing, classification, grouping, future analysis, or alternate workflows.\n- Ask for clarification only when the requested result is genuinely ambiguous or cannot be computed reliably from the available layers and fields.\n- Base the final answer only on returned tool data. State failures or empty results directly and do not fabricate values.\n';export{e as default};
2
+ import"./UZLQALHY.js";var e='---\nname: query\ndescription: Answers questions about feature-layer data, including counts, matching records, field values, aggregates, rankings, and spatially constrained results. Use when the user asks to inspect or summarize map data.\nallowed-tools: listSharedResources findRelevantLayers findRelevantFields getAttribute getStatistics getTopFeatures queryFeatures\n---\n\n# Query\n\n- When the task refers to geometry produced by an earlier agent, call `listSharedResources` with `point`, `polyline` and `polygon` as the requested kinds. If a resource description clearly matches, pass its exact ID as `geometryFilter.sharedResourceId` and use `where: "1=1"` unless the user requests an additional attribute filter. If no resource clearly matches, state that the spatial constraint is unavailable and do not guess geometry.\n- Start with `findRelevantLayers` unless a previous tool result from this run explicitly identifies the relevant layer ID. Use the assigned task as the semantic query.\n- If no relevant layers are returned, explain that no matching map layer was found and stop. Never invent a layer ID.\n- Before querying, call `findRelevantFields` with only relevant layer IDs. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Set `includeSummaryStatistics` to true when the requested answer directly depends on whole-layer numeric summary statistics such as average, minimum, maximum, sum, variance, standard deviation, null count, or range. Otherwise leave it false and use `getStatistics` later if analysis requires statistics under an attribute or spatial constraint.\n- Use statistics returned by `findRelevantFields` when they directly answer an unfiltered whole-layer question. Use `getStatistics` when a where clause or spatial constraint must be applied.\n- Use `queryFeatures` to count, find, or list matching features. It is the default query tool.\n- Use `getTopFeatures` for highest, lowest, earliest, latest,first, last, or top-N records ranked by an existing field. Display all the features that meet the ranking criteria, including ties at the cutoff value.\n- Use `getAttribute` only when retrieving a particular attribute from a specifically identified feature.\n- Use real field names rather than aliases in SQL-92 where clauses. Use `1=1` when no attribute filter is requested.\n- Set `useCurrentExtent` only when the user explicitly refers to the current view or visible map area.\n- If the request asks to visually show, display, highlight, map, filter, reveal, emphasize, hide, include, or exclude matching features, preserve the information needed for a visual operation in the working context: layer ID, where clause, geometry filter, `useCurrentExtent`, object IDs when available, and count. Preserve the exact values returned or used by tools so another skill can reuse them without repeating discovery.\n- Only answer requests about the current map\'s layers, features, fields, spatial relationships, or supported map actions. Do not use general model knowledge to answer unrelated requests, even when the assigned task or user asks for it. For an unsupported request, respond only: "I can help with questions about the data and features in this map."\n- Answer the assigned question directly. Do not provide unsolicited recommendations about dataset design, publishing, classification, grouping, future analysis, or alternate workflows.\n- Ask for clarification only when the requested result is genuinely ambiguous or cannot be computed reliably from the available layers and fields.\n- Base the final answer only on returned tool data. State failures or empty results directly and do not fabricate values.\n';export{e as default};
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import r from"./55FL7WQV.js";import p from"./AMBLICID.js";import{a as yr,c as wr,e as br,f as vr,g as Tr}from"./UZCHLKLO.js";import o from"./GCB5BYDM.js";import n from"./FJ3PFFCN.js";import"./VUBYPGZG.js";import l from"./RZV3CS2K.js";import k from"./PCFYL72V.js";import j from"./245E7G7N.js";import i from"./HATTAFCL.js";import h from"./4RPNBHB5.js";import"./PQ75545K.js";import"./ABIXHCPF.js";import"./BADETB57.js";import g from"./7UNUBFFC.js";import"./V75YULVA.js";import"./FHXIGKK4.js";import f from"./NXJTHWZ6.js";import"./BPQ6ZBLE.js";import"./I5C4SV6N.js";import"./KALKWPUR.js";import"./UZMFRVR5.js";import"./V5BCQN5U.js";import"./D4MCG57T.js";import e from"./I64ZE3TR.js";import c from"./K4LXMVNH.js";import{a as oo}from"./S2BGAMSA.js";import{a as d}from"./X4GCKBT2.js";import b from"./F3ODJVJC.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import{a as et,b as zo,d as ft}from"./2GBRZSEC.js";import{a as Fo}from"./JJUCB3OG.js";import"./QFHL5APV.js";import"./KCYIOVJQ.js";import"./XD3TUJLE.js";import{b as qo}from"./WMT55UQD.js";import{J as Ye,K as Xe,L as jo,h as Lo,j as se,n as Oo,w as Do}from"./EXBWPG5Y.js";import{Aa as at,Ca as Tt,Ea as nt,Fa as xt,Ga as G,J as tr,K as De,U as v,a as F,b as S,ba as vt,ea as ar,f as K,g as Go,j as q,k as B,na as nr,s as tt,va as we,wa as to,x as Wt,y as Ce,ya as Y}from"./QJ7AI54H.js";import a from"./JMZYTFZZ.js";import"./R74ZHFA6.js";import{J as or,K as rr,u as er,y as eo}from"./7PMLGJZR.js";import{$ as Bo,$b as Xt,Cb as Qo,Fb as he,Fc as x,Gb as Jo,Ic as N,K as Qt,Ob as Z,Pb as Le,Rb as Zo,S as ot,Ub as wt,W as M,Wa as Zt,Wb as Yo,Ya as Vo,Za as J,Zb as m,_a as $e,bb as Ko,bc as bt,db as Yt,ea as C,fa as Ne,fb as Wo,fc as Oe,gc as X,ha as Jt,jc as fe,lc as ye,p as Ht,qb as Pe,sb as Ho,v as Uo,va as Q,vb as yt,yb as rt,zc as Xo}from"./ASDS73QU.js";import"./UZLQALHY.js";export default $arcgis.t(([_b,Nb,Ks,Fb,Ub,Hb,Ws,ya,We,wa,,xa,,{createRenderer:gi},{getSchemesByTag:hi,getSchemes:fi},{getBackgroundColorTheme:ba},{createAgeRenderer:yi,createContinuousRenderer:wi},{getSchemesByTag:Mo},{createContinuousRenderer:bi},{createRenderer:vi},{getSchemesByTag:Ti},{createRenderer:xi},{getSchemesByTag:Si},{createRenderer:Mi},{getSchemesByTag:Ci},{createRenderer:Ei},{getSchemesByTag:Ii},{createAgeRenderer:ki,createContinuousRenderer:Ai},{createRenderer:_i},{getSchemesByTag:Ri},Ni,Sa,{fetchKnowledgeGraph:va,executeQueryStreaming:$i,executeSearchStreaming:Pi},Li,{getBindParametersFromCypherQuery:Oi},,,,,,,,,,,,,,,,,,,$a,Pa,Yc,{a:sr,c:St,d:ir},,,,,,,dr,cr,lr,,,ur,{a:hr,b:fr},{a:mr,b:pr,c:gr}])=>{var me=(e,t)=>t,ro=(e,t)=>({...e,...t}),ao=(e="",t)=>{let o=typeof t=="string"?t.trim():"";if(!o)return e;let r=e.trim();if(!r)return o;if(r===o)return e;let a=r.split(`
2
+ import r from"./55FL7WQV.js";import p from"./AMBLICID.js";import{a as yr,c as wr,e as br,f as vr,g as Tr}from"./UZCHLKLO.js";import o from"./GCB5BYDM.js";import n from"./FJ3PFFCN.js";import"./VUBYPGZG.js";import l from"./RZV3CS2K.js";import k from"./PCFYL72V.js";import j from"./245E7G7N.js";import i from"./XMSFS5AT.js";import h from"./4RPNBHB5.js";import"./PQ75545K.js";import"./ABIXHCPF.js";import"./BADETB57.js";import g from"./7UNUBFFC.js";import"./V75YULVA.js";import"./FHXIGKK4.js";import f from"./NXJTHWZ6.js";import"./BPQ6ZBLE.js";import"./I5C4SV6N.js";import"./KALKWPUR.js";import"./UZMFRVR5.js";import"./V5BCQN5U.js";import"./D4MCG57T.js";import e from"./I64ZE3TR.js";import c from"./K4LXMVNH.js";import{a as oo}from"./S2BGAMSA.js";import{a as d}from"./X4GCKBT2.js";import b from"./F3ODJVJC.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import{a as et,b as zo,d as ft}from"./2GBRZSEC.js";import{a as Fo}from"./JJUCB3OG.js";import"./QFHL5APV.js";import"./KCYIOVJQ.js";import"./XD3TUJLE.js";import{b as qo}from"./WMT55UQD.js";import{J as Ye,K as Xe,L as jo,h as Lo,j as se,n as Oo,w as Do}from"./EXBWPG5Y.js";import{Aa as at,Ca as Tt,Ea as nt,Fa as xt,Ga as G,J as tr,K as De,U as v,a as F,b as S,ba as vt,ea as ar,f as K,g as Go,j as q,k as B,na as nr,s as tt,va as we,wa as to,x as Wt,y as Ce,ya as Y}from"./QJ7AI54H.js";import a from"./JMZYTFZZ.js";import"./R74ZHFA6.js";import{J as or,K as rr,u as er,y as eo}from"./7PMLGJZR.js";import{$ as Bo,$b as Xt,Cb as Qo,Fb as he,Fc as x,Gb as Jo,Ic as N,K as Qt,Ob as Z,Pb as Le,Rb as Zo,S as ot,Ub as wt,W as M,Wa as Zt,Wb as Yo,Ya as Vo,Za as J,Zb as m,_a as $e,bb as Ko,bc as bt,db as Yt,ea as C,fa as Ne,fb as Wo,fc as Oe,gc as X,ha as Jt,jc as fe,lc as ye,p as Ht,qb as Pe,sb as Ho,v as Uo,va as Q,vb as yt,yb as rt,zc as Xo}from"./ASDS73QU.js";import"./UZLQALHY.js";export default $arcgis.t(([_b,Nb,Ks,Fb,Ub,Hb,Ws,ya,We,wa,,xa,,{createRenderer:gi},{getSchemesByTag:hi,getSchemes:fi},{getBackgroundColorTheme:ba},{createAgeRenderer:yi,createContinuousRenderer:wi},{getSchemesByTag:Mo},{createContinuousRenderer:bi},{createRenderer:vi},{getSchemesByTag:Ti},{createRenderer:xi},{getSchemesByTag:Si},{createRenderer:Mi},{getSchemesByTag:Ci},{createRenderer:Ei},{getSchemesByTag:Ii},{createAgeRenderer:ki,createContinuousRenderer:Ai},{createRenderer:_i},{getSchemesByTag:Ri},Ni,Sa,{fetchKnowledgeGraph:va,executeQueryStreaming:$i,executeSearchStreaming:Pi},Li,{getBindParametersFromCypherQuery:Oi},,,,,,,,,,,,,,,,,,,$a,Pa,Yc,{a:sr,c:St,d:ir},,,,,,,dr,cr,lr,,,ur,{a:hr,b:fr},{a:mr,b:pr,c:gr}])=>{var me=(e,t)=>t,ro=(e,t)=>({...e,...t}),ao=(e="",t)=>{let o=typeof t=="string"?t.trim():"";if(!o)return e;let r=e.trim();if(!r)return o;if(r===o)return e;let a=r.split(`
3
3
 
4
4
  `);return a[a.length-1]?.trim()===o?e:`${e}
5
5
 
@@ -66,7 +66,7 @@ Messages to summarize:
66
66
  Title: {title}
67
67
  Description: {description}`,la=`Name: {name}
68
68
  Alias: {alias}
69
- Description: {description}`,ca=x.object({schemaVersion:x.literal(aa),modified:x.number().int().nonnegative(),embeddings:x.object({modelProvider:x.literal(na),model:x.literal(sa),dimensions:x.literal(Ue),templates:x.object({layer:x.string().default(ia),field:x.string().default(la)})}),layers:x.array(x.object({id:x.string().min(1),name:x.string().min(1),title:x.string().catch(""),description:x.string().catch(""),vector:x.array(x.number()).length(Ue,{message:`Layer vector must be exactly ${Ue} dimensions`}),fields:x.array(x.object({name:x.string().min(1),alias:x.string().catch(""),description:x.string().catch(""),vector:x.array(x.number()).length(Ue,{message:`Field vector must be exactly ${Ue} dimensions`})}))})).default([])});var Bs=(e,t)=>{let o=tr.fromTemplate(e);return De.fromMessages([o,...t])};var $t=async e=>{let{promptText:t,modelTier:o="default",messages:r,inputVariables:a,schema:n,config:i}=e,s=Bs(t,r??[]),c=(await St({modelTier:o,config:i})).withStructuredOutput(n);return await s.pipe(c).invoke(a??{},i)};var Vs=d.object({name:d.string(),description:d.string(),valueType:d.string(),alias:d.string()}),Tb=d.object({fields:d.array(Vs)});var xb=d.object({title:d.string(),description:d.string(),name:d.string().nullable()});var fo=async e=>{try{return await(await ir()).embedDocuments(e)}catch(t){throw console.error("Failed to generate embeddings:",t),t}};var Hs=new Map([["clearFilters",async()=>(await import("./6PTPTTSS.js")).clearFiltersTool],["resetMap",async()=>(await import("./FPKKNRZY.js")).resetMapTool],["setFeatureEffect",async()=>(await import("./5GLUIQ7R.js").then(m=>m.default.then(e=>({setFeatureEffectTool:e})))).setFeatureEffectTool],["listLayerFields",async()=>(await import("./SGI3WLNF.js")).listLayerFieldsTool],["goToAddress",async()=>(await import("./JIOUF6RV.js").then(m=>m.default.then(e=>({goToAddressTool:e})))).goToAddressTool],["goToBookmark",async()=>(await import("./SXSWBX5T.js")).goToBookmarkTool],["goToFeatures",async()=>(await import("./XDKRJYZ2.js")).goToFeaturesTool],["goToFullExtent",async()=>(await import("./YDA23ZS6.js").then(m=>m.default.then(e=>({goToFullExtentTool:e})))).goToFullExtentTool],["goToHomeExtent",async()=>(await import("./6XRVLKAZ.js")).goToHomeExtentTool],["goToLayer",async()=>(await import("./MC3V6J4M.js")).goToLayerTool],["goToScale",async()=>(await import("./NQMXSOYA.js")).goToScaleTool],["goToViewpoint",async()=>(await import("./YYHDUC6G.js").then(m=>m.default.then(e=>({goToViewpointTool:e})))).goToViewpointTool],["goToZoom",async()=>(await import("./KEM54FSC.js")).goToZoomTool],["findRelevantFields",async()=>(await import("./6JJUORUU.js").then(m=>m.default.then(e=>({findRelevantFieldsTool:e})))).findRelevantFieldsTool],["findRelevantLayers",async()=>(await import("./XATZUXUP.js")).findRelevantLayersTool],["listSharedResources",async()=>(await import("./JZ7SSPKB.js")).listSharedResourcesTool],["getAttribute",async()=>(await import("./S772GWA3.js").then(m=>m.default.then(e=>({getAttributeTool:e})))).getAttributeTool],["getStatistics",async()=>(await import("./VLCHVVVZ.js").then(m=>m.default.then(e=>({getStatisticsTool:e})))).getStatisticsTool],["getTopFeatures",async()=>(await import("./3YJUQ54F.js").then(m=>m.default.then(e=>({getTopFeaturesTool:e})))).getTopFeaturesTool],["queryFeatures",async()=>(await import("./JB2P4KY4.js").then(m=>m.default.then(e=>({queryFeaturesTool:e})))).queryFeaturesTool]]);async function da(e){let t=Hs.get(e);if(!t)throw new Error(`"${e}" tool not found`);return await t()}var dt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Qs=["point","polyline","polygon","extent","custom"],Js=e=>typeof e=="string"&&Qs.some(t=>t===e),Zs=(e,t)=>{if(!(!dt(e)||!("value"in e))){if(dt(e.sharedStatePatch)){let o={...t.sharedStatePatch};for(let[r,a]of Object.entries(e.sharedStatePatch))dt(a)&&"value"in a&&(o[r]={value:a.value});t.sharedStatePatch=o}if(Array.isArray(e.sharedResourceAdditions))for(let o of e.sharedResourceAdditions)dt(o)&&Js(o.kind)&&typeof o.description=="string"&&"payload"in o&&t.sharedResourceAdditions.push({kind:o.kind,description:o.description,payload:o.payload})}},Ys=()=>{let e={sharedResourceAdditions:[]};return{middleware:$({name:"ToolArtifactMiddleware",afterAgent:t=>{if(delete e.sharedStatePatch,e.sharedResourceAdditions.length=0,!dt(t))return;let o=t.messages;if(Array.isArray(o)){for(let r of o)if(M.isInstance(r)&&r.status!=="error"){let a=r.artifact;Zs(a,e)}}}}),collectedEffects:e}},Xs=async e=>{let{getLocaleFromConfig:t,getStrings:o}=await import("./CGBXIK2L.js"),r=await o({path:"./assets/agents/t9n",locale:t(e)});return $({name:"TraceMiddleware",wrapModelCall:async(a,n)=>{await P({text:r.determiningNextSteps},e);try{return await n(a)}catch(i){throw await P({text:r.failedCallingModel},e),i}},wrapToolCall:async(a,n)=>{await P({text:r.callingTool.replace("{toolName}",a.toolCall.name).replace("{toolArgs}",JSON.stringify(a.toolCall.args))},e);try{return await n(a)}catch(i){throw await P({text:r.failedExecutingTool.replace("{toolName}",a.toolCall.name)},e),i}}})},ei=(e,t)=>{let o=e.get(t);if(!o)throw new Error(`Skill not found: ${t}`);return o.instructions},ti=e=>{if(e.size===0)throw new Error("At least one skill is required.");let t=[...e.keys()];return N(({name:o})=>ei(e,o),{name:"load_skill",description:"Load the detailed instructions for an available skill.",schema:d.object({name:d.enum(t)})})},oi=e=>{let t=/^---\r?\nname: (?<name>[^\r\n]+)\r?\ndescription: (?<description>[^\r\n]+)\r?\n(?:allowed-tools: (?<allowedTools>[^\r\n]+)\r?\n)?---\r?\n(?<instructions>[\s\S]+)$/u.exec(e)?.groups;if(!t?.name||!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(t.name)||t.name.length>64||!t.description||t.description.length>1024||!t.instructions)throw new Error("Invalid skill Markdown.");return{allowedTools:t.allowedTools?.split(/\s+/u)??[],name:t.name,description:t.description,instructions:t.instructions.trim()}},ri=async e=>{let t=await Promise.all(e.map(async r=>oi(await r()))),o=new Map;for(let r of t){if(o.has(r.name))throw new Error(`Skill name must be unique: ${r.name}`);o.set(r.name,r)}return o},ua="load_skill",ma=e=>typeof e=="object"&&e!==null&&"name"in e&&typeof e.name=="string"?e.name:void 0,ai=(e,t)=>{let o=t;return $({name:"ActiveSkillMiddleware",wrapModelCall:async(r,a)=>{let n=new Set([ua,...o?.allowedTools??[]]);return await a({...r,tools:r.tools.filter(i=>{let s=ma(i);return s!==void 0&&n.has(s)})})},wrapToolCall:async(r,a)=>{let n=await a(r);if(r.toolCall.name===ua){let i=ma(r.toolCall.args),s=i?e.get(i):void 0;s&&(o=s)}return n}})},ni=async(e,t={})=>{let o=new Set([...e.values()].flatMap(r=>r.allowedTools));return await Promise.all([...o].map(async r=>{let a=t[r],n=a?await a():await da(r);if(n.name!==r)throw new Error(`Skill tool "${r}" resolved to "${n.name}".`);return n}))},si=async(e,t={})=>{let o=await ri(e),r=[...o.values()];if(r.length===0)throw new Error("createSkillRuntime requires at least one skill.");let a=await ni(o,t),n=r.length===1?r[0]:void 0;return{activeSkillMiddleware:ai(o,n),skillsPrompt:n?`Active skill:
69
+ Description: {description}`,ca=x.object({schemaVersion:x.literal(aa),modified:x.number().int().nonnegative(),embeddings:x.object({modelProvider:x.literal(na),model:x.literal(sa),dimensions:x.literal(Ue),templates:x.object({layer:x.string().default(ia),field:x.string().default(la)})}),layers:x.array(x.object({id:x.string().min(1),name:x.string().min(1),title:x.string().catch(""),description:x.string().catch(""),vector:x.array(x.number()).length(Ue,{message:`Layer vector must be exactly ${Ue} dimensions`}),fields:x.array(x.object({name:x.string().min(1),alias:x.string().catch(""),description:x.string().catch(""),vector:x.array(x.number()).length(Ue,{message:`Field vector must be exactly ${Ue} dimensions`})}))})).default([])});var Bs=(e,t)=>{let o=tr.fromTemplate(e);return De.fromMessages([o,...t])};var $t=async e=>{let{promptText:t,modelTier:o="default",messages:r,inputVariables:a,schema:n,config:i}=e,s=Bs(t,r??[]),c=(await St({modelTier:o,config:i})).withStructuredOutput(n);return await s.pipe(c).invoke(a??{},i)};var Vs=d.object({name:d.string(),description:d.string(),valueType:d.string(),alias:d.string()}),Tb=d.object({fields:d.array(Vs)});var xb=d.object({title:d.string(),description:d.string(),name:d.string().nullable()});var fo=async e=>{try{return await(await ir()).embedDocuments(e)}catch(t){throw console.error("Failed to generate embeddings:",t),t}};var Hs=new Map([["clearFilters",async()=>(await import("./6PTPTTSS.js")).clearFiltersTool],["resetMap",async()=>(await import("./FPKKNRZY.js")).resetMapTool],["setFeatureEffect",async()=>(await import("./5GLUIQ7R.js").then(m=>m.default.then(e=>({setFeatureEffectTool:e})))).setFeatureEffectTool],["listLayerFields",async()=>(await import("./SGI3WLNF.js")).listLayerFieldsTool],["goToAddress",async()=>(await import("./JIOUF6RV.js").then(m=>m.default.then(e=>({goToAddressTool:e})))).goToAddressTool],["goToBookmark",async()=>(await import("./SXSWBX5T.js")).goToBookmarkTool],["goToFeatures",async()=>(await import("./XDKRJYZ2.js")).goToFeaturesTool],["goToFullExtent",async()=>(await import("./YDA23ZS6.js").then(m=>m.default.then(e=>({goToFullExtentTool:e})))).goToFullExtentTool],["goToHomeExtent",async()=>(await import("./6XRVLKAZ.js")).goToHomeExtentTool],["goToLayer",async()=>(await import("./MC3V6J4M.js")).goToLayerTool],["goToScale",async()=>(await import("./NQMXSOYA.js")).goToScaleTool],["goToViewpoint",async()=>(await import("./YYHDUC6G.js").then(m=>m.default.then(e=>({goToViewpointTool:e})))).goToViewpointTool],["goToZoom",async()=>(await import("./KEM54FSC.js")).goToZoomTool],["findRelevantFields",async()=>(await import("./6JJUORUU.js").then(m=>m.default.then(e=>({findRelevantFieldsTool:e})))).findRelevantFieldsTool],["findRelevantLayers",async()=>(await import("./XATZUXUP.js")).findRelevantLayersTool],["listSharedResources",async()=>(await import("./JZ7SSPKB.js")).listSharedResourcesTool],["getAttribute",async()=>(await import("./S772GWA3.js").then(m=>m.default.then(e=>({getAttributeTool:e})))).getAttributeTool],["getStatistics",async()=>(await import("./VLCHVVVZ.js").then(m=>m.default.then(e=>({getStatisticsTool:e})))).getStatisticsTool],["getTopFeatures",async()=>(await import("./DISKTSUL.js").then(m=>m.default.then(e=>({getTopFeaturesTool:e})))).getTopFeaturesTool],["queryFeatures",async()=>(await import("./JB2P4KY4.js").then(m=>m.default.then(e=>({queryFeaturesTool:e})))).queryFeaturesTool]]);async function da(e){let t=Hs.get(e);if(!t)throw new Error(`"${e}" tool not found`);return await t()}var dt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Qs=["point","polyline","polygon","extent","custom"],Js=e=>typeof e=="string"&&Qs.some(t=>t===e),Zs=(e,t)=>{if(!(!dt(e)||!("value"in e))){if(dt(e.sharedStatePatch)){let o={...t.sharedStatePatch};for(let[r,a]of Object.entries(e.sharedStatePatch))dt(a)&&"value"in a&&(o[r]={value:a.value});t.sharedStatePatch=o}if(Array.isArray(e.sharedResourceAdditions))for(let o of e.sharedResourceAdditions)dt(o)&&Js(o.kind)&&typeof o.description=="string"&&"payload"in o&&t.sharedResourceAdditions.push({kind:o.kind,description:o.description,payload:o.payload})}},Ys=()=>{let e={sharedResourceAdditions:[]};return{middleware:$({name:"ToolArtifactMiddleware",afterAgent:t=>{if(delete e.sharedStatePatch,e.sharedResourceAdditions.length=0,!dt(t))return;let o=t.messages;if(Array.isArray(o)){for(let r of o)if(M.isInstance(r)&&r.status!=="error"){let a=r.artifact;Zs(a,e)}}}}),collectedEffects:e}},Xs=async e=>{let{getLocaleFromConfig:t,getStrings:o}=await import("./CGBXIK2L.js"),r=await o({path:"./assets/agents/t9n",locale:t(e)});return $({name:"TraceMiddleware",wrapModelCall:async(a,n)=>{await P({text:r.determiningNextSteps},e);try{return await n(a)}catch(i){throw await P({text:r.failedCallingModel},e),i}},wrapToolCall:async(a,n)=>{await P({text:r.callingTool.replace("{toolName}",a.toolCall.name).replace("{toolArgs}",JSON.stringify(a.toolCall.args))},e);try{return await n(a)}catch(i){throw await P({text:r.failedExecutingTool.replace("{toolName}",a.toolCall.name)},e),i}}})},ei=(e,t)=>{let o=e.get(t);if(!o)throw new Error(`Skill not found: ${t}`);return o.instructions},ti=e=>{if(e.size===0)throw new Error("At least one skill is required.");let t=[...e.keys()];return N(({name:o})=>ei(e,o),{name:"load_skill",description:"Load the detailed instructions for an available skill.",schema:d.object({name:d.enum(t)})})},oi=e=>{let t=/^---\r?\nname: (?<name>[^\r\n]+)\r?\ndescription: (?<description>[^\r\n]+)\r?\n(?:allowed-tools: (?<allowedTools>[^\r\n]+)\r?\n)?---\r?\n(?<instructions>[\s\S]+)$/u.exec(e)?.groups;if(!t?.name||!/^[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(t.name)||t.name.length>64||!t.description||t.description.length>1024||!t.instructions)throw new Error("Invalid skill Markdown.");return{allowedTools:t.allowedTools?.split(/\s+/u)??[],name:t.name,description:t.description,instructions:t.instructions.trim()}},ri=async e=>{let t=await Promise.all(e.map(async r=>oi(await r()))),o=new Map;for(let r of t){if(o.has(r.name))throw new Error(`Skill name must be unique: ${r.name}`);o.set(r.name,r)}return o},ua="load_skill",ma=e=>typeof e=="object"&&e!==null&&"name"in e&&typeof e.name=="string"?e.name:void 0,ai=(e,t)=>{let o=t;return $({name:"ActiveSkillMiddleware",wrapModelCall:async(r,a)=>{let n=new Set([ua,...o?.allowedTools??[]]);return await a({...r,tools:r.tools.filter(i=>{let s=ma(i);return s!==void 0&&n.has(s)})})},wrapToolCall:async(r,a)=>{let n=await a(r);if(r.toolCall.name===ua){let i=ma(r.toolCall.args),s=i?e.get(i):void 0;s&&(o=s)}return n}})},ni=async(e,t={})=>{let o=new Set([...e.values()].flatMap(r=>r.allowedTools));return await Promise.all([...o].map(async r=>{let a=t[r],n=a?await a():await da(r);if(n.name!==r)throw new Error(`Skill tool "${r}" resolved to "${n.name}".`);return n}))},si=async(e,t={})=>{let o=await ri(e),r=[...o.values()];if(r.length===0)throw new Error("createSkillRuntime requires at least one skill.");let a=await ni(o,t),n=r.length===1?r[0]:void 0;return{activeSkillMiddleware:ai(o,n),skillsPrompt:n?`Active skill:
70
70
  ${n.name}
71
71
 
72
72
  ${n.instructions}`:`Available skills:
@@ -88,7 +88,7 @@ Call load_skill before using a skill and follow its instructions. Only load_skil
88
88
 
89
89
  ${b}
90
90
  ${c??""}`}).invoke({messages:[],agentExecutionContext:u.agentExecutionContext},g),ue=ga.parse(ge.structuredResponse);return{outputMessage:ue.outputMessage,status:ue.outcome==="completed"?"success":"failed",summary:ue.summary||ue.outputMessage,...j}}catch(y){if(Ce(y)||g?.signal?.aborted||y instanceof Error&&y.name==="AbortError")throw y;return{outputMessage:"I couldn't complete this request.",status:"failed",summary:y instanceof Error?y.message:String(y)}}};return{id:e,name:t,description:o,createGraph:()=>new G(pa).addNode("agent",l).addEdge(F,"agent").addEdge("agent",S),workspace:pa}};var li=({config:e})=>{let{mapView:t}=oo(e,["mapView"]),o=t.map,r=Number.isFinite(t.zoom)?t.zoom:void 0;return JSON.stringify({availableBookmarks:o.bookmarks?.map(({name:a})=>a).filter(Boolean)??[],currentZoom:r},null,2)},ci=[async()=>(await import("./WMV67HW3.js")).default],di=Be({id:"navigation",name:"Navigation Agent",description:"Navigates the map for explicit zoom, center, address, bookmark, layer, feature, extent, scale, and viewpoint requests. Use for questions asking where a place is or to resolve an address or place as a reusable spatial anchor for a proximity request. Resolves only the location; it does not query, display, filter, or highlight feature data.",skillLoaders:ci,modelTier:"default",systemPrompt:"You are an ArcGIS map navigation agent.",runtimeContextLoader:li});var fa=e=>Array.isArray(e)&&e.every(ot),ui=e=>typeof e=="object"&&e!=null&&"messages"in e&&fa(e.messages),mi=e=>typeof e=="object"&&e!=null&&"lg_tool_call"in e,ke=class extends nr{tools;handleToolErrors=!0;trace=!1;constructor(e,t){let{name:o,tags:r,handleToolErrors:a}=t??{};super({name:o,tags:r,func:(n,i)=>this.run(n,i)}),this.tools=e,this.handleToolErrors=a??this.handleToolErrors}async runTool(e,t,o){let r=this.tools.find(a=>a.name===e.name);try{if(r===void 0)throw new Error(`Tool "${e.name}" not found.`);let a={...e,type:"tool_call"},n={...t,state:o,toolCallId:e.id??"",config:t,context:t.context,store:t.store??null,writer:t.writer??t.configurable?.writer??null},i=await r.invoke(a,n);return ot(i)&&i.getType()==="tool"||B(i)?i:new M({status:"success",name:r.name,content:typeof i=="string"?i:JSON.stringify(i),tool_call_id:e.id})}catch(a){if(!this.handleToolErrors||Ce(a))throw a;return new M({status:"error",content:`Error: ${a.message}
91
- Please fix your mistakes.`,name:e.name,tool_call_id:e.id??""})}}async run(e,t){let o;if(mi(e)){let{lg_tool_call:n,...i}=e;o=[await this.runTool(n,t,i)]}else{let n;if(fa(e))n=e;else if(ui(e))n=e.messages;else throw new Error("ToolNode only accepts BaseMessage[] or { messages: BaseMessage[] } as input.");let i=new Set(n.filter(c=>c.getType()==="tool").map(c=>c.tool_call_id)),s;for(let c=n.length-1;c>=0;c-=1){let l=n[c];if(Ne(l)){s=l;break}}if(s==null||!Ne(s))throw new Error("ToolNode only accepts AIMessages as input.");o=await Promise.all(s.tool_calls?.filter(c=>c.id==null||!i.has(c.id)).map(c=>this.runTool(c,t,e))??[])}if(!o.some(B))return Array.isArray(e)?o:{messages:o};let r=[],a=null;for(let n of o)B(n)?n.graph===q.PARENT&&Array.isArray(n.goto)&&n.goto.every(i=>Go(i))?a?a.goto.push(...n.goto):a=new q({graph:q.PARENT,goto:n.goto}):r.push(n):r.push(Array.isArray(e)?[n]:{messages:[n]});return a&&r.push(a),r}};var Kv=v.Root({llmInputMessages:v({reducer:(e,t)=>at([],t),default:()=>[]})});var ut=(e,t)=>t??e,Di=v.Root({...Mt(),intent:v({reducer:ut}),vectorSearchLayerResults:v({reducer:ut,default:()=>[]}),vectorSearchFieldResults:v({reducer:ut}),navigationInternalState:v({reducer:ut,default:()=>({toolCallMessage:void 0})})}),Ta=Object.assign({"../agents/arcgisKnowledge/prompts/arcgis_knowledge_current_lc_context.md":()=>import("./IJ3CLFAU.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_current_map_context.md":()=>import("./QE4CNVDQ.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_cypher_query_prompt.md":()=>import("./SLTFLCVR.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_lucene_generation_prompt.md":()=>import("./KNRJ3WXR.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_summarize_result_prompt.md":()=>import("./WBZLQZYR.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_tool_prompt.md":()=>import("./W4SAWMXS.js").then(e=>e.default),"../agents/dataExploration/skills/filter/SKILL.md":()=>import("./LM6H2RMV.js").then(e=>e.default),"../agents/dataExploration/skills/query/SKILL.md":()=>import("./QT52U3JO.js").then(e=>e.default),"../agents/dataExplorationGraph/prompts/data_explore_filter_prompt.md":()=>import("./C7ZFXRPS.js").then(e=>e.default),"../agents/dataExplorationGraph/prompts/data_explore_query_prompt.md":()=>import("./W4FGRGLV.js").then(e=>e.default),"../agents/dataExplorationGraph/prompts/summarize_query_response_prompt.md":()=>import("./QKCV7CY2.js").then(e=>e.default),"../agents/help/skills/help/SKILL.md":()=>import("./2RWCT4ED.js").then(e=>e.default),"../agents/helpGraph/prompts/help_prompt.md":()=>import("./W2SYL7IJ.js").then(e=>e.default),"../agents/layerStyling/prompts/layer_styling_prompt.md":()=>import("./3OBIA66A.js").then(e=>e.default),"../agents/navigation/skills/navigation/SKILL.md":()=>import("./WMV67HW3.js").then(e=>e.default),"../agents/navigationGraph/prompts/navigation_intent_prompt.md":()=>import("./63THOLAY.js").then(e=>e.default),"../agents/navigationGraph/prompts/navigation_tool_prompt.md":()=>import("./L6KBBJEC.js").then(e=>e.default)});async function Ae(e){let t=Object.entries(Ta).find(([o])=>o.endsWith(`/${e}.md`));if(!t)throw new Error(`Prompt not found: ${e}
91
+ Please fix your mistakes.`,name:e.name,tool_call_id:e.id??""})}}async run(e,t){let o;if(mi(e)){let{lg_tool_call:n,...i}=e;o=[await this.runTool(n,t,i)]}else{let n;if(fa(e))n=e;else if(ui(e))n=e.messages;else throw new Error("ToolNode only accepts BaseMessage[] or { messages: BaseMessage[] } as input.");let i=new Set(n.filter(c=>c.getType()==="tool").map(c=>c.tool_call_id)),s;for(let c=n.length-1;c>=0;c-=1){let l=n[c];if(Ne(l)){s=l;break}}if(s==null||!Ne(s))throw new Error("ToolNode only accepts AIMessages as input.");o=await Promise.all(s.tool_calls?.filter(c=>c.id==null||!i.has(c.id)).map(c=>this.runTool(c,t,e))??[])}if(!o.some(B))return Array.isArray(e)?o:{messages:o};let r=[],a=null;for(let n of o)B(n)?n.graph===q.PARENT&&Array.isArray(n.goto)&&n.goto.every(i=>Go(i))?a?a.goto.push(...n.goto):a=new q({graph:q.PARENT,goto:n.goto}):r.push(n):r.push(Array.isArray(e)?[n]:{messages:[n]});return a&&r.push(a),r}};var Kv=v.Root({llmInputMessages:v({reducer:(e,t)=>at([],t),default:()=>[]})});var ut=(e,t)=>t??e,Di=v.Root({...Mt(),intent:v({reducer:ut}),vectorSearchLayerResults:v({reducer:ut,default:()=>[]}),vectorSearchFieldResults:v({reducer:ut}),navigationInternalState:v({reducer:ut,default:()=>({toolCallMessage:void 0})})}),Ta=Object.assign({"../agents/arcgisKnowledge/prompts/arcgis_knowledge_current_lc_context.md":()=>import("./IJ3CLFAU.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_current_map_context.md":()=>import("./QE4CNVDQ.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_cypher_query_prompt.md":()=>import("./SLTFLCVR.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_lucene_generation_prompt.md":()=>import("./KNRJ3WXR.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_summarize_result_prompt.md":()=>import("./WBZLQZYR.js").then(e=>e.default),"../agents/arcgisKnowledge/prompts/arcgis_knowledge_tool_prompt.md":()=>import("./W4SAWMXS.js").then(e=>e.default),"../agents/dataExploration/skills/filter/SKILL.md":()=>import("./LM6H2RMV.js").then(e=>e.default),"../agents/dataExploration/skills/query/SKILL.md":()=>import("./NUQSQHFS.js").then(e=>e.default),"../agents/dataExplorationGraph/prompts/data_explore_filter_prompt.md":()=>import("./C7ZFXRPS.js").then(e=>e.default),"../agents/dataExplorationGraph/prompts/data_explore_query_prompt.md":()=>import("./W4FGRGLV.js").then(e=>e.default),"../agents/dataExplorationGraph/prompts/summarize_query_response_prompt.md":()=>import("./QKCV7CY2.js").then(e=>e.default),"../agents/help/skills/help/SKILL.md":()=>import("./2RWCT4ED.js").then(e=>e.default),"../agents/helpGraph/prompts/help_prompt.md":()=>import("./W2SYL7IJ.js").then(e=>e.default),"../agents/layerStyling/prompts/layer_styling_prompt.md":()=>import("./3OBIA66A.js").then(e=>e.default),"../agents/navigation/skills/navigation/SKILL.md":()=>import("./WMV67HW3.js").then(e=>e.default),"../agents/navigationGraph/prompts/navigation_intent_prompt.md":()=>import("./63THOLAY.js").then(e=>e.default),"../agents/navigationGraph/prompts/navigation_tool_prompt.md":()=>import("./L6KBBJEC.js").then(e=>e.default)});async function Ae(e){let t=Object.entries(Ta).find(([o])=>o.endsWith(`/${e}.md`));if(!t)throw new Error(`Prompt not found: ${e}
92
92
  Available prompts:
93
93
  ${Object.keys(Ta).join(`
94
94
  `)}`);return await t[1]()}var ji=v.Root({...pe(),vectorSearchLayerIds:v(),vectorSearchFieldResults:v(),layerFieldInfo:v(),queryResponse:v(),dataExplorationMessages:v({reducer:at,default:()=>[]})}),Ma=[lr,cr,dr,ur];var ox=new ke(Ma,{handleToolErrors:!1});async function qi(e){let{fields:t,layer:o,view:r,styleName:a,colorSchemeTags:n}=e,i;return n?i=hi({basemapTheme:await ba(r),geometryType:o.geometryType,includedTags:n,numColors:Math.min(t.length,8)})[0]:i=fi({basemapTheme:await ba(r),geometryType:o.geometryType,numColors:Math.min(t.length,8)}).primaryScheme,{layer:o,view:r,attributes:t.map(s=>({field:s,label:o.fields.find(c=>c.name===s)?.alias??""})).slice(0,8),outlineOptimizationEnabled:!0,sizeOptimizationEnabled:!0,includeSizeVariable:a.includes("Size"),pieChartScheme:i}}async function zi(e){return await gi(e)}async function Fi({arcgisMap:e,arcgisMapView:t,layerId:o,fields:r,colorSchemes:a,includeSize:n}){let i=t,s=e?.allLayers.find(l=>l.id===o);if(!s)return`Could not find layer for id: ${o}`;let c={styleName:n?"chart-size":"chart",fields:r,layer:s,view:i,colorSchemeTags:a};try{let l=await qi(c),u=await zi(l);return s.renderer=u.renderer,s.visible=!0,`Chart renderer applied to layer: ${s.title??s.id} using fields ${r.join(", ")}`}catch(l){return`Error applying chart renderer: ${l instanceof Error?l.message:String(l)}`}}var Gi=["mapView"];function re(e){let t=e?.configurable?.context;if(!t||typeof t!="object")throw new Error("LayerStylingAgent context missing");let o=Gi.filter(r=>!(r in t));if(o.length)throw new Error(`LayerStylingAgent context missing: ${o.join(", ")}`);return t}async function Ui({layerId:e,fields:t,colorSchemes:o,includeSize:r},a){let{mapView:n}=re(a);return await W({type:"show-legend",data:{layerIds:[e]}},a),await Fi({arcgisMap:n.map,arcgisMapView:n,layerId:e,fields:t,colorSchemes:o,includeSize:r})}var Bi=d.object({layerId:d.string().describe("The id of the layer to apply the chart renderer to"),fields:d.array(d.string()).describe("The fields to use for the chart renderer (multiple numeric fields)"),colorSchemes:d.array(d.string()).optional().describe("Optional color scheme tags to use"),includeSize:d.boolean().optional().describe("Whether to vary the chart size (chart-size)")}),Vi=N(Ui,{name:"chart",description:`Label: Charts
@@ -244,7 +244,7 @@ ${i}`};async function qc(e,t,o){let r=await Ae("arcgis_knowledge_lucene_generati
244
244
  _Example: “Color points by sales amount”_
245
245
  _Example: “Show population density with a color gradient”_
246
246
  _Example: “Create a relationship map between height and depth”_
247
- _Example: “Vary circle sizes according to population”_`;var Bc=[async()=>(await import("./QT52U3JO.js")).default,async()=>(await import("./LM6H2RMV.js")).default],Vc=Be({id:"data-exploration",name:"Data Exploration Agent",description:"Explores feature-layer data and applies data-driven map filters using on-demand query and filter skills.",skillLoaders:Bc,modelTier:"default",systemPrompt:"You are an ArcGIS data exploration agent.",instructions:"Answer only questions about the current map's layers, features, fields, spatial relationships, or supported map actions, using returned tool results. Do not answer unrelated general-knowledge, advice, opinion, political, health, security, or other non-map requests, even when the user asks for this agent. For an unsupported request, respond only: 'I can help with questions about the data and features in this map.' Report directly relevant findings, requested calculations, and limitations that affect the answer. Do not provide unsolicited advice about dataset design, publishing, classification, grouping, future analysis, or alternative questions. Ask a clarifying question only when a map-related request cannot be answered reliably as written. A request can require both query and filter skills. Treat show, display, highlight, map, filter, reveal, emphasize, include, or exclude as visual map intent when the request targets matching features. For visual map intent, do not stop after query. First use query to identify/count the matching features, then load the filter skill and call setFeatureEffect with the same layer, where clause, geometry filter, extent setting, or object IDs. Use only tool results to describe data or map changes."});var Kc=(e,t)=>{let o=Array.from(e?.values()??[]).map(({fieldRegistry:a,layerItem:n})=>{let i=Array.from(a.values(),({name:s})=>s);return{title:n.title,description:n.description,fields:i.slice(0,10),additionalFieldCount:Math.max(i.length-10,0)}}),r=(t?.list()??[]).map(({agent:{description:a,id:n,name:i}})=>({id:n,name:i,description:a}));return JSON.stringify({layers:o,agents:r},null,2)},Wc=({config:e})=>{let t=e?.configurable?.services;return Kc(t?.layersAndFieldsRegistry,t?.agentRegistry)},Hc=[async()=>(await import("./2RWCT4ED.js")).default],Qc=Be({id:"help",name:"Help Agent",description:"Answers questions about the current map, its layers and fields, and available assistant capabilities. Use for general help, unsupported map actions, and unrelated requests that should be redirected to map-related questions.",skillLoaders:Hc,modelTier:"default",systemPrompt:"You are an ArcGIS map help agent.",runtimeContextLoader:Wc});var Hx=String.raw`The purpose of this agent is to work with Knowledge Graph data, a graph database technology that represents and stores data as interconnected entities (nodes) and relationships (edges).
247
+ _Example: “Vary circle sizes according to population”_`;var Bc=[async()=>(await import("./NUQSQHFS.js")).default,async()=>(await import("./LM6H2RMV.js")).default],Vc=Be({id:"data-exploration",name:"Data Exploration Agent",description:"Explores feature-layer data and applies data-driven map filters using on-demand query and filter skills.",skillLoaders:Bc,modelTier:"default",systemPrompt:"You are an ArcGIS data exploration agent.",instructions:"Answer only questions about the current map's layers, features, fields, spatial relationships, or supported map actions, using returned tool results. Do not answer unrelated general-knowledge, advice, opinion, political, health, security, or other non-map requests, even when the user asks for this agent. For an unsupported request, respond only: 'I can help with questions about the data and features in this map.' Report directly relevant findings, requested calculations, and limitations that affect the answer. Do not provide unsolicited advice about dataset design, publishing, classification, grouping, future analysis, or alternative questions. Ask a clarifying question only when a map-related request cannot be answered reliably as written. A request can require both query and filter skills. Treat show, display, highlight, map, filter, reveal, emphasize, include, or exclude as visual map intent when the request targets matching features. For visual map intent, do not stop after query. First use query to identify/count the matching features, then load the filter skill and call setFeatureEffect with the same layer, where clause, geometry filter, extent setting, or object IDs. Use only tool results to describe data or map changes."});var Kc=(e,t)=>{let o=Array.from(e?.values()??[]).map(({fieldRegistry:a,layerItem:n})=>{let i=Array.from(a.values(),({name:s})=>s);return{title:n.title,description:n.description,fields:i.slice(0,10),additionalFieldCount:Math.max(i.length-10,0)}}),r=(t?.list()??[]).map(({agent:{description:a,id:n,name:i}})=>({id:n,name:i,description:a}));return JSON.stringify({layers:o,agents:r},null,2)},Wc=({config:e})=>{let t=e?.configurable?.services;return Kc(t?.layersAndFieldsRegistry,t?.agentRegistry)},Hc=[async()=>(await import("./2RWCT4ED.js")).default],Qc=Be({id:"help",name:"Help Agent",description:"Answers questions about the current map, its layers and fields, and available assistant capabilities. Use for general help, unsupported map actions, and unrelated requests that should be redirected to map-related questions.",skillLoaders:Hc,modelTier:"default",systemPrompt:"You are an ArcGIS map help agent.",runtimeContextLoader:Wc});var Hx=String.raw`The purpose of this agent is to work with Knowledge Graph data, a graph database technology that represents and stores data as interconnected entities (nodes) and relationships (edges).
248
248
  This agent has two categories of skills: those that work with an active link chart visualization of a subset of the data in the knowledge graph, and those that work with the knowledge graph data more generally against the entire dataset in the service and database.
249
249
  For link charts, the agent enables users to interact with a link chart by adding new entities (also called nodes) or relationships (also called edges), removing existing entities or relationships,
250
250
  expanding the graph from particular entities, finding relationships between specified entities on the link chart and adding them to the link chart, finding all relationships
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import b from"./4RPNBHB5.js";import{a as x,b as h}from"./PQ75545K.js";import a from"./K4LXMVNH.js";import{a as S}from"./S2BGAMSA.js";import{a as t}from"./X4GCKBT2.js";import{Ic as B}from"./ASDS73QU.js";export default $arcgis.t(([L,G,{a:w,d:C,e:I,f:v},{c:N}])=>{var k=r=>r.flatMap(e=>e.split(",")).map(e=>e.trim()).map(e=>e.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(e=>!!e),O=(r,e,n)=>{if(n==="date"){let i=e instanceof Date?e:typeof e=="number"?new Date(e):void 0;if(i&&Number.isFinite(i.getTime())){let d=i.toISOString().replace("T"," ").replace("Z"," +00:00");return`${r} = TIMESTAMP'${d}'`}return}if(typeof e=="number"&&Number.isFinite(e))return`${r} = ${e}`;if(typeof e=="string")return`${r} = '${e.replace(/'/gu,"''")}'`},U=async(r,e,n,i,d)=>{let s=n.map?.allLayers.find(o=>o.id===r.layerId),p=await n.whenLayerView(s),c=s.title??r.layerId,f;if(i){let o=await C(i,n);if("error"in o)return{tool:"getTopFeatures",layerName:c,summary:"Geometry lookup failed",details:{error:o.error}};if(!o.geometry)return{tool:"getTopFeatures",layerName:c,summary:"No features found for geometry filter",details:{error:`No features found matching: ${"where"in i?i.where:"unknown criteria"}`}};f=o.geometry}else d&&(f=n.extent.clone());let F=e.groupByFields&&e.groupByFields.length>0,g=s.objectIdField,b=r.outFields.includes("*")?["*"]:[...new Set([...r.outFields,g])];try{let o;if(F){let u=new L({where:r.where||"1=1",outFields:b,orderByFields:r.orderByFields,geometry:f,spatialRelationship:f?"intersects":void 0,distance:i?.distance,units:i?.units,topFilter:new G({topCount:e.topCount,groupByFields:e.groupByFields,orderByFields:e.orderByFields})});o=await s.queryTopFeatures(u)}else{let u;if(e.topCount===1){let l=s.createQuery();l.where=h(s.definitionExpression,r.where||"1=1");let E=k(e.orderByFields)[0],m=s.fields.find(y=>y.name.toLowerCase()===E?.toLowerCase());if(m){l.outFields=["*"],l.orderByFields=e.orderByFields,l.num=e.topCount,l.returnGeometry=!1;let y=await s.queryFeatures(l),$=y.features[y.features.length-1]?.attributes?.[m.name];u=O(m.name,$,m.type)}}let a=s.createQuery(),T=h(s.definitionExpression,r.where||"1=1");a.where=u?h(T,u):T,a.outFields=b.length?b:["*"],a.orderByFields=e.orderByFields,a.returnGeometry=!1,u||(a.num=e.topCount),f&&(a.geometry=f,a.spatialRelationship="intersects"),i?.distance&&(a.distance=i.distance),i?.units&&(a.units=i.units),a.outSpatialReference=n.spatialReference;let D=[...new Set([...r.outFields,...k(e.orderByFields)])],R=x(p,D,d??!1);try{o=R?await p.queryFeatures(a):await s.queryFeatures(a)}catch(l){console.warn("Client-side query failed, falling back to server:",l),o=await s.queryFeatures(a)}}let q=o.features.map(u=>u.attributes[g]),{attributes:j}=N(s,o,n.timeZone);return{tool:"getTopFeatures",layerName:c,summary:`Top ${e.topCount} features extracted`,details:{topCount:e.topCount,attributes:j,objectIds:q,objectIdField:g,where:r.where,orderByFields:e.orderByFields,...F&&{groupByFields:e.groupByFields}}}}catch(o){return{tool:"getTopFeatures",layerName:c,summary:"Query failed",details:{error:o instanceof Error?o.message:String(o)}}}},Q=async({targetLayer:r,topFilter:e,geometryFilter:n,useCurrentExtent:i},d)=>{let{mapView:s}=S(d,["mapView"]),p=v(n,d.state?.agentExecutionContext?.sharedResources),c=await U(r,e,s,p,i);return JSON.stringify(c,null,2)},A=t.object({layerId:t.string().describe("The layerId of the layer containing the geometry by which to filter."),where:t.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:t.number().optional().describe("The buffer distance around the geometry."),units:w.optional().describe("The units for the distance buffer.")}),M=t.object({point:t.object({x:t.number().describe("X coordinate (longitude) from navigation result"),y:t.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:t.object({wkid:t.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:t.number().optional().describe("Optional buffer distance around the point."),units:w.optional().describe("The units for the distance buffer.")}),V=t.object({targetLayer:t.object({layerId:t.string().describe("The layerId of the layer containing the field from which to get a value."),where:t.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value."),orderByFields:t.array(t.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:t.array(t.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:t.union([A,M,I]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),topFilter:t.object({topCount:t.number().describe("Number of top features to return per group."),orderByFields:t.array(t.string().describe("Field(s) to rank by with ASC/DESC. Must be existing field names, not aggregate functions.")),groupByFields:t.array(t.string().describe("Field(s) to group results by. Returns top N per group."))}).required(),useCurrentExtent:t.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at'. Default is false (queries entire layer).")}),_=B(Q,{name:"getTopFeatures",description:'Returns top N features ranked by an existing field value. Use for "highest", "lowest", "latest", "earliest", "top N" questions where ranking is based on a field that already exists in the data (e.g., population, value, date, depth). Display all the features that meet the ranking criteria, including ties at the cutoff value. orderByFields must be actual field names with ASC/DESC. Do NOT use aggregate functions like COUNT(), SUM(), AVG() - those require getStatistics.',schema:V});return _},"rest/support/TopFeaturesQuery","rest/support/TopFilter",a,b)
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as r}from"./WMT55UQD.js";import{z as e}from"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./GDKX2CGS.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./MDGR5FJS.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./5D75JDVE.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./GOHJT66O.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./Q5GFMD4E.js"),"item:,itemId,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./3YCGEFQP.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./6NRVGSZJ.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./7TN5Q3I2.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./E2AHTEKS.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./4FQWB6HA.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./4LMVMZGG.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./UFNGJCCT.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./PEO5PFZF.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./KS2JQYWA.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./27HHZHV5.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./KWEVRR34.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./EJXMHOYA.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./KOZMWZTT.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./C2WQAFUM.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./JIBKSQBE.js"),"active,disableLinks,items:,messages:,portal:,user:"],"arcgis-portal-extent-picker":[()=>import("./74OADAQ6.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./BJ6YM6ZC.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./EBUPCIL6.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./BV6XVVX2.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./426RS2JW.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,hideTopBar,loading,messageOverrides:,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:,view;clearFilters,refresh"],"arcgis-portal-group-browser-card":[()=>import("./SABP5QOL.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./CVTQ3A4T.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./VXAWOPU3.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./HKD2GF4M.js"),"disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],"arcgis-portal-group-thumbnail":[()=>import("./4BQASKGB.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./BNFEED2K.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./LL5AA56F.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./L33CMX4M.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./FED2DOMO.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./WKJEITKD.js"),"actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-favorite":[()=>import("./3NA4M2MH.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-thumbnail":[()=>import("./M33TAW7V.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./FNHI7NZ4.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./ZP4Q36AO.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./FOHZXQNV.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./EOQHBWKK.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./KCLCOBT2.js"),"messages:,portal:,relatedItems:,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./VX6EE6FY.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./H5RBBOBZ.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-popup":[()=>import("./YARGA5LY.js"),"appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],"arcgis-portal-voice-input":[()=>import("./6FKARLGX.js"),"language;clearText,startListening,stopListening"]});a({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-account-switcher-signout,arcgis-portal-add-gps-metadata,arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-actions,arcgis-portal-browser-filter-status,arcgis-portal-browser-pagination,arcgis-portal-browser-search,arcgis-portal-browser-sort,arcgis-portal-browser-top-bar,arcgis-portal-browser-view,arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-delete-items,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,arcgis-portal-item-actions,arcgis-portal-item-badges,arcgis-portal-item-badge,arcgis-portal-item-card,arcgis-portal-item-favorite,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
2
+ import{a as r}from"./WMT55UQD.js";import{z as e}from"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./GDKX2CGS.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./MDGR5FJS.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./5D75JDVE.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./GOHJT66O.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./Q5GFMD4E.js"),"item:,itemId,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./SOFQU6KS.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./6NRVGSZJ.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./7TN5Q3I2.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./E2AHTEKS.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./4FQWB6HA.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./4LMVMZGG.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./UFNGJCCT.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./PEO5PFZF.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./KS2JQYWA.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./27HHZHV5.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./KWEVRR34.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./EJXMHOYA.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./KOZMWZTT.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./C2WQAFUM.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./JIBKSQBE.js"),"active,disableLinks,items:,messages:,portal:,user:"],"arcgis-portal-extent-picker":[()=>import("./74OADAQ6.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./BJ6YM6ZC.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./EBUPCIL6.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./BV6XVVX2.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./426RS2JW.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,hideTopBar,loading,messageOverrides:,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:,view;clearFilters,refresh"],"arcgis-portal-group-browser-card":[()=>import("./SABP5QOL.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./CVTQ3A4T.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./VXAWOPU3.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./HKD2GF4M.js"),"disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],"arcgis-portal-group-thumbnail":[()=>import("./4BQASKGB.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./BNFEED2K.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./LL5AA56F.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./L33CMX4M.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./FED2DOMO.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./WKJEITKD.js"),"actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-favorite":[()=>import("./3NA4M2MH.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-thumbnail":[()=>import("./M33TAW7V.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./FNHI7NZ4.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./ZP4Q36AO.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./FOHZXQNV.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./EOQHBWKK.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./KCLCOBT2.js"),"messages:,portal:,relatedItems:,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./VX6EE6FY.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./H5RBBOBZ.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-popup":[()=>import("./YARGA5LY.js"),"appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],"arcgis-portal-voice-input":[()=>import("./6FKARLGX.js"),"language;clearText,startListening,stopListening"]});a({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-account-switcher-signout,arcgis-portal-add-gps-metadata,arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-actions,arcgis-portal-browser-filter-status,arcgis-portal-browser-pagination,arcgis-portal-browser-search,arcgis-portal-browser-sort,arcgis-portal-browser-top-bar,arcgis-portal-browser-view,arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-delete-items,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,arcgis-portal-item-actions,arcgis-portal-item-badges,arcgis-portal-item-badge,arcgis-portal-item-card,arcgis-portal-item-favorite,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
@@ -2,14 +2,14 @@ import "@esri/calcite-components/components/calcite-chip";
2
2
  import "@esri/calcite-components/components/calcite-tooltip";
3
3
  import "@esri/calcite-components/components/calcite-list-item";
4
4
  import "@esri/calcite-components/components/calcite-action";
5
- import "../arcgis-portal-item-type/index.js";
6
- import "@esri/calcite-components/components/calcite-button";
7
- import "@esri/calcite-components/components/calcite-list";
8
- import "@esri/calcite-components/components/calcite-input";
9
5
  import "@esri/calcite-components/components/calcite-dropdown-item";
10
6
  import "@esri/calcite-components/components/calcite-icon";
11
7
  import "@esri/calcite-components/components/calcite-popover";
8
+ import "@esri/calcite-components/components/calcite-list";
9
+ import "../arcgis-portal-item-type/index.js";
12
10
  import "@esri/calcite-components/components/calcite-loader";
11
+ import "@esri/calcite-components/components/calcite-button";
12
+ import "@esri/calcite-components/components/calcite-input";
13
13
  import "@esri/calcite-components/components/calcite-dropdown";
14
14
  import "../arcgis-portal-user-avatar/index.js";
15
15
  import "@esri/calcite-components/components/calcite-dropdown-group";