@arcgis/portal-components 6.0.0-next.34 → 6.0.0-next.35

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.
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import h from"./US37IXWO.js";import{a as pe}from"./GUL7EIJ4.js";import g from"./XE3DCC5D.js";import f from"./YNGFN7AY.js";import{b as Oe}from"./O2GPTWGF.js";import{b as j,c as le,d as Ge}from"./JLT5GCLY.js";import{d as Le,e as De}from"./I4TKQB4A.js";import"./UOXUUCE7.js";import{a as Ee}from"./YG6ZGQ46.js";import e from"./365ICWHN.js";import d from"./TIPQ2ZWK.js";import{a as X}from"./DV57AOBF.js";import{a as O}from"./HBO7XTIL.js";import b from"./CJ4S56BE.js";import"./4KTRAA2J.js";import a from"./OQ2JULON.js";import{a as Z,b as V,c as ee,d as Ie,j as Te}from"./4VLEUN7I.js";import{b as Y,c as Se}from"./KV4ZZSNW.js";import{b as ke}from"./FN2QMDEW.js";import{a as Me}from"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as G,M as R,N as Ae,O as K,P as se,T as xe,U as Q,h as ye,j as c,k as $e,m as C,v as U}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([{formatDate:qt,substitute:ae,getLocale:Jt},Kt,{e:Pe},,{e:D},{c:je,d:Ne,e:Ce},{a:ze,e:ce},{a:Re,b:We,c:Fe,d:He,e:Be},{a:Ue,c:Ve}])=>{function qe({portal:e,productInfo:t}){let{name:i,glyph:a}=t||{};return c`<img alt class="logo__glyph" src=${a??C}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name&&c`<span class="logo__subtitle">${e.name}</span>`||""}</span>`}function Qt({navigate:e,portal:t,product:i,productInfo:a,productHref:n,messages:r,searchActive:o,showNav:s,projectTitleEditing:l}){let d=o&&i==="Online"&&!s||i!=="Online"&&l&&window.innerWidth<960;return!i||!t||!r||d||["Online","Enterprise"].includes(i)&&!t?.user?null:n?c`<a href=${n??C} @click=${g=>{e({event:g,href:n})}} class="logo logo--link">${qe({portal:t,productInfo:a})}</a>`:c`<div class="logo ">${qe({portal:t,productInfo:a})}</div>`}var de={},N={Month:2628e3,Week:604800,Day:86400,Hour:3600,Minute:60,Second:1};function it(e){if(!e)return null;let t=Math.floor(e/1e3),i=Math.abs(t),a=N.Day*365;switch(!0){case i<N.Minute:return[Math.floor(t/N.Second),"second"];case i<N.Hour:return[Math.floor(t/N.Minute),"minute"];case i<N.Day:return[Math.floor(t/N.Hour),"hour"];case i<N.Week:return[Math.floor(t/N.Day),"day"];case i<N.Month:return[Math.floor(t/N.Week),"week"];case i<a:return[Math.floor(t/N.Month),"month"];default:return[Math.floor(t/a),"year"]}}function at(e){return(typeof e=="number"?e:e.getTime?.())-new Date().getTime()}function nt({locale:e,time:t,t9n:i}){if(!e||!t)return"";let a=at(t);de[e]??=new Intl.RelativeTimeFormat(e,{style:"long"});let n=it(a);return n?n[1]==="second"?i?.lessThanOneMinute||`< ${de[e].format(n[0]>0?1:-1,"minutes")}`:de[e].format(n[0],n[1]):""}var Xt={month:"long",day:"numeric",year:"numeric"},Yt={month:"long",day:"numeric"};function Zt({locale:e,time:t},i){if(!e||!t)return"";let a=new Date(t);return qt(a,i?Xt:Yt)}async function ei({portal:e}){if(!e?.user)return{result:[]};let t=`${e.restUrl}/community/users/${e.user.id}/notifications`,{result:i,error:a}=await D(t);return a?{error:a}:{result:i?.notifications}}async function ti(e,t){if(!e?.user)return{success:!0};let i=t.map(a=>({portal:e,id:a})).map(rt);return{success:!((await Promise.allSettled(i))?.filter(a=>a.status==="rejected"||!a.value?.success)).length}}async function rt({portal:e,id:t}){let i=`${e.restUrl}/community/users/${e.user?.id}/notifications/${t}/delete`,{result:a}=await D(i,{method:"post"});return a?.success?{success:!0,id:t}:{success:!1,id:t}}var ot="notifications-menu";function ii(e){try{let t=decodeURIComponent(e);return t!==e?t:e}catch{return e}}function ai(e){switch(e){case"group_join_admin":return"users";case"group_application_accepted":return"register";case"group_join":return"file-user";case"group_application_declined":return"user-risk";case"user_invitation_declined":return"group-x";case"user_invitation_accepted":return"user-plus";case"user_invite":return"envelope";case"user_added_to_group":return"user-plus";case"collaboration_workspace_added":case"collaboration_deleted":case"collaboration_leaving":case"collaboration_join":case"collaboration_participant_workspace_join":case"collaboration_participant_workspace_unjoin":case"collaboration_participant_removed":case"collaboration_peer_participant_removed":case"collaboration_participant_access_changed":return"collaboration";case"collaboration_participant_join":return"collaboration-user";case"collaboration_content_store_disk_limit_reached":return"gauge";case"user_email_bounced":return"speech-bubble-exclamation";case"feature_layer_copy_over_failed":case"feature_layer_one_way_shared_not_two_way":case"feature_view_copy_over_failed":case"webapp_not_copied":case"webapp_not_copied_portal":case"insights_item_not_copied":return"collaboration";case"scheduled_task_disabled":return"date-time";case"portal_certificate_about_to_expire":case"portal_certificate_expired":return"hourglass-expired";case"notebook_runtime_deprecated":return"notebook-server";case"ingress_certificate_about_to_expire":case"ingress_certificate_expired":return"certificate";default:return"bell"}}function ni({notification:e,portal:t,locale:i,t9n:a}){if(e?.received&&e.id){let n={date:nt({locale:i,time:e.received,t9n:a}),id:e.id,text:"",icon:ai(e.type)};if(e.type==="webapp_not_copied"&&t.isPortal&&(e.type="webapp_not_copied_portal"),e.data?.taskTitle&&(e.data.taskTitle=ii(e.data.taskTitle)),e.type==="message_received")n.text=e.data.message||"";else if(a.types[e.type]){let r=Y({portal:t,usePortalHostname:!!t.user});e.data.baseUrl=`${r}/home/`,n.text=ae(a.types[e.type],e.data)}if(n.text)return n}return null}async function Je({portal:e,locale:t,t9n:i}){if(!i)return[];let{result:a,error:n}=await ei({portal:e});return n&&console.error(n),a?.length?a.map(r=>ni({notification:r,portal:e,t9n:i,locale:t})).filter(r=>r):[]}function ri({notifications:e,messages:t,handleToggleNotifications:i,handleToggleSearch:a,notificationsActive:n}){return t?c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${ot} @click=${()=>i(!n)} @focusin=${()=>a(!1,!0)}></calcite-action>`:null}function te({icon:e,title:t,description:i}){return!t&&!i?null:c`<div class="empty">${e&&c`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${$e`<path d=${Ee[e]??C} fill=var(--calcite-color-border-input) />`}</svg>`||""}${t&&c`<h3 class="notifications__empty__header">${t}</h3>`||""}${i&&c`<p class="notifications__empty__text">${i}</p>`||""}</div>`}function oi({notifications:e,deleteNotifications:t,messages:i,navigate:a,portal:n,notificationsActive:r,handleToggleNotifications:o,notificationDeleteProgress:s}){return i?c`<calcite-popover .referenceElement=${ot} @calcitePopoverClose=${()=>o(!1)} .label=${i.label} auto-close .open=${r} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length>0?c`<div class="notifications notifications--full">${typeof s=="number"&&c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${s}></calcite-loader></calcite-scrim>`||""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${O(e,l=>l.id,l=>c`<calcite-list-item closable @calciteListItemClose=${async()=>await t([l.id])} .messageOverrides=${{close:i.dismissLabel}} .iconStart=${l.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${l.text??""} @click=${d=>{let g=d.target,v=g.href;if(g.nodeName==="CALCITE-LINK"&&v){let h=`${Y({portal:n,usePortalHostname:!!n.user})}/home/`;a({event:d,href:v,relativePath:v.replace(h,"")})}}}></div><div class="notification__date">${l.date}</div></div></calcite-list-item>`)}</calcite-list></div><calcite-button class="notifications__dismiss" scale=l appearance=transparent @click=${async l=>{let d=l.currentTarget?.parentElement;await t(e?.map(({id:g})=>g)),d.open=!1}}>${i.dismissAllLabel}</calcite-button>`:c`<div class="notifications">${te({title:i.noNotifications,description:i.noNotificationsDescription,icon:"check"})}</div>`}</calcite-popover>`:null}function si(e,t,i,a){hi(e,JSON.stringify(t),i)}function ci(e){return di(e,!0)}function li(e){try{window.localStorage.removeItem(e)}catch{}}function pi(e){try{window.sessionStorage.removeItem(e)}catch{}}function di(e,t){let i=ui(e);return i&&t?JSON.parse(i):i}function ui(e){let t=document.cookie,i=new RegExp(`(?:^|; )${ze(e)}=([^;]*)`,"u"),a=t.match(i);return a?decodeURIComponent(a[1]):""}function hi(e,t,i){i=i||{};let a=i?.expires;if(typeof a=="number"){let r=new Date,o=a*24*60*60*1e3;r.setTime(Date.now()+o),a=r,i.expires=r}typeof a!="string"&&a?.toUTCString&&(i.expires=a.toUTCString());let n=`${e}=${encodeURIComponent(t)}`;for(let r of Object.keys(i)){n+=`; ${r}`;let o=i[r];o!==!0&&(n+=`=${o}`)}document.cookie=n}async function mi(e){let t=`owner:"${e.isPortal?"esri":"esri_config"}" AND title:"AppSwitcher Config" AND type:"Application Configuration"`,i=`${e.restUrl}/search`;return await D(i,{query:{num:1,start:0,sortField:"title",sortOrder:"asc",q:t}})}async function gi(e){let t={appSwitcher:{apps:[]}};if(!e?.id||!e.user)return t;let{result:i}=await mi(e),a=i?.results?.[0];if(!a)return t;let n=a.id;return(await ce(e,n)).result}async function fi(e,t,i){if(!t||!e?.length)return{result:null};let a=`${i.restUrl}/search`;return await D(a,{query:{num:100,q:`id:(${e.map(n=>`"${n.itemId}"`).join(" OR ")})`}})}async function vi(e){let t=`${e.restUrl}/search`,i={num:10,start:0,sortField:"title",sortOrder:"asc",q:'owner:"esri" AND title:"BlockedApps Config" AND type: "Application Configuration"'},{result:a}=await D(t,{query:i}),n=a?.results?.[0]?.id;return n?(await ce(e,n))?.result?.blockedApps||[]:[]}function bi(e,t){let i=e?.toLowerCase()||"",a=`${t.title||""} ${t.label||""}`;return!i||a.toLowerCase().includes(i)}function _i(){if(ci("APSW-query")?.expires>new Date().setHours(new Date().getHours()))return!0;let e={expires:new Date().setHours(new Date().getHours()+5)};return si("APSW-query",e,{path:"/",domain:window.location.hostname,sameSite:"Strict"}),!1}function Ke(e){let t=["api-for-python","appstudio","arcade","arcgis-earth","arcgis-enterprise","arcgis-experience-builder","arcgis-geoanalytics","arcgis-hub","arcgis-online","arcgis-pro","arcgis-urban","blank","business-analyst","city-engine","collector","community-analyst","configurable-apps","dashboards-beta","dashboards-classic","data-pipelines","deeplearningstudio","demographics","drone2map","esri-events","essential-apps","excalibur","explorer","field-apps","fieldmaps-beta","fieldmaps-ea","fieldmaps","generic-app","geobim","geoplanner","grid-view-9","indoor","indoors","insights","instant-apps","ips","knowledge-studio","living-atlas","location-platform","map-maker","map-viewer-beta","map-viewer-classic","map-viewer","maps-adobe-cloud","maps-for-office","maps-for-power-bi","maps-for-sharepoint","marketplace","mission","monitor","navigator","notebook","office-apps","open-data","operations-dashboard","ortho-maker","pro-extension","quick-capture","redistricting","runtime","scene-viewer","sites","solutions","story-maps","streetmap-premium","survey123","track-viewer","user-type-extension-online","user-type-extension","vector-tile-style-editor","velocity","web-app-builder","web-editor","web-mapping","workflow-manager-beta","workflow-manager","workforce"].find(i=>e?.includes(i)&&q(`${i}.png`)===e);return t?q(`${t}.avif`):e}function wi(e,t){let i=e?.blockedApps||[],a=[];return!i.length&&!e.blockBetaApps||!t?.length?[]:(e.blockBetaApps&&t.forEach(n=>{n.isBeta&&!i.includes(n.clientid)&&i.push(n.clientid)}),i.forEach(n=>{let r=t.find(o=>o.clientid===n);r&&a.push(r)}),a)}function S(e,t){return t&&t[e.toLowerCase()]?.valid||!1}function yi(e,t){return e?.portalProperties&&!e.portalProperties?.openData?.enabled?!1:S("HubforArcGIS",t)}function $i(e,t){if(!e)return!1;let i=["portal:publisher:publishFeeds","portal:publisher:publishRealTimeAnalytics","portal:publisher:publishBigDataAnalytics"],a=(e?.privileges||[]).some(r=>i.includes(r)),n=S("velocity",t);return a&&n}function Ai(e){return S("HubforArcGIS",e)}function xi(e,t){return!(e.isPortal&&e.portalProperties?.newMapViewerEnabled===!1)&&S("arcgisWebApps",t)}function ki(e){return!!e.helperServices?.rasterAnalytics&&!!e.helperServices.orthoMapping}function Si(e,t,i){let a=i&&(!e.isPortal||!!e.sourceJSON?.supportsHostedNotebooks),n=!!t?.privileges?.length&&t.privileges.some(r=>r==="premium:publisher:createNotebooks");return a&&n}function Ii(e,t){return!!e.helperServices?.locationTracking&&t}function Ti(e,t,i,a){let n=e?.user;return{"Open Data":{hasAccess:()=>yi(e,a)},AppStudio:{hasAccess:()=>S("arcgisWebApps",a)},"ArcGIS Velocity":{hasAccess:()=>e.isPortal||$i(n,a)},"ArcGIS Hub":{hasAccess:()=>S("HubforArcGIS",a)},"ArcGIS Enterprise Sites":{hasAccess:()=>Ai(a)},"ArcGIS QuickCapture Web Designer":{hasAccess:()=>S("arcgisWebApps",a)},"ArcGIS Dashboards":{hasAccess:()=>S("dashboards",a)},"Map Viewer":{hasAccess:()=>xi(e,a)},"Map Viewer Classic":{hasAccess:()=>S("arcgisWebApps",a)},"Operations Dashboard for ArcGIS":{hasAccess:()=>S("opsdashboard",a)},"ArcGIS Dashboards Classic":{hasAccess:()=>S("opsdashboard",a)},"Ortho Maker":{hasAccess:()=>ki(e)},Notebook:{hasAccess:()=>Si(e,n,t)},"Scene Viewer":{hasAccess:()=>S("arcgisWebApps",a)},"Story Maps":{hasAccess:()=>S("arcgisWebApps",a)},Survey123:{hasAccess:()=>S("survey123",a)},"Track Viewer":{hasAccess:()=>Ii(e,i)},"Instant Apps":{hasAccess:()=>S("arcgisWebApps",a)},"ArcGIS Maps for Adobe Creative Cloud":{hasAccess:()=>S("arcgisWebApps",a)&&!e.isPortal}}}function Pi(e){let t={arcgisonline:1,opsdashboard:1,arcgisWebApps:1,Workforce:1,geoplanner:1,webappbuilder:1,HubforArcGIS:1,appstudio:1,survey123:1,storymaps:1,mapsForOffice:1,mapsForO365:1,mapsForSharePoint:1,mapsForCreativeCloud:1,indoorsweb:1,indoorskiosk:1,indoorsspaceplanner:1,locationplatformWebApps:1,communityanalyst_2:1};return e.isPortal&&(t={...t,arcgisonline:1,arcgisUrban:1,arcgisinstantapps:1}),t}function he(e){return e.sourceJSON?.subscriptionInfo?.options?.includes("Developer")}function q(e){return Q(`assets/portal-navigation/apps/${e||""}`)}function st(e,t,i){return e.icon?`${t.restUrl}/portals/self/resources/${e.icon}?token=${i}`:`${t.restUrl}/content/items/${e.itemId}/resources/${e.image||e.properties?.appSwitcher?.image}?token=${i}`}function W(e,t,i){if(e.image?e.image=q(e.image):e.placeHolderIcon=`${q()}svg-app-icon.svg`,e.url?.startsWith("../")){let a=i.urlKey?`${i.urlKey}.${i.customBaseUrl}`:i.portalHostname;e.url=`${window.location.protocol}//${a}${e.url.substring(2,e.url.length)}`}return e.title==="ArcGIS GeoBIM"&&(e.label="ArcGIS GeoBIM"),delete e.isLicensed,delete e.privileges,e.itemId=t,e}function ct(){return`${q()}svg-app-circle.svg`}function ji(e,t,i){let a=e.properties?.appSwitcher?.image||e.icon;return{abbr:e.properties?.appSwitcher?.abbr||e.abbreviation,itemId:e.itemId,canAccess:!0,webMappingApp:!0,image:a?st(e,t,i):void 0,label:e.title||e.label,url:e.url,placeHolderIcon:e.placeHolderIcon||ct()}}function Ni(e,t,i){return e.appSwitcher?.image||e.icon?e.image=st(e,t,i):e.placeHolderIcon=ct(),e.abbr=e.appSwitcher?.abbr||e.abbreviation,delete e.abbreviation,delete e.appSwitcher,delete e.approvedApp,delete e.webMappingApp,e}function Qe(e,t){e.forEach(i=>{i.uid==="Map Viewer Beta"&&(i.uid="Map Viewer"),t.isPortal&&(i.uid==="Operations Dashboard for ArcGIS"?i.uid="ArcGIS Dashboards Classic":i.uid==="Workforce for ArcGIS"&&(i.uid="ArcGIS Workforce"))})}async function Ci({userApps:e,servers:t,portal:i,licenses:a,blockedApps:n,provisionedListings:r,orgCapabilities:o,trackViewerEnabled:s,notebookServerEnabled:l,willQueryForItems:d,approvedApps:g}){let v={},h={},_=Ti(i,l,s,a),A=Pi(i),w=[],b=e.length;for(let u=0;u<b;u++){let p=e[u],f=p.itemId||p.title,k=!0,T=!p.serverFunction||t?.some(m=>(m.serverFunction?.split(",")||[]).includes(p.serverFunction)),y=n?.some(m=>p.itemId&&p.itemId===m.itemid||p.title&&p.title===m.title);if(v[f]=1,h[f]=p,y||he(i)&&!p.showInLocationPlatform||i.sourceJSON?.portalDeploymentType==="ArcGISEnterpriseOnKubernetes"&&p.supportsKubernetes===!1)continue;let x=p.title;if(_[x]&&!_[x]?.hasAccess())continue;let $=i.sourceJSON?.subscriptionInfo;if(p.subscriptionType){$?.type===p.subscriptionType&&(h[f].canAccess=!0,w.push(W(p,f,i)));continue}if(p.orgCapabilities){o?.length&&o.some(m=>p.orgCapabilities?.includes(m.id))&&(h[f].canAccess=!0,w.push(W(p,f,i)));continue}if(!p.privileges?.length&&!p.isLicensed&&T&&(p.label!=="ArcGIS Location Platform"||he(i))){h[f].canAccess=!0,w.push(W(p,f,i));continue}if(i.user?.sourceJSON?.userLicenseTypeId?.toLowerCase()==="storytellerut"&&p.label?.toLowerCase()==="storymaps"){h[f].canAccess=!0,w.push(W(p,f,i));continue}if(p.privileges?.length&&i.user?.privileges){for(let m=0;m<p.privileges.length;m++)if(!i.user.privileges.includes(p.privileges[m])){k=!1;break}if(!p.isLicensed&&k&&T){h[f].canAccess=!0,w.push(W(p,f,i));continue}}if(p.isLicensed&&k&&T){for(let m=0;m<r.length;m++)if(f===r[m].itemId||f===r[m].title){h[f].canAccess=!0,w.push(W(p,f,i));break}}}let I=await Pe(i);return r.forEach(u=>{if(u.type==="Web Mapping Application"&&!A[u.clientId]&&!v[u.itemId]&&u.url&&u.title&&!v[u.title]&&!u.typeKeywords.includes("hideFromAppSwitcher")){let p=ji(u,i,I);h[u.itemId]=p,w.push(p)}}),{apps:[...g.map(u=>{let p={...u.appProperties,itemId:u.itemId,webMappingApp:!0,approvedApp:!0,canAccess:!d};return h[u.itemId]=p,Ni(p,i,I)}),...w],appDictionary:h}}function ue(e,t){return e.filter(i=>!t?.some(a=>i.itemId&&i.itemId===a.itemid||i.title&&i.title===a.title)&&i.itemId!=="ArcGIS Online")}function Xe({apps:e,app:t,appDictionary:i,newAppDictionary:a,portal:n}){let r=Object.keys(i).map(o=>i[o]).filter(o=>o.itemId===t.uid||o.title===t.uid).shift();return r&&!i[t.uid]&&(t.uid=r.itemId||r.title||""),r?.hasBeenPopulated||(r?((t.hasChanged||r.hasChanged||!r.canAccess&&!r.ignoreNoAccess)&&Ue(n.user)&&(i[t.uid].hasChanged=!0,i[t.uid].ignoreNoAccess=t.ignoreNoAccess),t.isNew&&(i[t.uid].isNew=!0),delete a[t.uid]):(r=t,r.canAccess=!1,r.itemId=t.uid,i[t.uid]=r),i[t.uid].hasBeenPopulated=!0,e.push(r)),e}async function Mi({portal:e,trackViewerEnabled:t,notebookServerEnabled:i}){if(!e?.id||!e.user)return{apps:[],hiddenApps:{}};let a=_i(),[n,r,o,s,l,d,g]=await Promise.all([gi(e),Ce(e),je(e),Re(e),We(e),Be(e),vi(e)]),v=e.isPortal?await He(e):null,h=o?.result?.properties,_=n?.appSwitcher?.apps||[];e.isPortal||(_=_.filter(y=>y.title!=="Map Viewer Classic"||e.sourceJSON.created<new Date("February 26 2025")));let A=s?.result?.approvedApps?.filter(y=>!y.hideForNonPrivilegedMember)||[],w={};r?.forEach(y=>{let x=y.clientId?.toLowerCase();x&&(w[x]={valid:!0,itemId:y.itemId,clientId:y.clientId})}),l?.forEach(y=>{let x=y.id?.toLowerCase();x&&(w[x]={valid:!0,clientId:y.id})});let b=wi(d,g),{apps:I,appDictionary:u}=await Ci({userApps:_,servers:v,portal:e,blockedApps:b,provisionedListings:r,orgCapabilities:l,licenses:w,trackViewerEnabled:t,notebookServerEnabled:i,willQueryForItems:a,approvedApps:A});h?.appLauncher&&(h?.appLauncher.primary&&Qe(h?.appLauncher.primary,e),h?.appLauncher.secondary&&Qe(h?.appLauncher.secondary,e));let p=[],f=[];if(!h?.appLauncher?.primary||!h?.appLauncher.secondary)p=I.slice().sort((y,x)=>(y.label||"")<(x.label||"")?-1:1),p=ue(p,b),f=[];else{let{result:y}=await fi(A,a,e);y?.results?.length&&y.results.forEach($=>{let m=u[$.id];m.canAccess=!0,m.hasChanged=m.url!==$.url?!!$.url:!1});let x={...u};h?.appLauncher?.primary?.forEach($=>{$.label==="Map Viewer"&&($.uid="Map Viewer")}),p=h?.appLauncher.primary.reduce(($,m)=>Xe({apps:$,app:m,appDictionary:u,newAppDictionary:x,portal:e}),[])||[],f=h?.appLauncher.secondary.reduce(($,m)=>Xe({apps:$,app:m,appDictionary:u,newAppDictionary:x,portal:e}),[])||[],p=ue(p,b),f=ue(f,b),he(e)&&(p=p.filter($=>$.canAccess),f=f.filter($=>$.canAccess));for(let $ of Object.keys(x))x[$].canAccess&&(x[$].isNew=!0,u[$]=x[$],p.push(x[$]))}let k=[...p,...f],T=f.reduce((y,x)=>(x.itemId&&(y[x.itemId]=!0),y),{});return{apps:k,hiddenApps:T,signInSettings:d,licenses:w,userProperties:h}}function Ei(e,t){return!e?.itemId||!t?!1:t[e.itemId]}async function Li({apps:e,hiddenApps:t,userProperties:i,portal:a}){let n=e.reduce((o,s)=>{let l=t[s.itemId];return o[l?"secondary":"primary"].push({label:s.label,uid:s.itemId||s.title}),o},{primary:[],secondary:[]}),r={...i||{},appLauncher:n};return await Ne(r,a)}function lt({app:e}){if(!e)return null;if(!e.canAccess)return c`<span class="list-item__logo list-item__logo-empty"></span>`;let t=!e.image&&e.abbr;return c`${t&&c`<span class="list-item__logo">${e.placeHolderIcon&&c`<img src=${Ke(e.placeHolderIcon)??C} class="list-item__logo-bg" alt>`||""}<span style=${se({fontSize:e.fontSize||"20px"})} class="list-item__abbr">${e.abbr}</span></span>`||""}${e.image&&c`<img src=${Ke(e.image)??C} class="list-item__logo" alt>`||""}`}function Di({app:e,hiddenApps:t,messages:i,toggleAppVisibility:a,handleAppDelete:n}){if(!e||!i)return null;let r=Ei(e,t),{title:o,itemId:s,label:l}=e;return c`<calcite-list-item .label=${o||l} class=${K(r?"app--hidden":"")}><span slot=content-start>${lt({app:e})}</span>${e.canAccess?c`<calcite-action .text=${r?i.show:i.hide} .icon=${r?"view-hide":"view-visible"} slot=actions-end @click=${()=>s&&a(s,!r)}></calcite-action>`:c`<calcite-action .text=${i.delete} icon=x slot=actions-end @click=${()=>s&&n(s)}></calcite-action>`}</calcite-list-item>`}function Oi({app:e,messages:t}){if(!e||!t)return null;let{title:i,itemId:a,label:n,url:r,isNew:o}=e,s=t?.descriptions?.[i]||t?.descriptions?.[n];return c`<li class="list-item"><a class="list-item__link" href=${r??C} target=_blank id=${a??C} aria-describedby=${`${a}--tooltip`}>${c`<span class="list-item__container">${lt({app:e})}<span class="list-item__title">${n||i}</span>${o&&c`<calcite-chip scale=s class="list-item__chip" .label=${t.new}>${t.new}</calcite-chip>`||""}</span>`}</a>${s&&c`<calcite-tooltip .referenceElement=${a} placement=trailing .id=${`${a}--tooltip`} role=tooltip>${s}</calcite-tooltip>`||""}</li>`}function zi({apps:e,appsLoading:t,appsSearchTerm:i,hiddenApps:a,messages:n,handleAppsSearch:r,handleAppReorder:o,handleAppSave:s,handleAppHide:l,handleAppDelete:d,handleAppCancel:g,handleAppEdit:v,editingApplications:h}){if(!e||!n)return null;let _=i?.length>0,A=(e||[]).filter(b=>b.itemId&&(!a?.[b.itemId]||_)&&bi(i,b)),w=_?n.noAppResults.replace("{term}",i):n.noAppsAvailable;return h?c`<div class="list__header"><calcite-button appearance=outline width=half @click=${()=>{g()}}>${n.cancel}</calcite-button><calcite-button width=half @click=${()=>{s()}}>${n.applyChanges}</calcite-button></div><calcite-list .label=${n.allMyApplications} drag-enabled @calciteListDragEnd=${b=>{let{newIndex:I,oldIndex:u}=b.detail;o({newIndex:I,oldIndex:u})}} .loading=${t}>${O(e,b=>b.itemId,b=>Di({app:b,hiddenApps:a,messages:n,toggleAppVisibility:(I,u)=>{l({app:I,hidden:u})},handleAppDelete:d}))}</calcite-list>`:c`<div class="list__header"><calcite-input type=search icon .placeholder=${n.searchMyApps} .value=${i} scale=m class="list__search" @calciteInputInput=${b=>{r(b.currentTarget.value)}}></calcite-input><calcite-button appearance=transparent kind=neutral icon-start=reorder-cards .label=${n.reorder} @click=${()=>v()} id=customize-apps></calcite-button><calcite-tooltip reference-element=customize-apps><span>${n.customizeApps}</span></calcite-tooltip></div>${A?.length>0?c`<ul class="list">${O(A,b=>b.itemId,b=>Oi({app:b,messages:n}))}</ul>`:te({title:w,icon:i?"search":"apps"})}`}var Ye="portalAppClientId",ve={GeoanalyticsEngine:"geoanalyticsengine",GeoanalyticsFabric:"geoanalyticsfabric",IndoorsOnline:"indoorsonline"};function be(e){return ve.GeoanalyticsEngine===e}function _e(e){return ve.GeoanalyticsFabric===e}function pt(e){return ve.IndoorsOnline===e}function ie(e){return["Location Platform","GeoAnalytics Fabric","GeoAnalytics Engine","Online","Enterprise"].includes(e)}function Gi({portal:e,messages:t,licenses:i,clientId:a,signInSettings:n}){if(!t||!e)return[];let r=e.sourceJSON?.subscriptionInfo,o=Bi({messages:t,portal:e});if(!e.user)return o;if(!e||!o||e?.user&&!i&&!j(e))return[];let s=Vi({portal:e,licenses:i,subscriptionInfo:r}),l=Ui({messages:t,portal:e,clientId:a,signInSettings:n,navLinkDictionary:s});return Ri({links:l,portal:e})}function Ze(e,t){return t?e.configName?t.indexOf(e.configName):t.length:0}function Ri({links:e,portal:t}){let i=t.portalProperties?.topNav;if(!i)return e;let a=i.customPage;return a?.enabled&&(a.visibility!=="members"||t.user?.orgId===t.id)&&e.push({label:a.name,href:a.url,configName:"customPage",icon:a.iconName??"link",newTab:!0}),i.order?e.sort((n,r)=>Ze(n,i.order)-Ze(r,i.order)):e}function Wi(e){let{id:t,access:i,isPortal:a}=e;return!t&&!i&&!a}function Fi(e,t,i){if(i==="customPage")return!1;let a=new URL(e),n=t||window.location.pathname;return a.pathname===n}function dt({portal:e,clientId:t,signInSettings:i}){let a=e.user,n=pt(t),r=!!i?.blockedApps?.includes("arcgisnotebooks"),o=e.portalProperties,{gallery:s="all",groups:l="all",map:d="all",notebook:g="notebookCreators",scene:v="all"}=o?.topNav||{},h=["home"];if(!a){if(!o?.topNav){let A=["gallery","map","scene","groups"],w=e.isPortal?["help"]:[];return[...h,...A,...w]}return[...h,...s==="all"?["gallery"]:[],...d==="all"?["map"]:[],...v==="all"?["scene"]:[],...l==="all"?["groups"]:[],...e.isPortal?["help"]:[]]}let _=a.orgId===e.id;return!o?.topNav&&j(e)?h=["ArcGIS","overview","pricing","map","scene","groups","myContent"]:h=[...h,...(s==="all"||s==="members"&&_)&&!n?["gallery"]:[],...(d==="all"||d==="members"&&_||d==="mapCreators"&&le(a))&&!n?["map"]:[],...(v==="all"||v==="members"&&_||v==="sceneCreators"&&le(a))&&!n?["scene"]:[],...!r&&(!e.isPortal||e.sourceJSON.supportsHostedNotebooks)&&(g==="members"&&_||g==="notebookCreators"&&Ge(a))&&!n?["notebook"]:[],...(l==="all"||l==="members"&&_)&&!n?["groups"]:[],..._&&!n?["myContent","organization"]:[]],h}function M(e){return`${Se({portal:e})}/`}function Hi({keys:e,navLinkDictionary:t,messages:i}){let a=[];return e.forEach(n=>{let r=t[n];if(r&&(!("show"in r)||r.show)){let{href:o,newTab:s,icon:l,relativePath:d,configName:g}=r;a.push({label:i[n],href:o,newTab:s,relativePath:d,configName:g,icon:l})}}),a}function Bi({messages:e,portal:t}){if(!e||!t)return[];let i=M(t),a={overview:{label:e.overview,href:`${i}../features/features.html`,icon:"information"},pricing:{label:e.pricing,href:`${i}../features/plans/pricing.html`,icon:"credit-card"},map:{label:e.map,href:`${i}apps/mapviewer/index.html`,icon:"map",configName:"map"},scene:{label:e.scene,href:`${i}webscene/viewer.html`,icon:"globe",configName:"scene"},help:{label:e.help,href:ee(t),newTab:!0,icon:"headset"},home:{label:e.home,href:`${i}index.html`,relativePath:"index.html",icon:"home",configName:"home"},gallery:{label:e.gallery,href:`${i}gallery.html`,relativePath:"gallery.html",icon:"gallery",configName:"gallery"},groups:{label:e.groups,href:`${i}groups.html`,relativePath:"groups.html",icon:"group",configName:"groups"}};return(Wi(t)?["overview","pricing","map","scene","help"]:dt({portal:t})).map(n=>a[n])}function Ui({messages:e,portal:t,clientId:i,signInSettings:a,navLinkDictionary:n}){let r=be(i),o=dt({portal:t,clientId:i,signInSettings:a}),s=`${M(t)}geoanalytics${r?"engine":"fabric"}.html`;return r||_e(i)?[{href:`${s}#subscription`,label:e.subscription},...r?[{href:`${s}#downloads`,label:e.downloads}]:[],{href:`${s}#credentials`,label:e.developerCredentials},{href:`${s}#account`,label:e.account}]:Hi({keys:o,messages:e,navLinkDictionary:n})}function Vi({portal:e,licenses:t,subscriptionInfo:i}){let a=e.user,n=M(e),r=i?.options?.includes("Developer"),o=S("arcgiswebapps",t)||r&&S("locationplatformwebapps",t)||j(e);return{pricing:{href:`${n}../features/plans/pricing.html`},overview:{href:`${n}../features/features.html`},ArcGIS:{href:`${n}${j(e)?"index.html":"../features/features.html"}`,show:j(e)||!a},groups:{href:`${n}groups.html`,relativePath:"groups.html",icon:"group",configName:"groups"},myContent:{href:`${n}content.html`,relativePath:"content.html",icon:"files",configName:"content"},map:{show:o,href:`${n}apps/mapviewer/index.html`,icon:"map",configName:"map"},help:{href:ee(e),newTab:!0},gallery:{show:!!e.id&&!r,href:`${n}gallery.html`,relativePath:"gallery.html",icon:"gallery",configName:"gallery"},home:{show:!j(e)&&!r,href:`${n}index.html`,relativePath:"index.html",icon:"home",configName:"home"},scene:{show:o,href:`${n}webscene/viewer.html`,icon:"globe",configName:"scene"},notebook:{show:Te(e),href:`${n}notebook/notebookhome.html`,relativePath:"notebook/notebookhome.html",icon:"notebook",configName:"notebook"},organization:{show:!j(e),href:`${n}organization.html`,relativePath:"organization.html",icon:"organization",configName:"organization"},features:{show:j(e)&&!e.isPortal,href:`${n}../features/features.html`,icon:"information"}}}function qi({portal:e,item:t,messages:i,navigate:a,locale:n}){if(!t||!i||!t.modified)return null;let r=t.modified,o={lessThanOneMinute:i.lessThanOneMinute},s=it(at(r)),l=s?.[1]==="year"||s?.[1]==="month"?Zt({locale:n,time:r},s?.[1]==="year"):nt({locale:n,time:r,t9n:o}),d=`item.html?id=${t.id}`,g=`${M(e)}${d}}`;return X(t.id,c`<li class="list-item"><a class="list-item__link" href=${g??C} @click=${v=>{a({event:v,href:g,relativePath:d})}}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular">${t.title}</span><span class="list-item__subtitle">${ae(i.lastUpdated,{date:l})}</span></span></span>`}</a></li>`)}function Ji({locale:e,navigate:t,portal:i,open:a,apps:n,appsLoading:r,hiddenApps:o,appsSearchTerm:s,handlePlatformClose:l,handleAppsSearch:d,handleAppReorder:g,handleAppSave:v,handleAppDelete:h,handleAppHide:_,handleAppCancel:A,handleAppEdit:w,handleItemSearch:b,handlePlatformTabUpdate:I,platformTab:u,editingApplications:p,recentContent:f,recentContentLoading:k,recentContentSearchTerm:T,product:y,platformInfo:x,links:$,messages:m}){if(!y||!i||!m)return null;let{name:F,icon:E}=x||{};return c`<calcite-sheet class="platform" .label=${m.label} position=inline-start display-mode=overlay id=example-sheet .open=${a} @calciteSheetClose=${l}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${E??C} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${F}</h2><p class="platform__subtitle">${i.name}</p></div><calcite-action icon=x text="Close menu" scale=l @click=${l}></calcite-action></div><div class="platform__tiles">${$.filter(({icon:P})=>P).map(({label:P,href:H,icon:ne,relativePath:J})=>c`<calcite-tile .icon=${ne} .description=${P} .href=${H} alignment=center scale=s @keydown=${L=>{(L.key==="Enter"||L.key===" ")&&t({event:L,href:H,relativePath:J})}} @click=${L=>{t({event:L,href:H,relativePath:J})}}></calcite-tile>`)}</div>${i?.user&&c`<calcite-tabs layout=center><calcite-tab-nav slot=title-group @calciteTabChange=${P=>{I(P.target.selectedTitle?.dataset.id)}}>${!j(i)&&c`<calcite-tab-title data-id=apps .selected=${u==="apps"}>${m.myApps}</calcite-tab-title>`||""}<calcite-tab-title data-id=content .selected=${u==="content"}>${m.recentContent}</calcite-tab-title></calcite-tab-nav></calcite-tabs>`||""}${!j(i)&&u==="apps"&&c`${r&&c`<calcite-scrim loading></calcite-scrim>`||""}${zi({apps:n,appsLoading:r,appsSearchTerm:s,hiddenApps:o,messages:m,handleAppsSearch:d,handleAppReorder:g,handleAppSave:v,handleAppDelete:h,handleAppHide:_,handleAppCancel:A,handleAppEdit:w,editingApplications:p})}`||""}${u==="content"&&c`<div class="list__header"><calcite-input type=search icon .placeholder=${m.searchRecentContent} .value=${T} scale=m class="list__search" .loading=${k} @calciteInputInput=${P=>b(P.target.value)}></calcite-input></div><div class="list__container">${k&&!r&&c`<calcite-scrim loading></calcite-scrim>`||""}${f?.length>0||k?c`<ul class="list">${O(f,P=>P.id,P=>qi({portal:i,messages:m,navigate:t,item:P,locale:e}))}</ul>`:T?.length?te({title:ae(m.noAppResults,{term:T}),icon:"search"}):te({title:m.noContent,icon:"clock"})}</div>`||""}</calcite-panel></calcite-sheet>`}var me=["new","open","rename","save","saveCopy","share","copyLink","embed","details"];async function Ki(e){return await Promise.resolve({status:"success"})}function ge(e){return me.includes(e.id)}function Qi(e){return(e||[])?.toSorted((t,i)=>{let a=ge(t),n=ge(i);return a&&!n?-1:n&&!a?1:n&&a?me.indexOf(t.id)-me.indexOf(i.id):-1})}function Xi(e,t){let i={new:[],save:[],share:[],details:[],custom:[]};if(!t||!e?.length)return i;let a={new:{text:t.new,group:"new"},open:{text:t.open,group:"new"},rename:{text:t.rename,group:"save"},save:{text:t.save,group:"save"},saveCopy:{text:t.saveAsCopy,group:"save"},share:{text:t.manageSharing,group:"share"},copyLink:{text:t.copyLink,group:"share"},embed:{text:t.embed,group:"share"},details:{text:t.itemDetails,group:"details",external:!0}},n=Qi(e),r=[];return n.forEach(o=>{if(!ge(o)){r.push(o);return}let{text:s,external:l,group:d}=a[o.id];i[d].push({text:s,external:l,...o})}),r.forEach(o=>{let s=o.group||"custom";i[s].push(o)}),i}function Yi({navigate:e,portal:t,menuItem:i,messages:a,portalItem:n,openProjectTitleEdit:r,projectMenuClick:o}){if(!t||!a||!i||i.id==="details"&&!n)return null;let{external:s,id:l,text:d}=i,g=`${M(t)}item.html?id=${n?.id}`;return X(`${l}${d}`,c`<calcite-dropdown-item .iconEnd=${s?"launch":void 0} .href=${l==="details"?g:i.href} .target=${s?"_blank":void 0} @calciteDropdownItemSelect=${v=>{if(l==="rename"){r?.();return}l==="details"&&e({event:v,href:g}),o?.({type:l})}}>${d}${l==="save"&&c`<calcite-icon icon=bullet-point-large class="project__indicator" scale=s></calcite-icon>`||""}</calcite-dropdown-item>`)}function Zi({navigate:e,portal:t,projectTitle:i,editedProjectTitle:a,handleProjectTitleSave:n,handleProjectTitleEdit:r,handleProjectTitleCancel:o,openProjectTitleEdit:s,portalItem:l,projectTitleEditing:d,projectTitleSaving:g,projectTitleErrorMessage:v,projectMenuIcon:h,projectMenuSaveIndicator:_,projectMenuClick:A,projectMenuOptions:w,projectTitleInputRef:b,projectButtonRef:I,messages:u}){if(!t||!u||!w?.length&&!i)return null;if(!w?.length)return c`<div class="project__title">${h&&c`<calcite-icon .icon=${h} scale=s class="project__menu-icon"></calcite-icon>`||""}<h1 class="project__title__header">${i}</h1>${_&&c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>`||""}</div>`;let p=Xi(w,u),f=!!v;return d?c`<form class="rename" @submit=${async k=>{k.preventDefault(),await n?.(a)}} @keydown=${k=>{k.key==="Escape"&&o?.()}}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${u.title} .value=${a} .status=${f?"invalid":"idle"} @calciteInputInput=${k=>r?.(k.target.value)} ${R(b)}></calcite-input>${f&&c`<calcite-popover open .label=${u.error} .referenceElement=${b?.value||"project-title-input"} pointer-disabled placement=bottom-start><calcite-notice kind=danger open><div slot=message>${v}</div></calcite-notice></calcite-popover>`||""}<calcite-action .disabled=${g} icon=check scale=l .text=${u?.saveRename} active class="rename__action" type=submit .loading=${g}></calcite-action><calcite-action .disabled=${g} icon=x scale=l .text=${u?.cancelRename} class="rename__action" @click=${()=>o?.()}></calcite-action></form>`:c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${R(I)}>${h&&c`<calcite-icon scale=s .icon=${h} class="project__menu-icon"></calcite-icon>`||""}<span class="project__text">${i}</span>${_&&c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>`||""}<calcite-icon scale=s icon=chevron-down></calcite-icon></button>${O(Object.entries(p).filter(([k,T])=>T.length),([k,T])=>k,([k,T])=>c`<calcite-dropdown-group selection-mode=none>${T.map(y=>Yi({menuItem:y,navigate:e,portal:t,messages:u,portalItem:l,openProjectTitleEdit:s,projectMenuClick:A}))}</calcite-dropdown-group>`)}</calcite-dropdown>`}function ea(e){return["Location Platform","Online","Enterprise"].includes(e)}function ut({portal:e,searchType:t,searchTerm:i}){let a=e?.sourceJSON?.vectorSearchEnabled?`&mode=${t}`:"";return`search.html?q=${i}${a}`}function ta({portal:e,item:t,messages:i,navigate:a}){if(!t||!i)return null;let n=ae(i.by,{itemType:Ve(t),owner:t.owner}),r=`item.html?id=${t.id}`,o=`${M(e)}${r}`;return X(t.id,c`<li class="list-item"><a class="list-item__link" href=${o??C} @click=${s=>a({event:s,href:o,relativePath:r})}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular list-item__title--large">${t.title}</span><span class="list-item__subtitle list-item__subtitle--large">${n}</span></span></span>`}</a></li>`)}function ia({portal:e,suggestions:t,messages:i,navigate:a,searchType:n,searchTerm:r}){if(!i||!e||!r)return null;if(!t)return c`<div><calcite-loader scale=l .label=${i.loadingResults}></calcite-loader></div>`;let o=ut({portal:e,searchType:n,searchTerm:r}),s=`/${o}`,l=`${M(e)}${o}`;return c`<ul class="list">${t.map(d=>ta({messages:i,portal:e,item:d,navigate:a}))}</ul><div class="suggestions__footer"><calcite-button icon-end=arrow-right scale=l appearance=outline class="suggestions__footer__button" kind=neutral round .href=${l} @click=${d=>{a({href:l,event:d,relativePath:s})}}>${i.viewAll}</calcite-button></div>`}function aa({portal:e,messages:t,searchType:i,handleSearchTypeChange:a}){if(!t||!e?.sourceJSON?.vectorSearchEnabled)return null;let n=i==="keyword",r=t.searchType;return c`<calcite-chip .label=${r.label} .icon=${n?"text":"effects"} id=search-type-toggle appearance=solid kind=neutral><span>${n?r.keywordTitle:r.semanticTitle}</span><calcite-icon icon=chevron-down scale=s class="suggestions__search-type__icon" aria-hidden=true></calcite-icon></calcite-chip><calcite-popover pointer-disabled .label=${t.searchType.label} reference-element=search-type-toggle placement=bottom-end class="suggestions__search-type"><div class="esri-header-search-type-popover-contents"><calcite-list .label=${t.searchType.label} interaction-mode=interactive display-mode=flat scale=m selection-mode=none><calcite-list-item @calciteListItemSelect=${()=>a("keyword")} icon-start=text value=keyword .label=${r.keywordTitle} .description=${r.keywordDescription}></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>a("vector")} icon-start=effects value=semantic .label=${r.semanticTitle} .description=${r.semanticDescription}></calcite-list-item></calcite-list></div></calcite-popover>`}function na({currentPathname:e,navigate:t,product:i,portal:a,messages:n,searchActive:r,searchType:o,searchTerm:s,suggestions:l,searchInputRef:d,searchActionRef:g,searchPopoverRef:v,handleSearch:h,handleToggleSearch:_,handleSearchTypeChange:A}){if(!ea(i)||!n||!a||e?.includes("search.html"))return null;let w=ut({portal:a,searchType:o,searchTerm:s}),b=`/${w}`,I=`${M(a)}${w}`;return r?c`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${n.label} .placeholder=${o==="vector"?n.searchType.semanticPlaceholder:n.searchType.keywordPlaceholder} @calciteInputInput=${u=>h(u.target.value)} @keydown=${u=>{u.key==="Enter"&&(t({href:I,event:u,relativePath:b}),u.defaultPrevented||(window.location.href=I)),u.key==="Escape"&&_(!1)}} ${R(d)}></calcite-input><calcite-action icon=x scale=l .text=${n?.close} active class="search__action" @click=${()=>_(!1)}></calcite-action><calcite-popover .label=${n.suggestions} reference-element=search-reference-element .open=${r&&!!s} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{initialFocus:!1}} ${R(v)}><div class="suggestions__header"><h3 class="suggestions__title">${n.topResults}</h3>${aa({portal:a,messages:n,searchType:o,handleSearchTypeChange:A})}</div><div class="suggestions__results">${ia({portal:a,suggestions:l,navigate:t,messages:n,searchType:o,searchTerm:s})}</div></calcite-popover></div>`:c`<calcite-action icon=search scale=l text=search class="search__action" @click=${()=>_(!0)} ${R(g)}></calcite-action>`}function ra({signIn:e,messages:t}){return c`<div class="border-start fade-in"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral @click=${()=>e()}><span class="user__button__contents"><calcite-avatar scale=m class="user__button__avatar"></calcite-avatar><span class="user__button__text"><p class="user__button__username">${t?.signIn||""}</p></span></span></calcite-button></div>`}function oa({navigate:e,portal:t,product:i,links:a,messages:n,currentPathname:r,searchActive:o}){return ie(i)&&a?.length===0&&t?c`<div slot=content-start class="site-nav skeleton">${["Overview","Pricing","Map","Scene","Help"].map(s=>c`<span class="skeleton-line" aria-hidden>${s}</span>`)}</div>`:!i||!t||!n||!ie(i)||!a||o?null:c`<calcite-menu slot=content-start .label=${n.label} class="site-nav fade-in">${O(a,({href:s})=>s,({label:s,href:l,relativePath:d,configName:g,newTab:v})=>c`<calcite-menu-item .text=${s} text-enabled .label=${s} .href=${l} .target=${v?"_blank":void 0} .active=${Fi(l,r,g)} @click=${h=>e({event:h,href:l,relativePath:d})}></calcite-menu-item>`)}</calcite-menu>`}function sa({userLinks:e,messages:t,navigate:i,openAccountSwitcher:a,portal:n,signOut:r,textDisabled:o}){let s=n?.user;return!s||!e||!t||e?.account?.options.length<1&&e?.resources?.options.length<1?null:c`<div class="user"><calcite-dropdown .width=${o?"l":"m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${s} .portal=${n} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!o&&c`<span class="user__button__text"><h2 class="user__button__full user__full">${s.fullName}</h2><p class="user__button__username user__username">${s.username}</p></span>`||""}</span></calcite-button>${o&&c`<div class="user__top"><arcgis-portal-user-avatar .user=${s} .portal=${n} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${s.fullName}</h2><p class="user__top__username user__username">${s.username}</p></div></div>`||""}${Object.values(e).filter(l=>l.options.length).map(({title:l,options:d})=>c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({icon:g,label:v,href:h,relativePath:_})=>c`<calcite-dropdown-item .iconStart=${g} .href=${h} @keydown=${A=>{(A.key==="Enter"||A.key===" ")&&i({event:A,href:h,relativePath:_})}} @click=${A=>{i({event:A,href:h,relativePath:_})}}>${v}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${a&&c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${l=>{let d=Le(l.target,"calcite-dropdown");d&&(d.open=!1),a()}}>${t.switchAccounts}</calcite-dropdown-item>`||""}<calcite-dropdown-item icon-start=sign-out @calciteDropdownItemSelect=${()=>r()}>${t.signOut}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></div>`}var ht={community:"https://community.esri.com/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fcommunity.esri.com%2F",myEsri:"https://my.esri.com"};function ca({messages:e,userLinks:t}){let i={account:{title:e.account,options:[]},resources:{title:e.resources,options:[]}};return t.forEach(a=>{i[a.group].options.push(a)}),i}function la({portal:e,messages:t,clientId:i}){if(!e?.user||!t)return{account:{title:t?.account,options:[]},resources:{title:t?.account,options:[]}};let a=ua(e),n=pa({navLinkDictionary:a,messages:t,clientId:i});return ca({userLinks:n,messages:t})}function pa({navLinkDictionary:e,messages:t,clientId:i}){let a=["myProfile","mySettings","myEsri","training","trialDownload","communityForums","arcgisBlog","help"];return(be(i)||_e(i))&&(a=["mySettings","arcgisBlog","help"]),pt(i)&&(a=[]),da(a,t,e)}function da(e,t,i){let a=[];return e.forEach(n=>{let r=i[n];if(r&&(!("show"in r)||r.show)){let{href:o,newTab:s,icon:l,group:d,relativePath:g}=r;a.push({label:t[n],group:d,href:o,newTab:s,relativePath:g,icon:l})}}),a}function ua(e){let t=M(e),i=ha(e),a=`user.html${window.location.pathname.includes("home/user.html")?"?nav=1":""}`;return{myProfile:{href:`${t}${a}`,relativePath:a,group:"account",icon:"user"},mySettings:{href:`${t}${a}#settings`,relativePath:`${a}#settings`,group:"account",icon:"gear"},help:{group:"resources",icon:"question",href:ee(e),newTab:!0},communityForums:{show:i,group:"resources",icon:"speech-bubbles",href:ht.community,newTab:!0},myEsri:{show:i,group:"account",icon:"blank",href:ga(e),newTab:!0},arcgisBlog:{show:i,group:"resources",icon:"article",href:"https://www.esri.com/arcgis-blog/products/arcgis-online",newTab:!0},training:{show:i,group:"resources",icon:"education",href:ma(e),newTab:!0},trialDownload:{group:"resources",icon:"download-to",show:va(e),href:`${t}/home/user.html${window.location.pathname.includes("home/user.html")?"?nav=1&tab=licenses":"?tab=licenses"}#settings`}}}function ha(e){return!e.isPortal&&e?.user?.sourceJSON?.userType==="both"}function ma(e){return mt(e,`${window.location.protocol}//www.esri.com/training/arcgis-online-training`)}function ga(e){return mt(e,ht.myEsri)}function mt(e,t){let i=Z(e),a=fa(e),n=`https://accounts${a?a==="dev"?"-dev":"-stg":""}.esri.com/`,r=`&authBaseUrl=${V(i.replace("/sharing/rest/",""),e)}`,o=`${n}LoginHandler/switchuser?`,s=`username=${e?.user?.username??""}&redirect_uri=${t}${r}`;return`${o}${s}`}function fa(e){let t=e.portalHostname;return t?.includes("dev")?"dev":t?.includes("qa")?"qa":""}function va(e){return!e?.isPortal&&["Trial","Trial Press"].includes(e?.sourceJSON?.subscriptionInfo?.type)}function gt(e){switch(e){case"360 VR":return{name:"360 VR",fileName:"arcgis-360-vr",icon:"arcgis-360-vr"};case"Business Analyst":return{name:"ArcGIS Business Analyst",fileName:"arcgis-business-analyst",icon:"business-analyst"};case"Dashboards":return{name:"ArcGIS Dashboards",fileName:"arcgis-dashboards",icon:"operations-dashboard"};case"Data Pipelines":return{name:"ArcGIS Data Pipelines",fileName:"arcgis-data-pipelines",icon:"data-pipelines"};case"Deep Learning Studio":return{name:"Deep Learning Studio",fileName:"arcgis-deep-learning-studio",icon:"deeplearningstudio"};case"Enterprise":return{name:"ArcGIS Enterprise",fileName:"arcgis-enterprise",icon:"arcgis-enterprise"};case"Excalibur":return{name:"ArcGIS Excalibur",fileName:"arcgis-excalibur",icon:"excalibur"};case"Experience Builder":return{name:"ArcGIS Experience Builder",fileName:"arcgis-experience-builder",icon:"arcgis-experience-builder"};case"Field Maps":return{name:"Field Maps Designer",fileName:"arcgis-field-maps",icon:"fieldmaps"};case"Field Maps Designer EA":return{name:"Field Maps Designer (EA)",fileName:"arcgis-field-maps-designer-ea",icon:"fieldmaps"};case"GeoAnalytics Engine":case"GeoAnalytics Fabric":return{name:e,fileName:"arcgis-geoanalytics-engine",icon:"arcgis-geoanalytics"};case"GeoBIM":return{name:"ArcGIS GeoBIM",fileName:"arcgis-geobim",icon:"geobim"};case"Hub":return{name:"ArcGIS Hub",fileName:"arcgis-hub",icon:"arcgis-hub"};case"Instant Apps":return{name:"Instant Apps",fileName:"arcgis-instant-apps",icon:"instant-apps"};case"Knowledge":return{name:"ArcGIS Knowledge Studio",fileName:"arcgis-knowledge",icon:"knowledge-studio"};case"Location Platform":return{name:"Location Platform",fileName:"arcgis-location-platform",icon:"location-platform"};case"Map Viewer":return{name:"Map Viewer",fileName:"map-viewer",icon:"map-viewer"};case"Mission":return{name:"ArcGIS Mission Manager",fileName:"arcgis-mission",icon:"mission"};case"Monitor":return{name:"ArcGIS Monitor",fileName:"arcgis-monitor",icon:"monitor"};case"Notebooks":return{name:"ArcGIS Notebooks",fileName:"arcgis-notebooks",icon:"notebook"};case"Online":return{name:"ArcGIS Online",fileName:"arcgis-online",icon:"arcgis-online"};case"Ortho Maker":return{name:"Ortho Maker",fileName:"arcgis-ortho-maker",icon:"ortho-maker"};case"QuickCapture":return{name:"ArcGIS QuickCapture",fileName:"arcgis-quickcapture",icon:"quick-capture"};case"Reality Studio":return{name:"ArcGIS Reality Studio",fileName:"arcgis-reality-studio",icon:"arcgis-reality-studio"};case"Scene Viewer":return{name:"Scene Viewer",fileName:"sceneviewer",icon:"scene-viewer"};case"Solutions":return{name:"ArcGIS Solutions",fileName:"arcgis-solutions",icon:"solutions"};case"StoryMaps":return{name:"ArcGIS StoryMaps",fileName:"arcgis-storymaps",icon:"story-maps"};case"Survey123":return{name:"ArcGIS Survey123",fileName:"arcgis-survey123",icon:"survey123"};case"Tracker":return{name:"Track Viewer",fileName:"arcgis-tracker",icon:"track-viewer"};case"Urban":return{name:"ArcGIS Urban",fileName:"arcgis-urban",icon:"arcgis-urban"};case"Vector Tile Style Editor":return{name:"Vector Tile Style Editor",fileName:"vector-tile-style-editor",icon:"vector-tile-style-editor"};case"Velocity":return{name:"ArcGIS Velocity",fileName:"arcgis-velocity",icon:"velocity"};case"Web Editor":return{name:"Web Editor",fileName:"arcgis-web-editor",icon:"web-editor"};case"Workflow Manager":return{name:"ArcGIS Workflow Manager",fileName:"arcgis-workflow-manager",icon:"workflow-manager"};case"Workforce":return{name:"ArcGIS Workforce",fileName:"arcgis-workforce",icon:"workforce"};default:return{name:"ArcGIS Online",fileName:"arcgis-online",icon:"arcgis-online"}}}function ft({name:e,fileName:t,icon:i}){return{name:e,glyph:Q(`assets/portal-navigation/product-logos/${t}-glyph-32.svg`),icon:Q(`assets/portal-navigation/apps/${i}.avif`)}}function vt({portal:e,clientId:t}){return e?.sourceJSON?.subscriptionInfo?.options?.includes("Developer")?"Location Platform":_e(t)?"GeoAnalytics Fabric":be(t)?"GeoAnalytics Engine":e?.isPortal?"Enterprise":"Online"}function ba(e){let t=vt(e);return ft(gt(t))}function et(e){let t=e?.product==="Online"?vt(e):e?.product;return ft(gt(t))}function _a(){let e=Jt();["item.html","group.html"].some(t=>window.location.href.includes(t))?window.location.href=`./signin.html?locale=${e}&useLandingPage=false&returnUrl=${encodeURIComponent(window.location.href)}`:window.location.href=`./signin.html?locale=${e}&useLandingPage=true`}function wa({portal:e,clientId:t}){let i=Y({portal:e});if(e?.isPortal){let a=e.access==="private"?V("signin.html",e):e.allSSL||window.location.protocol==="https:"?V("./index.html",e):`${i}/index.html`;$a(e,a)}else window.location.href=`${i}/pages/Account/manage_accounts.html#client_id=${t}&signout=true`}function ya(){li(Ye),pi(Ye)}function $a(e,t=window.location.href){let i=window.location.href.startsWith("http://"),a=Ie(e);Kt.destroyCredentials(),ya();let n=new URL(V(`${Z(e)}oauth2/signout`,e)),{searchParams:r}=n;r.append("client_id","arcgisonline"),r.append("redirect_uri",t),a&&i&&(e.isPortal||e.user?.sourceJSON.provider==="enterprise")&&r.append("token",a),window.location.href=n.href}function z(e,t){if(!e)return 0;let i=De({text:e,font:`${t==="s"?".875rem":"1rem"} 'Avenir Next'`});return Math.ceil(i)}function Aa({portal:e,product:t,projectTitle:i,links:a,messages:n,productInfo:r}){if(!t||!e)return;let o=e.user,s=ie(t)&&a?.length?24+a.reduce((g,v)=>g+16+z(v.label)+16,0):0,l=40+z(i)+32+16+16+12,d=o?Math.max(z(o?.username,"s"),z(o?.fullName)):z(n?.signIn);return{actions:192,project:i?Math.min(l,400):0,product:64+Math.max(z(r?.name),z(e.name,"s"))+16,nav:s,user:64+d+16}}function xa({measurements:e,screenWidth:t}){let{actions:i,nav:a,product:n,project:r,user:o}=e,s=64,l=t-i-s>a,d=t-i-(l?a:0)-r-s>Math.min(n,400),g=t-a-r-i-n<Math.min(o,320);return{nav:l,product:d,user:g?"avatar":"full"}}var bt=' -type:"Code Attachment" -type:"Featured Items" -type:"Symbol Set" -type:"Color Set" -type:"Windows Viewer Add In" -type:"Windows Viewer Configuration" -type:"Map Area" -typekeywords:"MapAreaPackage" -type:"Indoors Map Configuration" -typekeywords:"SMX"';async function tt({portal:e,searchTerm:t}){if(!e?.user)return[];try{return(await e.queryItems({...t?{query:t}:{},filter:`owner:${e.user.username}${bt}`,num:20,sortField:"modified",sortOrder:"desc"})).results}catch{return[]}}async function ka({portal:e,searchTerm:t}){if(!e)return[];let i=Oe((t||"").substring(0,409)),a=`${e?.id?`accountid:"${e.id}"`:""}${bt}`,n=`${Z(e)}search/suggest`;return(await D(n,{query:{suggest:i,filters:a,searchFields:"title",f:"json"}}))?.result?.results||[]}var Sa=ye`:host{display:block;--arcgis-portal-navigation-logo-max-width: 260px;--arcgis-portal-navigation-logo-text-display: flex;--arcgis-portal-navigation-user-max-width: 260px;--arcgis-portal-navigation-user-text-display: block;--arcgis-portal-navigation-project-max-width: auto}.scrim{z-index:100;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out;--calcite-scrim-background: rgba(0, 0, 0, .85)}.scrim--active{opacity:1}.wrapper{background:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3);position:relative;z-index:200}.navigation{width:100%;min-width:0;min-height:4rem;display:flex;align-items:stretch;max-width:var(--arcgis-portal-navigation-max-width);margin-inline:auto;overflow:hidden}.navigation--loading .fade-in{opacity:0}.fade-in{opacity:1;transition:opacity ease-in-out .15s}.content-end{margin-inline-start:auto;display:flex;align-items:center}.content-end[hidden]{display:none}.action{height:100%;--calcite-internal-action-spacing: 1.25rem}.border-start{border-inline-start:1px solid var(--calcite-color-border-3)}.platform{--calcite-sheet-width: 24rem}.platform__container{display:flex;flex-direction:column}.platform__header{display:flex;align-items:center}.platform__header-image{width:48px;height:48px;margin-inline-end:1rem}.platform__header-text{flex:1 1 auto;line-height:1.375}.platform__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}.platform__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-2)}.platform__panel{border-inline-end:1px solid var(--calcite-color-border-3);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.platform__tiles{margin:.75rem .75rem 1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-gap:.5rem}.list{list-style:none;margin:0;padding:0}.list__container{position:relative}.list__header{display:flex;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);position:sticky;top:0;z-index:701}.list__search{flex:1 1 auto;--calcite-color-border-input: var(--calcite-color-foreground-1)}.list-item__link{display:block;box-sizing:border-box;width:100%;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1);outline-color:transparent;text-decoration:none;outline-offset:0;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out,outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out}.list-item__link:hover{background-color:var(--calcite-color-transparent-hover)}.list-item__link:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus);outline-offset:-2px}.list-item:focus-within .list-item__container{border-bottom-color:transparent}.list-item__container{box-sizing:border-box;width:100%;padding-block:.5rem;padding-inline-start:0;padding-inline-end:.5rem;border-bottom:1px solid var(--calcite-color-border-3);display:flex;align-items:center;position:relative;pointer-events:none}.list-item__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.list-item__logo{width:48px;height:48px;flex:0 0 auto;box-sizing:border-box;margin-inline-end:.5rem;justify-content:center;align-items:center;position:relative;display:flex}.list-item__logo-bg{position:absolute}.list-item__indicator{position:absolute;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--calcite-color-status-success);border:2px solid var(--calcite-color-foreground-1);z-index:50;top:.25rem;inset-inline-start:-.25rem}.list-item__abbr{color:#fff;font-weight:700;position:relative}.list-item__logo-empty{border:2px dashed var(--calcite-color-border-3);border-radius:8px}.list-item__logo--item-type{background-color:var(--calcite-color-background);display:flex;justify-content:center;align-items:center}.list-item__title{display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);font-weight:500;word-wrap:break-word}.list-item__title--regular{font-weight:400;padding-top:.25rem}.list-item__title--large{font-size:var(--calcite-font-size-0);line-height:1}.list-item__subtitle{display:block;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3);font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.list-item__subtitle--large{font-size:var(--calcite-font-size--1);font-weight:400;padding:0}.list-item__chip{margin-inline-start:auto;--calcite-chip-background-color: var(--calcite-color-foreground-current)}.app--hidden{--calcite-list-background-color: var(--calcite-color-background)}.app--hidden .list-item__logo{opacity:.4}.logo{border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-logo-max-width);display:flex;align-items:center}.logo--link{text-decoration:none}.logo--link:hover{background-color:var(--calcite-color-transparent-hover)}.logo--link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.logo__glyph{width:32px;height:32px;padding-inline:1rem}.logo__text{display:var(--arcgis-portal-navigation-logo-text-display);flex-direction:column;overflow:hidden;white-space:nowrap;text-align:start;padding-inline:var(--calcite-internal-navigation-logo-padding-inline);padding-inline-end:1rem}.logo__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.25rem;text-overflow:ellipsis;overflow:hidden}.logo__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);font-size:.875rem;line-height:1rem;text-overflow:ellipsis;overflow:hidden}.site-nav{margin-inline-start:1.5rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.skeleton{height:4rem;display:flex;align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.skeleton-line{width:auto;height:.75rem;color:transparent;background:var(--calcite-color-foreground-3);border-radius:.5rem;margin:0 1rem;line-height:1}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);--calcite-dropdown-max-height: calc(100vh - 110px) ;min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%;--calcite-dropdown-max-height: calc(100vh - 110px) }.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;align-items:center}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;function Ia({messages:e,portal:t,showNav:i,openPlatformMenu:a,handleToggleSearch:n}){return!e||i&&!t?.user?null:c`<calcite-action .label=${e.applicationMenu} text="app switcher" icon=app-launcher scale=l class="action" @click=${a} @focusin=${()=>n(!1,!0)}></calcite-action>`}var fe=class extends Ae{constructor(){super(...arguments),this.messages=Me({blocking:!0}),this.originalRecentContent=[],this.refreshNotifications=async()=>{let{portal:t,messages:i}=this;this.notifications=await Je({portal:t,locale:i._t9nLocale,t9n:i.notifications})},this.deleteNotifications=async t=>{let{portal:i}=this;if(t?.length<20)await ti(i,t);else{let a=0;for await(let n of t)await rt({id:n,portal:i}),this.notificationDeleteProgress=Math.ceil(a++/t.length*100)}this.notificationDeleteProgress=void 0,this.refreshNotifications()},this.navigate=t=>{this.arcgisNavigate.emit(t),this.platformMenuOpen=!1,this.notificationsActive=!1,this.searchActive=!1},this.openPlatformMenu=()=>{this.platformMenuOpen=!0,this.searchActive=!1,j(this.portal)||(this.platformTab="apps")},this.projectMenuClick=t=>{this.arcgisNavigationProjectMenuClick.emit(t)},this.openProjectTitleEdit=()=>{this.projectTitleEditing=!0,this.editedProjectTitle=this.projectTitle,requestAnimationFrame(()=>{this.projectTitleInputRef?.value?.setFocus()})},this.closeProjectTitleEdit=()=>{this.projectTitleEditing=!1,this.projectTitleErrorMessage=void 0,requestAnimationFrame(()=>{this.projectButtonRef?.value?.focus()})},this.handleProjectTitleSave=async t=>{this.projectTitleSaving=!0;let i=await(this.projectTitleSave||Ki)(t);if(this.projectTitleSaving=!1,i.status==="success"){this.closeProjectTitleEdit();return}i.message&&(this.projectTitleErrorMessage=i.message)},this.handleProjectTitleEdit=t=>{this.editedProjectTitle=t},this.handleProjectTitleCancel=()=>{this.editedProjectTitle=this.projectTitle,this.closeProjectTitleEdit()},this.signOut=()=>{let{portal:t,clientId:i}=this;wa({portal:t,clientId:i}),this.arcgisNavigationSignOut.emit()},this.signIn=()=>{this.arcgisNavigationSignIn.emit(),_a()},this.openAccountSwitcher=()=>{this.accountSwitcherOpen=!0},this.handlePlatformClose=()=>{this.platformMenuOpen=!1,this.handleAppCancel(),this.appsSearchTerm="",this.recentContent=this.originalRecentContent,this.recentContentSearchTerm=""},this.handlePlatformTabUpdate=t=>{this.platformTab=t},this.handleAppSave=async()=>{let{hiddenApps:t,sortedApps:i,userProperties:a,portal:n}=this;this.apps=[...i],this.editingApplications=!1,this.appsLoading=!0;let{result:r}=await Li({apps:i,hiddenApps:t,userProperties:a,portal:n});r?.success&&(this.previousAppState={apps:i,hiddenApps:t}),await ke(1e3),this.appsLoading=!1},this.handleAppDelete=async t=>{t&&(this.apps=this.sortedApps.filter(i=>i.itemId!==t),this.sortedApps=this.sortedApps.filter(i=>i.itemId!==t))},this.handleAppCancel=()=>{this.previousAppState&&(this.apps=this.previousAppState.apps,this.hiddenApps=this.previousAppState.hiddenApps),this.editingApplications=!1},this.handleAppHide=({app:t,hidden:i})=>{!this.hiddenApps||!t||(this.hiddenApps={...this.hiddenApps||{},[t]:i})},this.handleAppReorder=({oldIndex:t,newIndex:i})=>{let a=[...this.sortedApps],n=a[t];a.splice(t,1),a.splice(i,0,n),this.sortedApps=a},this.handleItemSearch=t=>{this.recentContentLoading=!0,this.recentContentSearchTerm=t,this.debouncedItemSearch(t)},this.debouncedItemSearch=pe(async t=>{this.recentContent=await tt({portal:this.portal,searchTerm:t}),this.recentContentLoading=!1,t||(this.originalRecentContent=[...this.recentContent])},1e3),this.debouncedSuggest=pe(async t=>{this.suggestions=await ka({portal:this.portal,searchTerm:t})},1e3),this.handleSearch=t=>{this.searchTerm=t,this.suggestions=void 0,this.debouncedSuggest(t)},this.sizeSearchPopover=()=>{let t=this.searchInput?.value,i=this.searchPopover?.value;if(!t||!i)return;let a=t.offsetWidth>480?`${t.offsetWidth}px`:"80vw";i.style?.setProperty?.("--calcite-popover-max-size-x",a)},this.handleToggleNotifications=t=>{this.notificationsActive=t},this.handleToggleSearch=(t,i)=>{this.searchActive=t,this.searchTerm="",this.suggestions=void 0,document.documentElement.style.overflow=t?"hidden":this.initialDocumentOverflowStyle,!i&&requestAnimationFrame(()=>{if(t){this.searchInput?.value?.setFocus(),this.sizeSearchPopover();return}this.searchAction?.value?.setFocus()})},this.handleSearchTypeChange=t=>{this.searchType=t},this.searchInput=G(),this.searchAction=G(),this.searchPopover=G(),this.projectTitleInputRef=G(),this.projectButtonRef=G(),this.initialDocumentOverflowStyle=document.documentElement.style.overflow,this.links=[],this.notifications=[],this.notificationsActive=!1,this.apps=[],this.hiddenApps={},this.sortedApps=[],this.appsSearchTerm="",this.appsLoading=!0,this.editingApplications=!1,this.recentContent=[],this.recentContentSearchTerm="",this.recentContentLoading=!0,this.platformMenuOpen=!1,this.platformTab="apps",this.accountSwitcherOpen=!1,this.projectTitleEditing=!1,this.projectTitleSaving=!1,this.screenWidth=window.innerWidth,this.searchActive=!1,this.searchTerm="",this.searchType="keyword",this.projectMenuOptions=[],this.currentPathname=window.location.pathname,this.arcgisNavigate=U(),this.arcgisNavigationProjectMenuClick=U(),this.arcgisNavigationSignIn=U(),this.arcgisNavigationSignOut=U()}static{this.properties={infoBanner:16,links:16,userLinks:16,notifications:16,notificationsActive:16,apps:16,hiddenApps:16,sortedApps:16,previousAppState:16,appsSearchTerm:16,appsLoading:16,editingApplications:16,recentContent:16,recentContentSearchTerm:16,recentContentLoading:16,platformMenuOpen:16,platformTab:16,accountSwitcherOpen:16,editedProjectTitle:16,projectTitleEditing:16,projectTitleSaving:16,projectTitleErrorMessage:16,productInfo:16,platformInfo:16,notificationDeleteProgress:16,measurements:16,screenWidth:16,showProduct:16,showNav:16,showUser:16,searchActive:16,searchTerm:16,suggestions:16,searchType:16,portal:0,portalItem:0,product:1,productHref:1,projectTitle:1,projectTitleSave:0,projectMenuIcon:1,projectMenuSaveIndicator:5,projectMenuOptions:0,disableTrackViewer:5,disableNotebookServer:5,clientId:1,currentPathname:1,maxWidth:9,showNotifications:5}}static{this.styles=Sa}#e;connectedCallback(){super.connectedCallback(),this.initialDocumentOverflowStyle=document.documentElement.style.overflow,!(typeof ResizeObserver>"u")&&(this.#e=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.screenWidth=window.innerWidth,this.updateBreakpoints(),this.sizeSearchPopover()})}))}willUpdate(t){(t.has("product")||t.has("clientId"))&&this.hasUpdated&&(this.productInfo=et({product:this.product,clientId:this.clientId,portal:this.portal}))}firstUpdated(){this.el&&this.#e&&(this.#e.observe(this.el),this.screenWidth=window.innerWidth)}async loaded(){this.fetchData()}disconnectedCallback(){this.#e?.disconnect(),this.#e=void 0,document.documentElement.style.overflow=this.initialDocumentOverflowStyle,super.disconnectedCallback()}async fetchData(){let{portal:t,messages:i,clientId:a,product:n}=this;this.calculateMeasurements(),this.productInfo=et({product:n,clientId:a,portal:t}),this.platformInfo=ba({clientId:a,portal:t}),this.userLinks=la({portal:t,messages:i.user,clientId:a}),this.notifications=await Je({portal:t,locale:i._t9nLocale,t9n:i.notifications}),this.recentContent=await tt({portal:t}),this.originalRecentContent=[...this.recentContent],this.recentContentLoading=!1;let{apps:r,hiddenApps:o,signInSettings:s,licenses:l,userProperties:d}=await Mi({portal:t,trackViewerEnabled:!this.disableTrackViewer,notebookServerEnabled:!this.disableNotebookServer}),g=await Fe(t);this.infoBanner=g?.informationalBanner,this.userProperties=d,this.apps=r,this.hiddenApps=o,this.sortedApps=r,this.previousAppState={apps:r,hiddenApps:o},this.appsLoading=!1,this.links=Gi({portal:t,messages:i.links,licenses:l,clientId:a,signInSettings:s}),j(t)&&(this.platformTab="content"),this.calculateMeasurements()}calculateMeasurements(){let{links:t,messages:i,portal:a,product:n,productInfo:r,projectTitle:o}=this;if(a){let s=Aa({portal:a,product:n,productInfo:r,links:t,messages:i.user,projectTitle:o});this.measurements=s,this.updateBreakpoints()}}updateBreakpoints(){let{measurements:t,maxWidth:i}=this;if(t){let a=i?Math.min(this.screenWidth,i):this.screenWidth,n=xa({measurements:t,screenWidth:a});this.showProduct=n.product,this.showNav=n.nav,this.showUser=n.user}}render(){let{accountSwitcherOpen:t,apps:i,appsLoading:a,appsSearchTerm:n,currentPathname:r,handleAppCancel:o,handleAppDelete:s,handleAppHide:l,handleAppReorder:d,handleAppSave:g,handleItemSearch:v,handlePlatformClose:h,handleSearch:_,handleToggleSearch:A,handleSearchTypeChange:w,hiddenApps:b,infoBanner:I,links:u,messages:p,navigate:f,notifications:k,notificationsActive:T,notificationDeleteProgress:y,openAccountSwitcher:x,platformInfo:$,portal:m,portalItem:F,product:E,productInfo:P,productHref:H,projectTitle:ne,editedProjectTitle:J,handleProjectTitleSave:L,handleProjectTitleEdit:_t,handleProjectTitleCancel:wt,handleToggleNotifications:we,openProjectTitleEdit:yt,openPlatformMenu:$t,platformMenuOpen:At,projectTitleEditing:re,projectTitleSaving:xt,projectTitleErrorMessage:kt,projectMenuIcon:St,projectMenuSaveIndicator:It,projectMenuClick:Tt,projectMenuOptions:Pt,projectTitleInputRef:jt,projectButtonRef:Nt,recentContent:Ct,recentContentSearchTerm:Mt,recentContentLoading:Et,userLinks:Lt,searchActive:B,searchTerm:Dt,searchType:Ot,searchInput:zt,searchAction:Gt,searchPopover:Rt,showNav:oe,showProduct:Wt,showUser:Ft,suggestions:Ht}=this,Bt=m?.user,Ut=ie(E)&&!u?.length||!this.measurements;return c`<calcite-scrim class=${K({scrim:!0,"scrim--active":B})}></calcite-scrim><div class="wrapper" style=${se({"--arcgis-portal-navigation-max-width":this.maxWidth?`${this.maxWidth}px`:"100%"})}><arcgis-portal-info-banner .config=${I}></arcgis-portal-info-banner>${m?.isPortal&&F?.loaded&&c`<arcgis-portal-classification-banner .portalItem=${F}></arcgis-portal-classification-banner>`||""}<header class=${K({navigation:!0,"navigation--loading":Ut})}>${Ia({messages:p?.platform,portal:m,showNav:oe,openPlatformMenu:$t,handleToggleSearch:A})}${Wt&&Qt({navigate:f,portal:m,product:E,productInfo:P,productHref:H,messages:p?.logo,showNav:oe,searchActive:B,projectTitleEditing:re})||""}${Zi({navigate:f,portal:m,portalItem:F,messages:p?.project,projectTitle:ne,editedProjectTitle:J,handleProjectTitleSave:L,handleProjectTitleEdit:_t,openProjectTitleEdit:yt,projectTitleErrorMessage:kt,handleProjectTitleCancel:wt,projectTitleEditing:re,projectTitleSaving:xt,projectMenuIcon:St,projectMenuSaveIndicator:It,projectMenuClick:Tt,projectMenuOptions:Pt,projectTitleInputRef:jt,projectButtonRef:Nt})}${oe&&oa({searchActive:B,navigate:f,portal:m,product:E,messages:p?.links,links:u,currentPathname:r})||""}<div slot=content-end class="content-end fade-in" .hidden=${re||B}><slot name=content-end></slot></div>${na({currentPathname:r,navigate:f,portal:m,product:E,messages:p?.search,searchActive:B,searchType:Ot,searchTerm:Dt,suggestions:Ht,handleSearch:_,handleToggleSearch:A,handleSearchTypeChange:w,searchInputRef:zt,searchActionRef:Gt,searchPopoverRef:Rt})}${Bt?c`<div class="border-start">${this.showNotifications&&c`${ri({notifications:k,notificationsActive:T,messages:p?.notifications,handleToggleNotifications:we,handleToggleSearch:A})}${oi({notificationsActive:T,notifications:k,navigate:f,portal:m,deleteNotifications:this.deleteNotifications,handleToggleNotifications:we,messages:p?.notifications,notificationDeleteProgress:y})}`||""}</div>${sa({portal:m,userLinks:Lt,openAccountSwitcher:m?.isPortal?void 0:x,signOut:this.signOut,messages:p?.user,textDisabled:Ft==="avatar",navigate:f})}`:ra({messages:p.user,signIn:this.signIn})}</header>${Ji({locale:p._t9nLocale,navigate:f,portal:m,product:E,platformInfo:$,messages:p?.platform,apps:i,appsLoading:a,hiddenApps:b,appsSearchTerm:n,editingApplications:this.editingApplications,open:At,links:u,recentContent:Ct,recentContentSearchTerm:Mt,recentContentLoading:Et,handlePlatformClose:h,handlePlatformTabUpdate:this.handlePlatformTabUpdate,handleAppReorder:d,handleAppEdit:()=>this.editingApplications=!0,handleAppDelete:s,handleAppsSearch:Vt=>this.appsSearchTerm=Vt,handleAppSave:g,handleAppCancel:o,handleAppHide:l,handleItemSearch:v,platformTab:this.platformTab})}${t&&c`<arcgis-portal-account-switcher .portal=${m} @arcgisClose=${()=>{this.accountSwitcherOpen=!1}}></arcgis-portal-account-switcher>`||""}</div>`}};xe("arcgis-portal-navigation",fe);return fe},"intl","identity/IdentityManager",a,b,d,e,f,g,h)
@@ -0,0 +1,70 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as $e}from"./CMNTOT5D.js";import{e as we}from"./R5LNWMD4.js";import{a as ye}from"./UOXUUCE7.js";import{a as te}from"./DV57AOBF.js";import{a as ne}from"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as Y,M as ee,N as xe,Q as be,T as me,h as fe,j as P,v as V}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./K3GAZFRI.js";import"./5PV2GUZW.js";function le(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var q=le();function Ie(n){q=n}var C={exec:()=>null};function v(n){let e=[];return t=>{let i=Math.max(0,Math.min(3,t-1)),r=e[i];return r||(r=n(i),e[i]=r),r}}function h(n,e=""){let t=typeof n=="string"?n:n.source,i={replace:(r,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(w.caret,"$1"),t=t.replace(r,a),i},getRegex:()=>new RegExp(t,e)};return i}var Ne=((n="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+n)}catch{return!1}})(),w={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:v(n=>new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:v(n=>new RegExp(`^ {0,${n}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:v(n=>new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)),headingBeginRegex:v(n=>new RegExp(`^ {0,${n}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:v(n=>new RegExp(`^ {0,${n}}#`)),htmlBeginRegex:v(n=>new RegExp(`^ {0,${n}}(?:</?(?:${N})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:v(n=>new RegExp(`^ {0,${n}}>`))},Fe=/^(?:[ \t]*(?:\n|$))+/,Ge=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Xe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,H=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ue=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ae=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Le=h(qe).replace(/bull/g,ae).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),We=h(qe).replace(/bull/g,ae).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),oe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ke=/^[^\n]+/,ce=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Je=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ce).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ve=h(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ae).getRegex(),N="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",pe=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ye=h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",pe).replace("tag",N).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Be=n=>h(oe).replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",n).replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex(),et=Be(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),tt=Be(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),nt=h(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",tt).getRegex(),he={blockquote:nt,code:Ge,def:Je,fences:Xe,heading:Ue,hr:H,html:Ye,lheading:Le,list:Ve,newline:Fe,paragraph:et,table:C,text:Ke},Se=h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex(),rt={...he,lheading:We,table:Se,paragraph:h(oe).replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Se).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex()},it={...he,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pe).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(oe).replace("hr",H).replace("heading",` *#{1,6} *[^
3
+ ]`).replace("lheading",Le).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},st=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,lt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ze=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,at=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,z=/[\p{P}\p{S}]/u,Z=/[\s\p{P}\p{S}]/u,F=/[^\s\p{P}\p{S}]/u,ot=h(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Z).getRegex(),ct=/[\p{Pi}\p{Ps}"']/u,Oe=/(?!~)[\p{P}\p{S}]/u,pt=/(?!~)[\s\p{P}\p{S}]/u,ht=/(?:[^\s\p{P}\p{S}]|~)/u,ut=h(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ne?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),De=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,gt=h(De,"u").replace(/punct/g,z).getRegex(),kt=h(De,"u").replace(/punct/g,Oe).getRegex(),dt=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,ft=h(dt,"u").replace(/openQuote/g,ct).replace(/punct/g,z).getRegex(),Me="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xt=h(Me,"gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,z).getRegex(),bt=h(Me,"gu").replace(/notPunctSpace/g,ht).replace(/punctSpace/g,pt).replace(/punct/g,Oe).getRegex(),mt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",wt=h(mt,"gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,z).getRegex(),yt=h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,z).getRegex(),$t="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",St=h($t,"gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,z).getRegex(),Rt=h(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,z).getRegex(),zt="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",At=h(zt,"gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,z).getRegex(),Tt=h(/\\(punct)/,"gu").replace(/punct/g,z).getRegex(),_t=h(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,z).getRegex(),Pt=h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),vt=h(pe).replace("(?:-->|$)","-->").getRegex(),Et=h("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",vt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Qe=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,U=h(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Qe).getRegex(),Ct=h(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",U).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),It=h(/^!?\[(label)\]\[(ref)\]/).replace("label",U).replace("ref",ce).getRegex(),qt=h(/^!?\[(ref)\](?:\[\])?/).replace("ref",ce).getRegex(),Re=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Lt=h(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Qe).getRegex(),Bt=h("reflink|nolink(?!\\()","g").replace("reflink",h(/^!?\[(label)\]\[(ref)\]/).replace("label",Lt).replace("ref",Re).getRegex()).replace("nolink",h(/^!?\[(ref)\](?:\[\])?/).replace("ref",Re).getRegex()).getRegex(),ze=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Zt=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Ot=h(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Zt).getRegex(),ue={_backpedal:C,anyPunctuation:Tt,anyPunctuationOutsideCode:_t,autolink:Pt,blockSkip:ut,br:Ze,code:lt,del:C,delLDelim:C,delRDelim:C,emStrongLDelim:gt,emStrongRDelimAst:xt,emStrongRDelimUnd:yt,escape:st,link:Ct,nolink:qt,punctuation:ot,reflink:It,reflinkSearch:Bt,tag:Et,text:at,url:C},Dt={...ue,emStrongLDelim:ft,emStrongRDelimAst:wt,emStrongRDelimUnd:St,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",U).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U).getRegex()},re={...ue,emStrongRDelimAst:bt,emStrongLDelim:kt,delLDelim:Rt,delRDelim:At,url:h(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Ot).replace("protocol",ze).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:h(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",ze).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Mt={...re,br:h(Ze).replace("{2,}","*").getRegex(),text:h(re.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},G={normal:he,gfm:rt,pedantic:it},Q={normal:ue,gfm:re,breaks:Mt,pedantic:Dt},Qt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ae=n=>Qt[n];function $(n,e){if(e){if(w.escapeTest.test(n))return n.replace(w.escapeReplace,Ae)}else if(w.escapeTestNoEncode.test(n))return n.replace(w.escapeReplaceNoEncode,Ae);return n}function jt(n){return w.numericCharacterReference.test(n)?n.replace(w.numericCharacterReferenceOrAmpersand,(e,t,i)=>{if(t===void 0&&i===void 0)return"&amp;";let r=t===void 0?Number.parseInt(i,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":r===38?"&amp;":String.fromCodePoint(r)}):n}function Te(n){try{n=encodeURI(n).replace(w.percentDecode,"%")}catch{return null}return n}function _e(n,e){let t=n.replace(w.findPipe,(s,a,l)=>{let p=!1,c=a;for(;--c>=0&&l[c]==="\\";)p=!p;return p?"|":" |"}),i=t.split(w.splitPipe),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(w.slashPipe,"|");return i}function T(n,e,t){let i=n.length;if(i===0)return"";let r=0;for(;r<i;){let s=n.charAt(i-r-1);if(s===e&&!t)r++;else if(s!==e&&t)r++;else break}return n.slice(0,i-r)}function Pe(n){let e=n.split(`
4
+ `),t=e.length-1;for(;t>=0&&w.blankLine.test(e[t]);)t--;return e.length-t<=2?n:e.slice(0,t+1).join(`
5
+ `)}function W(n){return n.trim().toLowerCase().toUpperCase().toLowerCase()}function ve(n,e){if(n.indexOf(e[0])===-1&&n.indexOf(e[1])===-1)return-1;let t=0;for(let i=0;i<n.length;i++)if(n[i]==="\\")i++;else if(n[i]===e[0])t++;else if(n[i]===e[1]&&(t--,t<0))return i;return t>0?-2:-1}function X(n,e=0){let t=e,i="";for(let r of n)if(r===" "){let s=4-t%4;i+=" ".repeat(s),t+=s}else i+=r,t++;return i}function Ee(n,e,t,i,r){let s=e.href,a=e.title||null,l=n[1].replace(r.other.outputLinkReplace,"$1"),p=n[0].charAt(0)==="!",c=i.state.inLink,o=i.state.linkEmitted,u=i.state.inRawBlock;i.state.inLink=!0,i.state.linkEmitted=!1;let f=i.inlineTokens(l),g=i.state.linkEmitted;if(i.state.linkEmitted=o,i.state.inLink=c,!p){if(g){i.state.inRawBlock=u;return}i.state.linkEmitted=!0}return{type:p?"image":"link",raw:t,href:s,title:a,text:l,tokens:f}}function Ht(n,e,t){let i=n.match(t.other.indentCodeCompensation);if(i===null)return e;let r=i[1];return e.split(`
6
+ `).map(s=>{let a=s.match(t.other.beginningSpace);if(a===null)return s;let[l]=a;return s.slice(Math.min(l.length,r.length))}).join(`
7
+ `)}function Ce(n,e,t,i){if(!e.includes("<"))return!1;for(let r=0;r<e.length;r++){if(e[r]==="\\"){r++;continue}if(e[r]==="`"){let l=i.inline.code.exec(e.slice(r));if(l){r+=l[0].length-1;continue}}if(e[r]!=="<")continue;let s=n.slice(t+r),a=i.inline.tag.exec(s)||i.inline.autolink.exec(s);if(a){if(a[0].length>e.length-r)return!0;r+=a[0].length-1}}return!1}var B=class{options;rules;lexer;constructor(n){this.options=n||q}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let t=this.options.pedantic?e[0]:Pe(e[0]),i=t.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t,codeBlockStyle:"indented",text:i}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let t=e[0],i=Ht(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let i=T(t,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceTabChar.test(i))&&(t=i.trim())}return{type:"heading",raw:T(e[0],`
8
+ `),depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:T(e[0],`
9
+ `)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let t=T(e[0],`
10
+ `).split(`
11
+ `),i="",r="",s=[];for(;t.length>0;){let a=!1,l=[],p;for(p=0;p<t.length;p++)if(this.rules.other.blockquoteStart.test(t[p]))l.push(t[p]),a=!0;else if(!a)l.push(t[p]);else break;t=t.slice(p);let c=l.join(`
12
+ `),o=c.replace(this.rules.other.blockquoteMarkerWhitespace,(g,b,x)=>b+X(x,b.length)).replace(this.rules.other.blockquoteSetextReplace,`
13
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
14
+ ${c}`:c,r=r?`${r}
15
+ ${o}`:o;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(o,s,!0),this.lexer.state.top=u,t.length===0)break;let f=s.at(-1);if(f?.type==="code"||f?.type==="heading"||f?.type==="hr"||f?.type==="html")break;if(f?.type==="blockquote"){let g=f,b=t.join(`
16
+ `),x=g.raw+`
17
+ `+b.replace(this.rules.other.blockquoteSetextReplace2,""),d=this.blockquote(x);s[s.length-1]=d;let y=x.substring(d.raw.length).replace(/^\n/,""),m=y?y.split(`
18
+ `).length:0,A=m?t.slice(0,-m):t;A.length>0&&(i=`${i}
19
+ ${A.join(`
20
+ `)}`),r=r.substring(0,r.length-g.text.length)+d.text;break}else if(f?.type==="list"){let g=f,b=g.raw+`
21
+ `+t.join(`
22
+ `),x=this.list(b);s[s.length-1]=x;let d=x.raw.length>g.raw.length?b.slice(g.raw.length+1,x.raw.length).split(`
23
+ `).length:0;if(d>0){let y=t.slice(0,d).join(`
24
+ `);i=`${i}
25
+ ${y}`,r=`${r}
26
+ ${y}`}t=t.slice(d);continue}}return{type:"blockquote",raw:i,tokens:s,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let t=n,i=()=>t.length-n.length,r=e[1].trim(),s=r.length>1,a={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let l=this.rules.other.listItemRegex(r),p=!1;for(;n;){let o=!1,u="";if(!(e=l.exec(n))||this.rules.block.hr.test(n))break;let f=i();n=n.substring(e[0].length);let g=e[2].split(`
27
+ `,1)[0],b=e[1].length,x=this.options.pedantic?X(g,b):g.replace(this.rules.other.leadingSpaceTab,O=>X(O,b)),d=n.split(`
28
+ `,1)[0],y=!x.trim(),m=0;if(this.options.pedantic?(m=2,u=x.trimStart()):y?m=b+1:(m=x.search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=x.slice(m),m+=b),y&&this.rules.other.blankLine.test(d)&&(n=n.substring(d.length+1),o=!0),!o){let O=this.rules.other.nextBulletRegex(m),_=this.rules.other.hrRegex(m),D=this.rules.other.fencesBeginRegex(m),M=this.options.pedantic?this.rules.other.pedanticHeadingBeginRegex(m):this.rules.other.headingBeginRegex(m),je=this.rules.other.htmlBeginRegex(m),He=this.rules.other.blockquoteBeginRegex(m);for(;n;){let de=n.split(`
29
+ `,1)[0],L;if(d=de,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),L=d):L=d.replace(this.rules.other.leadingSpaceTab,J=>X(J)),D.test(d)||M.test(d)||je.test(d)||He.test(d)||O.test(d)||_.test(d))break;if(L.search(this.rules.other.nonSpaceChar)>=m||!d.trim())u+=`
30
+ `+L.slice(m);else{if(y||x.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||D.test(x)||M.test(x)||_.test(x))break;let J=!this.options.pedantic&&/^ {0,3}(?:=+|-+) *$/.test(d)&&this.rules.block.lheading.test(`${x}
31
+ ${d}`)?` ${L.replace(/^ {0,3}/,"")}`:d;u+=`
32
+ `+J}y=!d.trim(),n=n.substring(de.length+1),x=L.slice(m)}}let A=t.slice(f,i());a.loose||(p?a.loose=!0:this.rules.other.doubleBlankLine.test(A)&&(p=!0)),a.items.push({type:"list_item",raw:A,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]})}let c=a.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;a.raw=t.slice(0,i()).trimEnd();for(let o of a.items)if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),!a.loose){let u=o.tokens.filter(g=>g.type==="space"),f=u.length>0&&u.some(g=>this.rules.other.anyLine.test(g.raw));a.loose=f}for(let o of a.items){let u=o.tokens[0];if(o.task&&(u?.type==="text"||u?.type==="paragraph")){o.text=o.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}let f=this.rules.other.listTaskCheckbox.exec(o.raw);if(f){let g={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};o.checked=g.checked,a.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=g.raw+o.tokens[0].raw,o.tokens[0].text=g.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(g)):o.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):o.tokens.unshift(g)}}else o.task&&(o.task=!1)}if(a.loose)for(let o of a.items){o.loose=!0;for(let u of o.tokens)u.type==="text"&&(u.type="paragraph")}return a}}html(n){let e=this.rules.block.html.exec(n);if(e){let t=Pe(e[0]);return{type:"html",block:!0,raw:t,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:t}}}def(n){let e=this.rules.block.def.exec(n);if(e){if(!this.rules.other.startAngleBracket.test(e[2])&&ve(e[2],"()")!==-1)return;let t=W(e[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:T(e[0],`
33
+ `),href:i,title:r}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=_e(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
34
+ `):[],s={type:"table",raw:T(e[0],`
35
+ `),header:[],align:[],rows:[]};if(t.length===i.length){for(let a of i)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<t.length;a++)s.header.push({text:t[a],tokens:this.lexer.inline(t[a]),header:!0,align:s.align[a]});for(let a of r)s.rows.push(_e(a,s.header.length).map((l,p)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[p]})));return s}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e){let t=e[1].trim();return{type:"heading",raw:T(e[0],`
36
+ `),depth:e[2].charAt(0)==="="?1:2,text:t,tokens:this.lexer.inline(t)}}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let t=e[1].charAt(e[1].length-1)===`
37
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){if(this.lexer.state.linkParenPossible===!1)return;let e=this.rules.inline.link.exec(n);if(e){let t=e[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&Ce(n,e[1],t,this.rules))return;let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=T(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=ve(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],s="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],s=a[3])}else s=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?r=r.slice(1):r=r.slice(1,-1)),Ee(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let t;if((t=this.rules.inline.reflink.exec(n))||(t=this.rules.inline.nolink.exec(n))){let i=t[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&Ce(n,t[1],i,this.rules))return;let r=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[W(r)];if(!s){let a=t[0].charAt(0);return{type:"text",raw:a,text:a}}return Ee(t,s,t[0],this.lexer,this.rules)}}emStrong(n,e,t=""){let i=this.rules.inline.emStrongLDelim.exec(n);if(!i||!i[1]&&!i[2]&&!i[3]&&!i[4])return;let r=i[0][0],s=t===r,a=e.length-n.length,l=a;for(;!this.options.pedantic&&l>0&&e[l-1]===r;)l--;let p=[...e.slice(Math.max(0,l-2),l)].at(-1)??"",c=p==="*"||p==="_"||!!this.rules.inline.punctuation.exec(p);l<a&&(t=p);let o=l<a?c:!!this.rules.inline.punctuation.exec(t);if(i[4]&&t.match(this.rules.other.unicodeAlphaNumeric))return;let u=i[1]||i[3]||"";if(!u||!t||o){let f=[...i[0]].length-1,g,b,x=f,d=0,y=a-l+f,m=!this.options.pedantic&&!!p.trim()&&(!!u||r==="*"&&!c),A=r==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(A.lastIndex=0,e=e.slice(-1*n.length+f);(i=A.exec(e))!==null;){if(g=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!g)continue;if(b=[...g].length,i[3]||i[4]){x+=b;continue}else if(i[5]||i[6]||m){if(s&&(i[5]||i[6]))break;if(y%3&&!((y+b)%3)){d+=b;continue}}if(x-=b,x>0)continue;b=Math.min(b,b+x+d);let O=[...i[0]][0].length,_=n.slice(0,f+i.index+O+b);if(Math.min(f,b)%2){let M=_.slice(1,-1);return{type:"em",raw:_,text:M,tokens:this.lexer.inlineTokens(M)}}let D=_.slice(2,-2);return{type:"strong",raw:_,text:D,tokens:this.lexer.inlineTokens(D)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return i&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n,e,t=""){let i=this.rules.inline.delLDelim.exec(n);if(i&&(!i[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...i[0]].length-1,s,a,l=r,p=this.rules.inline.delRDelim;for(p.lastIndex=0,e=e.slice(-1*n.length+r);(i=p.exec(e))!==null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s||(a=[...s].length,a!==r))continue;if(i[3]||i[4]){l+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l);let c=[...i[0]][0].length,o=n.slice(0,r+i.index+c+a),u=o.slice(r,-r);return{type:"del",raw:o,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let t,i;return e[2]==="@"?(t=e[1],i="mailto:"+t):(t=e[1],i=t),{type:"link",raw:e[0],text:t,href:i,autolink:!0,tokens:[{type:"text",raw:t,text:t}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let t,i;if(e[2]==="@")t=e[0],i="mailto:"+t;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);t=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:t,href:i,autolink:!0,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:t?e[0]:jt(e[0]),escaped:t}}}},S=class ie{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||q,this.options.tokenizer=this.options.tokenizer||new B,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let t={other:w,block:G.normal,inline:Q.normal};this.options.pedantic?(t.block=G.pedantic,t.inline=Q.pedantic):this.options.gfm&&(t.block=G.gfm,this.options.breaks?t.inline=Q.breaks:t.inline=Q.gfm),this.tokenizer.rules=t}static get rules(){return{block:G,inline:Q}}static lex(e,t){return new ie(t).lex(e)}static lexInline(e,t){return new ie(t).inlineTokens(e)}lex(e){e=e.replace(w.carriageReturn,`
38
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let i=this.inlineQueue[t];this.state.inRawBlock=!1,this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(w.tabCharGlobal," ").replace(w.spaceLine,""));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let s;if(this.options.extensions?.block?.some(l=>(s=l.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let l=t.at(-1);s.raw.length===1&&l!==void 0?l.raw+=`
39
+ `:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let l=t.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
40
+ `)?"":`
41
+ `)+s.raw,l.text+=`
42
+ `+s.text,this.inlineQueue.at(-1).src=l.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let l=t.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
43
+ `)?"":`
44
+ `)+s.raw,l.text+=`
45
+ `+s.raw,this.inlineQueue.at(-1).src=l.text):(this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title}),t.push(s));continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let a=e;if(this.options.extensions?.startBlock){let l=1/0,p=e.slice(1),c;this.options.extensions.startBlock.forEach(o=>{c=o.call({lexer:this},p),typeof c=="number"&&c>=0&&(l=Math.min(l,c))}),l<1/0&&l>=0&&(a=e.substring(0,l+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){let l=t.at(-1);i&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
46
+ `)?"":`
47
+ `)+s.raw,l.text+=`
48
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):t.push(s),i=a.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let l=t.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
49
+ `)?"":`
50
+ `)+s.raw,l.text+=`
51
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):t.push(s);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes("["))return!1;let t=this.tokenizer.rules.inline.link;for(let i of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(i[0])&&e.charAt(i.index-1)!=="!")return!0;for(let i of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let r=i[0],s=r.lastIndexOf("[");if(!(r.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,W(r.slice(s+1,-1))))&&!(s>1&&this.linkInText(r.slice(1,s-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let i=this.state.linkParenPossible;this.state.linkParenPossible=i&&e.includes(")");try{return this.#e(e,t)}finally{this.state.linkParenPossible=i}}#e(e,t){let i=e.includes("*")||e.includes("_")||e.includes("~")||this.options.hooks?.emStrongMask||this.tokenizer.emStrong!==B.prototype.emStrong||this.tokenizer.del!==B.prototype.del?this.#t(e):e,r=!1,s="",a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(s=""),r=!1;let l;if(this.options.extensions?.inline?.some(c=>(l=c.call({lexer:this},e,t))?(e=e.substring(l.raw.length),t.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let c=t.at(-1);l.type==="text"&&c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):t.push(l);continue}if(l=this.tokenizer.emStrong(e,i,s)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.del(e,i,s)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),t.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),t.push(l);continue}let p=e;if(this.options.extensions?.startInline){let c=1/0,o=e.slice(1),u;this.options.extensions.startInline.forEach(f=>{u=f.call({lexer:this},o),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(p=e.substring(0,c+1))}if(l=this.tokenizer.inlineText(p)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(s=l.raw.slice(-1)),r=!0;let c=t.at(-1);c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):t.push(l);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}#t(e){let t=e;if(this.tokens.links&&e.includes("[")){let i=this.tokenizer.rules.inline.reflinkSearch,r=s=>{let a=s.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,W(s.slice(a+1,-1))))return s;if(a>1&&s.charAt(0)!=="!"){let l=s.slice(1,a-1);if(this.linkInText(l))return"["+l.replace(i,r)+"]["+"a".repeat(s.length-a-2)+"]"}return"["+"a".repeat(s.length-2)+"]"};t=t.replace(i,r)}return t=t.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(i,r,s)=>s?"+".repeat(i.length):r?r+i.slice(r.length,-r.length).replace(/`/g,"+")+r:i),t=t.replace(this.tokenizer.rules.inline.blockSkip,(i,r,s)=>{let a=s?s.length:0;return i.slice(0,a)+"["+"a".repeat(i.length-a-2)+"]"}),t=this.options.hooks?.emStrongMask?.call({lexer:this},t)??t,t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw new Error(t)}},K=class{options;parser;constructor(n){this.options=n||q}space(n){return""}code({text:n,lang:e,escaped:t}){let i=(e||"").match(w.notSpaceStart)?.[0],r=n?n.replace(w.endingNewline,"")+`
52
+ `:"";return i?'<pre><code class="language-'+$(i)+'">'+(t?r:$(r,!0))+`</code></pre>
53
+ `:"<pre><code>"+(t?r:$(r,!0))+`</code></pre>
54
+ `}blockquote({tokens:n}){return`<blockquote>
55
+ ${this.parser.parse(n)}</blockquote>
56
+ `}html({text:n}){return n}def(n){return""}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}>
57
+ `}hr(n){return`<hr>
58
+ `}list(n){let e=n.ordered,t=n.start,i="";for(let a=0;a<n.items.length;a++){let l=n.items[a];i+=this.listitem(l)}let r=e?"ol":"ul",s=e&&t!==1?' start="'+t+'"':"";return"<"+r+s+`>
59
+ `+i+"</"+r+`>
60
+ `}listitem(n){return`<li>${this.parser.parse(n.tokens)}</li>
61
+ `}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p>
62
+ `}table(n){let e="",t="";for(let r=0;r<n.header.length;r++)t+=this.tablecell(n.header[r]);e+=this.tablerow({text:t});let i="";for(let r=0;r<n.rows.length;r++){let s=n.rows[r];t="";for(let a=0;a<s.length;a++)t+=this.tablecell(s[a]);i+=this.tablerow({text:t})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
63
+ <thead>
64
+ `+e+`</thead>
65
+ `+i+`</table>
66
+ `}tablerow({text:n}){return`<tr>
67
+ ${n}</tr>
68
+ `}tablecell(n){let e=this.parser.parseInline(n.tokens),t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+`</${t}>
69
+ `}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${$(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,text:t,tokens:i,autolink:r}){let s=r?$(t,!0):this.parser.parseInline(i),a=Te(n);if(a===null)return s;n=$(a,r);let l='<a href="'+n+'"';return e&&(l+=' title="'+$(e)+'"'),l+=">"+s+"</a>",l}image({href:n,title:e,text:t,tokens:i}){i&&(t=this.parser.parseInline(i,this.parser.textRenderer));let r=Te(n);if(r===null)return $(t);n=r;let s=`<img src="${$(n)}" alt="${$(t)}"`;return e&&(s+=` title="${$(e)}"`),s+=">",s}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:$(n.text)}},ge=class{parser;strong({text:n,tokens:e}){return e?this.parser.parseInline(e,this):n}em({text:n,tokens:e}){return e?this.parser.parseInline(e,this):n}codespan({text:n}){return n}del({text:n,tokens:e}){return e?this.parser.parseInline(e,this):n}html({text:n}){return n}text({text:n}){return n}link({text:n,tokens:e}){return e?this.parser.parseInline(e,this):n}image({text:n,tokens:e}){return e?this.parser.parseInline(e,this):n}br(){return""}checkbox({raw:n}){return n}},R=class se{options;renderer;textRenderer;constructor(e){this.options=e||q,this.options.renderer=this.options.renderer||new K,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ge,this.textRenderer.parser=this}static parse(e,t){return new se(t).parse(e)}static parseInline(e,t){return new se(t).parseInline(e)}parse(e){this.renderer.parser=this;let t="";for(let i=0;i<e.length;i++){let r=e[i];if(this.options.extensions?.renderers?.[r.type]){let a=r,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(a.type)){t+=l||"";continue}}let s=r;switch(s.type){case"space":{t+=this.renderer.space(s);break}case"hr":{t+=this.renderer.hr(s);break}case"heading":{t+=this.renderer.heading(s);break}case"code":{t+=this.renderer.code(s);break}case"table":{t+=this.renderer.table(s);break}case"blockquote":{t+=this.renderer.blockquote(s);break}case"list":{t+=this.renderer.list(s);break}case"checkbox":{t+=this.renderer.checkbox(s);break}case"html":{t+=this.renderer.html(s);break}case"def":{t+=this.renderer.def(s);break}case"paragraph":{t+=this.renderer.paragraph(s);break}case"text":{t+=this.renderer.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let i="";for(let r=0;r<e.length;r++){let s=e[r];if(this.options.extensions?.renderers?.[s.type]){let l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(s.type)){i+=l||"";continue}}let a=s;switch(a.type){case"escape":{i+=t.text(a);break}case"html":{i+=t.html(a);break}case"link":{i+=t.link(a);break}case"image":{i+=t.image(a);break}case"checkbox":{i+=t.checkbox(a);break}case"strong":{i+=t.strong(a);break}case"em":{i+=t.em(a);break}case"codespan":{i+=t.codespan(a);break}case"br":{i+=t.br(a);break}case"del":{i+=t.del(a);break}case"text":{i+=t.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},j=class{options;block;constructor(n){this.options=n||q}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(n=this.block){return n?S.lex:S.lexInline}provideParser(n=this.block){return n?R.parse:R.parseInline}};function E(n,e){if(Array.isArray(e))for(let t=0;t<e.length;t++)n.push(e[t]);else n.push(e)}var Nt=class{defaults=le();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=R;Renderer=K;TextRenderer=ge;Lexer=S;Tokenizer=B;Hooks=j;constructor(...n){this.use(...n)}walkTokens(n,e){let t=[];for(let i of n)switch(E(t,e.call(this,i)),i.type){case"table":{let r=i;for(let s of r.header)E(t,this.walkTokens(s.tokens,e));for(let s of r.rows)for(let a of s)E(t,this.walkTokens(a.tokens,e));break}case"list":{let r=i;E(t,this.walkTokens(r.items,e));break}default:{let r=i;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(s=>{let a=r[s].flat(1/0);E(t,this.walkTokens(a,e))}):r.tokens&&E(t,this.walkTokens(r.tokens,e))}}return t}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{let i={...t};if(i.async=this.defaults.async||i.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=e.renderers[r.name];s?e.renderers[r.name]=function(...a){let l=r.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),i.extensions=e),t.renderer){let r=this.defaults.renderer||new K(this.defaults);for(let s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,l=t.renderer[a],p=r[a];r[a]=(...c)=>{let o=l.apply(r,c);return o===!1&&(o=p.apply(r,c)),o||""}}i.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new B(this.defaults);for(let s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,l=t.tokenizer[a],p=r[a];r[a]=(...c)=>{let o=l.apply(r,c);return o===!1&&(o=p.apply(r,c)),o}}i.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new j;for(let s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,l=t.hooks[a],p=r[a];j.passThroughHooks.has(s)?r[a]=c=>{if(r.options.async&&j.passThroughHooksRespectAsync.has(s))return(async()=>{let u=await l.call(r,c);return p.call(r,u)})();let o=l.call(r,c);return p.call(r,o)}:r[a]=(...c)=>{if(r.options.async)return(async()=>{let u=await l.apply(r,c);return u===!1&&(u=await p.apply(r,c)),u})();let o=l.apply(r,c);return o===!1&&(o=p.apply(r,c)),o}}i.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,s=t.walkTokens;i.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),r&&E(l,r.call(this,a)),l}}this.defaults={...this.defaults,...i}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return S.lex(n,e??this.defaults)}parser(n,e){return R.parse(n,e??this.defaults)}parseMarkdown(n){return(e,t)=>{let i={...t},r={...this.defaults,...i},s=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=n),r.async)return(async()=>{let a=r.hooks?await r.hooks.preprocess(e):e,l=await(r.hooks?await r.hooks.provideLexer(n):n?S.lex:S.lexInline)(a,r),p=r.hooks?await r.hooks.processAllTokens(l):l;r.walkTokens&&await Promise.all(this.walkTokens(p,r.walkTokens));let c=await(r.hooks?await r.hooks.provideParser(n):n?R.parse:R.parseInline)(p,r);return r.hooks?await r.hooks.postprocess(c):c})().catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));let a=(r.hooks?r.hooks.provideLexer(n):n?S.lex:S.lexInline)(e,r);r.hooks&&(a=r.hooks.processAllTokens(a)),r.walkTokens&&this.walkTokens(a,r.walkTokens);let l=(r.hooks?r.hooks.provideParser(n):n?R.parse:R.parseInline)(a,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(a){return s(a)}}}onError(n,e){return t=>{if(t.message+=`
70
+ Please report this to https://github.com/markedjs/marked.`,n){let i="<p>An error occurred:</p><pre>"+$(t.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(t);throw t}}},I=new Nt;function k(n,e){return I.parse(n,e)}k.options=k.setOptions=function(n){return I.setOptions(n),k.defaults=I.defaults,Ie(k.defaults),k};k.getDefaults=le;k.defaults=q;function Ft(...n){return I.use(...n),k.defaults=I.defaults,Ie(k.defaults),k}k.use=Ft;k.walkTokens=function(n,e){return I.walkTokens(n,e)};k.parseInline=I.parseInline;k.Parser=R;k.parser=R.parse;k.Renderer=K;k.TextRenderer=ge;k.Lexer=S;k.lexer=S.lex;k.Tokenizer=B;k.Hooks=j;k.parse=k;var Ut=k.options,Wt=k.setOptions,Kt=k.walkTokens,Jt=k.parseInline;var Vt=R.parse,Yt=S.lex;var Gt=fe`:host{container-type:inline-size;display:block;min-inline-size:0}.interrupt-container{display:flex;flex-direction:column;gap:.75rem}.interrupt-actions,.interrupt-buttons{display:flex;justify-content:flex-end;gap:.5rem}.interrupt-message{white-space:normal}.interrupt-message :where(p){margin:0}.interrupt-message :where(ul,ol){margin:0;padding-inline-start:1.25rem}.entity-interrupt{background:var(--calcite-color-foreground-1);border-block-start:2px solid var(--calcite-color-brand);gap:0}.entity-heading{align-items:center;display:flex;gap:.75rem;padding:1rem 1rem .75rem}.entity-heading-icon{color:var(--calcite-color-brand);flex:none}.entity-heading-content{display:grid;gap:.25rem;min-inline-size:0}.entity-eyebrow{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-relative-sm);line-height:1.25}.entity-question{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-relative-md);font-weight:500;line-height:1.4;overflow-wrap:anywhere}.interrupt-picker{--arcgis-portal-entity-picker-results-max-block-size: min(22rem, 40vh);--arcgis-portal-entity-picker-selection-display: none;box-sizing:border-box;padding:0 1rem .75rem}.entity-interrupt .interrupt-actions{align-items:center;border-block-start:1px solid var(--calcite-color-border-3);display:grid;gap:.75rem;grid-template-columns:minmax(0,1fr) auto;min-block-size:2.25rem;padding:.625rem 1rem}.entity-selection{align-items:center;color:var(--calcite-color-text-2);display:flex;font-size:var(--calcite-font-size-relative-base);gap:.5rem;min-inline-size:0}.entity-selection calcite-icon{color:var(--calcite-color-status-success);flex:none}.entity-selection-label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@container (max-width: 24rem){.entity-heading{padding:.875rem .75rem .625rem}.interrupt-picker{padding:0 .75rem .625rem}.entity-interrupt .interrupt-actions{gap:.5rem;grid-template-columns:minmax(0,1fr);padding:.625rem .75rem}.entity-selection:empty{display:none}}`;k.use({gfm:!0,breaks:!0,async:!1});var Xt=new ye,ke=class extends xe{constructor(){super(...arguments),this._messages=ne({blocking:!0}),this.pickerMessages=ne({blocking:!0,name:"portal-entity-picker"}),this.pickerRef=Y(),this.interruptRef=Y(),this.requestKey=0,this.selectedEntity=null,this.selectionSubmitted=!1,this.showOtherOption=!1,this.arcgisCancel=V(),this.arcgisSubmit=V()}static{this.properties={selectedEntity:16,selectionSubmitted:16,type:1,message:1,options:0,showOtherOption:5,portal:0,entityRequest:0,requestId:1}}static{this.styles=Gt}get selectedReference(){return this.selectedEntity&&this.selectedEntity.entityType===this.entityRequest?.entityType?we(this.selectedEntity):void 0}willUpdate(e){(e.has("entityRequest")||e.has("requestId")||e.has("portal"))&&(this.requestKey+=1,this.selectedEntity=null,this.selectionSubmitted=!1)}updated(e){this.isConnected&&(e.has("entityRequest")||e.has("requestId")||e.has("portal")||e.has("type"))&&(this.entityRequest?this.focusPicker():this.interruptRef.value?.setFocus())}async focusPicker(){let e=this.pickerRef.value;e&&(await e.componentOnReady(),this.isConnected&&this.pickerRef.value===e&&await e.setFocus())}submitEntitySelection(){let e=this.selectedReference;!e||this.selectionSubmitted||(this.selectionSubmitted=!0,this.arcgisSubmit.emit(JSON.stringify(e)))}_renderMessageContent(){let e=this.message??"",t=k.parse(e,{async:!1});return Xt.sanitize(t)}_renderEntityInterrupt(e){let{_messages:t,selectedReference:i}=this,{entityType:r,searchTerm:s,picker:a}=e;return P`<div class="interrupt-container entity-interrupt"><div class="entity-heading"><calcite-icon class="entity-heading-icon" .icon=${r==="user"?"user":r==="group"?"group":"file"} scale=m></calcite-icon><div class="entity-heading-content"><span class="entity-eyebrow">${t.titleInput}</span><div class="interrupt-message entity-question">${$e(this._renderMessageContent())}</div></div></div>${this.portal&&te(this.requestKey,P`<arcgis-portal-entity-picker class="interrupt-picker" .portal=${this.portal} .entityType=${r} .initialSearchTerm=${s??""} .query=${a?.query} .initialScope=${a?.initialScope??"all"} .scopeSelectionDisabled=${a?.scopeSelectionDisabled??!1} mode=inline icon=search .selected=${this.selectedEntity} @arcgisSelectionChange=${({detail:l})=>{!this.selectionSubmitted&&(!l||l.entityType===this.entityRequest?.entityType)&&(this.selectedEntity=l)}} ${ee(this.pickerRef)}></arcgis-portal-entity-picker>`)||""}<div class="interrupt-actions"><div class="entity-selection" role=status>${i&&P`<calcite-icon icon=check-circle scale=s></calcite-icon><span class="entity-selection-label" title=${i.label??be}>${i.label}</span><calcite-button appearance=transparent .disabled=${this.selectionSubmitted} icon-start=x kind=neutral .label=${this.pickerMessages.clearSelection} scale=s @click=${()=>{this.selectedEntity=null,this.pickerRef.value?.setFocus()}}></calcite-button>`||""}</div><div class="interrupt-buttons"><calcite-button appearance=transparent kind=neutral @click=${()=>this.arcgisCancel.emit()}>${t.cancelButton}</calcite-button><calcite-button appearance=solid icon-end=arrow-right .disabled=${!i||this.selectionSubmitted} @click=${this.submitEntitySelection}>${t.submitButton}</calcite-button></div></div></div>`}render(){return this.entityRequest?this._renderEntityInterrupt(this.entityRequest):P`<div class="interrupt-container">${te(this.requestKey,P`<arcgis-assistant-interrupt .type=${this.type} .message=${this.message} .options=${this.options} .showOtherOption=${this.showOtherOption} @arcgisSubmit=${e=>{e.stopPropagation(),this.arcgisSubmit.emit(e.detail)}} ${ee(this.interruptRef)}>${this.type!=="boolean-choice"&&P`<calcite-button slot=footer-actions appearance=outline @click=${()=>this.arcgisCancel.emit()}>${this._messages.cancelButton}</calcite-button>`||""}</arcgis-assistant-interrupt>`)}</div>`}};me("arcgis-portal-ai-assistant-interrupt",ke);export{ke as ArcgisPortalAiAssistantInterrupt};
@@ -1 +1 @@
1
- {"shared":{"close":"Close"},"platform":{"label":"App switcher","applicationMenu":"Application menu","searchMyApps":"Search my apps","allMyApplications":"All my applictions","customizeApps":"Customize apps","reorder":"Reorder","applyChanges":"Apply","myApps":"My apps","recentContent":"Recent content","searchRecentContent":"Search my recent content","recentContentNoResultsDescription":"Check your spelling and try again.","noContent":"No recent content","noContentDescription":"Quickly access recently created and saved items from this list.","hide":"Hide application","show":"Show application","cancel":"Cancel","delete":"Delete","noAppResults":"No results for \"{term}\"","noAppResultsDescriptionOrg":"Check your spelling and try again. Missing an app? Contact your organization admin to request a license.","noAppsDescriptionPublic":"Check your spelling and try again.","noAppsAvailable":"No applications","noAppsAvailableDescription":"You currently have no applications.","new":"New","descriptions":{"360 VR":"View 360 VR Experiences on desktops, mobile devices, and VR headsets.","ArcGIS Community Analyst":"Leverage location-based community intelligence.","ArcGIS Dashboards":"Display maps and data in an interactive dashboard.","ArcGIS Earth":"Visualize and explore geospatial content on a 3D globe.","ArcGIS Excalibur":"Annotate, mark up, and add observations or measurements to imagery.","ArcGIS Experience Builder":"Build immersive web apps your way.","ArcGIS Explorer":"View and interact with GIS content in this free app.","ArcGIS for Power BI":"Enhance Power BI reports with spatial analysis and visualization.","ArcGIS Field Maps":"Streamline mobile workflows for field personnel.","ArcGIS Field Maps Early Access":"Create maps and smart forms for use in the field.","ArcGIS GeoBIM":"Add geospatial context to Autodesk projects.","ArcGIS Hub":"Transform how you share data, collaborate, and engage with your community.","ArcGIS Indoors":"Create and manage floor plan data to compose floor-aware maps.","ArcGIS Indoors Floor Plan Editor":"Modify floor plan data of indoor spaces.","ArcGIS Indoors Space Planner":"Visualize and plan occupant assignments in indoor spaces.","ArcGIS Maps for Adobe Creative Cloud":"Design with data-driven maps in Adobe Illustrator and Photoshop.","ArcGIS Mission Responder":"Empower users in the field to participate in active missions.","ArcGIS Online":"Build and share interactive web maps and apps.","ArcGIS QuickCapture Web Designer":"Design custom data collection projects.","ArcGIS Solutions":"Leverage industry-specific mapping configurations of ArcGIS.","ArcGIS Urban":"Evaluate urban impacts with 3D visualizations and urban analytics.","ArcGIS Velocity":"Ingest data from the Internet of Things (IoT).","Business Analyst":"Leverage location-based market and community intelligence.","Data Pipelines":"Prepare and integrate data for visualization and analysis.","Deep Learning Studio":"Collect training data, train models, and run inference at scale.","Developer Documentation":"Access resources and information for developer workflows.","Esri Redistricting":"Complete and share regulation-compliant redistricting plans.","Field Maps Designer":"Create maps and smart forms for use in the field.","GeoPlanner for ArcGIS":"Leverage data-informed planning that engages your audience.","Insights for ArcGIS":"Fuse location analytics with business intelligence workflows.","Instant Apps":"Quickly transform maps into template-based applications.","Knowledge Studio":"Investigate knowledge graphs, perform link analysis, and uncover insights from interconnected data.","Living Atlas":"Add trusted, curated content into your maps","Map Viewer":"Create and share interactive maps and data-driven visualizations.","Mission Manager":"Combine situational awareness with command and control.","My Esri":"Access Esri products and services.","Ortho Maker":"Create 2D imagery products from drone images.","Scene Viewer":"Visualize geospatial data through interactive 3D scenes on the web.","Sites":"Transform how you share data, collaborate, and engage with your community.","StoryMaps":"Build and share stories with maps.","Story Maps":"Build and share stories with maps.","Survey123":"Gather data with an intuitive form-centric solution.","Track Viewer":"Create track views that define who is tracked and who can view those tracks.","Vector Tile Style Editor":"Create and maintain your own customized versions of Esri's vector basemaps.","Wayback Imagery":"Explore a digital archive of basemap imagery.","Web Editor":"Streamline data maintenance workflows with a wide array of editing tools.","Workflow Manager":"Orchestrate work across ArcGIS.","Workforce":"Streamline the planning and coordination of your mobile workforce.","XR Viewer (early access)":"Explore GIS data with a VR headset."},"lessThanOneMinute":"just now","lastUpdated":"Last updated {date}"},"logo":{"label":"Landing page"},"project":{"label":"Project menu","new":"New","open":"Open","create":"Create","save":"Save","saveAsCopy":"Save as copy","manageSharing":"Manage sharing","rename":"Rename","copyLink":"Copy link","embed":"Embed","print":"Print","itemDetails":"View item details","resources":"Resources","saveRename":"Save new title","cancelRename":"Cancel rename","error":"Error","title":"title"},"links":{"label":"Menu","home":"Home","gallery":"Gallery","content":"Content","groups":"Groups","features":"Features","organization":"Organization","overview":"Overview","pricing":"Pricing","map":"Map","scene":"Scene","help":"Help","subscription":"Subscription","downloads":"Downloads","developerCredentials":"Developer credentials","account":"Account","ArcGIS":"ArcGIS","myContent":"Content","notebook":"Notebooks","portalAdmin":"Administration"},"search":{"label":"Search","online":"Search ArcGIS Online","close":"Close search","loadingResults":"Loading results","topResults":"Top results","viewAll":"View all results","suggestions":"Suggestions","by":"{itemType} by {owner}","searchType":{"label":"Search type","keywordTitle":"Search by keyword","keywordDescription":"Best for when you are looking for specific items or groups.","keywordPlaceholder":"Search for maps, layers, apps, groups, and more in ArcGIS Online","semanticTitle":"Search by semantics","semanticDescription":"Best for descriptive and exploratory searches. Use natural language to find conceptually related items.","semanticPlaceholder":"Describe the content you are looking for in ArcGIS Online"}},"notifications":{"label":"Notifications","noNotifications":"No notifications","noNotificationsDescription":"Check back for updates.","dismissAllLabel":"Dismiss all","dismissLabel":"Dismiss notification","lessThanOneMinute":"Just now","deleting":"Deleting notifications...","types":{"group_join":"You requested to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link>.","group_join_admin":"Group <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link> has pending membership requests.","group_application_accepted":"Your request to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link> was accepted.","group_application_declined":"Your request to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link> was declined.","user_invite":"You have been invited to join {groupTitle}.<br><calcite-link href='{baseUrl}groups.html?showInvites=true'>View your invitations</calcite-link>","user_invitation_accepted":"You accepted the invitation to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link>.","user_invitation_declined":"You declined the invitation to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link>.","user_added_to_group":"You have been added to <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link>.","collaboration_workspace_added":"Collaboration {collaborationName} has a new workspace {collaborationWorkspaceName}. Join the workspace by going to Settings &gt; Collaborations.","collaboration_deleted":"Collaboration {collaborationName} has been deleted.","collaboration_leaving":"The organization {participantName} has left the collaboration {collaborationName}.","collaboration_join":"You have joined the collaboration {collaborationName}. To begin collaborating join a group to the collaboration workspace. Navigate to the Workspaces view of the collaboration, click Join Workspace in the Action menu and either create a new group or select an existing one.","collaboration_participant_join":"A new participant {participantName} is joining your collaboration {collaborationName}.","collaboration_participant_workspace_join":"The organization {participantName} has joined the workspace {collaborationWorkspaceName} in collaboration {collaborationName}.","collaboration_participant_workspace_unjoin":"The organization {participantName} has left the workspace {collaborationWorkspaceName} in the collaboration {collaborationName}.","collaboration_participant_removed":"You have been removed from the collaboration {collaborationName}. For more information, you may contact {contactName} ({contactEmail}).","collaboration_peer_participant_removed":"The organization {participantName} is no longer participating in the collaboration {collaborationName}.","collaboration_participant_access_changed":"Your access to one or more workspaces has changed in collaboration {collaborationName}.","collaboration_content_store_disk_limit_reached":"Unable to add item while syncing data. Content store disk space usage threshold of {collaborationContentStoreDiskLimit} GB reached.","user_email_bounced":"There was a problem delivering email to your address, {toEmail}, due to the following reason: {reason}. Contact your organization administrator to resolve the issue.","feature_layer_copy_over_failed":"Feature layer <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to {collaborationWorkspaceName} in {collaborationName} was shared as a reference rather than a copy.","feature_layer_one_way_shared_not_two_way":"Feature layer <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to {collaborationWorkspaceName} in {collaborationName} was shared supporting one-way rather than two-way sharing of edits.","feature_view_copy_over_failed":"Hosted feature layer view <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to {collaborationWorkspaceName} in {collaborationName} was shared as a reference rather than a copy.","webapp_not_copied":"Web mapping application <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to group {sourcePortalGroup} could not be sent to collaboration participant {participantName} because this is an unsupported operation.","webapp_not_copied_portal":"Web mapping application <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to group {sourcePortalGroup} could not be sent to collaboration participant {participantName} because they are using an older version of Portal for ArcGIS.","insights_item_not_copied":"Insights item <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to group {sourcePortalGroup} could not be sent to collaboration participant {participantName} because this is an unsupported operation.","scheduled_task_disabled":"A <span class='tooltip tooltip-notification tooltip-dotted' aria-label='ID: {taskId}'>scheduled task</span> on item <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> has been disabled.","portal_certificate_about_to_expire":"The certificate used by Portal for ArcGIS on port 7443 will expire in {daysLeft} day(s). Please update or import a new certificate before it expires to avoid any security risks or service interruptions.","portal_certificate_expired":"The certificate used by Portal for ArcGIS on port 7443 has expired. Please update or import a new certificate to avoid any security risks or service interruptions.","notebook_runtime_deprecated":"Task {taskTitle} on <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> is configured with a deprecated runtime and cannot run. Update the item's runtime to ensure the task runs as expected.","ingress_certificate_about_to_expire":"The certificate used by the Ingress Controller will expire in {daysLeft} day(s). Please update or import a new certificate before it expires to avoid any security risks or service interruptions.","ingress_certificate_expired":"The certificate used by the Ingress Controller has expired. Please update or import a new certificate to avoid any security risks or service interruptions."}},"user":{"account":"Account","resources":"Resources","myProfile":"My profile","mySettings":"My settings","myEsri":"My Esri","training":"Training","communityForums":"Community","trialDownload":"Trial Downloads","arcgisBlog":"ArcGIS Blog","help":"Help","switchAccounts":"Switch accounts","signOut":"Sign out","signIn":"Sign in","userMenu":"User menu"}}
1
+ {"shared":{"close":"Close"},"platform":{"label":"App switcher","applicationMenu":"Application menu","searchMyApps":"Search my apps","allMyApplications":"All my applictions","customizeApps":"Customize apps","reorder":"Reorder","applyChanges":"Apply","myApps":"My apps","recentContent":"Recent content","searchRecentContent":"Search my recent content","recentContentNoResultsDescription":"Check your spelling and try again.","noContent":"No recent content","noContentDescription":"Quickly access recently created and saved items from this list.","hide":"Hide application","show":"Show application","cancel":"Cancel","delete":"Delete","noAppResults":"No results for \"{term}\"","noAppsAvailable":"No applications","noAppsAvailableDescription":"You currently have no applications.","new":"New","descriptions":{"360 VR":"View 360 VR Experiences on desktops, mobile devices, and VR headsets.","ArcGIS Community Analyst":"Leverage location-based community intelligence.","ArcGIS Dashboards":"Display maps and data in an interactive dashboard.","ArcGIS Earth":"Visualize and explore geospatial content on a 3D globe.","ArcGIS Excalibur":"Annotate, mark up, and add observations or measurements to imagery.","ArcGIS Experience Builder":"Build immersive web apps your way.","ArcGIS Explorer":"View and interact with GIS content in this free app.","ArcGIS for Power BI":"Enhance Power BI reports with spatial analysis and visualization.","ArcGIS Field Maps":"Streamline mobile workflows for field personnel.","ArcGIS Field Maps Early Access":"Create maps and smart forms for use in the field.","ArcGIS GeoBIM":"Add geospatial context to Autodesk projects.","ArcGIS Hub":"Transform how you share data, collaborate, and engage with your community.","ArcGIS Indoors":"Create and manage floor plan data to compose floor-aware maps.","ArcGIS Indoors Floor Plan Editor":"Modify floor plan data of indoor spaces.","ArcGIS Indoors Space Planner":"Visualize and plan occupant assignments in indoor spaces.","ArcGIS Maps for Adobe Creative Cloud":"Design with data-driven maps in Adobe Illustrator and Photoshop.","ArcGIS Mission Responder":"Empower users in the field to participate in active missions.","ArcGIS Online":"Build and share interactive web maps and apps.","ArcGIS QuickCapture Web Designer":"Design custom data collection projects.","ArcGIS Solutions":"Leverage industry-specific mapping configurations of ArcGIS.","ArcGIS Urban":"Evaluate urban impacts with 3D visualizations and urban analytics.","ArcGIS Velocity":"Ingest data from the Internet of Things (IoT).","Business Analyst":"Leverage location-based market and community intelligence.","Data Pipelines":"Prepare and integrate data for visualization and analysis.","Deep Learning Studio":"Collect training data, train models, and run inference at scale.","Developer Documentation":"Access resources and information for developer workflows.","Esri Redistricting":"Complete and share regulation-compliant redistricting plans.","Field Maps Designer":"Create maps and smart forms for use in the field.","GeoPlanner for ArcGIS":"Leverage data-informed planning that engages your audience.","Insights for ArcGIS":"Fuse location analytics with business intelligence workflows.","Instant Apps":"Quickly transform maps into template-based applications.","Knowledge Studio":"Investigate knowledge graphs, perform link analysis, and uncover insights from interconnected data.","Living Atlas":"Add trusted, curated content into your maps","Map Viewer":"Create and share interactive maps and data-driven visualizations.","Mission Manager":"Combine situational awareness with command and control.","My Esri":"Access Esri products and services.","Ortho Maker":"Create 2D imagery products from drone images.","Scene Viewer":"Visualize geospatial data through interactive 3D scenes on the web.","Sites":"Transform how you share data, collaborate, and engage with your community.","StoryMaps":"Build and share stories with maps.","Story Maps":"Build and share stories with maps.","Survey123":"Gather data with an intuitive form-centric solution.","Track Viewer":"Create track views that define who is tracked and who can view those tracks.","Vector Tile Style Editor":"Create and maintain your own customized versions of Esri's vector basemaps.","Wayback Imagery":"Explore a digital archive of basemap imagery.","Web Editor":"Streamline data maintenance workflows with a wide array of editing tools.","Workflow Manager":"Orchestrate work across ArcGIS.","Workforce":"Streamline the planning and coordination of your mobile workforce.","XR Viewer (early access)":"Explore GIS data with a VR headset."},"lessThanOneMinute":"just now","lastUpdated":"Last updated {date}"},"logo":{"label":"Landing page"},"project":{"label":"Project menu","new":"New","open":"Open","create":"Create","save":"Save","saveAsCopy":"Save as copy","manageSharing":"Manage sharing","rename":"Rename","copyLink":"Copy link","embed":"Embed","print":"Print","itemDetails":"View item details","resources":"Resources","saveRename":"Save new title","cancelRename":"Cancel rename","error":"Error","title":"title"},"links":{"label":"Menu","home":"Home","gallery":"Gallery","content":"Content","groups":"Groups","features":"Features","organization":"Organization","overview":"Overview","pricing":"Pricing","map":"Map","scene":"Scene","help":"Help","subscription":"Subscription","downloads":"Downloads","developerCredentials":"Developer credentials","account":"Account","ArcGIS":"ArcGIS","myContent":"Content","notebook":"Notebooks","portalAdmin":"Administration"},"search":{"label":"Search","online":"Search ArcGIS Online","close":"Close search","loadingResults":"Loading results","topResults":"Top results","viewAll":"View all results","suggestions":"Suggestions","by":"{itemType} by {owner}","searchType":{"label":"Search type","keywordTitle":"Search by keyword","keywordDescription":"Best for when you are looking for specific items or groups.","keywordPlaceholder":"Search for maps, layers, apps, groups, and more in ArcGIS Online","semanticTitle":"Search by semantics","semanticDescription":"Best for descriptive and exploratory searches. Use natural language to find conceptually related items.","semanticPlaceholder":"Describe the content you are looking for in ArcGIS Online"}},"notifications":{"label":"Notifications","noNotifications":"No notifications","noNotificationsDescription":"Check back for updates.","dismissAllLabel":"Dismiss all","dismissLabel":"Dismiss notification","lessThanOneMinute":"Just now","deleting":"Deleting notifications...","types":{"group_join":"You requested to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link>.","group_join_admin":"Group <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link> has pending membership requests.","group_application_accepted":"Your request to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link> was accepted.","group_application_declined":"Your request to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link> was declined.","user_invite":"You have been invited to join {groupTitle}.<br><calcite-link href='{baseUrl}groups.html?showInvites=true'>View your invitations</calcite-link>","user_invitation_accepted":"You accepted the invitation to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link>.","user_invitation_declined":"You declined the invitation to join <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link>.","user_added_to_group":"You have been added to <calcite-link href='{baseUrl}group.html?id={groupId}'>{groupTitle}</calcite-link>.","collaboration_workspace_added":"Collaboration {collaborationName} has a new workspace {collaborationWorkspaceName}. Join the workspace by going to Settings &gt; Collaborations.","collaboration_deleted":"Collaboration {collaborationName} has been deleted.","collaboration_leaving":"The organization {participantName} has left the collaboration {collaborationName}.","collaboration_join":"You have joined the collaboration {collaborationName}. To begin collaborating join a group to the collaboration workspace. Navigate to the Workspaces view of the collaboration, click Join Workspace in the Action menu and either create a new group or select an existing one.","collaboration_participant_join":"A new participant {participantName} is joining your collaboration {collaborationName}.","collaboration_participant_workspace_join":"The organization {participantName} has joined the workspace {collaborationWorkspaceName} in collaboration {collaborationName}.","collaboration_participant_workspace_unjoin":"The organization {participantName} has left the workspace {collaborationWorkspaceName} in the collaboration {collaborationName}.","collaboration_participant_removed":"You have been removed from the collaboration {collaborationName}. For more information, you may contact {contactName} ({contactEmail}).","collaboration_peer_participant_removed":"The organization {participantName} is no longer participating in the collaboration {collaborationName}.","collaboration_participant_access_changed":"Your access to one or more workspaces has changed in collaboration {collaborationName}.","collaboration_content_store_disk_limit_reached":"Unable to add item while syncing data. Content store disk space usage threshold of {collaborationContentStoreDiskLimit} GB reached.","user_email_bounced":"There was a problem delivering email to your address, {toEmail}, due to the following reason: {reason}. Contact your organization administrator to resolve the issue.","feature_layer_copy_over_failed":"Feature layer <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to {collaborationWorkspaceName} in {collaborationName} was shared as a reference rather than a copy.","feature_layer_one_way_shared_not_two_way":"Feature layer <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to {collaborationWorkspaceName} in {collaborationName} was shared supporting one-way rather than two-way sharing of edits.","feature_view_copy_over_failed":"Hosted feature layer view <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to {collaborationWorkspaceName} in {collaborationName} was shared as a reference rather than a copy.","webapp_not_copied":"Web mapping application <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to group {sourcePortalGroup} could not be sent to collaboration participant {participantName} because this is an unsupported operation.","webapp_not_copied_portal":"Web mapping application <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to group {sourcePortalGroup} could not be sent to collaboration participant {participantName} because they are using an older version of Portal for ArcGIS.","insights_item_not_copied":"Insights item <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> shared to group {sourcePortalGroup} could not be sent to collaboration participant {participantName} because this is an unsupported operation.","scheduled_task_disabled":"A <span class='tooltip tooltip-notification tooltip-dotted' aria-label='ID: {taskId}'>scheduled task</span> on item <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> has been disabled.","portal_certificate_about_to_expire":"The certificate used by Portal for ArcGIS on port 7443 will expire in {daysLeft} day(s). Please update or import a new certificate before it expires to avoid any security risks or service interruptions.","portal_certificate_expired":"The certificate used by Portal for ArcGIS on port 7443 has expired. Please update or import a new certificate to avoid any security risks or service interruptions.","notebook_runtime_deprecated":"Task {taskTitle} on <calcite-link href='{baseUrl}item.html?id={itemId}'>{itemTitle}</calcite-link> is configured with a deprecated runtime and cannot run. Update the item's runtime to ensure the task runs as expected.","ingress_certificate_about_to_expire":"The certificate used by the Ingress Controller will expire in {daysLeft} day(s). Please update or import a new certificate before it expires to avoid any security risks or service interruptions.","ingress_certificate_expired":"The certificate used by the Ingress Controller has expired. Please update or import a new certificate to avoid any security risks or service interruptions."}},"user":{"account":"Account","resources":"Resources","myProfile":"My profile","mySettings":"My settings","myEsri":"My Esri","training":"Training","communityForums":"Community","trialDownload":"Trial Downloads","arcgisBlog":"ArcGIS Blog","help":"Help","switchAccounts":"Switch accounts","signOut":"Sign out","signIn":"Sign in","userMenu":"User menu"}}
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{S as r,y as e}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";var s=e(r,{"arcgis-portal-account-switcher":[()=>import("./XOM3GLYF.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./M664QA6J.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./C3F24ZOM.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./BRWHEYLW.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./HVQ7FKJ5.js"),"areSourceSchemaChangesAllowed:,canShowAddGPSMetadata:,item:,itemId,messageOverrides:,messages:,portal:,supportsAttachments:"],"arcgis-portal-ai-assistant":[()=>import("./XI3ERUXD.js"),"autoDestroyDisabled,config:,currentContext:,defaultClosed,disabledAgents:,entityToolPresets:,navigationTargetMap:,observabilityEnabled,portal:,t9n:,tools:,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./LSWV67YC.js"),"_messages:,entityRequest:,message,options:,pickerMessages:,portal:,requestId,type"],"arcgis-portal-browser":[()=>import("./X7C4PAJY.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("./XEVOU7SJ.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./GBG25IJ2.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./25K5D5HL.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./4X4EYM3Q.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./WCZJXBW3.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./QPBWKASC.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./SO3IBFEU.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./D52TYBRX.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./JA3GGSJJ.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./VWV2LCNA.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./EDQSL2P3.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./Q2LXJOVS.js"),"active,disableLinks,fieldDeleteMessages:,itemIds:,items:,messages:,portal:,user:"],"arcgis-portal-delete-items-review":[()=>import("./VLD3MVSG.js"),"items:,messages:,portal:,user:"],"arcgis-portal-entity-picker":[()=>import("./OEG4XCKY.js"),"_messages:,entityType,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],"arcgis-portal-extent-picker":[()=>import("./PRBP4AP6.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./6EMK2BU6.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./SUA7ZZUH.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./RJRTGF33.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./A3OUZJ44.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("./BOEGDK4D.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./WMKG3CBK.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./YGZICQBT.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./LBW47BJG.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-picker":[()=>import("./MHQ5BATZ.js"),"_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],"arcgis-portal-group-thumbnail":[()=>import("./7BFTXD5J.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./2GZVUHL5.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./BX2LXI3N.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./AUM2QTBQ.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./OYTK2VF2.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./RJ3SU3EV.js"),"actions:,allowedGeometries:,disabled,disableSelection,groups:,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selectedItems:,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,useProduction,user:,userGroups:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-card-sublayer-select":[()=>import("./ASLKTYLX.js"),"allowedGeometries:,appearance,disabled,item:,messageOverrides:,messages:,portal:,selectedItems:,selection,width"],"arcgis-portal-item-favorite":[()=>import("./LR33CLTB.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-picker":[()=>import("./AYESDOK5.js"),"_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],"arcgis-portal-item-preview":[()=>import("./4YJGTINX.js"),"groups:,item:,matchedSublayerIds:,messages:,portal:,showFieldStatistics,showHosted,user:,userGroups:;setFocus"],"arcgis-portal-item-preview-copy":[()=>import("./4Y73LE7P.js"),"heading,label,messages:,section,text"],"arcgis-portal-item-preview-field":[()=>import("./H6MGSC3Y.js"),"failed,field:,layer:,messages:,showStatistics"],"arcgis-portal-item-preview-sublayer":[()=>import("./LRL2RJID.js"),"externalLinkHandler:,item:,layer:,messages:,portal:,showFieldStatistics"],"arcgis-portal-item-share-summary":[()=>import("./ARAHDT2O.js"),"autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],"arcgis-portal-item-share-summary-editable":[()=>import("./26KZUWNM.js"),"allowEdit,autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],"arcgis-portal-item-thumbnail":[()=>import("./L25GEXL6.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./C4GK263H.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./WSQLSDQY.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./4DPS57A4.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:,showNotifications"],"arcgis-portal-preview-panel":[()=>import("./6HNKQNS5.js"),"fixed,open"],"arcgis-portal-replacement-item-redirect":[()=>import("./PST62OKJ.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./NJB24AIV.js"),"browserMessages:,deleteMessages:,messages:,portal:,relatedItems:,relatedItemsCount,showDependentItems,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./FVHP6PFG.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./CBFFZMX4.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-picker":[()=>import("./X4R2NVDQ.js"),"_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],"arcgis-portal-user-popup":[()=>import("./5E4EL6TF.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("./NYBLHT3F.js"),"language;clearText,startListening,stopListening"]});s({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-delete-items-review,arcgis-portal-entity-picker,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-picker,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-card-sublayer-select,arcgis-portal-item-favorite,arcgis-portal-item-picker,arcgis-portal-item-preview,arcgis-portal-item-preview-copy,arcgis-portal-item-preview-field,arcgis-portal-item-preview-sublayer,arcgis-portal-item-share-summary,arcgis-portal-item-share-summary-editable,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-preview-panel,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-picker,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{S as r,y as e}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";var s=e(r,{"arcgis-portal-account-switcher":[()=>import("./XOM3GLYF.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./M664QA6J.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./C3F24ZOM.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./BRWHEYLW.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./HVQ7FKJ5.js"),"areSourceSchemaChangesAllowed:,canShowAddGPSMetadata:,item:,itemId,messageOverrides:,messages:,portal:,supportsAttachments:"],"arcgis-portal-ai-assistant":[()=>import("./IKRGN33H.js"),"autoDestroyDisabled,config:,currentContext:,defaultClosed,disabledAgents:,entityToolPresets:,navigationTargetMap:,observabilityEnabled,portal:,t9n:,tools:,user:;submitMessage"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./K7DHGCZI.js"),"_messages:,entityRequest:,message,options:,pickerMessages:,portal:,requestId,showOtherOption,type"],"arcgis-portal-browser":[()=>import("./X7C4PAJY.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("./XEVOU7SJ.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./GBG25IJ2.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./25K5D5HL.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./4X4EYM3Q.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./WCZJXBW3.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./QPBWKASC.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./SO3IBFEU.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./D52TYBRX.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./JA3GGSJJ.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./VWV2LCNA.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./EDQSL2P3.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./2OBYOLPM.js"),"active,disableLinks,fieldDeleteMessages:,itemIds:,items:,messages:,portal:,user:"],"arcgis-portal-delete-items-review":[()=>import("./VLD3MVSG.js"),"items:,messages:,portal:,user:"],"arcgis-portal-entity-picker":[()=>import("./OEG4XCKY.js"),"_messages:,entityType,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],"arcgis-portal-extent-picker":[()=>import("./PRBP4AP6.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./6EMK2BU6.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./SUA7ZZUH.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./RJRTGF33.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./A3OUZJ44.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("./BOEGDK4D.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./WMKG3CBK.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./YGZICQBT.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./LBW47BJG.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-picker":[()=>import("./MHQ5BATZ.js"),"_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],"arcgis-portal-group-thumbnail":[()=>import("./7BFTXD5J.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./2GZVUHL5.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./BX2LXI3N.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./AUM2QTBQ.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./OYTK2VF2.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./RJ3SU3EV.js"),"actions:,allowedGeometries:,disabled,disableSelection,groups:,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selectedItems:,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,useProduction,user:,userGroups:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-card-sublayer-select":[()=>import("./ASLKTYLX.js"),"allowedGeometries:,appearance,disabled,item:,messageOverrides:,messages:,portal:,selectedItems:,selection,width"],"arcgis-portal-item-favorite":[()=>import("./LR33CLTB.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-picker":[()=>import("./AYESDOK5.js"),"_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],"arcgis-portal-item-preview":[()=>import("./4YJGTINX.js"),"groups:,item:,matchedSublayerIds:,messages:,portal:,showFieldStatistics,showHosted,user:,userGroups:;setFocus"],"arcgis-portal-item-preview-copy":[()=>import("./4Y73LE7P.js"),"heading,label,messages:,section,text"],"arcgis-portal-item-preview-field":[()=>import("./H6MGSC3Y.js"),"failed,field:,layer:,messages:,showStatistics"],"arcgis-portal-item-preview-sublayer":[()=>import("./LRL2RJID.js"),"externalLinkHandler:,item:,layer:,messages:,portal:,showFieldStatistics"],"arcgis-portal-item-share-summary":[()=>import("./ARAHDT2O.js"),"autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],"arcgis-portal-item-share-summary-editable":[()=>import("./26KZUWNM.js"),"allowEdit,autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],"arcgis-portal-item-thumbnail":[()=>import("./L25GEXL6.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./C4GK263H.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./WSQLSDQY.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./IWQ5I2DD.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:,showNotifications"],"arcgis-portal-preview-panel":[()=>import("./6HNKQNS5.js"),"fixed,open"],"arcgis-portal-replacement-item-redirect":[()=>import("./PST62OKJ.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./NJB24AIV.js"),"browserMessages:,deleteMessages:,messages:,portal:,relatedItems:,relatedItemsCount,showDependentItems,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./FVHP6PFG.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./CBFFZMX4.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-picker":[()=>import("./X4R2NVDQ.js"),"_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],"arcgis-portal-user-popup":[()=>import("./5E4EL6TF.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("./NYBLHT3F.js"),"language;clearText,startListening,stopListening"]});s({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-delete-items-review,arcgis-portal-entity-picker,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-picker,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-card-sublayer-select,arcgis-portal-item-favorite,arcgis-portal-item-picker,arcgis-portal-item-preview,arcgis-portal-item-preview-copy,arcgis-portal-item-preview-field,arcgis-portal-item-preview-sublayer,arcgis-portal-item-share-summary,arcgis-portal-item-share-summary-editable,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-preview-panel,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-picker,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)
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type Portal from "@arcgis/core/portal/Portal.js";
3
3
  import type PortalUser from "@arcgis/core/portal/PortalUser.js";
4
+ import type { ArcgisAssistant } from "@arcgis/ai-components/components/arcgis-assistant";
4
5
  import type { Config } from "@arcgis/core/config.js";
5
6
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
7
  import type { PortalAssistantCurrentContext } from "../../types/portalAssistantCurrentContext.js";
@@ -187,9 +188,22 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
187
188
  * The factory receives Portal-provided `tool` and
188
189
  * `requestPortalAssistantUiAction` helpers.
189
190
  * Configure tools before starting a conversation; live replacement during a running turn is not supported.
191
+ * Tool interrupts must treat a `false` response as rejection. User cancellation resumes the agent
192
+ * with that response; it does not approve the tool or stop the entire conversation.
190
193
  */
191
194
  accessor tools: PortalAssistantTools | undefined;
192
195
  accessor user: PortalUser;
196
+ /**
197
+ * Submits a message after the Portal AI assistant has finished initializing.
198
+ *
199
+ * @param args
200
+ * @example
201
+ * ```js
202
+ * const assistant = document.querySelector("arcgis-portal-ai-assistant");
203
+ * await assistant.submitMessage("Summarize this group.");
204
+ * ```
205
+ */
206
+ submitMessage(...args: Parameters<ArcgisAssistant["submitMessage"]>): Promise<void>;
193
207
  readonly arcgisPortalNavigationRequest: import("@arcgis/lumina").TargetedEvent<this, {
194
208
  href: string;
195
209
  targetDetail: PortalNavigationTarget;