@esri/solutions-components 5.1.0-next.94 → 5.1.0-next.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{XAW6KPKL.js → 2BUUN32T.js} +1 -1
- package/dist/cdn/{ZGEMIOB5.js → 2NVL4Z5G.js} +1 -1
- package/dist/cdn/{D4GI6KPZ.js → 3CDDDNHX.js} +1 -1
- package/dist/cdn/{VOF34LDF.js → 3EVMNCX6.js} +1 -1
- package/dist/cdn/{2VXTMCRJ.js → 3JQP6RGM.js} +1 -1
- package/dist/cdn/5K6B2WSQ.js +2 -0
- package/dist/cdn/{QYDGCI2P.js → 63RUMXWC.js} +1 -1
- package/dist/cdn/{5Z45KDQY.js → 6HZIF7DC.js} +1 -1
- package/dist/cdn/{C7ASL3A4.js → 6ZRRFBIZ.js} +1 -1
- package/dist/cdn/{NPOHA56R.js → 7RK7YWYV.js} +1 -1
- package/dist/cdn/{4QZ7WHXA.js → AG22WAP3.js} +1 -1
- package/dist/cdn/{JQXKQHAG.js → AMEUOI76.js} +1 -1
- package/dist/cdn/{ZP6VPBP4.js → BGXRCU7G.js} +1 -1
- package/dist/cdn/{5OF3YOO7.js → BIVYOKLF.js} +1 -1
- package/dist/cdn/{WRSVJIPA.js → BSXTZCNH.js} +1 -1
- package/dist/cdn/DRXERUDE.js +2 -0
- package/dist/cdn/{3ZZ726LQ.js → DSLOJFRD.js} +1 -1
- package/dist/cdn/{YVDSW2OQ.js → EN6E35NY.js} +1 -1
- package/dist/cdn/ESBPGZRY.js +2 -0
- package/dist/cdn/{NXL2QN3P.js → EVEXF6IH.js} +2 -2
- package/dist/cdn/{55NRVFJ5.js → FZBIZBOO.js} +1 -1
- package/dist/cdn/{LUZYJVG5.js → G7N3V3YJ.js} +1 -1
- package/dist/cdn/{ELPH6EFW.js → I2GXCEQM.js} +1 -1
- package/dist/cdn/{4HPFDUTJ.js → IC2D4LPZ.js} +1 -1
- package/dist/cdn/IRRMUFW7.js +2 -0
- package/dist/cdn/{FGWGYIBZ.js → KLLT6LQO.js} +1 -1
- package/dist/cdn/{3XGF3ZJO.js → MWMNRIUD.js} +1 -1
- package/dist/cdn/{CWXOH2PC.js → NBX7J6DU.js} +1 -1
- package/dist/cdn/{JC5EXPFH.js → NEM3F44J.js} +1 -1
- package/dist/cdn/{2HUG6L4M.js → OF33IXBV.js} +1 -1
- package/dist/cdn/{2O3HAXKG.js → OZE4W3UQ.js} +1 -1
- package/dist/cdn/PVM4ETZ7.js +2 -0
- package/dist/cdn/QADMFYXT.js +2 -0
- package/dist/cdn/QKJ4PGBO.js +2 -0
- package/dist/cdn/RTA6KNSK.js +2 -0
- package/dist/cdn/{SJCXI4TB.js → RX3VLQGY.js} +1 -1
- package/dist/cdn/{CHZWEULM.js → SAI5O6SI.js} +1 -1
- package/dist/cdn/{C4UB6MNN.js → TRBSV6ZY.js} +110 -110
- package/dist/cdn/{5BU6XZAD.js → TTV5UYNT.js} +1 -1
- package/dist/cdn/{2B2ANB2N.js → U6CZXWSF.js} +1 -1
- package/dist/cdn/{GJTXLQOS.js → URVOLZIY.js} +1 -1
- package/dist/cdn/{XXT542UR.js → UYY6JODL.js} +1 -1
- package/dist/cdn/VESARS2D.js +7 -0
- package/dist/cdn/VFZ2J4EW.js +2 -0
- package/dist/cdn/VRM54VB2.js +2 -0
- package/dist/cdn/{IGSOHYV3.js → XGZCGPHU.js} +1 -1
- package/dist/cdn/{JJ7JB2ZP.js → Y5N6ESUO.js} +1 -1
- package/dist/cdn/YDNNXKDK.js +2 -0
- package/dist/cdn/{O3SWSZQE.js → ZKGLAGUM.js} +1 -1
- package/dist/cdn/ZPWKF5SM.js +2 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solutions-deployed-list/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solutions-deployed-list/t9n/messages.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/converter.js +86 -89
- package/dist/chunks/get.js +387 -0
- package/dist/chunks/helpers.js +61 -39
- package/dist/chunks/solution-deploy-dialog.js +1 -1
- package/dist/chunks/solutions-deploy-app-nav.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +7713 -7308
- package/dist/components/consent-manager/customElement.js +609 -638
- package/dist/components/solution-configure-titles/customElement.js +13 -12
- package/dist/components/solution-delete-dialog/customElement.js +28 -27
- package/dist/components/solution-deployed-card-panel/customElement.js +12 -12
- package/dist/components/solution-details-card/customElement.d.ts +4 -0
- package/dist/components/solution-details-card/customElement.js +29 -21
- package/dist/components/solution-details-card/index.js +1 -0
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.d.ts +5 -2
- package/dist/components/solution-item-accordion/customElement.js +42 -32
- package/dist/components/solution-item-accordion/index.js +1 -0
- package/dist/components/solutions-all-panel/customElement.d.ts +2 -0
- package/dist/components/solutions-all-panel/customElement.js +57 -42
- package/dist/components/solutions-all-shell/customElement.js +94 -40
- package/dist/components/solutions-deployed-list/customElement.d.ts +33 -0
- package/dist/components/solutions-deployed-list/customElement.js +38 -0
- package/dist/components/solutions-deployed-list/index.d.ts +1 -0
- package/dist/components/solutions-deployed-list/index.js +1 -0
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +4 -3
- package/dist/solutions-components_commit.txt +6 -6
- package/dist/types/lumina.d.ts +6 -0
- package/dist/types/preact.d.ts +7 -0
- package/dist/types/react.d.ts +8 -0
- package/dist/types/stencil.d.ts +6 -0
- package/dist/utils/getRelatedInfos.d.ts +4 -0
- package/dist/utils/interfaces.d.ts +10 -2
- package/package.json +1 -1
- package/dist/cdn/2L3RREZ4.js +0 -2
- package/dist/cdn/2WHAF4H7.js +0 -2
- package/dist/cdn/AKKTG2RD.js +0 -2
- package/dist/cdn/DLH53PYM.js +0 -7
- package/dist/cdn/FDE2V7FU.js +0 -2
- package/dist/cdn/K6WLYYPH.js +0 -2
- package/dist/cdn/P24CZ4HM.js +0 -2
- package/dist/cdn/R2G4DDRZ.js +0 -2
- package/dist/cdn/SO3S3WP4.js +0 -2
- package/dist/cdn/UBLDT5XD.js +0 -2
- package/dist/cdn/X5EABWHE.js +0 -2
- package/dist/cdn/ZONXYZVU.js +0 -2
- package/dist/chunks/get-portal-url.js +0 -345
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import e from"./ZP6VPBP4.js";import b from"./XXT542UR.js";import a from"./X5EABWHE.js";import{Fb as $,c as k,nb as R,za as A}from"./J75MHJID.js";import{a as U}from"./R67EKKSL.js";import{g as d}from"./JUUVYK2H.js";import{b as M}from"./KIUBUHVM.js";import{E as l,F as c,G as S,I as C,K as m,h as w,i as o,j as f,q as u}from"./H5E6ISYP.js";export default $arcgis.t(([p,L,N,{e:E,g:T,i:O,q:h},{c:P},{o:_}])=>{var I=class{constructor(t,e,i,s){this._credential=void 0,this._isEnterprise=!1,this._locale="en",this._portalSubset=void 0,this._portalUserSubset=void 0,this._arcGISOnlineReachable=!0,this._searchArcGISOnlineEnabled=!0,this._signInParam=void 0,this._clientId=t??"",this._locale=i??"en",this._portalUrl=e??"https://www.arcgis.com",this._portalRestUrl=this._portalUrl+"/sharing/rest",this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:this._portalUrl,this._signInParam=s;let n=new L({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});try{p.registerOAuthInfos([n])}catch(a){console.log(a)}this._portal=new N({url:this._portalUrl})}get Credential(){return this._credential}get IsEnterprisePortal(){return this._isEnterprise}get IsSignedIn(){return!!this._credential}get Portal(){return this._portal}get PortalSubset(){return this._portalSubset}get PortalUrl(){return this._portalUrl}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserSubset(){return this._portalUserSubset}get PortalUserPrivileges(){let t=[];return this._portalUserSubset?.privileges&&(t=this._portalUserSubset.privileges),t}get SignInParam(){return this._signInParam}get CanDeleteSolution(){return this.PortalUserPrivileges.includes("portal:admin:deleteItems")}get CanUpdateSolution(){return this.PortalUserPrivileges.includes("portal:admin:updateItems")}get CanUseAI(){let t=this._portalSubset?.orgSettings,e=this.PortalUserPrivileges.includes("portal:user:useAIAssistants");return t?.aiAssistantsEnabled?t.aiAssistantsEnabled&&!t.blockBetaApps&&e:!1}get CanViewOrg(){return this.PortalUserPrivileges.includes("portal:admin:viewItems")}get CanSearchArcGISOnline(){return this._searchArcGISOnlineEnabled&&this._arcGISOnlineReachable}async checkArcGISOnlineReachability(t){if(this._isEnterprise&&this._searchArcGISOnlineEnabled&&t){let e=`${T(this._portalUrl)}/sharing/rest`,i=new d({});try{await R({q:`group:${t} type:Solution`,num:1,start:1,authentication:i,portal:e}),this._arcGISOnlineReachable=!0}catch(s){this._arcGISOnlineReachable=!1,console.warn("ArcGIS Online solutions group not reachable:",s)}}}get RestUserSession(){let t=p.findServerInfo(this._portalRestUrl),e=this._credential?d.fromCredential(this._credential,t):this._isEnterprise?new d({}):new d({portal:this._portalRestUrl});return e.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:e.portal,e.clientId=this._credential?._oAuthCred?.appId,e._refreshToken=this._credential?._oAuthCred?.refreshToken,e}async initialize(t=!1,e){try{await this._init(t,e)}catch{this.destroy()}return this}destroy(){this._credential=void 0,this._portalSubset=void 0,this._portalUserSubset=void 0,p.destroyCredentials()}async signIn(t=""){p.setOAuthRedirectionHandler(e=>{let i=e.authorizeParams.redirect_uri;if(t.length>0){let s=i.split("?"),n=s[0],a="",r=new URLSearchParams(s[1]||"");r.append("signInParam",t),a="?"+r.toString(),e.authorizeParams.redirect_uri=n+a}window.location.href=e.authorizeUrl+"?"+this._objectToQuery(e.authorizeParams)}),await p.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(e=>{e&&window.location.reload()})}signOut(){let t=window.location.href,e=/[\/]\b([0-9A-Fa-f]){32}\b/g,i=t.match(e)?t.replace(e,""):t;i=E(i,"sortField","suggested");let s=`${this._portal?.restUrl??this._portalUrl+"/sharing/rest"}/oauth2/signout?client_id=${this._clientId}&redirect_uri=${encodeURIComponent(i)}`;this.destroy(),window.location.replace(s)}refreshSession(){let t=this.RestUserSession;if(!(!t||!this.IsSignedIn))return t.exchangeRefreshToken()}_getOrgUrl(t,e,i){return e&&i?window.location.protocol+"//"+e.toLowerCase()+"."+i:t}async _init(t=!1,e){try{this._credential=await p.checkSignInStatus(this._portalUrl+"/sharing")}catch(s){console.log(s)}try{let s=await p.checkAppAccess(this._portalUrl+"/sharing",this._clientId);(typeof s.valid<"u"&&!s.valid||s.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=s.credential}catch(s){s.name}this._searchArcGISOnlineEnabled=await this._checkSearchArcGISOnlineEnabled(t,this._portal.restUrl),this._portal.authMode=t?"immediate":"auto",await this._portal.load();let i=this._credential?await A(this.RestUserSession):{};return this._isEnterprise=this._portal.isPortal,await this.checkArcGISOnlineReachability(e),this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl??"",portalUrl:this._portal.url??"",urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly,orgSettings:i},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??"",roleId:this._portal.user?.roleId??void 0},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await $(this._portal.restUrl,this.RestUserSession||new d({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}async _checkSearchArcGISOnlineEnabled(t,e){if(t)try{let i=`${e}/portals/self/settings`,s=await k(i,{authentication:this._credential?this.RestUserSession:void 0});return s?.portalConfigProperties?.searchArcGISOnlineEnabled!==void 0?s.portalConfigProperties.searchArcGISOnlineEnabled:!1}catch(i){return console.warn("Failed to fetch portal settings:",i),!1}else return!0}_isSerializable(t){return t&&typeof t=="object"&&"toJSON"in t&&typeof t.toJSON=="function"}_objectToQuery(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(e(i,t[i]))).join("&"):Object.keys(t).map(i=>{let s=t[i];if(s==null)return"";let n=encodeURIComponent(i)+"=",a=e&&e[i];return a?n+encodeURIComponent(a(s)):Array.isArray(s)?s.map(r=>this._isSerializable(r)?n+encodeURIComponent(JSON.stringify(r)):n+encodeURIComponent(r)).join("&"):this._isSerializable(s)?n+encodeURIComponent(JSON.stringify(s)):n+encodeURIComponent(s)}).filter(i=>i).join("&"):""}};var g={name:"arcgis-solutions-app",version:"2.0",dev:{amazon:{userPoolID:"us-east-1:7345bcf2-bffa-4849-a379-a83178f63eef",app:{id:"7e2fd97553644e5f99b1129fbcee3c2e"}}},qa:{amazon:{userPoolID:"us-east-1:7345bcf2-bffa-4849-a379-a83178f63eef",app:{id:"a3beba911bd14847ada5c9ffed2a2111"}}},prod:{amazon:{userPoolID:"us-east-1:8c41b2dc-7563-403d-ba64-673b103debce",app:{id:"35a920e0e7f84680be076e57dd5cb728"}}}},x="solutions-deployment-first-use",v=class b{constructor(){this._telemetryInstance=void 0,this._logTelemetryEvents=!1}getInstance(){return this._telemetryInstance}isEnabled(){return this._logTelemetryEvents}setInstance(t){this._telemetryInstance=t}setEnabled(t){this._logTelemetryEvents=t}_mapDimensions(t){let e={};return t&&t.slice(0,20).forEach((i,s)=>{let n=`dimension${s+1}`;e[n]=i}),e}_mapMetrics(t){let e={};return t&&t.slice(0,20).forEach((i,s)=>{let n=`metric${s+1}`;e[n]=i}),e}logEvent(t){if(this._logTelemetryEvents&&this._telemetryInstance){let{category:e,action:i,dimensions:s,metrics:n,label:a="",details:r=""}=t,z=this._mapDimensions(s),G=this._mapMetrics(n);this._telemetryInstance.logEvent({category:e,action:i,label:a,details:r,...z,...G})}}getTelemetrySession(){return{instance:this._telemetryInstance,logEvent:t=>this.logEvent(t),enabled:this._logTelemetryEvents}}static getDisabledSession(){return{instance:void 0,logEvent:()=>{},enabled:!1}}async initializeTelemetry(t,e){if(!b.shouldEnableTelemetry(t,e))return this.getTelemetrySession();let i=document.querySelector("consent-manager");if(!i){if(!customElements.get("consent-manager"))return this.getTelemetrySession();i=document.createElement("consent-manager"),i.portal=t.Portal,i.measurementIds=e.measurementIds||[],i.firstUseVar=x;let s=b.getEnvironmentConfig(e,t);s&&(i.amazonUserPoolID=s?.amazon?.userPoolID,i.amazonAppId=s?.amazon?.app?.id,i.amazonAppName=g.name,i.amazonVersion=g.version);let n=t.Portal?.eueiEnabled;(localStorage.getItem(i.firstUseVar)==="true"||n)&&(this.setEnabled(!0),i.classList.add("display-none")),document.body.appendChild(i),n?(await new Promise(a=>setTimeout(a,100)),await this._setInstanceFromConsentManager(i)):window.addEventListener("consentGranted",a=>{a.detail?.granted&&(this.setEnabled(!0),this._setInstanceFromConsentManager(i))})}return this.getTelemetrySession()}async _setInstanceFromConsentManager(t){try{let e=new Promise((s,n)=>setTimeout(()=>n(new Error("Timeout waiting for consent-manager instance")),1e4)),i=await Promise.race([t.getInstance(),e]);this.setInstance(i)}catch{}}static shouldEnableTelemetry(t,e){let i=t?.IsEnterprisePortal;return t?.Portal?.eueiEnabled===!1||i?!1:!!((e.measurementIds||g)&&x)}static getEnvironmentConfig(t,e){let i=t.forceTrackingEnv||O(document.location.hostname,e?.Portal?.portalHostname||"");return i&&Object.keys(g).includes(i)?g[i]:void 0}},F=w`.esri-global-nav__title{margin-block-start:0;position:relative;margin-bottom:0;font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-medium);padding-inline-end:var(--calcite-spacing-xxl);align-self:center;height:100%;display:flex;align-items:center}.esri-global-nav__logo-link{color:var(--calcite-color-text-1);text-decoration:unset;margin-block-start:0px;position:relative;margin-bottom:0;align-self:center;height:100%;display:flex;align-items:center}.esri-global-nav__logo-link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.cursor-pointer{cursor:pointer}.side{border-right:solid 1px;color:var(--calcite-color-text-1);height:34px;align-self:center}.display-flex{display:flex}.align-self-center{align-self:center}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.margin-start-end-1{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-start-end-1-5{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.height-full{height:100%}.user-label{--calcite-label-margin-bottom: 0px}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-normal{font-weight:var(--calcite-font-weight-normal)}.logo-padding{padding-inline-start:var(--calcite-spacing-none);height:100%}@media(max-width:800px){.logo-padding{padding-inline-start:var(--calcite-spacing-lg)}}.signin-padding{padding-inline-end:var(--calcite-spacing-none)}@media(max-width:800px){.signin-padding{padding-inline-end:var(--calcite-spacing-lg)}}calcite-action{--calcite-font-size-0: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: var(--calcite-spacing-lg)}calcite-navigation{--calcite-color-border-3: transparent}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box;position:absolute;top:65px;left:0;width:100%;z-index:1}.height-66{height:66px}.sub-nav-constrained{width:calc(100% - var(--assistant-panel-width, 420px));overflow:hidden}`,y=class extends S{constructor(){super(),this.assistantOpen=!1,this._isMobile=!1,this._logoFill="",this._thumbnailUrl="",this._translations=U({name:"solutions-deploy-app-nav",blocking:!0}),this._activeTab="all-solutions",this._authentication=void 0,this._cardType="details",this._dropdownRef=l(),this._dropdownItemAll=l(),this._dropdownItemMy=l(),this._dropdownItemMyContent=l(),this._dropdownItemResources=l(),this._handleMobileChange=t=>{this._isMobile=t.matches},this._menuRef=l(),this._menuItemAll=l(),this._menuItemMy=l(),this._menuItemResources=l(),this.authInit=u(),this.navTabSelected=u(),this.tabChanged=u(),this.tokenRefreshed=u(),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployAppTabSelected",this._deployAppTabSelected),this.listenOn(window,"popstate",this._handleUrlChange),this.listenOn(window,"sessionRefreshed",t=>{this._updateThumbnailToken(t.detail)}),this._mobileMediaQuery=window.matchMedia("(max-width: 800px)"),this._isMobile=this._mobileMediaQuery.matches,this._mobileMediaQuery.addEventListener("change",this._handleMobileChange)}static{this.properties={appConfig:1,assistantOpen:5,initTab:1,_subNavigationCard:16,_isMobile:16,_logoFill:16,_thumbnailUrl:16,_translations:16}}static{this.styles=F}get _telemetry(){return this._config?.telemetrySession}clearMenuItems(){this._isMobile?(this._dropdownItemAll.value.selected=!1,this._authentication?.IsSignedIn&&(this._dropdownItemMy.value.selected=!1),this._dropdownItemResources.value.selected=!1):(this._menuItemAll.value.active=!1,this._authentication?.IsSignedIn&&(this._menuItemMy.value.active=!1),this._menuItemResources.value.active=!1)}activateMenuItem(t,e=!1){let i,s;switch(t){case"all-solutions":i=this._isMobile?this._dropdownItemAll:this._menuItemAll,s=this._isMobile?[this._dropdownItemMy,this._dropdownItemResources]:[this._menuItemMy,this._menuItemResources];break;case"deployments":i=this._isMobile?this._dropdownItemMy:this._menuItemMy,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemResources]:[this._menuItemAll,this._menuItemResources];break;case"resources":i=this._isMobile?this._dropdownItemResources:this._menuItemResources,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemMy]:[this._menuItemAll,this._menuItemMy];break;case"my-content":this._isMobile&&(i=this._dropdownItemMyContent,s=[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemResources]);break}i&&s&&this._handleMenuClick(t,i,s,e)}async connectedCallback(){super.connectedCallback();let t=new d({username:"",password:""});this._userSession=t}async load(){let t=window.matchMedia("(prefers-color-scheme: dark)");t.addEventListener("change",r=>this._logoFill=this._getLogoFill(r.matches)),this._logoFill=this._getLogoFill(t.matches),this._mobileMediaQuery.matches&&(this._isMobile=!0);let e=this.appConfig.locale||"en",i=this.appConfig.authentication?.PortalSubset?.orgUrl||this.appConfig.orgURL||this.appConfig.portalURL,s=this.appConfig.authentication?.PortalUrl||this.appConfig.portalURL,n=this.appConfig.primarySolutionsGroupId,a=!1;this._authentication||(this.appConfig.authentication?this._authentication=this.appConfig.authentication:(this._authentication=new I(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this._authentication.initialize(this.appConfig.isEnterprise,this.appConfig.agoBasedEnterpriseSolutionsGroupId),a=!0)),a||await this._authentication?.checkArcGISOnlineReachability(this.appConfig.agoBasedEnterpriseSolutionsGroupId),this._authentication.RestUserSession&&(this._userSession=this._authentication.RestUserSession),this.initTab&&(this._activeTab=this.initTab,this.initTab=void 0),this._config={anonAgolSession:void 0,agolPortalUrl:"",allCards:[],appId:this.appConfig.appId,authentication:this._authentication,agoBasedEnterpriseSolutionsGroupId:this.appConfig.agoBasedEnterpriseSolutionsGroupId,diagramKey:this.appConfig.diagramKey,forceTrackingEnv:this.appConfig.forceTrackingEnv,isEnterprise:this.appConfig.isEnterprise,locale:e,orgUrl:i,portalURL:s,primarySolutionsGroupId:n,userSession:this._userSession,telemetrySession:v.getDisabledSession(),measurementIds:this.appConfig.measurementIds},this.authInit.emit(this._config),this._portal=await this._userSession?.getPortal()}render(){return o`<div><calcite-navigation>${this._getHeading()}${this._isMobile?this._getDropdown():this._getMenu()}${this._isMobile?"":this._getSignInOut()}</calcite-navigation><div class="border" slot=header></div>${!this._isMobile&&o`<div class=${C(this.assistantOpen?"sub-nav-constrained":"")}>${this._getSubHeading()}</div>`||""}</div>`}updated(t){t.has("_isMobile")&&t.get("_isMobile")!==void 0&&this.activateMenuItem(this._activeTab,!1)}disconnectedCallback(){super.disconnectedCallback(),this._mobileMediaQuery.removeEventListener("change",this._handleMobileChange)}_getSignInOut(){return this._authentication?.IsSignedIn?o`<div slot=user>${this._getUserAvatar()}</div>`:o`<calcite-menu label slot=content-end><calcite-menu-item label @click=${this._handleSignIn} @keydown=${t=>h(t,()=>this._handleSignIn(t))} .text=${this._translations.signIn}></calcite-menu-item></calcite-menu>`}_getDropdown(){let t=this._authentication?.IsSignedIn?this._translations.signOut:this._translations.signIn;return o`<calcite-dropdown overlay-positioning=fixed slot=content-end width=m ${c(this._dropdownRef)}><calcite-button appearance=transparent icon-start=hamburger kind=neutral slot=trigger scale=l></calcite-button><calcite-dropdown-group><calcite-dropdown-item @click=${()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemAll)}>${this._translations.allSolutions}</calcite-dropdown-item><calcite-dropdown-item @click=${()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemMy)}>${this._translations.myDeployments}</calcite-dropdown-item>${this._authentication?.CanSearchArcGISOnline&&o`<calcite-dropdown-item @click=${()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemResources)}>${this._translations.solutionResources}</calcite-dropdown-item>`||""}<calcite-dropdown-item @click=${()=>{let e=this._activeTab==="all-solutions"?this._dropdownItemAll:this._activeTab==="deployments"?this._dropdownItemMy:this._activeTab==="resources"?this._dropdownItemResources:void 0;setTimeout(()=>this._handleMenuClick("my-content",e,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!1),10)}} ${c(this._dropdownItemMyContent)}>${this._translations.myContent}</calcite-dropdown-item><calcite-dropdown-item @click=${e=>{this._authentication?.IsSignedIn?this._signOut():this._handleSignIn(e)}}>${t}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_getMenu(){return o`<calcite-menu label slot=content-start ${c(this._menuRef)}><calcite-menu-item label @click=${()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0))} .text=${this._translations.allSolutions} ${c(this._menuItemAll)}></calcite-menu-item><calcite-menu-item label @click=${()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0))} .text=${this._translations.myDeployments} ${c(this._menuItemMy)}></calcite-menu-item>${this._authentication?.CanSearchArcGISOnline&&o`<calcite-menu-item label @click=${()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0))} .text=${this._translations.solutionResources} ${c(this._menuItemResources)}></calcite-menu-item>`||""}</calcite-menu>`}_getHeading(){return o`<div class="align-self-center display-flex cursor-pointer logo-padding" slot=logo><a aria-label=${this._translations.linkToEsriHomePage??m} class="esri-global-nav__logo-link" href=https://www.esri.com @click=${()=>this._logLinkClickTelemetry("Esri")} rel=noopener target=_blank title=${this._translations.linkToEsriHomePage??m}><svg height=30 viewBox="0 0 84 30" width=84 xmlns=http://www.w3.org/2000/svg>${f`<path fill=${this._logoFill??m} d="M77.277.5c-1.48 0-2.554 1.175-2.554 2.488 0 1.314 1.074 2.49 2.554 2.49 1.48 0 2.622-1.071 2.622-2.49C79.899 1.572 78.756.5 77.277.5zm-1.913 23.426h3.891V8.353h-3.891v15.573zM40.515 7.965c-4.702 0-8.465 3.275-8.465 8.174 0 4.898 3.763 8.177 8.465 8.177 2.146 0 4.165-.667 5.852-2.31l-2.457-2.457c-.916.964-2.093 1.651-3.78 1.651-2.175 0-3.927-1.397-4.188-3.698h11.875v-1.07c0-5.42-2.95-8.467-7.302-8.467zm-4.573 6.617c.293-2.24 1.721-3.7 4.023-3.7 2.434 0 3.926 1.43 3.96 3.7h-7.983zm17.305-1.849c0-1.169 1.233-1.655 2.273-1.655 1.32 0 2.292.547 3.037 1.577l2.476-2.474c-1.282-1.6-3.407-2.216-5.418-2.216-3.147 0-6.262 1.555-6.262 5.028 0 5.938 8.403 3.406 8.403 6.617 0 1.233-1.46 1.784-2.595 1.784-1.65 0-2.687-.806-3.69-1.905l-2.515 2.514c1.58 1.711 3.62 2.313 5.978 2.313 3.179 0 6.717-1.299 6.717-4.998 0-6.067-8.404-3.795-8.404-6.585zm14.15-1.916h-.062V8.353h-3.892v15.573h3.892v-8.34c0-.842.518-3.925 4.185-3.925.564 0 1.127.112 1.718.253l.152-3.726c-.45-.127-.901-.223-1.382-.223-2.046 0-3.766 1.07-4.61 2.852zM14.683 2.766c-1.217-.037-1.932.12-2.651.26-.216-.056-.62.003-.643.472 0 .252.08.447.24.562.159.114 1.493 1.1 2.473 2.142-.47.052-.98.138-1.504.246-.585-1.264-2.465-.114-3.714-.064-.146.006-.286.025-.431.035-.137-1.056-.235-2.15-.21-2.92 1.618-.917 4.748-1.593 6.874-1.626l.373-.01c.312-.003.337-.251.043-.291-2.641-.361-4.929.173-7.279 1.145C5.808 3.748 2.696 6.12.8 10.596c-.444 1.247-2.219 7.195.935 12.3 2.56 4.142 5.855 6.113 9.887 6.676 4.024.561 6.207.075 8.752-1.055 5.951-2.642 10.496-12.559 5.95-19.747-1.794-3.319-6.495-6.229-11.641-6.004zm-2.259 4.647a17.754 17.754 0 0 1 2.362-.368 15.741 15.741 0 0 1 1.748 2.54c-.805.39-1.878.688-2.315 1.312-.181.26-.226.613-.232.995a23.59 23.59 0 0 0-3.877 1.286c-.453-1.332-.85-2.66-1.124-3.842 1.296-1.237 2.813-1.438 3.438-1.923zm6.61 15.88c-.354.038-.706.083-1.016.13-.77.121-1.762.379-2.685.723-.53-.843-1.95-2.891-2.667-4.437 1.442-.709 3.457-1.303 5.775-1.444.19.33.4.66.69.956.757.774-.44 1.883-.096 4.072zm-8.603-9.14c1.12-.53 2.3-.968 3.56-1.286-.008.333-.045.649-.182.903-.196.366-.106 1.428.134 1.775.755 1.099 2.008.488 2.951.883.433.181.721.482.964.84-1.974.124-3.91.584-5.706 1.41-.923-1.96-1.72-4.524-1.72-4.524zm.832 4.938c-.07.033-.145.074-.217.11a40.803 40.803 0 0 0-3.256-.78c-.995-.204-1.031-.15-2.151.175-.16.046-.313.088-.462.133a36.17 36.17 0 0 1-.445-1.202c1.436-1.106 2.884-2.034 4.821-2.985.5 1.491 1.215 3.483 1.71 4.549zm.768 4.528c.293-.765.521-1.331.605-1.89.569.958 1.248 2 1.774 2.815-.819.397-1.772 1.01-2.672 1.685.062-1.037.083-2.064.293-2.61zm5.334-14.636c-.01.014-.028.026-.04.04a23.057 23.057 0 0 0-1.376-2.111c1.007-.061 2.246-.008 3.374.108-1.014.363-1.461 1.254-1.958 1.963zm-9.028 1.094c.019-.026.039-.047.057-.072.234 1.182.513 2.16.886 3.518-1.402.618-3.881 2.148-4.976 2.972-.198-.502-.404-1.214-.589-1.946.249-.737.758-1.254 1.476-1.325 1.228-.123 2.28-1.95 3.146-3.147zm-5.41-1.784C4.24 6.455 6.023 4.666 7.65 3.773c-.016.4.086 1.567.218 2.693-.57.057-1.134.128-1.692.211a12.084 12.084 0 0 0-3.115 4.088c-.117-1.054-.178-1.933-.133-2.472zM2.07 9.731s.062 1.06.113 1.833c0 0-.781.886-1.18 1.59.159-1.443.498-2.187 1.067-3.423zm7.664 18.356C5.688 26.82 2.69 23.41 1.62 19.834a17.475 17.475 0 0 1-.651-6.473c.056.01.186.072.38.017.135-.093.616-.43.957-.728l.018.131c-.23.87-.371 1.775-.4 2.71.37.39.804 1.038 1.286 1.707-.31.23-.905.641-1.045.741-.41.292-.406.753-.114 1.015.161.144.492.084.613-.01.358-.285.656-.513 1.066-.77.15.393.292.748.43 1.086-.175.188-.3.436-.342.798-.135 1.172.979 2.092 1.918 2.36.035.01.06.014.094.023.05.076.095.147.148.224-.487.378-.82.765-1.049 1.063-.132.172-.28.43-.16.481.123.05.535 0 .719-.034.466-.09.826-.606 1.148-.796.387.534 1.017 1.22 1.672 1.88.029.12.055.246.088.351.125.403.293.804.495 1.196.471.22.962.402 1.464.561a8.344 8.344 0 0 0-.622.72zm.989.313c.155-.203.312-.454.505-.626.468.31.969.665 1.368.894-.615-.07-1.337-.085-1.873-.268zm3.113.31s-1.604-1.062-2.009-1.471c.803-.667 2.102-1.459 3.128-1.889.402.63 1.727 2.507 2.258 3.112-.963.168-2.31.294-3.377.248zM20.54 27.2c-.286.189-1.664.814-2.204.988a23.43 23.43 0 0 1-2.44-3.202c.844-.354 2.143-.67 3.346-.82.109.342.25.704.444 1.094.19.382.411.662.649.853.085-.053.164-.115.248-.17-.006.42-.018.846-.043 1.257zm-.33-21.477c-.27-.172-.607-.108-.467.193.053.117.259.314.427.512-.986-.272-3.608-.479-4.856-.364-.815-.916-1.744-2.028-2.861-2.765 4.999-.311 9.49 1.756 11.473 4.186-.661-.344-2.087-.834-2.667-.963-.313-.319-.708-.58-1.05-.8zm1.094 21.065c.023-.407.04-.922.053-1.396.487-.378.946-.79 1.37-1.238.547.063 1.094.156 1.427.24-.74.936-1.762 1.716-2.85 2.394zm3.825-3.724c-.12.253-.428.688-.633.894-.312-.126-.781-.258-1.272-.375.078-.094.163-.182.24-.279.268-1.796-.338-2.37.42-4.014l.172-.371c.418.118.812.247 1.153.386.043.616.04 2.728-.08 3.759zm-.708-4.917c.196-.407.412-.84.645-1.27.061.547.105 1.08.131 1.563a9.256 9.256 0 0 0-.776-.293zm2.218 1.126l-.194.756c-.137.515-.593 1.732-.832 2.223.091-.663.171-2.384.148-2.73.16.049.502-.147.559-.341.057-.195-.564-.495-.564-.495a20.742 20.742 0 0 0-.172-2.7c.142-.23.286-.452.434-.655a12.082 12.082 0 0 0-.186-1.575c.125.041.24.074.323.075.283.004.282-.19.192-.298-.058-.07-.328-.238-.643-.42a12.02 12.02 0 0 0-2.78-5.32c.533.202 1.214.48 1.754.774.41.516 1.585 1.675 2.212 4.92.564 2.922-.06 5.143-.251 5.786zM80.886 8.597v-.24h1.218v.24h-.468v1.191h-.283V8.597h-.467zm1.87-.24l.365 1.025.368-1.024h.406v1.43h-.262V8.634l-.396 1.154h-.229l-.4-1.154v1.154h-.261v-1.43h.409z" />`}</svg></a><div class="side margin-start-end-1-5" slot=logo></div><div class="esri-global-nav__title"><a aria-label=${this._translations.linkToArcGISSolutionsHomePage??m} class="esri-global-nav__logo-link" href=https://www.esri.com/en-us/arcgis/products/arcgis-solutions/overview @click=${()=>this._logLinkClickTelemetry("ArcGIS Solutions")} rel=noopener target=_blank title=${this._translations.linkToArcGISSolutionsHomePage??m}>${this._translations.arcgisSolutions}</a></div></div>`}_getSubHeading(){let t=this._cardType==="deployed"?this._translations.myDeployments:this._translations.allSolutions;return this._subNavigationCard?o`<calcite-navigation class="height-66" slot=navigation-secondary><calcite-menu class="height-66" label slot=content-start><calcite-menu-item breadcrumb .label=${t} @click=${this._navigateFromSubMenu} @keydown=${e=>h(e,()=>this._navigateFromSubMenu())} .text=${t} text-enabled></calcite-menu-item><calcite-menu-item label active .text=${this._subNavigationCard?.title} text-enabled></calcite-menu-item></calcite-menu></calcite-navigation>`:""}_getLogoFill(t){return t?"#FFFFFF":"#141414"}_handleMenuClick(t,e,i,s){i.forEach(n=>{n.value&&(this._isMobile?n.value.selected=!1:n.value.active=!1)}),e?.value&&(this._isMobile?e.value.selected=!0:e.value.active=!0),t!=="my-content"?this._activeTab=t:this._viewMyContent(),s&&this._logNavClickTelemetry(t),s&&this.navTabSelected.emit({tabType:t})}_logNavClickTelemetry(t){let e={"all-solutions":"Solutions",deployments:"Deployments","my-content":"My Content",resources:"Resources",details:void 0,"deployed-card":void 0}[t];e&&this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:[e]})}_logLinkClickTelemetry(t){this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:[t]})}_getUserAvatar(){let t=this._portal.user,e=this._authentication?.PortalUserSubset,i=t?.id??t?.sourceJSON?.id;return this._thumbnailUrl===""&&(this._thumbnailUrl=t?.thumbnailUrl??e?.thumbnailUrl??""),o`<div class="height-full display-flex cursor-pointer signin-padding"><calcite-navigation-user class="height-full" full-name=${t?.fullName??m} id=instant-apps-sign-in-user-button slot=user .thumbnail=${this._thumbnailUrl} .userId=${i} .username=${t?.username}></calcite-navigation-user></div><calcite-popover placement=bottom-end scale=s reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close .label=${this._translations.userSettings}><calcite-action scale=l @click=${this._viewMyContent} .text=${this._translations.myContent} text-enabled></calcite-action><calcite-action scale=l @click=${this._signOut} .text=${this._translations.signOut} text-enabled></calcite-action></calcite-popover>`}_viewMyContent(){let t=`${this._config?.portalURL}/home/content.html#my`;window.open(t,"_blank")}_signOut(){this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:["Sign out"]}),this._authentication?.signOut()}_handleSignIn(t){t.preventDefault(),this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:["Sign in"]}),this._authentication?.signIn().then(()=>{}).catch(e=>{console.error("Error creating global nav header:",e)})}_deployedCardSelected(t){this._cardType="deployed",this._subNavigationCard=t.detail.card}_detailsCardSelected(t){this._cardType="details",this._subNavigationCard=t.detail}_deployAppTabSelected(){this._subNavigationCard=void 0}_handleUrlChange(){this._subNavigationCard=void 0}_navigateFromSubMenu(){this._cardType==="details"?this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0):this._cardType==="deployed"&&this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)}_updateThumbnailToken(t){this._thumbnailUrl!==""&&(this._thumbnailUrl=P(this._thumbnailUrl,t))}};M("solutions-deploy-app-nav",y);return{a:v,b:y}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a,b,e)
|
|
2
|
+
import e from"./BGXRCU7G.js";import b from"./UYY6JODL.js";import a from"./QKJ4PGBO.js";import{Fb as $,c as k,nb as R,za as A}from"./J75MHJID.js";import{a as U}from"./R67EKKSL.js";import{g as d}from"./JUUVYK2H.js";import{b as M}from"./KIUBUHVM.js";import{E as l,F as c,G as S,I as C,K as m,h as w,i as o,j as f,q as u}from"./H5E6ISYP.js";export default $arcgis.t(([p,L,N,{e:E,g:T,i:O,q:h},{c:P},{o:_}])=>{var I=class{constructor(t,e,i,s){this._credential=void 0,this._isEnterprise=!1,this._locale="en",this._portalSubset=void 0,this._portalUserSubset=void 0,this._arcGISOnlineReachable=!0,this._searchArcGISOnlineEnabled=!0,this._signInParam=void 0,this._clientId=t??"",this._locale=i??"en",this._portalUrl=e??"https://www.arcgis.com",this._portalRestUrl=this._portalUrl+"/sharing/rest",this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:this._portalUrl,this._signInParam=s;let n=new L({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});try{p.registerOAuthInfos([n])}catch(a){console.log(a)}this._portal=new N({url:this._portalUrl})}get Credential(){return this._credential}get IsEnterprisePortal(){return this._isEnterprise}get IsSignedIn(){return!!this._credential}get Portal(){return this._portal}get PortalSubset(){return this._portalSubset}get PortalUrl(){return this._portalUrl}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserSubset(){return this._portalUserSubset}get PortalUserPrivileges(){let t=[];return this._portalUserSubset?.privileges&&(t=this._portalUserSubset.privileges),t}get SignInParam(){return this._signInParam}get CanDeleteSolution(){return this.PortalUserPrivileges.includes("portal:admin:deleteItems")}get CanUpdateSolution(){return this.PortalUserPrivileges.includes("portal:admin:updateItems")}get CanUseAI(){let t=this._portalSubset?.orgSettings,e=this.PortalUserPrivileges.includes("portal:user:useAIAssistants");return t?.aiAssistantsEnabled?t.aiAssistantsEnabled&&!t.blockBetaApps&&e:!1}get CanViewOrg(){return this.PortalUserPrivileges.includes("portal:admin:viewItems")}get CanSearchArcGISOnline(){return this._searchArcGISOnlineEnabled&&this._arcGISOnlineReachable}async checkArcGISOnlineReachability(t){if(this._isEnterprise&&this._searchArcGISOnlineEnabled&&t){let e=`${T(this._portalUrl)}/sharing/rest`,i=new d({});try{await R({q:`group:${t} type:Solution`,num:1,start:1,authentication:i,portal:e}),this._arcGISOnlineReachable=!0}catch(s){this._arcGISOnlineReachable=!1,console.warn("ArcGIS Online solutions group not reachable:",s)}}}get RestUserSession(){let t=p.findServerInfo(this._portalRestUrl),e=this._credential?d.fromCredential(this._credential,t):this._isEnterprise?new d({}):new d({portal:this._portalRestUrl});return e.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:e.portal,e.clientId=this._credential?._oAuthCred?.appId,e._refreshToken=this._credential?._oAuthCred?.refreshToken,e}async initialize(t=!1,e){try{await this._init(t,e)}catch{this.destroy()}return this}destroy(){this._credential=void 0,this._portalSubset=void 0,this._portalUserSubset=void 0,p.destroyCredentials()}async signIn(t=""){p.setOAuthRedirectionHandler(e=>{let i=e.authorizeParams.redirect_uri;if(t.length>0){let s=i.split("?"),n=s[0],a="",r=new URLSearchParams(s[1]||"");r.append("signInParam",t),a="?"+r.toString(),e.authorizeParams.redirect_uri=n+a}window.location.href=e.authorizeUrl+"?"+this._objectToQuery(e.authorizeParams)}),await p.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(e=>{e&&window.location.reload()})}signOut(){let t=window.location.href,e=/[\/]\b([0-9A-Fa-f]){32}\b/g,i=t.match(e)?t.replace(e,""):t;i=E(i,"sortField","suggested");let s=`${this._portal?.restUrl??this._portalUrl+"/sharing/rest"}/oauth2/signout?client_id=${this._clientId}&redirect_uri=${encodeURIComponent(i)}`;this.destroy(),window.location.replace(s)}refreshSession(){let t=this.RestUserSession;if(!(!t||!this.IsSignedIn))return t.exchangeRefreshToken()}_getOrgUrl(t,e,i){return e&&i?window.location.protocol+"//"+e.toLowerCase()+"."+i:t}async _init(t=!1,e){try{this._credential=await p.checkSignInStatus(this._portalUrl+"/sharing")}catch(s){console.log(s)}try{let s=await p.checkAppAccess(this._portalUrl+"/sharing",this._clientId);(typeof s.valid<"u"&&!s.valid||s.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=s.credential}catch(s){s.name}this._searchArcGISOnlineEnabled=await this._checkSearchArcGISOnlineEnabled(t,this._portal.restUrl),this._portal.authMode=t?"immediate":"auto",await this._portal.load();let i=this._credential?await A(this.RestUserSession):{};return this._isEnterprise=this._portal.isPortal,await this.checkArcGISOnlineReachability(e),this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl??"",portalUrl:this._portal.url??"",urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly,orgSettings:i},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??"",roleId:this._portal.user?.roleId??void 0},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await $(this._portal.restUrl,this.RestUserSession||new d({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}async _checkSearchArcGISOnlineEnabled(t,e){if(t)try{let i=`${e}/portals/self/settings`,s=await k(i,{authentication:this._credential?this.RestUserSession:void 0});return s?.portalConfigProperties?.searchArcGISOnlineEnabled!==void 0?s.portalConfigProperties.searchArcGISOnlineEnabled:!1}catch(i){return console.warn("Failed to fetch portal settings:",i),!1}else return!0}_isSerializable(t){return t&&typeof t=="object"&&"toJSON"in t&&typeof t.toJSON=="function"}_objectToQuery(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(e(i,t[i]))).join("&"):Object.keys(t).map(i=>{let s=t[i];if(s==null)return"";let n=encodeURIComponent(i)+"=",a=e&&e[i];return a?n+encodeURIComponent(a(s)):Array.isArray(s)?s.map(r=>this._isSerializable(r)?n+encodeURIComponent(JSON.stringify(r)):n+encodeURIComponent(r)).join("&"):this._isSerializable(s)?n+encodeURIComponent(JSON.stringify(s)):n+encodeURIComponent(s)}).filter(i=>i).join("&"):""}};var g={name:"arcgis-solutions-app",version:"2.0",dev:{amazon:{userPoolID:"us-east-1:7345bcf2-bffa-4849-a379-a83178f63eef",app:{id:"7e2fd97553644e5f99b1129fbcee3c2e"}}},qa:{amazon:{userPoolID:"us-east-1:7345bcf2-bffa-4849-a379-a83178f63eef",app:{id:"a3beba911bd14847ada5c9ffed2a2111"}}},prod:{amazon:{userPoolID:"us-east-1:8c41b2dc-7563-403d-ba64-673b103debce",app:{id:"35a920e0e7f84680be076e57dd5cb728"}}}},x="solutions-deployment-first-use",v=class b{constructor(){this._telemetryInstance=void 0,this._logTelemetryEvents=!1}getInstance(){return this._telemetryInstance}isEnabled(){return this._logTelemetryEvents}setInstance(t){this._telemetryInstance=t}setEnabled(t){this._logTelemetryEvents=t}_mapDimensions(t){let e={};return t&&t.slice(0,20).forEach((i,s)=>{let n=`dimension${s+1}`;e[n]=i}),e}_mapMetrics(t){let e={};return t&&t.slice(0,20).forEach((i,s)=>{let n=`metric${s+1}`;e[n]=i}),e}logEvent(t){if(this._logTelemetryEvents&&this._telemetryInstance){let{category:e,action:i,dimensions:s,metrics:n,label:a="",details:r=""}=t,z=this._mapDimensions(s),G=this._mapMetrics(n);this._telemetryInstance.logEvent({category:e,action:i,label:a,details:r,...z,...G})}}getTelemetrySession(){return{instance:this._telemetryInstance,logEvent:t=>this.logEvent(t),enabled:this._logTelemetryEvents}}static getDisabledSession(){return{instance:void 0,logEvent:()=>{},enabled:!1}}async initializeTelemetry(t,e){if(!b.shouldEnableTelemetry(t,e))return this.getTelemetrySession();let i=document.querySelector("consent-manager");if(!i){if(!customElements.get("consent-manager"))return this.getTelemetrySession();i=document.createElement("consent-manager"),i.portal=t.Portal,i.measurementIds=e.measurementIds||[],i.firstUseVar=x;let s=b.getEnvironmentConfig(e,t);s&&(i.amazonUserPoolID=s?.amazon?.userPoolID,i.amazonAppId=s?.amazon?.app?.id,i.amazonAppName=g.name,i.amazonVersion=g.version);let n=t.Portal?.eueiEnabled;(localStorage.getItem(i.firstUseVar)==="true"||n)&&(this.setEnabled(!0),i.classList.add("display-none")),document.body.appendChild(i),n?(await new Promise(a=>setTimeout(a,100)),await this._setInstanceFromConsentManager(i)):window.addEventListener("consentGranted",a=>{a.detail?.granted&&(this.setEnabled(!0),this._setInstanceFromConsentManager(i))})}return this.getTelemetrySession()}async _setInstanceFromConsentManager(t){try{let e=new Promise((s,n)=>setTimeout(()=>n(new Error("Timeout waiting for consent-manager instance")),1e4)),i=await Promise.race([t.getInstance(),e]);this.setInstance(i)}catch{}}static shouldEnableTelemetry(t,e){let i=t?.IsEnterprisePortal;return t?.Portal?.eueiEnabled===!1||i?!1:!!((e.measurementIds||g)&&x)}static getEnvironmentConfig(t,e){let i=t.forceTrackingEnv||O(document.location.hostname,e?.Portal?.portalHostname||"");return i&&Object.keys(g).includes(i)?g[i]:void 0}},F=w`.esri-global-nav__title{margin-block-start:0;position:relative;margin-bottom:0;font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-medium);padding-inline-end:var(--calcite-spacing-xxl);align-self:center;height:100%;display:flex;align-items:center}.esri-global-nav__logo-link{color:var(--calcite-color-text-1);text-decoration:unset;margin-block-start:0px;position:relative;margin-bottom:0;align-self:center;height:100%;display:flex;align-items:center}.esri-global-nav__logo-link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.cursor-pointer{cursor:pointer}.side{border-right:solid 1px;color:var(--calcite-color-text-1);height:34px;align-self:center}.display-flex{display:flex}.align-self-center{align-self:center}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.margin-start-end-1{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-start-end-1-5{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.height-full{height:100%}.user-label{--calcite-label-margin-bottom: 0px}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-normal{font-weight:var(--calcite-font-weight-normal)}.logo-padding{padding-inline-start:var(--calcite-spacing-none);height:100%}@media(max-width:800px){.logo-padding{padding-inline-start:var(--calcite-spacing-lg)}}.signin-padding{padding-inline-end:var(--calcite-spacing-none)}@media(max-width:800px){.signin-padding{padding-inline-end:var(--calcite-spacing-lg)}}calcite-action{--calcite-font-size-0: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: var(--calcite-spacing-lg)}calcite-navigation{--calcite-color-border-3: transparent}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box;position:absolute;top:65px;left:0;width:100%;z-index:1}.height-66{height:66px}.sub-nav-constrained{width:calc(100% - var(--assistant-panel-width, 420px));overflow:hidden}`,y=class extends S{constructor(){super(),this.assistantOpen=!1,this._isMobile=!1,this._logoFill="",this._thumbnailUrl="",this._translations=U({name:"solutions-deploy-app-nav",blocking:!0}),this._activeTab="all-solutions",this._authentication=void 0,this._cardType="details",this._dropdownRef=l(),this._dropdownItemAll=l(),this._dropdownItemMy=l(),this._dropdownItemMyContent=l(),this._dropdownItemResources=l(),this._handleMobileChange=t=>{this._isMobile=t.matches},this._menuRef=l(),this._menuItemAll=l(),this._menuItemMy=l(),this._menuItemResources=l(),this.authInit=u(),this.navTabSelected=u(),this.tabChanged=u(),this.tokenRefreshed=u(),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployAppTabSelected",this._deployAppTabSelected),this.listenOn(window,"popstate",this._handleUrlChange),this.listenOn(window,"sessionRefreshed",t=>{this._updateThumbnailToken(t.detail)}),this._mobileMediaQuery=window.matchMedia("(max-width: 800px)"),this._isMobile=this._mobileMediaQuery.matches,this._mobileMediaQuery.addEventListener("change",this._handleMobileChange)}static{this.properties={appConfig:1,assistantOpen:5,initTab:1,_subNavigationCard:16,_isMobile:16,_logoFill:16,_thumbnailUrl:16,_translations:16}}static{this.styles=F}get _telemetry(){return this._config?.telemetrySession}clearMenuItems(){this._isMobile?(this._dropdownItemAll.value.selected=!1,this._authentication?.IsSignedIn&&(this._dropdownItemMy.value.selected=!1),this._dropdownItemResources.value.selected=!1):(this._menuItemAll.value.active=!1,this._authentication?.IsSignedIn&&(this._menuItemMy.value.active=!1),this._menuItemResources.value.active=!1)}activateMenuItem(t,e=!1){let i,s;switch(t){case"all-solutions":i=this._isMobile?this._dropdownItemAll:this._menuItemAll,s=this._isMobile?[this._dropdownItemMy,this._dropdownItemResources]:[this._menuItemMy,this._menuItemResources];break;case"deployments":i=this._isMobile?this._dropdownItemMy:this._menuItemMy,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemResources]:[this._menuItemAll,this._menuItemResources];break;case"resources":i=this._isMobile?this._dropdownItemResources:this._menuItemResources,s=this._isMobile?[this._dropdownItemAll,this._dropdownItemMy]:[this._menuItemAll,this._menuItemMy];break;case"my-content":this._isMobile&&(i=this._dropdownItemMyContent,s=[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemResources]);break}i&&s&&this._handleMenuClick(t,i,s,e)}async connectedCallback(){super.connectedCallback();let t=new d({username:"",password:""});this._userSession=t}async load(){let t=window.matchMedia("(prefers-color-scheme: dark)");t.addEventListener("change",r=>this._logoFill=this._getLogoFill(r.matches)),this._logoFill=this._getLogoFill(t.matches),this._mobileMediaQuery.matches&&(this._isMobile=!0);let e=this.appConfig.locale||"en",i=this.appConfig.authentication?.PortalSubset?.orgUrl||this.appConfig.orgURL||this.appConfig.portalURL,s=this.appConfig.authentication?.PortalUrl||this.appConfig.portalURL,n=this.appConfig.primarySolutionsGroupId,a=!1;this._authentication||(this.appConfig.authentication?this._authentication=this.appConfig.authentication:(this._authentication=new I(this.appConfig.appId,this.appConfig.portalURL,this.appConfig.locale),await this._authentication.initialize(this.appConfig.isEnterprise,this.appConfig.agoBasedEnterpriseSolutionsGroupId),a=!0)),a||await this._authentication?.checkArcGISOnlineReachability(this.appConfig.agoBasedEnterpriseSolutionsGroupId),this._authentication.RestUserSession&&(this._userSession=this._authentication.RestUserSession),this.initTab&&(this._activeTab=this.initTab,this.initTab=void 0),this._config={anonAgolSession:void 0,agolPortalUrl:"",allCards:[],appId:this.appConfig.appId,authentication:this._authentication,agoBasedEnterpriseSolutionsGroupId:this.appConfig.agoBasedEnterpriseSolutionsGroupId,diagramKey:this.appConfig.diagramKey,forceTrackingEnv:this.appConfig.forceTrackingEnv,isEnterprise:this.appConfig.isEnterprise,locale:e,orgUrl:i,portalURL:s,primarySolutionsGroupId:n,userSession:this._userSession,telemetrySession:v.getDisabledSession(),measurementIds:this.appConfig.measurementIds},this.authInit.emit(this._config),this._portal=await this._userSession?.getPortal()}render(){return o`<div><calcite-navigation>${this._getHeading()}${this._isMobile?this._getDropdown():this._getMenu()}${this._isMobile?"":this._getSignInOut()}</calcite-navigation><div class="border" slot=header></div>${!this._isMobile&&o`<div class=${C(this.assistantOpen?"sub-nav-constrained":"")}>${this._getSubHeading()}</div>`||""}</div>`}updated(t){t.has("_isMobile")&&t.get("_isMobile")!==void 0&&this.activateMenuItem(this._activeTab,!1)}disconnectedCallback(){super.disconnectedCallback(),this._mobileMediaQuery.removeEventListener("change",this._handleMobileChange)}_getSignInOut(){return this._authentication?.IsSignedIn?o`<div slot=user>${this._getUserAvatar()}</div>`:o`<calcite-menu label slot=content-end><calcite-menu-item label @click=${this._handleSignIn} @keydown=${t=>h(t,()=>this._handleSignIn(t))} .text=${this._translations.signIn}></calcite-menu-item></calcite-menu>`}_getDropdown(){let t=this._authentication?.IsSignedIn?this._translations.signOut:this._translations.signIn;return o`<calcite-dropdown overlay-positioning=fixed slot=content-end width=m ${c(this._dropdownRef)}><calcite-button appearance=transparent icon-start=hamburger kind=neutral slot=trigger scale=l></calcite-button><calcite-dropdown-group><calcite-dropdown-item @click=${()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("all-solutions",this._dropdownItemAll,[this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemAll)}>${this._translations.allSolutions}</calcite-dropdown-item><calcite-dropdown-item @click=${()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("deployments",this._dropdownItemMy,[this._dropdownItemAll,this._dropdownItemResources,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemMy)}>${this._translations.myDeployments}</calcite-dropdown-item>${this._authentication?.CanSearchArcGISOnline&&o`<calcite-dropdown-item @click=${()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemMyContent],!0)} @keydown=${e=>h(e,()=>this._handleMenuClick("resources",this._dropdownItemResources,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemMyContent],!0))} ${c(this._dropdownItemResources)}>${this._translations.solutionResources}</calcite-dropdown-item>`||""}<calcite-dropdown-item @click=${()=>{let e=this._activeTab==="all-solutions"?this._dropdownItemAll:this._activeTab==="deployments"?this._dropdownItemMy:this._activeTab==="resources"?this._dropdownItemResources:void 0;setTimeout(()=>this._handleMenuClick("my-content",e,[this._dropdownItemAll,this._dropdownItemMy,this._dropdownItemResources,this._dropdownItemMyContent],!1),10)}} ${c(this._dropdownItemMyContent)}>${this._translations.myContent}</calcite-dropdown-item><calcite-dropdown-item @click=${e=>{this._authentication?.IsSignedIn?this._signOut():this._handleSignIn(e)}}>${t}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}_getMenu(){return o`<calcite-menu label slot=content-start ${c(this._menuRef)}><calcite-menu-item label @click=${()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0))} .text=${this._translations.allSolutions} ${c(this._menuItemAll)}></calcite-menu-item><calcite-menu-item label @click=${()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0))} .text=${this._translations.myDeployments} ${c(this._menuItemMy)}></calcite-menu-item>${this._authentication?.CanSearchArcGISOnline&&o`<calcite-menu-item label @click=${()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0)} @keydown=${t=>h(t,()=>this._handleMenuClick("resources",this._menuItemResources,[this._menuItemAll,this._menuItemMy],!0))} .text=${this._translations.solutionResources} ${c(this._menuItemResources)}></calcite-menu-item>`||""}</calcite-menu>`}_getHeading(){return o`<div class="align-self-center display-flex cursor-pointer logo-padding" slot=logo><a aria-label=${this._translations.linkToEsriHomePage??m} class="esri-global-nav__logo-link" href=https://www.esri.com @click=${()=>this._logLinkClickTelemetry("Esri")} rel=noopener target=_blank title=${this._translations.linkToEsriHomePage??m}><svg height=30 viewBox="0 0 84 30" width=84 xmlns=http://www.w3.org/2000/svg>${f`<path fill=${this._logoFill??m} d="M77.277.5c-1.48 0-2.554 1.175-2.554 2.488 0 1.314 1.074 2.49 2.554 2.49 1.48 0 2.622-1.071 2.622-2.49C79.899 1.572 78.756.5 77.277.5zm-1.913 23.426h3.891V8.353h-3.891v15.573zM40.515 7.965c-4.702 0-8.465 3.275-8.465 8.174 0 4.898 3.763 8.177 8.465 8.177 2.146 0 4.165-.667 5.852-2.31l-2.457-2.457c-.916.964-2.093 1.651-3.78 1.651-2.175 0-3.927-1.397-4.188-3.698h11.875v-1.07c0-5.42-2.95-8.467-7.302-8.467zm-4.573 6.617c.293-2.24 1.721-3.7 4.023-3.7 2.434 0 3.926 1.43 3.96 3.7h-7.983zm17.305-1.849c0-1.169 1.233-1.655 2.273-1.655 1.32 0 2.292.547 3.037 1.577l2.476-2.474c-1.282-1.6-3.407-2.216-5.418-2.216-3.147 0-6.262 1.555-6.262 5.028 0 5.938 8.403 3.406 8.403 6.617 0 1.233-1.46 1.784-2.595 1.784-1.65 0-2.687-.806-3.69-1.905l-2.515 2.514c1.58 1.711 3.62 2.313 5.978 2.313 3.179 0 6.717-1.299 6.717-4.998 0-6.067-8.404-3.795-8.404-6.585zm14.15-1.916h-.062V8.353h-3.892v15.573h3.892v-8.34c0-.842.518-3.925 4.185-3.925.564 0 1.127.112 1.718.253l.152-3.726c-.45-.127-.901-.223-1.382-.223-2.046 0-3.766 1.07-4.61 2.852zM14.683 2.766c-1.217-.037-1.932.12-2.651.26-.216-.056-.62.003-.643.472 0 .252.08.447.24.562.159.114 1.493 1.1 2.473 2.142-.47.052-.98.138-1.504.246-.585-1.264-2.465-.114-3.714-.064-.146.006-.286.025-.431.035-.137-1.056-.235-2.15-.21-2.92 1.618-.917 4.748-1.593 6.874-1.626l.373-.01c.312-.003.337-.251.043-.291-2.641-.361-4.929.173-7.279 1.145C5.808 3.748 2.696 6.12.8 10.596c-.444 1.247-2.219 7.195.935 12.3 2.56 4.142 5.855 6.113 9.887 6.676 4.024.561 6.207.075 8.752-1.055 5.951-2.642 10.496-12.559 5.95-19.747-1.794-3.319-6.495-6.229-11.641-6.004zm-2.259 4.647a17.754 17.754 0 0 1 2.362-.368 15.741 15.741 0 0 1 1.748 2.54c-.805.39-1.878.688-2.315 1.312-.181.26-.226.613-.232.995a23.59 23.59 0 0 0-3.877 1.286c-.453-1.332-.85-2.66-1.124-3.842 1.296-1.237 2.813-1.438 3.438-1.923zm6.61 15.88c-.354.038-.706.083-1.016.13-.77.121-1.762.379-2.685.723-.53-.843-1.95-2.891-2.667-4.437 1.442-.709 3.457-1.303 5.775-1.444.19.33.4.66.69.956.757.774-.44 1.883-.096 4.072zm-8.603-9.14c1.12-.53 2.3-.968 3.56-1.286-.008.333-.045.649-.182.903-.196.366-.106 1.428.134 1.775.755 1.099 2.008.488 2.951.883.433.181.721.482.964.84-1.974.124-3.91.584-5.706 1.41-.923-1.96-1.72-4.524-1.72-4.524zm.832 4.938c-.07.033-.145.074-.217.11a40.803 40.803 0 0 0-3.256-.78c-.995-.204-1.031-.15-2.151.175-.16.046-.313.088-.462.133a36.17 36.17 0 0 1-.445-1.202c1.436-1.106 2.884-2.034 4.821-2.985.5 1.491 1.215 3.483 1.71 4.549zm.768 4.528c.293-.765.521-1.331.605-1.89.569.958 1.248 2 1.774 2.815-.819.397-1.772 1.01-2.672 1.685.062-1.037.083-2.064.293-2.61zm5.334-14.636c-.01.014-.028.026-.04.04a23.057 23.057 0 0 0-1.376-2.111c1.007-.061 2.246-.008 3.374.108-1.014.363-1.461 1.254-1.958 1.963zm-9.028 1.094c.019-.026.039-.047.057-.072.234 1.182.513 2.16.886 3.518-1.402.618-3.881 2.148-4.976 2.972-.198-.502-.404-1.214-.589-1.946.249-.737.758-1.254 1.476-1.325 1.228-.123 2.28-1.95 3.146-3.147zm-5.41-1.784C4.24 6.455 6.023 4.666 7.65 3.773c-.016.4.086 1.567.218 2.693-.57.057-1.134.128-1.692.211a12.084 12.084 0 0 0-3.115 4.088c-.117-1.054-.178-1.933-.133-2.472zM2.07 9.731s.062 1.06.113 1.833c0 0-.781.886-1.18 1.59.159-1.443.498-2.187 1.067-3.423zm7.664 18.356C5.688 26.82 2.69 23.41 1.62 19.834a17.475 17.475 0 0 1-.651-6.473c.056.01.186.072.38.017.135-.093.616-.43.957-.728l.018.131c-.23.87-.371 1.775-.4 2.71.37.39.804 1.038 1.286 1.707-.31.23-.905.641-1.045.741-.41.292-.406.753-.114 1.015.161.144.492.084.613-.01.358-.285.656-.513 1.066-.77.15.393.292.748.43 1.086-.175.188-.3.436-.342.798-.135 1.172.979 2.092 1.918 2.36.035.01.06.014.094.023.05.076.095.147.148.224-.487.378-.82.765-1.049 1.063-.132.172-.28.43-.16.481.123.05.535 0 .719-.034.466-.09.826-.606 1.148-.796.387.534 1.017 1.22 1.672 1.88.029.12.055.246.088.351.125.403.293.804.495 1.196.471.22.962.402 1.464.561a8.344 8.344 0 0 0-.622.72zm.989.313c.155-.203.312-.454.505-.626.468.31.969.665 1.368.894-.615-.07-1.337-.085-1.873-.268zm3.113.31s-1.604-1.062-2.009-1.471c.803-.667 2.102-1.459 3.128-1.889.402.63 1.727 2.507 2.258 3.112-.963.168-2.31.294-3.377.248zM20.54 27.2c-.286.189-1.664.814-2.204.988a23.43 23.43 0 0 1-2.44-3.202c.844-.354 2.143-.67 3.346-.82.109.342.25.704.444 1.094.19.382.411.662.649.853.085-.053.164-.115.248-.17-.006.42-.018.846-.043 1.257zm-.33-21.477c-.27-.172-.607-.108-.467.193.053.117.259.314.427.512-.986-.272-3.608-.479-4.856-.364-.815-.916-1.744-2.028-2.861-2.765 4.999-.311 9.49 1.756 11.473 4.186-.661-.344-2.087-.834-2.667-.963-.313-.319-.708-.58-1.05-.8zm1.094 21.065c.023-.407.04-.922.053-1.396.487-.378.946-.79 1.37-1.238.547.063 1.094.156 1.427.24-.74.936-1.762 1.716-2.85 2.394zm3.825-3.724c-.12.253-.428.688-.633.894-.312-.126-.781-.258-1.272-.375.078-.094.163-.182.24-.279.268-1.796-.338-2.37.42-4.014l.172-.371c.418.118.812.247 1.153.386.043.616.04 2.728-.08 3.759zm-.708-4.917c.196-.407.412-.84.645-1.27.061.547.105 1.08.131 1.563a9.256 9.256 0 0 0-.776-.293zm2.218 1.126l-.194.756c-.137.515-.593 1.732-.832 2.223.091-.663.171-2.384.148-2.73.16.049.502-.147.559-.341.057-.195-.564-.495-.564-.495a20.742 20.742 0 0 0-.172-2.7c.142-.23.286-.452.434-.655a12.082 12.082 0 0 0-.186-1.575c.125.041.24.074.323.075.283.004.282-.19.192-.298-.058-.07-.328-.238-.643-.42a12.02 12.02 0 0 0-2.78-5.32c.533.202 1.214.48 1.754.774.41.516 1.585 1.675 2.212 4.92.564 2.922-.06 5.143-.251 5.786zM80.886 8.597v-.24h1.218v.24h-.468v1.191h-.283V8.597h-.467zm1.87-.24l.365 1.025.368-1.024h.406v1.43h-.262V8.634l-.396 1.154h-.229l-.4-1.154v1.154h-.261v-1.43h.409z" />`}</svg></a><div class="side margin-start-end-1-5" slot=logo></div><div class="esri-global-nav__title"><a aria-label=${this._translations.linkToArcGISSolutionsHomePage??m} class="esri-global-nav__logo-link" href=https://www.esri.com/en-us/arcgis/products/arcgis-solutions/overview @click=${()=>this._logLinkClickTelemetry("ArcGIS Solutions")} rel=noopener target=_blank title=${this._translations.linkToArcGISSolutionsHomePage??m}>${this._translations.arcgisSolutions}</a></div></div>`}_getSubHeading(){let t=this._cardType==="deployed"?this._translations.myDeployments:this._translations.allSolutions;return this._subNavigationCard?o`<calcite-navigation class="height-66" slot=navigation-secondary><calcite-menu class="height-66" label slot=content-start><calcite-menu-item breadcrumb .label=${t} @click=${this._navigateFromSubMenu} @keydown=${e=>h(e,()=>this._navigateFromSubMenu())} .text=${t} text-enabled></calcite-menu-item><calcite-menu-item label active .text=${this._subNavigationCard?.title} text-enabled></calcite-menu-item></calcite-menu></calcite-navigation>`:""}_getLogoFill(t){return t?"#FFFFFF":"#141414"}_handleMenuClick(t,e,i,s){i.forEach(n=>{n.value&&(this._isMobile?n.value.selected=!1:n.value.active=!1)}),e?.value&&(this._isMobile?e.value.selected=!0:e.value.active=!0),t!=="my-content"?this._activeTab=t:this._viewMyContent(),s&&this._logNavClickTelemetry(t),s&&this.navTabSelected.emit({tabType:t})}_logNavClickTelemetry(t){let e={"all-solutions":"Solutions",deployments:"Deployments","my-content":"My Content",resources:"Resources",details:void 0,"deployed-card":void 0}[t];e&&this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:[e]})}_logLinkClickTelemetry(t){this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:[t]})}_getUserAvatar(){let t=this._portal.user,e=this._authentication?.PortalUserSubset,i=t?.id??t?.sourceJSON?.id;return this._thumbnailUrl===""&&(this._thumbnailUrl=t?.thumbnailUrl??e?.thumbnailUrl??""),o`<div class="height-full display-flex cursor-pointer signin-padding"><calcite-navigation-user class="height-full" full-name=${t?.fullName??m} id=instant-apps-sign-in-user-button slot=user .thumbnail=${this._thumbnailUrl} .userId=${i} .username=${t?.username}></calcite-navigation-user></div><calcite-popover placement=bottom-end scale=s reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close .label=${this._translations.userSettings}><calcite-action scale=l @click=${this._viewMyContent} .text=${this._translations.myContent} text-enabled></calcite-action><calcite-action scale=l @click=${this._signOut} .text=${this._translations.signOut} text-enabled></calcite-action></calcite-popover>`}_viewMyContent(){let t=`${this._config?.portalURL}/home/content.html#my`;window.open(t,"_blank")}_signOut(){this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:["Sign out"]}),this._authentication?.signOut()}_handleSignIn(t){t.preventDefault(),this._telemetry?.logEvent({category:_.GLOBAL_NAVIGATION,action:"Navigate",dimensions:["Sign in"]}),this._authentication?.signIn().then(()=>{}).catch(e=>{console.error("Error creating global nav header:",e)})}_deployedCardSelected(t){this._cardType="deployed",this._subNavigationCard=t.detail.card}_detailsCardSelected(t){this._cardType="details",this._subNavigationCard=t.detail}_deployAppTabSelected(){this._subNavigationCard=void 0}_handleUrlChange(){this._subNavigationCard=void 0}_navigateFromSubMenu(){this._cardType==="details"?this._handleMenuClick("all-solutions",this._menuItemAll,[this._menuItemMy,this._menuItemResources],!0):this._cardType==="deployed"&&this._handleMenuClick("deployments",this._menuItemMy,[this._menuItemAll,this._menuItemResources],!0)}_updateThumbnailToken(t){this._thumbnailUrl!==""&&(this._thumbnailUrl=P(this._thumbnailUrl,t))}};M("solutions-deploy-app-nav",y);return{a:v,b:y}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a,b,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import i from"./
|
|
2
|
+
import i from"./6ZRRFBIZ.js";import h from"./NBPM6OJQ.js";import"./US5FON7D.js";import"./BU5PIAGS.js";import"./VVZAS55G.js";import"./NP7POZTI.js";import g from"./BGXRCU7G.js";import e from"./UYY6JODL.js";import d from"./QKJ4PGBO.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import c from"./CEP54NLT.js";import a from"./YVNP437O.js";import{a as y}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as u}from"./KIUBUHVM.js";import{F as f,G as b,h as p,i as m}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([])=>{var v=p`.height-51{height:51px}.width-51{width:51px}`,h=class extends b{constructor(){super(),this._translations=y({name:"field-selection",blocking:!0}),this._fieldSortOrder="default",this._selectedFields=[],this._fieldVisibilityPopoverClickHandler=i=>{this._fieldVisibilityPopoverNode?this._isInNode(i.target,"arcgis-field-pick-list")||(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0,document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)):document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)},this.listenOn(window,"columnReorder",this.handleColumnReorder,{capture:!0})}static{this.properties={configExtraFields:1,layer:0,mapView:0,table:0,tableRef:0,_translations:16}}static{this.styles=v}render(){return m`<calcite-action alignment=center appearance=solid class="height-51 width-51" id=solutions-field-selection .text=${this._translations.fieldVisibility} scale=m @click=${()=>this._handleFieldVisibilityClick()} @mouseover=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} @mouseout=${()=>this._removeTableTooltip()} @focus=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} ${f(i=>this._fieldVisibilityActionNode=i)}><calcite-icon scale=s icon=gear></calcite-icon></calcite-action>`}handleColumnReorder(){this._fieldSortOrder="default",this._fieldVisibilityPopoverNode&&(this.removeFieldsPickList(),this._handleFieldVisibilityClick())}_handleFieldVisibilityClick(){if(this._fieldVisibilityPopoverNode)return;let i=this.table?.tableTemplate?.columnTemplates;if(this.layer&&this.mapView&&i&&this._fieldVisibilityActionNode){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler);let t=this.table.fieldColumns.map(l=>({alias:l.field.alias,description:l.field.description,name:l.field.name,type:l.field.type}));if(this._hasAttachmentsEnabled(this.layer)){let l="Attachments";if(this._shouldShowField(l.toUpperCase(),!1)){if(!i.some(s=>s.fieldName.toUpperCase()===l.toUpperCase())){let s={fieldName:l,type:"attachment",visible:!0};i.push(s)}t.push({name:l,alias:"Photos and files",type:"none",description:l})}}if(this.table.relatedRecordsEnabled&&this.layer.relationships&&this.layer.relationships.length>0){let l=this.layer.parent;this.layer.relationships.forEach(s=>{let o,d=this._shouldShowField(s.name||"",!0);if(!i.some(a=>a.fieldName.toLowerCase()===s.name?.toLowerCase()?(o=s.name,!0):!1))if(s.name){o=s.name;let a={fieldName:o,type:"relationship",visible:!0};d=this._shouldShowField(o,!0),i.push(a)}else{let a=[...l?.layers||[],...l?.tables],c;if(a.some(n=>n.layerId===s.relatedTableId?(c=n,!0):!1),c){o=c.title,s.name=o;let n={fieldName:o,type:"relationship",visible:!0};d=this._shouldShowField(o,!0),i.push(n)}}o&&d&&t.push({name:o,alias:`Related ${o}`,type:"none",description:`related:${o}`})})}let e=this._fieldVisibilityPopoverNode?this._fieldVisibilityPopoverNode:document.createElement("arcgis-field-pick-list");e.layer=this.layer,e.fields=t,e.showFieldInfo=!0,e.showFieldName=!0,e.showDescription=!1,e.showSelectionAll=!0,e.hideCancel=!0,e.hideSort=!1,e.showFilterLength=5,e.multiple=!0,e.heading=this._translations.fieldVisibility,e.okBtnText=this._translations.doneWithFieldChanges,e.filterPlaceholderText=this._translations.filterFields,e.sortBy=this._fieldSortOrder??"default";let r=this.table?.visibleColumns.map(l=>l.fieldName.startsWith("EsriFeatureTableRelationshipColumn")||l.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")?l.effectiveLabel:l.fieldName);e.selectedFields=i.reduce((l,s)=>((r?r.indexOf(s.fieldName)>-1:s.visible)&&l.push(s.fieldName),l),[]),this._selectedFields=e.selectedFields,e.style.minHeight="340px",e.popoverProps={refElement:this._fieldVisibilityActionNode,popoverWidth:300,placement:"bottom-end",offsetDistance:-20,triggerDisabled:!1,autoClose:!1},e.addEventListener("arcgisChange",l=>{l.stopPropagation();let s=l.detail.selectedFields,o=this._getDifference(s,this._selectedFields),d=this._getDifference(this._selectedFields,s);o.concat(d).forEach(a=>{let c=this.layer?.relationships?.map(n=>n.name)||[];if(a==="Attachments"){let n=this.table.columns.find(_=>"onShowAttachments"in _);n.hidden=d.indexOf(a)>-1}else c.indexOf(a)>-1?this.table.columns.filter(n=>"relationshipId"in n).forEach(n=>{d.indexOf(a)>-1,a==n.effectiveLabel&&(n.hidden=d.indexOf(a)>-1)}):this.table.toggleColumnVisibility(a)}),this._selectedFields=s,this._updateTable(this.table.tableTemplate)}),e.addEventListener("arcgisSortByChange",l=>{l.stopPropagation(),this._fieldSortOrder=l.detail,this._sortFields(l.detail)}),e.addEventListener("arcgisClose",()=>{this._closePopovers(),setTimeout(()=>this._fieldVisibilityActionNode.setFocus(),200)}),document.body.appendChild(e),this._fieldVisibilityPopoverNode=e,setTimeout(()=>document.addEventListener("click",this._fieldVisibilityPopoverClickHandler),200)}}_shouldShowField(i,t){return(this.configExtraFields||[]).some(e=>t?e.replace("related:","").toUpperCase()===i.toUpperCase():e.toUpperCase()===i.toUpperCase())}removeFieldsPickList(){this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_sortFields(i){let t=this.table.tableTemplate.columnTemplates,e=this._getSortOrder(i),r=t.filter(s=>s.type!=="attachment"&&s.type!=="relationship").sort((s,o)=>{let d=e.indexOf(s.fieldName),a=e.indexOf(o.fieldName);return d===-1&&a!==-1?1:d!==-1&&a===-1?-1:d===-1&&a===-1?0:d-a}),l=t.filter(s=>s.type==="attachment"||s.type==="relationship");this.tableRef.setColumnOrder([...r,...l]),this._updateTable(this.table.tableTemplate)}_getSortOrder(i){let t=[...this.layer.fields];return i==="display"?t.sort((e,r)=>e.alias.localeCompare(r.alias)):i==="field"?t.sort((e,r)=>e.name.localeCompare(r.name)):i==="type"&&t.sort((e,r)=>e.type.localeCompare(r.type)),t.map(e=>e.name)}_getDifference(i,t){return i.filter(e=>!t.includes(e))}_updateTable(i){this.table.tableTemplate=i,this._isStandardView()&&this._syncAttributeTableTemplate()}async _syncAttributeTableTemplate(){let i=this.table.layer;if(i.attributeTableTemplate){let{_modules:t}=this,e=i.attributeTableTemplate.clone();t?.attributeTableTemplateUtils.syncAttributeTableTemplate(this.table,e),JSON.stringify(e)!==JSON.stringify(i.attributeTableTemplate)&&(i.attributeTableTemplate=e)}if(i.attributeTableTemplate?.orderByFields?.length>1){let t=i.attributeTableTemplate.clone(),e=this.table.activeSortOrders[0];t.orderByFields=[{field:e.fieldName,order:e.direction}],i.attributeTableTemplate=t,this._syncColumnDirectionsWithOrderByFields()}}_syncColumnDirectionsWithOrderByFields(){let i=this.table.activeSortOrders[0]?.fieldName;this.table.columns.forEach(t=>{"fieldName"in t&&t.fieldName!==i&&(t.direction=void 0)}),this.table.tableTemplate?.columnTemplates.forEach(t=>{"fieldName"in t&&t.fieldName!==i&&(t.direction=void 0)})}_isStandardView(){return!this.table.relatedTable&&!this.table.attachmentsViewOptions.objectId}_closePopovers(){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler),this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_addTableTooltip(i,t){let e=document.createElement("calcite-tooltip");e.className="table-tooltip",e.referenceElement=i,e.placement="trailing-start",e.open=!0;let r=document.createElement("div");r.className="tooltip",r.innerHTML=t,e.append(r),document.body.append(e)}_removeTableTooltip(){document.querySelectorAll(".table-tooltip").forEach(i=>i.parentNode?.removeChild(i))}_isInNode(i,t){for(;i;){if(i.nodeName===t.toUpperCase())return!0;i=i.parentElement}return!1}_hasAttachmentsEnabled(i){if(!i?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:e}}}=i;return t&&e}};u("field-selection",h);return h},a,c,d,e,g,h,i)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./
|
|
2
|
+
import d from"./TTV5UYNT.js";import c from"./BGXRCU7G.js";import b from"./UYY6JODL.js";import a from"./QKJ4PGBO.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,{b:o}])=>{return o},a,b,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./QKJ4PGBO.js";export default $arcgis.t(([,,,{a:s}])=>{function f(t,n){let r=i(n),o=s([{k:"id",v:t}])||"";return r?`${r}/home/item.html${o}`:""}function l(t,n,r,o){let e=o||i(r);return e?`${e}/sharing/rest/content/items/${t}/resources/${n}`:""}function i(t){return t?.PortalSubset?.orgUrl||t?.PortalUrl||""}function $(t,n){let r=new URL(t);return r.searchParams.set("token",n),r.toString()}return{a:f,b:l,c:$}},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as ct,b as lt,d as fn,e as Ve,f as dn,g as pn,h as gn,i as mn,j as ft}from"./IRRMUFW7.js";import{a as ln}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import{b as cn}from"./KIUBUHVM.js";import{G as un,h as an,q as sn}from"./H5E6ISYP.js";import"./QPIMTXPL.js";function wi(e){return dn(e).then(t=>{let n=e.folderId?`${Ve(e)}/content/users/${t}/${e.folderId}/items/${e.item.id}/update`:`${Ve(e)}/content/users/${t}/items/${e.item.id}/update`;e.params=Object.assign(Object.assign({},e.params),e.item),e.params.extent&&pn(e.params.extent)&&(e.params.extent=gn(e.params.extent));let r=Ve(e),i=mn(Object.assign(Object.assign({},e.item),{access:e.item.access}),r),o=e.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof o=="string"&&i.thumbnailUrl.split("?")[0]===o.split("?")[0]&&delete e.params.thumbnailUrl,fn(n,e)})}function xi(){var e;return!!(!((e=window?.navigator)===null||e===void 0)&&e.globalPrivacyControl)}function Si(e={}){let{disabled:t,portal:n,requireConsent:r,userPrivacySettings:i}=e;if(r)if(i?.accepted){if(i?.functional===!1&&i?.performance===!1&&i?.targeting===!1)return!0}else return!0;return i?.accepted===!0&&i?.functional===!1&&i?.performance===!1&&i?.targeting===!1||t||n?.eueiEnabled===!1||xi()?!0:!(!n||Ii(n)||ki(n)||Oi(n))}function Ii(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function ki(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Oi(e){return!e.user&&e.ipCntryCode==="US"}var Me={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},jr="esri-telemetry";function Pi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!Ai(e)||e.body)&&t()})}function Ei(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${jr}="${n}"]`)}function Ai(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:c=!1,onload:u,onerror:p}=e;if(typeof window>"u")throw new Fe("Window is undefined: Cannot add script element.");if(Ei(e)){console.log(`script (${r||i}) is already present, skipping`);return}let l=ji({id:r,dataAttribute:i,type:a,async:s,defer:c,body:t,src:n,onload:u,onerror:p});return o==="body"?document.body.appendChild(l):document.head.appendChild(l)}var Fe=class extends Error{};function ji({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:c}){let u=document.createElement("script");return e&&(u.id=e),t&&u.setAttribute(`data-${jr}`,t),a&&(u.src=a),o&&(u.innerText=o),u.type=n,u.async=r,u.defer=i,s&&(u.onload=s),c&&(u.onerror=c),u}function Ti(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var _i=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],It=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.logger=t.logger||console,t.userPrivacySettings&&(this._userPrivacySettings=t.userPrivacySettings),t.requireConsent&&!t.userPrivacySettings&&(this._userPrivacySettings={accepted:!1,performance:!1,targeting:!1,functional:!1,id:Ci(),timestamp:Date.now()},t.userPrivacySettings=this._userPrivacySettings),this.disabled=Si(t),this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}shouldInitializeTrackers(t,n,r){let i=!n&&!t?.accepted,o=r.every(a=>t?.[a]);return i||o}filterTrackers(t){return this.options.plugins.filter(n=>t.includes(n.name))}initializeTrackers(){let t=this._userPrivacySettings,n=this.options.requireConsent;this.trackers=[],this.options.plugins&&(t?(this.shouldInitializeTrackers(t,n,["performance"])&&this.trackers.push(...this.filterTrackers(["amazon"])),this.shouldInitializeTrackers(t,n,["performance","targeting","functional"])&&this.trackers.push(...this.filterTrackers(["adobe-analytics","googleAnalytics","siteimprove"]))):this.trackers.push(...this.options.plugins)),this.trackers.length||this.logger.info("No trackers configured")}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=_i.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}async updateUserPrivacySettings(t){let{accepted:n,performance:r,targeting:i,functional:o}=this._userPrivacySettings,a=t.accepted&&!n&&!this.options.requireConsent&&(!t.performance||!t.targeting||!t.functional)||!t.performance&&r||!t.targeting&&i||!t.functional&&o;return this._userPrivacySettings=t,a||(this.disabled=!1,this.initializeTrackers(),await this.init()),{reload:a}}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:c})=>!s&&!c);if(!i.length)return this.logger.info("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.info("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=Me.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=1800*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){Me.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Me.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(Ni(n.omitComplexData,this.logger),{})}disable(){this.disabled=!0,this.trackers.forEach(t=>{var n;t.hasError||(t.disabled=!0,(n=t.disable)===null||n===void 0||n.call(t))})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function Ni(e,t){return function(n,[r,i]){return Mi(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function Mi(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function Ci(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var kt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},this.isInitialized=!1,typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Ti(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Fe("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Pi(t))),this.injectConfig(),this.isInitialized=!0}}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=lt(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},hn="TELEMETRY_COGNITO_CREDENTIALS";function zi(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Me.get(hn);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(Me.set(hn,o),o))}function Tr({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:Ui(t,r),value:e[r]}:{key:r,value:Di(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function Di(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function Ui(e,t){return`dimension${e[t]}`}var Wi=["size","duration","position","number","count"];function _r(e,t={}){return Object.keys(e).filter(n=>t[n]||Wi.includes(n)).map(n=>t[n]?{key:Vi(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function Vi(e,t){return`metric${e[t]}`}function Li({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=_r(e,n),c=Tr({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),u=Object.assign(Object.assign({name:a},c),s);return typeof document<"u"&&document.referrer&&(u.referrer=document.referrer),typeof window<"u"&&!u.hostname&&(u.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),u.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,u}function $i({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=_r(n,i),a=Tr({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:c}=document||{},{hostname:u,pathname:p}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:u,path:e||p,pageUrl:e||p,pageName:c,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function vn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var Ri="function",Hi="string",te="undefined",Ki="boolean",Je="object",qi="array",Xi="number",Fi="symbol",Ji="null",Bi=function(){},Nr="any",Mr="*",ye="__",Gi="form",Yi="input",Qi="button",Zi="select",Be=typeof process!==te?process:{};Be.env&&Be.env.NODE_ENV;var Q=typeof document!==te;Be.versions!=null&&Be.versions.node!=null;typeof Deno!==te&&Deno.core;Q&&window.name==="nodejs"||typeof navigator!==te&&typeof navigator.userAgent!==te&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Cr(e,t){return t.charAt(0)[e]()+t.slice(1)}var eo=Cr.bind(null,"toUpperCase"),to=Cr.bind(null,"toLowerCase");function no(e){return zr(e)?eo(Ji):typeof e===Je?ao(e):Object.prototype.toString.call(e).slice(8,-1)}function Ge(e,t){t===void 0&&(t=!0);var n=no(e);return t?to(n):n}function Ue(e,t){return typeof t===e}var Z=Ue.bind(null,Ri),ce=Ue.bind(null,Hi),we=Ue.bind(null,te),ro=Ue.bind(null,Ki);Ue.bind(null,Fi);function zr(e){return e===null}function io(e){return Ge(e)===Xi&&!isNaN(e)}function Dr(e){return Ge(e)===qi}function Y(e){if(!oo(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function oo(e){return e&&(typeof e===Je||e!==null)}function ao(e){return Z(e.constructor)?e.constructor.name:null}function so(e){return e instanceof Error||ce(e.message)&&e.constructor&&io(e.constructor.stackTraceLimit)}function Ur(e,t){if(typeof t!="object"||zr(t))return!1;if(t instanceof e)return!0;var n=Ge(new e(""));if(so(t))for(;t;){if(Ge(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Ur.bind(null,TypeError);Ur.bind(null,SyntaxError);function Ze(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?uo(e,t):n}function uo(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function et(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}et(Ze,Gi);et(Ze,Qi);et(Ze,Yi);et(Ze,Zi);function co(e){return e?Dr(e)?e:[e]:[]}function yn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function lo(){if(Q){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function fo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function po(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=yn(n[1]),a=yn(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var c in r){var u=c.split("[");u.length>1&&(go(r,u.map(function(p){return p.replace(/[?[\]\\ ]/g,"")}),r[c]),delete r[c])}return r})((function(t){return Q&&window.location.search.substring(1)})())}function go(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function be(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var ge="global",Oe=ye+ge+ye,Pe=typeof self===Je&&self.self===self&&self||typeof global===Je&&global[ge]===global&&global||void 0;function fe(e){return Pe[Oe][e]}function de(e,t){return Pe[Oe][e]=t}function Ae(e){delete Pe[Oe][e]}function je(e,t,n){var r;try{if(Kt(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Pe[Oe]||(Pe[Oe]={});var Le={};function Kt(e){if(typeof Le[e]!==te)return Le[e];try{var t=window[e];t.setItem(te,te),t.removeItem(te)}catch{return Le[e]=!1}return Le[e]=!0}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(null,arguments)}var ue="function",ie="undefined",Ce="reducer",Wr="@@redux/",Ot=Wr+"INIT",mo=Wr+Math.random().toString(36),bn=(function(){return typeof Symbol===ue&&Symbol.observable||"@@observable"})(),$e=" != "+ue;function Vr(e,t,n){var r;if(typeof t===ue&&typeof n===ie&&(n=t,t=void 0),typeof n!==ie){if(typeof n!==ue)throw new Error("enhancer"+$e);return n(Vr)(e,t)}if(typeof e!==ue)throw new Error(Ce+$e);var i=e,o=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function p(){return o}function l(h){if(typeof h!==ue)throw new Error("Listener"+$e);var I=!0;return u(),s.push(h),function(){if(I){I=!1,u();var S=s.indexOf(h);s.splice(S,1)}}}function w(h){if(!Y(h))throw new Error("Act != obj");if(typeof h.type===ie)throw new Error("ActType "+ie);if(c)throw new Error("Dispatch in "+Ce);try{c=!0,o=i(o,h)}finally{c=!1}for(var I=a=s,S=0;S<I.length;S++)(0,I[S])();return h}return w({type:Ot}),(r={dispatch:w,subscribe:l,getState:p,replaceReducer:function(h){if(typeof h!==ue)throw new Error("next "+Ce+$e);i=h,w({type:Ot})}})[bn]=function(){var h,I=l;return(h={subscribe:function(S){if(typeof S!="object")throw new TypeError("Observer != obj");function v(){S.next&&S.next(p())}return v(),{unsubscribe:I(v)}}})[bn]=function(){return this},h},r}function ho(e,t){var n=t&&t.type;return"action "+(n&&n.toString()||"?")+Ce+" "+e+" returns "+ie}function Ee(){var e=[].slice.call(arguments);return e.length===0?function(t){return t}:e.length===1?e[0]:e.reduce(function(t,n){return function(){return t(n.apply(void 0,[].slice.call(arguments)))}})}function vo(){var e=arguments;return function(t){return function(n,r,i){var o,a=t(n,r,i),s=a.dispatch,c={getState:a.getState,dispatch:function(u){return s(u)}};return o=[].slice.call(e).map(function(u){return u(c)}),T({},a,{dispatch:s=Ee.apply(void 0,o)(a.dispatch)})}}}var le=ye+"anon_id",me=ye+"user_id",Se=ye+"user_traits",Pt="analytics",se="userId",xe="anonymousId",qe=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Et=["name","EVENTS","config","loaded"],j=qe.reduce(function(e,t){return e[t]=t,e},{registerPluginType:function(e){return"registerPlugin:"+e},pluginReadyType:function(e){return"ready:"+e}}),wn=/^utm_/,xn=/^an_prop_/,Sn=/^an_trait_/;function yo(e){var t=e.storage.setItem;return function(n){return function(r){return function(i){if(i.type===j.bootstrap){var o=i.params,a=i.user,s=i.persistedUser,c=i.initialUser,u=s.userId===a.userId;s.anonymousId!==a.anonymousId&&t(le,a.anonymousId),u||t(me,a.userId),c.traits&&t(Se,T({},u&&s.traits?s.traits:{},c.traits));var p=Object.keys(i.params);if(p.length){var l=o.an_uid,w=o.an_event,h=p.reduce(function(I,S){if(S.match(wn)||S.match(/^(d|g)clid/)){var v=S.replace(wn,"");I.campaign[v==="campaign"?"name":v]=o[S]}return S.match(xn)&&(I.props[S.replace(xn,"")]=o[S]),S.match(Sn)&&(I.traits[S.replace(Sn,"")]=o[S]),I},{campaign:{},props:{},traits:{}});n.dispatch(T({type:j.params,raw:o},h,l?{userId:l}:{})),l&&setTimeout(function(){return e.identify(l,h.traits)},0),w&&setTimeout(function(){return e.track(w,h.props)},0),Object.keys(h.campaign).length&&n.dispatch({type:j.campaign,campaign:h.campaign})}}return r(i)}}}}function bo(e){return function(t,n){if(t===void 0&&(t={}),n===void 0&&(n={}),n.type===j.setItemEnd){if(n.key===le)return T({},t,{anonymousId:n.value});if(n.key===me)return T({},t,{userId:n.value})}switch(n.type){case j.identify:return Object.assign({},t,{userId:n.userId,traits:T({},t.traits,n.traits)});case j.reset:return[me,le,Se].forEach(function(r){e.removeItem(r)}),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function In(e){return{userId:e.getItem(me),anonymousId:e.getItem(le),traits:e.getItem(Se)}}var At=function(e){return ye+"TEMP"+ye+e};function wo(e){var t=e.storage,n=t.setItem,r=t.removeItem,i=t.getItem;return function(o){return function(a){return function(s){var c=s.userId,u=s.traits,p=s.options;if(s.type===j.reset&&([me,Se,le].forEach(function(h){r(h)}),[se,xe,"traits"].forEach(function(h){Ae(At(h))})),s.type===j.identify){i(le)||n(le,be());var l=i(me),w=i(Se)||{};l&&l!==c&&o.dispatch({type:j.userIdChanged,old:{userId:l,traits:w},new:{userId:c,traits:u},options:p}),c&&n(me,c),u&&n(Se,T({},w,u))}return a(s)}}}}var Ne={};function kn(e,t){Ne[e]&&Z(Ne[e])&&(Ne[e](t),delete Ne[e])}function Lr(e,t,n){return new Promise(function(r,i){return t()?r(e):n<1?i(T({},e,{queue:!0})):new Promise(function(o){return setTimeout(o,10)}).then(function(o){return Lr(e,t,n-10).then(r,i)})})}function xo(e){return{abort:e}}function $r(e,t,n){var r={},i=t(),o=e.getState(),a=o.plugins,s=o.queue,c=o.user;if(!o.context.offline&&s&&s.actions&&s.actions.length){var u=s.actions.reduce(function(l,w,h){return a[w.plugin].loaded?(l.process.push(w),l.processIndex.push(h)):(l.requeue.push(w),l.requeueIndex.push(h)),l},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(u.processIndex&&u.processIndex.length){u.processIndex.forEach(function(l){var w=s.actions[l],h=w.plugin,I=w.payload.type,S=i[h][I];if(S&&Z(S)){var v,d=(function(b,m){return b===void 0&&(b={}),m===void 0&&(m={}),[se,xe].reduce(function(O,k){return b.hasOwnProperty(k)&&m[k]&&m[k]!==b[k]&&(O[k]=m[k]),O},b)})(w.payload,c),y=r[d.meta.rid];if(!y&&(v=S({payload:d,config:a[h].config,instance:n,abort:xo}))&&Y(v)&&v.abort)return void(r[d.meta.rid]=!0);if(!y){var x=I+":"+h;e.dispatch(T({},d,{type:x,_:{called:x,from:"queueDrain"}}))}}});var p=s.actions.filter(function(l,w){return!~u.processIndex.indexOf(w)});s.actions=p}}}var dt=function(e){var t=e.data,n=e.action,r=e.instance,i=e.state,o=e.allPlugins,a=e.allMatches,s=e.store,c=e.EVENTS;try{var u=i.plugins,p=i.context,l=n.type,w=l.match(Ie),h=t.exact.map(function(v){return v.pluginName});w&&(h=a.during.map(function(v){return v.pluginName}));var I=(function(v,d){return function(y,x,b){var m=x.config,O=x.name,k=O+"."+y.type;b&&(k=b.event);var M=y.type.match(Ie)?(function(C,A,W,z,H){return function(L,E){var K=z?z.name:C,D=E&&ze(E)?E:W;if(z&&(!(D=E&&ze(E)?E:[C]).includes(C)||D.length!==1))throw new Error("Method "+A+" can only abort "+C+" plugin. "+JSON.stringify(D)+" input valid");return T({},H,{abort:{reason:L,plugins:D,caller:A,_:K}})}})(O,k,d,b,y):(function(C,A){return function(){throw new Error(C.type+" action not cancellable. Remove abort in "+A)}})(y,k);return{payload:So(y),instance:v,config:m||{},abort:M}}})(r,h),S=t.exact.reduce(function(v,d){var y=d.pluginName,x=d.methodName,b=!1;return x.match(/^initialize/)||x.match(/^reset/)||(b=!u[y].loaded),p.offline&&x.match(/^(page|track|identify)/)&&(b=!0),v[""+y]=b,v},{});return Promise.resolve(t.exact.reduce(function(v,d,y){var x=d.pluginName;return Promise.resolve(v).then(function(b){function m(){return Promise.resolve(b)}var O=(function(){if(t.namespaced&&t.namespaced[x])return Promise.resolve(t.namespaced[x].reduce(function(k,M,C){return Promise.resolve(k).then(function(A){return M.method&&Z(M.method)?((function(L,E){var K=_n(L);if(K&&K.name===E){var D=_n(K.method);throw new Error([E+" plugin is calling method "+L,"Plugins cant call self","Use "+K.method+" "+(D?"or "+D.method:"")+" in "+E+" plugin insteadof "+L].join(`
|
|
3
|
+
`))}})(M.methodName,M.pluginName),Promise.resolve(M.method({payload:A,instance:r,abort:(W=A,z=x,H=M.pluginName,function(L,E){return T({},W,{abort:{reason:L,plugins:E||[z],caller:l,from:H||z}})}),config:En(M.pluginName,u,o),plugins:u})).then(function(L){var E=Y(L)?L:{};return Promise.resolve(T({},A,E))})):A;var W,z,H})},Promise.resolve(n))).then(function(k){b[x]=k});b[x]=n})();return O&&O.then?O.then(m):m()})},Promise.resolve({}))).then(function(v){return Promise.resolve(t.exact.reduce(function(d,y,x){try{var b=t.exact.length===x+1,m=y.pluginName,O=o[m];return Promise.resolve(d).then(function(k){var M=v[m]?v[m]:{};if(w&&(M=k),gt(M,m))return pt({data:M,method:l,instance:r,pluginName:m,store:s}),Promise.resolve(k);if(gt(k,m))return b&&pt({data:k,method:l,instance:r,store:s}),Promise.resolve(k);if(S.hasOwnProperty(m)&&S[m]===!0)return s.dispatch({type:"queue",plugin:m,payload:M,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(k);var C=I(v[m],o[m]);return Promise.resolve(O[l]({abort:C.abort,payload:M,instance:r,config:En(m,u,o),plugins:u})).then(function(A){var W=Y(A)?A:{},z=T({},k,W),H=v[m];if(gt(H,m))pt({data:H,method:l,instance:r,pluginName:m,store:s});else{var L=l+":"+m;(L.match(/:/g)||[]).length<2&&!l.match(On)&&!l.match(Pn)&&r.dispatch(T({},w?z:M,{type:L,_:{called:L,from:"submethod"}}))}return Promise.resolve(z)})})}catch(k){return Promise.reject(k)}},Promise.resolve(n))).then(function(d){if(!(l.match(Ie)||l.match(/^registerPlugin/)||l.match(Pn)||l.match(On)||l.match(/^params/)||l.match(/^userIdChanged/))){if(c.plugins.includes(l),d._&&d._.originalAction===l)return d;var y=T({},d,{_:{originalAction:d.type,called:d.type,from:"engineEnd"}});Rr(d,t.exact.length)&&!l.match(/End$/)&&(y=T({},y,{type:d.type+"Aborted"})),s.dispatch(y)}return d})})}catch(v){return Promise.reject(v)}},Ie=/Start$/,On=/^bootstrap/,Pn=/^ready/;function pt(e){var t=e.pluginName,n=e.method+"Aborted"+(t?":"+t:"");e.store.dispatch(T({},e.data,{type:n,_:{called:n,from:"abort"}}))}function En(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function An(e,t){return t.reduce(function(n,r){return r[e]?n.concat({methodName:e,pluginName:r.name,method:r[e]}):n},[])}function jn(e,t){var n=e.replace(Ie,""),r=t?":"+t:"";return[""+e+r,""+n+r,n+"End"+r]}function gt(e,t){var n=e.abort;return!!n&&(n===!0||Tn(n,t)||n&&Tn(n.plugins,t))}function Rr(e,t){var n=e.abort;if(!n)return!1;if(n===!0||ce(n))return!0;var r=n.plugins;return ze(n)&&n.length===t||ze(r)&&r.length===t}function ze(e){return Array.isArray(e)}function Tn(e,t){return!(!e||!ze(e))&&e.includes(t)}function _n(e){var t=e.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function So(e){return Object.keys(e).reduce(function(t,n){return n==="type"||(t[n]=Y(e[n])?Object.assign({},e[n]):e[n]),t},{})}function Io(e,t,n){var r={};return function(i){return function(o){return function(a){try{var s,c=function(b){return s?b:o(l)},u=a.type,p=a.plugins,l=a;if(a.abort)return Promise.resolve(o(a));if(u===j.enablePlugin&&i.dispatch({type:j.initializeStart,plugins:p,disabled:[],fromEnable:!0,meta:a.meta}),u===j.disablePlugin&&setTimeout(function(){return kn(a.meta.rid,{payload:a})},0),u===j.initializeEnd){var w=t(),h=Object.keys(w),I=h.filter(function(b){return p.includes(b)}).map(function(b){return w[b]}),S=[],v=[],d=a.disabled,y=I.map(function(b){var m=b.loaded,O=b.name,k=b.config;return Lr(b,function(){return m({config:k})},1e4).then(function(M){return r[O]||(i.dispatch({type:j.pluginReadyType(O),name:O,events:Object.keys(b).filter(function(C){return!Et.includes(C)})}),r[O]=!0),S=S.concat(O),b}).catch(function(M){if(M instanceof Error)throw new Error(M);return v=v.concat(M.name),M})});Promise.all(y).then(function(b){var m={plugins:S,failed:v,disabled:d};setTimeout(function(){h.length===y.length+d.length&&i.dispatch(T({},{type:j.ready},m))},0)})}var x=(function(){if(u!==j.bootstrap)return/^ready:([^:]*)$/.test(u)&&setTimeout(function(){return $r(i,t,e)},0),Promise.resolve((function(b,m,O,k,M){try{var C=Z(m)?m():m,A=b.type,W=A.replace(Ie,"");if(b._&&b._.called)return Promise.resolve(b);var z=O.getState(),H=(K=C,(D=z.plugins)===void 0&&(D={}),(_=b.options)===void 0&&(_={}),Object.keys(K).filter(function(f){var g=_.plugins||{};return ro(g[f])?g[f]:g.all!==!1&&(!D[f]||D[f].enabled!==!1)}).map(function(f){return K[f]}));A===j.initializeStart&&b.fromEnable&&(H=Object.keys(z.plugins).filter(function(f){var g=z.plugins[f];return b.plugins.includes(f)&&!g.initialized}).map(function(f){return C[f]}));var L=H.map(function(f){return f.name}),E=(function(f,g){var P=jn(f).map(function(N){return An(N,g)});return g.reduce(function(N,V){var U=V.name,J=jn(f,U).map(function(re){return An(re,g)}),R=J[0],X=J[1],$=J[2];return R.length&&(N.beforeNS[U]=R),X.length&&(N.duringNS[U]=X),$.length&&(N.afterNS[U]=$),N},{before:P[0],beforeNS:{},during:P[1],duringNS:{},after:P[2],afterNS:{}})})(A,H);return Promise.resolve(dt({action:b,data:{exact:E.before,namespaced:E.beforeNS},state:z,allPlugins:C,allMatches:E,instance:O,store:k,EVENTS:M})).then(function(f){function g(){var V=(function(){if(A.match(Ie))return Promise.resolve(dt({action:T({},P,{type:W+"End"}),data:{exact:E.after,namespaced:E.afterNS},state:z,allPlugins:C,allMatches:E,instance:O,store:k,EVENTS:M})).then(function(U){U.meta&&U.meta.hasCallback&&kn(U.meta.rid,{payload:U})})})();return V&&V.then?V.then(function(){return f}):f}if(Rr(f,L.length))return f;var P,N=(function(){if(A!==W)return Promise.resolve(dt({action:T({},f,{type:W}),data:{exact:E.during,namespaced:E.duringNS},state:z,allPlugins:C,allMatches:E,instance:O,store:k,EVENTS:M})).then(function(V){P=V});P=f})();return N&&N.then?N.then(g):g()})}catch(f){return Promise.reject(f)}var K,D,_})(a,t,e,i,n)).then(function(b){var m=o(b);return s=1,m})})();return Promise.resolve(x&&x.then?x.then(c):c(x))}catch(b){return Promise.reject(b)}}}}}function ko(e){return function(t){return function(n){return function(r){var i=r.type,o=r.key,a=r.value,s=r.options;if(i===j.setItem||i===j.removeItem){if(r.abort)return n(r);i===j.setItem?e.setItem(o,a,s):e.removeItem(o,s)}return n(r)}}}}var Oo=function(){var e=this;this.before=[],this.after=[],this.addMiddleware=function(t,n){e[n]=e[n].concat(t)},this.removeMiddleware=function(t,n){var r=e[n].findIndex(function(i){return i===t});r!==-1&&(e[n]=[].concat(e[n].slice(0,r),e[n].slice(r+1)))},this.dynamicMiddlewares=function(t){return function(n){return function(r){return function(i){var o={getState:n.getState,dispatch:function(s){return n.dispatch(s)}},a=e[t].map(function(s){return s(o)});return Ee.apply(void 0,a)(r)(i)}}}}};function Po(e){return function(t,n){t===void 0&&(t={});var r={};if(n.type==="initialize:aborted")return t;if(/^registerPlugin:([^:]*)$/.test(n.type)){var i=Nn(n.type,"registerPlugin"),o=e()[i];if(!o||!i)return t;var a=n.enabled,s=o.config;return r[i]={enabled:a,initialized:!!a&&!o.initialize,loaded:!!a&&!!o.loaded({config:s}),config:s},T({},t,r)}if(/^initialize:([^:]*)$/.test(n.type)){var c=Nn(n.type,j.initialize),u=e()[c];return u&&c?(r[c]=T({},t[c],{initialized:!0,loaded:!!u.loaded({config:u.config})}),T({},t,r)):t}if(/^ready:([^:]*)$/.test(n.type))return r[n.name]=T({},t[n.name],{loaded:!0}),T({},t,r);switch(n.type){case j.disablePlugin:return T({},t,Mn(n.plugins,!1,t));case j.enablePlugin:return T({},t,Mn(n.plugins,!0,t));default:return t}}}function Nn(e,t){return e.substring(t.length+1,e.length)}function Mn(e,t,n){return e.reduce(function(r,i){return r[i]=T({},n[i],{enabled:t}),r},n)}function Hr(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var Eo={last:{},history:[]};function Ao(e,t){e===void 0&&(e=Eo);var n=t.options,r=t.meta;if(t.type===j.track){var i=Hr(T({event:t.event,properties:t.properties},Object.keys(n).length&&{options:n},{meta:r}));return T({},e,{last:i,history:e.history.concat(i)})}return e}var jo={actions:[]};function To(e,t){e===void 0&&(e=jo);var n=t.payload;switch(t.type){case"queue":var r;return r=n&&n.type&&n.type===j.identify?[t].concat(e.actions):e.actions.concat(t),T({},e,{actions:r});case"dequeue":return[];default:return e}}var Kr=/#.*$/;function _o(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);return"/"+(t&&t[3]?t[3].split("?")[0].replace(Kr,""):"")}var qr,Xr,Fr,Jr,No=function(e){if(e===void 0&&(e={}),!Q)return e;var t=document,n=t.title,r=t.referrer,i=window,o=i.location,a=i.innerWidth,s=i.innerHeight,c=o.hash,u=o.search,p=(function(w){var h=(function(){if(Q){for(var I,S=document.getElementsByTagName("link"),v=0;I=S[v];v++)if(I.getAttribute("rel")==="canonical")return I.getAttribute("href")}})();return h?h.match(/\?/)?h:h+w:window.location.href.replace(Kr,"")})(u),l={title:n,url:p,path:_o(p),hash:c,search:u,width:a,height:s};return r&&r!==""&&(l.referrer=r),T({},l,e)},Mo={last:{},history:[]};function Co(e,t){e===void 0&&(e=Mo);var n=t.options;if(t.type===j.page){var r=Hr(T({properties:t.properties,meta:t.meta},Object.keys(n).length&&{options:n}));return T({},e,{last:r,history:e.history.concat(r)})}return e}qr=(function(){if(!Q)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"})(),Xr=Q?document.referrer:null,Fr=lo(),Jr=fo();var Cn={initialized:!1,sessionId:be(),app:null,version:null,debug:!1,offline:!!Q&&!navigator.onLine,os:{name:qr},userAgent:Q?navigator.userAgent:"node",library:{name:Pt,version:"0.13.1"},timezone:Jr,locale:Fr,campaign:{},referrer:Xr};function zo(e,t){e===void 0&&(e=Cn);var n=e.initialized,r=t.campaign;switch(t.type){case j.campaign:return T({},e,{campaign:r});case j.offline:return T({},e,{offline:!0});case j.online:return T({},e,{offline:!1});default:return n?e:T({},Cn,e,{initialized:!0})}}var Do=["plugins","reducers","storage"];function Uo(e,t,n){if(Q){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach(function(i){r(i,t)})}}function Wo(e){var t=Uo.bind(null,"online offline",function(n){return Promise.resolve(!navigator.onLine).then(e)});return t(!0),function(n){return t(!1)}}function Br(){return de(Pt,[]),function(e){return function(t,n,r){var i=e(t,n,r),o=i.dispatch;return Object.assign(i,{dispatch:function(a){return Pe[Oe][Pt].push(a.action||a),o(a)}})}}}function zn(e){return function(){return Ee(Ee.apply(null,arguments),Br())}}function mt(e){return e?Dr(e)?e:[e]:[]}function Dn(e,t,n){e===void 0&&(e={});var r,i,o=be();return t&&(Ne[o]=(r=t,i=(function(a){for(var s,c=a||Array.prototype.slice.call(arguments),u=0;u<c.length;u++)if(Z(c[u])){s=c[u];break}return s})(n),function(a){i&&i(a),r(a)})),T({},e,{rid:o,ts:new Date().getTime()},t?{hasCallback:!0}:{})}function Vo(e){e===void 0&&(e={});var t=e.reducers||{},n=e.initialUser||{},r=(e.plugins||[]).reduce(function(f,g){if(Z(g))return f.middlewares=f.middlewares.concat(g),f;if(g.NAMESPACE&&(g.name=g.NAMESPACE),!g.name)throw new Error("https://lytics.dev/errors/1");g.config||(g.config={});var P=g.EVENTS?Object.keys(g.EVENTS).map(function(U){return g.EVENTS[U]}):[];f.pluginEnabled[g.name]=!(g.enabled===!1||g.config.enabled===!1),delete g.enabled,g.methods&&(f.methods[g.name]=Object.keys(g.methods).reduce(function(U,J){var R;return U[J]=(R=g.methods[J],function(){for(var X=Array.prototype.slice.call(arguments),$=new Array(R.length),re=0;re<X.length;re++)$[re]=X[re];return $[$.length]=m,R.apply({instance:m},$)}),U},{}),delete g.methods);var N=Object.keys(g).concat(P),V=new Set(f.events.concat(N));if(f.events=Array.from(V),f.pluginsArray=f.pluginsArray.concat(g),f.plugins[g.name])throw new Error(g.name+"AlreadyLoaded");return f.plugins[g.name]=g,f.plugins[g.name].loaded||(f.plugins[g.name].loaded=function(){return!0}),f},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=e.storage?e.storage:{getItem:fe,setItem:de,removeItem:Ae},o=(function(f){return function(g,P,N){return P.getState("user")[g]||(N&&Y(N)&&N[g]?N[g]:In(f)[g]||fe(At(g))||null)}})(i),a=r.plugins,s=r.events.filter(function(f){return!Et.includes(f)}).sort(),c=new Set(s.concat(qe).filter(function(f){return!Et.includes(f)})),u=Array.from(c).sort(),p=function(){return a},l=new Oo,w=l.addMiddleware,h=l.removeMiddleware,I=l.dynamicMiddlewares,S=function(){throw new Error("Abort disabled inListener")},v=po(),d=In(i),y=T({},d,n,v.an_uid?{userId:v.an_uid}:{},v.an_aid?{anonymousId:v.an_aid}:{});y.anonymousId||(y.anonymousId=be());var x=T({enable:function(f,g){return new Promise(function(P){E.dispatch({type:j.enablePlugin,plugins:mt(f),_:{originalAction:j.enablePlugin}},P,[g])})},disable:function(f,g){return new Promise(function(P){E.dispatch({type:j.disablePlugin,plugins:mt(f),_:{originalAction:j.disablePlugin}},P,[g])})}},r.methods),b=!1,m={identify:function(f,g,P,N){try{var V=ce(f)?f:null,U=Y(f)?f:g,J=P||{},R=m.user();de(At(se),V);var X=V||U.userId||o(se,m,U);return Promise.resolve(new Promise(function($){E.dispatch(T({type:j.identifyStart,userId:X,traits:U||{},options:J,anonymousId:R.anonymousId},R.id&&R.id!==V&&{previousId:R.id}),$,[g,P,N])}))}catch($){return Promise.reject($)}},track:function(f,g,P,N){try{var V=Y(f)?f.event:f;if(!V||!ce(V))throw new Error("EventMissing");var U=Y(f)?f:g||{},J=Y(P)?P:{};return Promise.resolve(new Promise(function(R){E.dispatch({type:j.trackStart,event:V,properties:U,options:J,userId:o(se,m,g),anonymousId:o(xe,m,g)},R,[g,P,N])}))}catch(R){return Promise.reject(R)}},page:function(f,g,P){try{var N=Y(f)?f:{},V=Y(g)?g:{};return Promise.resolve(new Promise(function(U){E.dispatch({type:j.pageStart,properties:No(N),options:V,userId:o(se,m,N),anonymousId:o(xe,m,N)},U,[f,g,P])}))}catch(U){return Promise.reject(U)}},user:function(f){if(f===se||f==="id")return o(se,m);if(f===xe||f==="anonId")return o(xe,m);var g=m.getState("user");return f?vn(g,f):g},reset:function(f){return new Promise(function(g){E.dispatch({type:j.resetStart},g,f)})},ready:function(f){return b&&f({plugins:x,instance:m}),m.on(j.ready,function(g){f&&f(g),b=!0})},on:function(f,g){if(!f||!Z(g))return!1;if(f===j.bootstrap)throw new Error(".on disabled for "+f);var P=/Start$|Start:/;if(f==="*"){var N=function(R){return function(X){return function($){return $.type.match(P)&&g({payload:$,instance:m,plugins:a}),X($)}}},V=function(R){return function(X){return function($){return $.type.match(P)||g({payload:$,instance:m,plugins:a}),X($)}}};return w(N,Re),w(V,He),function(){h(N,Re),h(V,He)}}var U=f.match(P)?Re:He,J=function(R){return function(X){return function($){return $.type===f&&g({payload:$,instance:m,plugins:a,abort:S}),X($)}}};return w(J,U),function(){return h(J,U)}},once:function(f,g){if(!f||!Z(g))return!1;if(f===j.bootstrap)throw new Error(".once disabled for "+f);var P=m.on(f,function(N){g({payload:N.payload,instance:m,plugins:a,abort:S}),P()});return P},getState:function(f){var g=E.getState();return f?vn(g,f):Object.assign({},g)},dispatch:function(f){var g=ce(f)?{type:f}:f;if(qe.includes(g.type))throw new Error("reserved action "+g.type);var P=T({},g,{_:T({originalAction:g.type},f._||{})});E.dispatch(P)},enablePlugin:x.enable,disablePlugin:x.disable,plugins:x,storage:{getItem:i.getItem,setItem:function(f,g,P){E.dispatch({type:j.setItemStart,key:f,value:g,options:P})},removeItem:function(f,g){E.dispatch({type:j.removeItemStart,key:f,options:g})}},setAnonymousId:function(f,g){m.storage.setItem(le,f,g)},events:{core:qe,plugins:s}},O=r.middlewares.concat([function(f){return function(g){return function(P){return P.meta||(P.meta=Dn()),g(P)}}},I(Re),Io(m,p,{all:u,plugins:s}),ko(i),yo(m),wo(m),I(He)]),k={context:zo,user:bo(i),page:Co,track:Ao,plugins:Po(p),queue:To},M=Ee,C=Ee;if(Q&&e.debug){var A=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;A&&(M=A({trace:!0,traceLimit:25})),C=function(){return arguments.length===0?Br():Y(typeof arguments[0])?zn():zn().apply(null,arguments)}}var W,z=(function(f){return Object.keys(f).reduce(function(g,P){return Do.includes(P)||(g[P]=f[P]),g},{})})(e),H=r.pluginsArray.reduce(function(f,g){var P=g.name,N=g.config,V=g.loaded,U=r.pluginEnabled[P];return f[P]={enabled:U,initialized:!!U&&!g.initialize,loaded:!!V({config:N}),config:N},f},{}),L={context:z,user:y,plugins:H},E=Vr((function(f){for(var g=Object.keys(f),P={},N=0;N<g.length;N++){var V=g[N];typeof f[V]===ue&&(P[V]=f[V])}var U,J=Object.keys(P);try{(function(R){Object.keys(R).forEach(function(X){var $=R[X];if(typeof $(void 0,{type:Ot})===ie||typeof $(void 0,{type:mo})===ie)throw new Error(Ce+" "+X+" "+ie)})})(P)}catch(R){U=R}return function(R,X){if(R===void 0&&(R={}),U)throw U;for(var $=!1,re={},st=0;st<J.length;st++){var We=J[st],on=R[We],ut=(0,P[We])(on,X);if(typeof ut===ie){var bi=ho(We,X);throw new Error(bi)}re[We]=ut,$=$||ut!==on}return $?re:R}})(T({},k,t)),L,C(M(vo.apply(void 0,O))));E.dispatch=(W=E.dispatch,function(f,g,P){var N=T({},f,{meta:Dn(f.meta,g,mt(P))});return W.apply(null,[N])});var K=Object.keys(a);E.dispatch({type:j.bootstrap,plugins:K,config:z,params:v,user:y,initialUser:n,persistedUser:d});var D=K.filter(function(f){return r.pluginEnabled[f]}),_=K.filter(function(f){return!r.pluginEnabled[f]});return E.dispatch({type:j.registerPlugins,plugins:K,enabled:r.pluginEnabled}),r.pluginsArray.map(function(f,g){var P=f.bootstrap,N=f.config,V=f.name;P&&Z(P)&&P({instance:m,config:N,payload:f}),E.dispatch({type:j.registerPluginType(V),name:V,enabled:r.pluginEnabled[V],plugin:f}),r.pluginsArray.length===g+1&&E.dispatch({type:j.initializeStart,plugins:D,disabled:_})}),Wo(function(f){E.dispatch({type:f?j.offline:j.online})}),(function(f,g,P){setInterval(function(){return $r(f,g,P)},3e3)})(E,p,m),m}var Re="before",He="after",he="cookie",pe=Qr(),qt=tt,Gr=tt;function Yr(e){return pe?tt(e,"",-1):Ae(e)}function Qr(){if(pe!==void 0)return pe;var e=he+he;try{tt(e,e),pe=document.cookie.indexOf(e)!==-1,Yr(e)}catch{pe=!1}return pe}function tt(e,t,n,r,i,o){if(typeof window<"u"){var a=arguments.length>1;return pe===!1&&(a?de(e,t):fe(e)),a?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var oe="localStorage",Lo=Kt.bind(null,oe),Xt=je(oe,"getItem",fe),$o=je(oe,"setItem",de),Zr=je(oe,"removeItem",Ae),ae="sessionStorage",Ro=Kt.bind(null,ae),Ho=je(ae,"getItem",fe),Ko=je(ae,"setItem",de);je(ae,"removeItem",Ae);function ke(e){var t=e;try{if((t=JSON.parse(e))==="true")return!0;if(t==="false")return!1;if(Y(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch{}if(t!==null&&t!=="")return t}var qo=Lo(),Xo=Ro(),Fo=Qr();function ei(e,t){if(e){var n=Ft(t),r=!Yt(n),i=Jt(n)?ke(localStorage.getItem(e)):void 0;if(r&&!we(i))return i;var o=Bt(n)?ke(qt(e)):void 0;if(r&&o)return o;var a=Gt(n)?ke(sessionStorage.getItem(e)):void 0;if(r&&a)return a;var s=fe(e);return r?s:{localStorage:i,sessionStorage:a,cookie:o,global:s}}}function Jo(e,t,n){if(e&&!we(t)){var r={},i=Ft(n),o=JSON.stringify(t),a=!Yt(i);return Jt(i)&&(r[oe]=Ke(oe,t,ke(localStorage.getItem(e))),localStorage.setItem(e,o),a)?r[oe]:Bt(i)&&(r[he]=Ke(he,t,ke(qt(e))),Gr(e,o),a)?r[he]:Gt(i)&&(r[ae]=Ke(ae,t,ke(sessionStorage.getItem(e))),sessionStorage.setItem(e,o),a)?r[ae]:(r[ge]=Ke(ge,t,fe(e)),de(e,t),a?r[ge]:r)}}function Bo(e,t){if(e){var n=Ft(t),r=ei(e,Mr),i={};return!we(r.localStorage)&&Jt(n)&&(localStorage.removeItem(e),i[oe]=r.localStorage),!we(r.cookie)&&Bt(n)&&(Yr(e),i[he]=r.cookie),!we(r.sessionStorage)&&Gt(n)&&(sessionStorage.removeItem(e),i[ae]=r.sessionStorage),!we(r.global)&&nt(n,ge)&&(Ae(e),i[ge]=r.global),i}}function Ft(e){return e?ce(e)?e:e.storage:Nr}function Jt(e){return qo&&nt(e,oe)}function Bt(e){return Fo&&nt(e,he)}function Gt(e){return Xo&&nt(e,ae)}function Yt(e){return e===Mr||e==="all"}function nt(e,t){return e===Nr||e===t||Yt(e)}function Ke(e,t,n){return{location:e,current:t,previous:n}}var Go={setItem:Jo,getItem:ei,removeItem:Bo};function Yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Un(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={storage:Go};return Vo(Wn(Wn({},t),e))}function ee(e){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(e)}function Zo(e,t){if(ee(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ee(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ea(e){var t=Zo(e,"string");return ee(t)=="symbol"?t:t+""}function Qt(e,t,n){return(t=ea(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vn(Object(n),!0).forEach(function(r){Qt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ln={exports:{}},$n={exports:{}},Rn;function ti(){return Rn||(Rn=1,(function(e){function t(n,r){this.v=n,this.k=r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($n)),$n.exports}var Hn={exports:{}},Kn={exports:{}},qn;function ni(){return qn||(qn=1,(function(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}e.exports=t=function(s,c,u,p){function l(w,h){t(s,w,function(I){return this._invoke(w,h,I)})}c?a?a(s,c,{value:u,enumerable:!p,configurable:!p,writable:!p}):s[c]=u:(l("next",0),l("throw",1),l("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Kn)),Kn.exports}var Xn;function ri(){return Xn||(Xn=1,(function(e){var t=ni();function n(){var r,i,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function c(v,d,y,x){var b=d&&d.prototype instanceof p?d:p,m=Object.create(b.prototype);return t(m,"_invoke",(function(O,k,M){var C,A,W,z=0,H=M||[],L=!1,E={p:0,n:0,v:r,a:K,f:K.bind(r,4),d:function(D,_){return C=D,A=0,W=r,E.n=_,u}};function K(D,_){for(A=D,W=_,i=0;!L&&z&&!f&&i<H.length;i++){var f,g=H[i],P=E.p,N=g[2];D>3?(f=N===_)&&(W=g[(A=g[4])?5:(A=3,3)],g[4]=g[5]=r):g[0]<=P&&((f=D<2&&P<g[1])?(A=0,E.v=_,E.n=g[1]):P<N&&(f=D<3||g[0]>_||_>N)&&(g[4]=D,g[5]=_,E.n=N,A=0))}if(f||D>1)return u;throw L=!0,_}return function(D,_,f){if(z>1)throw TypeError("Generator is already running");for(L&&_===1&&K(_,f),A=_,W=f;(i=A<2?r:W)||!L;){C||(A?A<3?(A>1&&(E.n=-1),K(A,W)):E.n=W:E.v=W);try{if(z=2,C){if(A||(D="next"),i=C[D]){if(!(i=i.call(C,W)))throw TypeError("iterator result is not an object");if(!i.done)return i;W=i.value,A<2&&(A=0)}else A===1&&(i=C.return)&&i.call(C),A<2&&(W=TypeError("The iterator does not provide a '"+D+"' method"),A=1);C=r}else if((i=(L=E.n<0)?W:O.call(k,E))!==u)break}catch(g){C=r,A=1,W=g}finally{z=1}}return{value:i,done:L}}})(v,y,x),!0),m}var u={};function p(){}function l(){}function w(){}i=Object.getPrototypeOf;var h=[][a]?i(i([][a]())):(t(i={},a,function(){return this}),i),I=w.prototype=p.prototype=Object.create(h);function S(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,w):(v.__proto__=w,t(v,s,"GeneratorFunction")),v.prototype=Object.create(I),v}return l.prototype=w,t(I,"constructor",w),t(w,"constructor",l),l.displayName="GeneratorFunction",t(w,s,"GeneratorFunction"),t(I),t(I,s,"Generator"),t(I,a,function(){return this}),t(I,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:c,m:S}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Hn)),Hn.exports}var Fn={exports:{}},Jn={exports:{}},Bn={exports:{}},Gn;function ii(){return Gn||(Gn=1,(function(e){var t=ti(),n=ni();function r(i,o){function a(c,u,p,l){try{var w=i[c](u),h=w.value;return h instanceof t?o.resolve(h.v).then(function(I){a("next",I,p,l)},function(I){a("throw",I,p,l)}):o.resolve(h).then(function(I){w.value=I,p(w)},function(I){return a("throw",I,p,l)})}catch(I){l(I)}}var s;this.next||(n(r.prototype),n(r.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(c,u,p){function l(){return new o(function(w,h){a(c,p,w,h)})}return s=s?s.then(l,l):l()},!0)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Bn)),Bn.exports}var Yn;function oi(){return Yn||(Yn=1,(function(e){var t=ri(),n=ii();function r(i,o,a,s,c){return new n(t().w(i,o,a,s),c||Promise)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Jn)),Jn.exports}var Qn;function ta(){return Qn||(Qn=1,(function(e){var t=oi();function n(r,i,o,a,s){var c=t(r,i,o,a,s);return c.next().then(function(u){return u.done?u.value:c.next()})}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Fn)),Fn.exports}var Zn={exports:{}},er;function na(){return er||(er=1,(function(e){function t(n){var r=Object(n),i=[];for(var o in r)i.unshift(o);return function a(){for(;i.length;)if((o=i.pop())in r)return a.value=o,a.done=!1,a;return a.done=!0,a}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Zn)),Zn.exports}var tr={exports:{}},nr={exports:{}},rr;function ra(){return rr||(rr=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nr)),nr.exports}var ir;function ia(){return ir||(ir=1,(function(e){var t=ra().default;function n(r){if(r!=null){var i=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],o=0;if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}}}throw new TypeError(t(r)+" is not iterable")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(tr)),tr.exports}var or;function oa(){return or||(or=1,(function(e){var t=ti(),n=ri(),r=ta(),i=oi(),o=ii(),a=na(),s=ia();function c(){var u=n(),p=u.m(c),l=(Object.getPrototypeOf?Object.getPrototypeOf(p):p.__proto__).constructor;function w(S){var v=typeof S=="function"&&S.constructor;return!!v&&(v===l||(v.displayName||v.name)==="GeneratorFunction")}var h={throw:1,return:2,break:3,continue:3};function I(S){var v,d;return function(y){v||(v={stop:function(){return d(y.a,2)},catch:function(){return y.v},abrupt:function(x,b){return d(y.a,h[x],b)},delegateYield:function(x,b,m){return v.resultName=b,d(y.d,s(x),m)},finish:function(x){return d(y.f,x)}},d=function(x,b,m){y.p=v.prev,y.n=v.next;try{return x(b,m)}finally{v.next=y.n}}),v.resultName&&(v[v.resultName]=y.v,v.resultName=void 0),v.sent=y.v,v.next=y.n;try{return S.call(this,v)}finally{y.p=v.prev,y.n=v.next}}}return(e.exports=c=function(){return{wrap:function(S,v,d,y){return u.w(I(S),v,d,y&&y.reverse())},isGeneratorFunction:w,mark:u.m,awrap:function(S,v){return new t(S,v)},AsyncIterator:o,async:function(S,v,d,y,x){return(w(v)?i:r)(I(S),v,d,y,x)},keys:a,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports})(Ln)),Ln.exports}var ht,ar;function aa(){if(ar)return ht;ar=1;var e=oa()();ht=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return ht}var sa=aa(),q=ct(sa);function sr(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function ne(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(c){sr(o,r,i,a,s,"next",c)}function s(c){sr(o,r,i,a,s,"throw",c)}a(void 0)})}}var ur=function(){};function ua(e,t){var n,r,i,o=(t=t||{}).initial||[],a=t.max||1/0,s=t.interval||1e4,c=t.onEmpty||ur,u=t.onPause||ur;function p(w){clearInterval(n);var h=o.splice(0,a);return h.length&&e(h,o),o.length?w?p():l():(i=!1,c(o))}function l(){i=!0,n=setInterval(p,s)}return o.length&&l(),{flush:function(w){p(w)},resume:p,push:function(w){return(r=o.push(w))>=a&&!t.throttle&&p(),i||l(),r},size:function(){return o.length},pause:function(w){w&&p(),clearInterval(n),i=!1,u(o)}}}var Xe="__",rt="session",ai=Xe+rt,si="page",cr=["id","createdAt","created"];function jt(e){var t=e?new Date(e):new Date;return[t.toISOString(),t.getTime()]}function ui(){var e=jt(),t=e[0],n=e[1];return{id:be(),created:n,createdAt:t}}var ca={session:[Ho,Ko],page:[fe,de]};function it(e,t){for(var n=ca[e],r=n[0],i=n[1],o=ui(),a=!1,s={},c=0;c<cr.length;c++){var u=cr[c],p=Xe+e+Xe+rt+Xe+u,l=r(p);a=t||!l,(t||!t&&!l)&&i(p,o[u]);var w=l&&!t?l:o[u],h=u!=="created"?w:Number(w);s[u]=h}return Zt(s,a)}function Zt(e,t){var n=Date.now();return e.elapsed=n-e.created,e.expires&&(e.remaining=Math.max(e.expires-n,0),e.isExpired=e.remaining===0),e.isNew=t,e}function De(e,t){e===void 0&&(e=30);var n=qt(ai),r=n?JSON.parse(n):Ye(e);return t?r:Zt(r,!n)}function Ye(e,t,n){e===void 0&&(e=30);var r=n?De(e,!0):ui(),i=60*e,o=r.created;if(n){var a=jt(),s=a[0],c=a[1];r.modified=c,r.modifiedAt=s,o=c}var u=jt(o+1e3*i),p=u[0];return r.expires=u[1],r.expiresAt=p,r.duration=1e3*i,t&&(r=Object.assign(r,t)),Gr(ai,JSON.stringify(r),i),Zt(r,!n)}var la=function(e,t){return Ye(e,t,!0)},ci=it.bind(null,rt),fa=it.bind(null,rt,!0),en=it.bind(null,si),lr=it.bind(null,si,!0),ve=typeof window<"u";function da(e){return typeof e=="string"}function fr(e){return typeof e=="boolean"}var vt,dr;function pa(){if(dr)return vt;dr=1;var e=function(d){return t(d)&&!n(d)};function t(d){return!!d&&typeof d=="object"}function n(d){var y=Object.prototype.toString.call(d);return y==="[object RegExp]"||y==="[object Date]"||o(d)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(d){return d.$$typeof===i}function a(d){return Array.isArray(d)?[]:{}}function s(d,y){return y.clone!==!1&&y.isMergeableObject(d)?S(a(d),d,y):d}function c(d,y,x){return d.concat(y).map(function(b){return s(b,x)})}function u(d,y){if(!y.customMerge)return S;var x=y.customMerge(d);return typeof x=="function"?x:S}function p(d){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(d).filter(function(y){return Object.propertyIsEnumerable.call(d,y)}):[]}function l(d){return Object.keys(d).concat(p(d))}function w(d,y){try{return y in d}catch{return!1}}function h(d,y){return w(d,y)&&!(Object.hasOwnProperty.call(d,y)&&Object.propertyIsEnumerable.call(d,y))}function I(d,y,x){var b={};return x.isMergeableObject(d)&&l(d).forEach(function(m){b[m]=s(d[m],x)}),l(y).forEach(function(m){h(d,m)||(w(d,m)&&x.isMergeableObject(y[m])?b[m]=u(m,x)(d[m],y[m],x):b[m]=s(y[m],x))}),b}function S(d,y,x){x=x||{},x.arrayMerge=x.arrayMerge||c,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=s;var b=Array.isArray(y),m=Array.isArray(d),O=b===m;return O?b?x.arrayMerge(d,y,x):I(d,y,x):s(y,x)}S.all=function(d,y){if(!Array.isArray(d))throw new Error("first argument should be an array");return d.reduce(function(x,b){return S(x,b,y)},{})};var v=S;return vt=v,vt}var ga=pa(),ma=ct(ga),Tt=new TextEncoder,ha={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},va=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),_t=class{constructor({accessKeyId:t,secretAccessKey:n,sessionToken:r,service:i,region:o,cache:a,retries:s,initRetryMs:c}){if(t==null)throw new TypeError("accessKeyId is a required option");if(n==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=t,this.secretAccessKey=n,this.sessionToken=r,this.service=i,this.region=o,this.cache=a||new Map,this.retries=s??10,this.initRetryMs=c||50}async sign(t,n){if(t instanceof Request){let{method:o,url:a,headers:s,body:c}=t;n=Object.assign({method:o,url:a,headers:s},n),n.body==null&&s.has("Content-Type")&&(n.body=c!=null&&s.has("X-Amz-Content-Sha256")?c:await t.clone().arrayBuffer()),t=a}let r=new Nt(Object.assign({url:t.toString()},n,this,n&&n.aws)),i=Object.assign({},n,await r.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(o){if(o instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw o}}async fetch(t,n){for(let r=0;r<=this.retries;r++){let i=fetch(await this.sign(t,n));if(r===this.retries)return i;let o=await i;if(o.status<500&&o.status!==429)return o;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,r)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},Nt=class{constructor({method:t,url:n,headers:r,body:i,accessKeyId:o,secretAccessKey:a,sessionToken:s,service:c,region:u,cache:p,datetime:l,signQuery:w,appendSessionToken:h,allHeaders:I,singleEncode:S}){if(n==null)throw new TypeError("url is a required option");if(o==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=t||(i?"POST":"GET"),this.url=new URL(n),this.headers=new Headers(r||{}),this.body=i,this.accessKeyId=o,this.secretAccessKey=a,this.sessionToken=s;let v,d;(!c||!u)&&([v,d]=ya(this.url,this.headers)),this.service=c||v||"",this.region=u||d||"us-east-1",this.cache=p||new Map,this.datetime=l||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=w,this.appendSessionToken=h||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256")&&this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let y=this.signQuery?this.url.searchParams:this.headers;if(y.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken&&y.set("X-Amz-Security-Token",this.sessionToken),this.signableHeaders=["host",...this.headers.keys()].filter(b=>I||!va.has(b)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(b=>b+":"+(b==="host"?this.url.host:(this.headers.get(b)||"").replace(/\s+/g," "))).join(`
|
|
4
|
+
`),this.credentialString=[this.datetime.slice(0,8),this.region,this.service,"aws4_request"].join("/"),this.signQuery&&(this.service==="s3"&&!y.has("X-Amz-Expires")&&y.set("X-Amz-Expires","86400"),y.set("X-Amz-Algorithm","AWS4-HMAC-SHA256"),y.set("X-Amz-Credential",this.accessKeyId+"/"+this.credentialString),y.set("X-Amz-SignedHeaders",this.signedHeaders)),this.service==="s3")try{this.encodedPath=decodeURIComponent(this.url.pathname.replace(/\+/g," "))}catch{this.encodedPath=this.url.pathname}else this.encodedPath=this.url.pathname.replace(/\/+/g,"/");S||(this.encodedPath=encodeURIComponent(this.encodedPath).replace(/%2F/g,"/")),this.encodedPath=mr(this.encodedPath);let x=new Set;this.encodedSearch=[...this.url.searchParams].filter(([b])=>{if(!b)return!1;if(this.service==="s3"){if(x.has(b))return!1;x.add(b)}return!0}).map(b=>b.map(m=>mr(encodeURIComponent(m)))).sort(([b,m],[O,k])=>b<O?-1:b>O?1:m<k?-1:m>k?1:0).map(b=>b.join("=")).join("&")}async sign(){return this.signQuery?(this.url.searchParams.set("X-Amz-Signature",await this.signature()),this.sessionToken&&this.appendSessionToken&&this.url.searchParams.set("X-Amz-Security-Token",this.sessionToken)):this.headers.set("Authorization",await this.authHeader()),{method:this.method,url:this.url,headers:this.headers,body:this.body}}async authHeader(){return["AWS4-HMAC-SHA256 Credential="+this.accessKeyId+"/"+this.credentialString,"SignedHeaders="+this.signedHeaders,"Signature="+await this.signature()].join(", ")}async signature(){let t=this.datetime.slice(0,8),n=[this.secretAccessKey,t,this.region,this.service].join(),r=this.cache.get(n);if(!r){let i=await Te("AWS4"+this.secretAccessKey,t),o=await Te(i,this.region),a=await Te(o,this.service);r=await Te(a,"aws4_request"),this.cache.set(n,r)}return yt(await Te(r,await this.stringToSign()))}async stringToSign(){return["AWS4-HMAC-SHA256",this.datetime,this.credentialString,yt(await pr(await this.canonicalString()))].join(`
|
|
5
|
+
`)}async canonicalString(){return[this.method.toUpperCase(),this.encodedPath,this.encodedSearch,this.canonicalHeaders+`
|
|
6
|
+
`,this.signedHeaders,await this.hexBodyHash()].join(`
|
|
7
|
+
`)}async hexBodyHash(){let t=this.headers.get("X-Amz-Content-Sha256")||(this.service==="s3"&&this.signQuery?"UNSIGNED-PAYLOAD":null);if(t==null){if(this.body&&typeof this.body!="string"&&!("byteLength"in this.body))throw new Error("body must be a string, ArrayBuffer or ArrayBufferView, unless you include the X-Amz-Content-Sha256 header");t=yt(await pr(this.body||""))}return t}};async function Te(e,t){let n=await crypto.subtle.importKey("raw",typeof e=="string"?Tt.encode(e):e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);return crypto.subtle.sign("HMAC",n,Tt.encode(t))}async function pr(e){return crypto.subtle.digest("SHA-256",typeof e=="string"?Tt.encode(e):e)}var gr=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function yt(e){let t=new Uint8Array(e),n="";for(let r=0;r<t.length;r++){let i=t[r];n+=gr[i>>>4&15],n+=gr[i&15]}return n}function mr(e){return e.replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())}function ya(e,t){let{hostname:n,pathname:r}=e;if(n.endsWith(".on.aws")){let s=n.match(/^[^.]{1,63}\.lambda-url\.([^.]{1,63})\.on\.aws$/);return s!=null?["lambda",s[1]||""]:["",""]}if(n.endsWith(".r2.cloudflarestorage.com"))return["s3","auto"];if(n.endsWith(".backblazeb2.com")){let s=n.match(/^(?:[^.]{1,63}\.)?s3\.([^.]{1,63})\.backblazeb2\.com$/);return s!=null?["s3",s[1]||""]:["",""]}let i=n.replace("dualstack.","").match(/([^.]{1,63})\.(?:([^.]{0,63})\.)?amazonaws\.com(?:\.cn)?$/),o=i&&i[1]||"",a=i&&i[2];if(a==="us-gov")a="us-gov-west-1";else if(a==="s3"||a==="s3-accelerate")a="us-east-1",o="s3";else if(o==="iot")n.startsWith("iot.")?o="execute-api":n.startsWith("data.jobs.iot.")?o="iot-jobs-data":o=r==="/mqtt"?"iotdevicegateway":"iotdata";else if(o==="autoscaling"){let s=(t.get("X-Amz-Target")||"").split(".")[0];s==="AnyScaleFrontendService"?o="application-autoscaling":s==="AnyScaleScalingPlannerFrontendService"&&(o="autoscaling-plans")}else a==null&&o.startsWith("s3-")?(a=o.slice(3).replace(/^fips-|^external-1/,""),o="s3"):o.endsWith("-fips")?o=o.slice(0,-5):a&&/-\d$/.test(o)&&!/-\d$/.test(a)&&([o,a]=[a,o]);return[ha[o]||o,a||""]}var tn="Event",hr=tn+"Listener";function ba(e){return function(t,n,r,i){var o=r||Bi,a=i||!1;if(!Q)return o;var s=Qe(n),c=Qe(t,!0);if(!c.length)throw new Error("noElements");if(!s.length)throw new Error("no"+tn);var u=[];return(function p(l){l&&(u=[]);for(var w=l?"add"+hr:"remove"+hr,h=0;h<c.length;h++){var I=c[h];u[h]=l?a&&a.once?wa(o):o:u[h]||o;for(var S=0;S<s.length;S++)I[w]?I["on"+s[S]]=l?u[h]:null:I[w](s[S],u[h],a)}return p.bind(null,!l)})(e)}}function Qe(e,t){if(ce(e))return t?Qe(document.querySelectorAll(e)):(n=e).split(n.indexOf(",")>-1?",":" ").map(function(a){return a.trim()});var n;if(NodeList.prototype.isPrototypeOf(e)){for(var r=[],i=e.length>>>0;i--;)r[i]=e[i];return r}var o=co(e);return t?o.map(function(a){return ce(a)?Qe(a,!0):a}).flat():o}function wa(e,t){var n;return function(){return e&&(n=e.apply(this,arguments),e=null),n}}var bt=ba(tn);function li(e,t){return Q&&Z(window[e])?(n=window[e],r=t,(i=window)===void 0&&(i=null),Z(n)?function(){n.apply(i,arguments),r.apply(i,arguments)}:r):window[e]=t;var n,r,i}li.bind(null,"onerror");li.bind(null,"onload");var fi=typeof window>"u",vr="hidden";function xa(e){if(fi)return!1;var t=Sa(),n="".concat(t.replace(/[H|h]idden/,""),"visibilitychange"),r=function(){return e(!!document[t])},i=function(){return document.addEventListener(n,r)};return i(),function(){return document.removeEventListener(n,r),i}}function Sa(){var e=["webkit","moz","ms","o"];return fi||vr in document?vr:e.reduce(function(t,n){var r=n+"Hidden";return!t&&r in document?r:t},null)}var Ia=["mousemove","mousedown","touchmove","touchstart","touchend","keydown"];function ka(e,t){t===void 0&&(t={});var n=(function(a,s){var c=this,u=!1;return function(p){u||(a.call(c,p),u=!0,setTimeout(function(){return u=!1},s))}})(e,t.throttle||1e4),r=[];function i(){var a=xa(function(s){s||n({type:"tabVisible"})});return r=[a].concat(Ia.map(function(s){return bt(document,s,n)})).concat(bt(window,"load",n)).concat(bt(window,"scroll",n,{capture:!0,passive:!0})),o}function o(){r.map(function(a){return a()})}return i(),function(){return o(),i}}function Oa(e){var t,n,r=e.onIdle,i=e.onWakeUp,o=e.onHeartbeat,a=e.timeout,s=a,c=e.throttle,u=c,p=!1,l=!1,w=new Date,h=function(){return clearTimeout(t)};function I(v){h(),o&&!p&&o(_e(w),v),i&&p&&(p=!1,i(_e(n),v),w=new Date),t=setTimeout(function(){p=!0,r&&(n=new Date,r(_e(w),v))},s)}var S=ka(I,{throttle:u});return{disable:function(){l=!0,p=!1,h();var v=S();return function(){return l=!1,w=new Date,I({type:"load"}),v()}},getStatus:function(){return{isIdle:p,isDisabled:l,active:p?0:_e(w,l),idle:p?_e(n,l):0}}}}function _e(e,t){return t?0:Math.round((new Date-e)/1e3)}var di="object",Pa="string",yr="?",B="name",G="version",Ea="",br="function",Aa="undefined",ja="BlackBerry",Ta="Chrome",_a="Firefox",wr={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Na=[[/microsoft (windows) (vista|xp)/i],[B,G],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[B,[G,xr,wr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[B,"Windows"],[G,xr,wr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[G,/_/g,"."],[B,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[B,"MacOS"],[G,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[G,B],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[B,G],[/\(bb(10);/i],[G,[B,ja]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[G,[B,_a+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[G,[B,"webOS"]],[/crkey\/([\d\.]+)/i],[G,[B,Ta+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[B,"Chromium OS"],G],[/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/(unix) ?([\w\.]*)/i],[B,G]];function Ma(e,t){for(var n=0,r,i,o,a,s,c;n<t.length&&!s;){var u=t[n],p=t[n+1];for(r=i=0;r<u.length&&!s;)if(s=u[r++].exec(e),s)for(o=0;o<p.length;o++)c=s[++i],a=p[o],ee(a)===di&&a.length>0?a.length==2?ee(a[1])==br?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:a.length==3?ee(a[1])===br&&!(a[1].exec&&a[1].test)?this[a[0]]=c?a[1].call(this,c,a[2]):void 0:this[a[0]]=c?c.replace(a[1],a[2]):void 0:a.length==4&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):void 0):this[a]=c||void 0;n+=2}}function xr(e,t){for(var n in t)if(ee(t[n])===di&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Sr(t[n][r],e))return n===yr?void 0:n}else if(Sr(t[n],e))return n===yr?void 0:n;return e}function Sr(e,t){return ee(e)===Pa?Ir(t).indexOf(Ir(e))!==-1:!1}function Ir(e){return e.toLowerCase()}function Ca(e){var t=(typeof window>"u"?"undefined":ee(window))!==Aa&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:Ea,n={};return n[B]=void 0,n[G]=void 0,Ma.call(n,t,Na),n}var pi="Brave";function nn(){if(typeof window>"u")return{};if(!window.navigator)return{};var e=window.navigator,t=e.platform,n=e.product,r=e.vendor,i=Ua(window.navigator),o=i.type,a=i.version,s=o===pi?o:(r||"").split(" ")[0];return{platform:t,os:Ca(),make:s||n,model:o,version:a,name:[o,a].join("/"),language:za(),timezone:Da()}}function za(){var e=window.navigator,t=e.language,n=e.browserLanguage,r=e.languages;return(t||n||(r||["en_US"])[0]).toLowerCase().replace("-","_")}function Da(){var e=/\(([A-Za-z\s].*)\)/.exec(new Date().toString());return e&&e[1]||""}function Ua(e){var t=e.userAgent,n=/.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(t);if(n)return{type:n[1],version:n[2]};var r=/.+(Trident|Edge)\/([0-9\.]+).*/i.exec(t);if(r)return{type:r[1],version:r[2]};var i=/(headlesschrome)(?:\/([\w\.]+)| )/i.exec(t);if(i)return{type:i[1],version:i[2]};var o=/.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(t);if(o){var a=e.brave&&e.brave.isBrave||!1;return{type:a?pi:o[1],version:o[2]}}var s=/.+(Safari)\/([0-9\.]+).*/i.exec(t);if(s)return{type:s[1],version:s[2]};var c=/.+(AppleWebKit)\/([0-9\.]+).*/i.exec(t);if(c)return{type:c[1],version:c[2]};var u=/.*([A-Z]+)\/([0-9\.]+).*/i.exec(t),p=u||["","NA","0.0.0"];return{type:p[1],version:p[2]}}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t[e]||e}function Mt(e){return Ct.apply(this,arguments)}function Ct(){return Ct=ne(q.mark(function e(t){var n,r,i,o,a,s,c=arguments;return q.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n=c.length>1&&c[1]!==void 0?c[1]:!1,r={},u.t0=q.keys(t);case 3:if((u.t1=u.t0()).done){u.next=13;break}return i=u.t1.value,o=Array.isArray(t[i])?t[i]:[t[i]],a=n?o:o[0],u.next=9,mi(a,Va);case 9:s=u.sent,hi(s)||(r[i]=s),u.next=3;break;case 13:return u.abrupt("return",r);case 14:case"end":return u.stop()}},e)})),Ct.apply(this,arguments)}function gi(e){return zt.apply(this,arguments)}function zt(){return zt=ne(q.mark(function e(t){var n,r;return q.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n={},i.t0=q.keys(t);case 2:if((i.t1=i.t0()).done){i.next=9;break}return r=i.t1.value,i.next=6,mi(t[r],La);case 6:n[r]=i.sent,i.next=2;break;case 9:return i.abrupt("return",n);case 10:case"end":return i.stop()}},e)})),zt.apply(this,arguments)}function mi(e,t){return Dt.apply(this,arguments)}function Dt(){return Dt=ne(q.mark(function e(t,n){return q.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(typeof t!="function"){r.next=4;break}return r.next=3,t();case 3:t=r.sent;case 4:return r.abrupt("return",n(t));case 5:case"end":return r.stop()}},e)})),Dt.apply(this,arguments)}function Va(e){if(e!=null)return Array.isArray(e)?e.filter($a).map(function(t){return t.toString()}):hi(e)?e:e.toString()}function La(e){return parseFloat(Number(Array.isArray(e)?e[0]:e))}function $a(e){return e!==null&&typeof e<"u"}function hi(e){return e==null}var Ut="_session.start",ot="_session.stop",vi="pageView";function Ra(e){return Wt.apply(this,arguments)}function Wt(){return Wt=ne(q.mark(function e(t){var n,r,i,o,a,s,c,u,p,l,w,h,I,S,v,d,y,x,b,m,O,k,M,C,A,W,z,H,L,E,K,D=arguments;return q.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(n=D.length>1&&D[1]!==void 0?D[1]:{},r=D.length>2&&D[2]!==void 0?D[2]:{},i=r.appTitle,o=r.appPackageName,a=r.appVersionCode,s=r.eventMapping,c=r.enrichEventAttributes,u=r.enrichEventMetrics,p=r.debug,l=p?console.log:function(){},w=Wa(t,s),h=De(),I=n.sessionId||h.id,S=n.sessionStart||h.createdAt,v=n.sessionStart?new Date(n.sessionStart).getTime():h.created,l("event sessionData ",JSON.stringify(h)),ve&&(d=en(),y=ci(),l("event pageSessionInfo",JSON.stringify(d)),l("event tabSessionData ",JSON.stringify(y))),x=n.attributes||{},b=n.eventId||be(),m=n.time?new Date(n.time):new Date,O=m.toISOString(),k=m.getTime()-v,M=F({date:O,sessionId:I},ve?{pageSession:d.id}:{}),!c){_.next=23;break}return _.next=20,c();case 20:_.t0=_.sent,_.next=24;break;case 23:_.t0={};case 24:if(C=_.t0,A=F(F(F({},M),C),x),W=n.metrics||{},z={sessionTime:h.elapsed||k,hour:m.getHours(),day:m.getDay()+1,month:m.getMonth()+1,year:m.getFullYear()},!u){_.next=34;break}return _.next=31,u();case 31:_.t1=_.sent,_.next=35;break;case 34:_.t1={};case 35:return H=_.t1,L=F(F(F({},z),H),W),_.next=39,Mt(A);case 39:return _.t2=_.sent,_.next=42,gi(L);case 42:return _.t3=_.sent,E={attributes:_.t2,metrics:_.t3},l("".concat(b,":").concat(w)),l("eventAttributes",E.attributes),l("eventMetrics",E.metrics),ve&&l("clientInfo",nn()),K=Qt({},b,F(F({EventType:w,Timestamp:O,AppPackageName:o,AppTitle:i},a?{AppVersionCode:a}:{}),{},{Attributes:E.attributes,Metrics:E.metrics,Session:{Id:I,StartTimestamp:S}})),t===ot&&(K[b].Session.Duration=k,K[b].Session.StopTimestamp=O),_.abrupt("return",K);case 51:case"end":return _.stop()}},e)})),Wt.apply(this,arguments)}var Ha="__endpoint";function at(e){return"".concat(Ha,".").concat(e)}var kr="__endpoint",Or=!1;function rn(){return Vt.apply(this,arguments)}function Vt(){return Vt=ne(q.mark(function e(){var t,n,r,i,o,a,s,c,u,p,l,w,h,I,S,v,d,y,x,b,m,O=arguments;return q.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return t=O.length>0&&O[0]!==void 0?O[0]:{},n=O.length>1&&O[1]!==void 0?O[1]:{},r=n.getUserId,i=n.getEndpointId,o=n.endpointMigration,a=Ga(n),s=a.sessionKey?a.sessionKey():"sessions",c=a.pageViewKey?a.pageViewKey():"pageViews",ve&&(l=nn(),u=en(),p=u.id),w=De(),k.next=10,i();case 10:if(h=k.sent,Or||(Or=!0,I=Xt(kr),I&&(wt(h,I),Zr(kr))),S=Ka(h),v=Ja(n),d=qa(v,l),y={Attributes:{},Demographic:d,Location:{},Metrics:{}},ve&&(l.device&&l.device.vendor&&(y.Attributes.DeviceMake=[l.device.vendor]),l.device&&l.device.model&&(y.Attributes.DeviceModel=[l.device.model]),l.device&&l.device.type&&(y.Attributes.DeviceType=[l.device.type])),t=ma.all([S,y,t],{arrayMerge:Ba}),!(t.User&&t.User.UserId)){k.next=23;break}return k.next=21,r();case 21:x=k.sent,t.User.UserId!==x&&(t.User.UserId=x);case 23:if(!(!t.User||!t.User.UserId)){k.next=28;break}return k.next=26,r();case 26:b=k.sent,b&&(t.User=t.User||{},t.User.UserId=b);case 28:if(!(t.User&&t.User.UserAttributes)){k.next=32;break}return k.next=31,Mt(t.User.UserAttributes,!0);case 31:t.User.UserAttributes=k.sent;case 32:return k.next=34,Mt(t.Attributes,!0);case 34:return t.Attributes=k.sent,k.next=37,gi(t.Metrics);case 37:if(t.Metrics=k.sent,t.Metrics[s]||(t.Metrics[s]=1),t.Metrics[c]||(t.Metrics[c]=1),o&&(t=o(h,t)),m=t.Attributes.lastSession,m){k.next=47;break}return t.Attributes.lastSessionDate=[w.createdAt],t.Attributes.lastSession=[w.id],p&&(t.Attributes.lastPageSession=[p]),k.abrupt("return",wt(h,t));case 47:return m&&m[0]!==w.id&&(t.Attributes.lastSessionDate=[w.createdAt],t.Attributes.lastSession=[w.id],t.Metrics[s]+=1),t.Attributes&&t.Attributes.lastPageSession&&Array.isArray(t.Attributes.lastPageSession)&&t.Attributes.lastPageSession.length>0&&t.Attributes.lastPageSession[0]!==p&&(t.Attributes.lastPageSession=[p],t.Metrics[c]+=1),k.abrupt("return",wt(h,t));case 50:case"end":return k.stop()}},e)})),Vt.apply(this,arguments)}function wt(e,t){var n=at(e),r=da(t)?t:JSON.stringify(t);return $o(n,r),t}function Ka(e){try{return JSON.parse(Xt(at(e)))||{}}catch{}return{}}function qa(e,t){return ve?Fa(e,t):Xa(e)}function Xa(e){var t={AppVersion:e,Make:"generic server",Platform:"Node.js",PlatformVersion:process.version};return t}function Fa(e,t){var n={AppVersion:e,Locale:t.language,Make:t.make,Model:t.model,ModelVersion:t.version,Platform:t.os.name||t.platform};return t.os&&t.os.version&&(n.PlatformVersion=t.os.version),n}function Ja(e){var t=e.appTitle||e.appPackageName||"",n=e.appVersionCode||"0.0.0";return t?"".concat(t,"@").concat(n):n}function Ba(e,t){return t}function Ga(e){var t=e.getContext;return typeof t=="function"?t():t}function Ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function(){var n=ne(q.mark(function i(o){var a,s,c,u,p=arguments;return q.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=p.length>1&&p[1]!==void 0?p[1]:{},s=p.length>2&&p[2]!==void 0?p[2]:{},c=p.length>3&&p[3]!==void 0?p[3]:!1,fr(a)&&(a={},c=a),fr(s)&&(s={},c=s),l.next=7,Ra(o,a,t);case 7:if(u=l.sent,!(Object.entries(s).length||o===vi)){l.next=12;break}return l.next=11,rn(s,t);case 11:s=l.sent;case 12:if(e.push(u),!c){l.next=17;break}return l.abrupt("return",e.flush());case 17:case"end":return l.stop()}},i)}));function r(i){return n.apply(this,arguments)}return r})()}var Pr,Qa=[429,500],Za=[202],es=400;function ts(e,t){return Lt.apply(this,arguments)}function Lt(){return Lt=ne(q.mark(function e(t,n){var r,i,o,a,s,c,u,p,l,w,h,I,S,v,d,y,x,b,m;return q.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return r=n.pinpointRegion,i=n.pinpointAppId,o=n.lambdaArn,a=n.lambdaRegion,s=n.credentials,c=n.getCredentials,u=n.debug,O.next=3,ns(s,c);case 3:return p=O.sent,u&&console.log("pinpoint auth",p),l=a||r,w=r||a,h=n.fips===!0?"-fips":"",I="https://lambda.".concat(l,".amazonaws.com/2015-03-31/functions/").concat(o,"/invocations"),S="https://pinpoint".concat(h,".").concat(w,".amazonaws.com/v1/apps/").concat(i,"/events"),v=o?I:S,x={body:JSON.stringify(t)},d=new _t(p),O.next=16,d.fetch(v,x).then(function(k){return k.json()});case 16:y=O.sent,O.next=24;break;case 19:return d=new Pr.PinpointClient({credentials:p,region:r}),b=new Pr.PutEventsCommand({ApplicationId:i,EventsRequest:t}),O.next=23,d.send(b);case 23:y=O.sent;case 24:return y&&y.Results&&(m=Object.keys(y.Results).map(function(k){return y.Results[k]}),m.forEach(function(k){var M=k.EndpointItemResponse||{},C=k.EventsItemResponse||{};Object.keys(M).length&&(Za.includes(M.StatusCode)||Qa.includes(M.StatusCode)||rs(M,Endpoint));var A=Object.keys(C);A.length&&A.forEach(function(W){})})),O.abrupt("return",y);case 26:case"end":return O.stop()}},e)})),Lt.apply(this,arguments)}function ns(e,t){return $t.apply(this,arguments)}function $t(){return $t=ne(q.mark(function e(t,n){var r,i;return q.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t,!(!Object.keys(r).length&&n)){o.next=11;break}return o.prev=2,o.next=5,n();case 5:r=o.sent,o.next=11;break;case 8:throw o.prev=8,o.t0=o.catch(2),new Error(o.t0);case 11:return i={accessKeyId:r.accessKeyId||r.AccessKeyId,secretAccessKey:r.secretAccessKey||r.SecretKey,sessionToken:r.sessionToken||r.SessionToken,retries:5},o.abrupt("return",i);case 13:case"end":return o.stop()}},e,null,[[2,8]])})),$t.apply(this,arguments)}function rs(e,t){var n=e.StatusCode,r=e.Message;if(n===es){if(r.startsWith("Missing ChannelType"))throw new Error("Missing ChannelType");if(r.startsWith("Exceeded maximum endpoint per user count"))throw new Error("Exceeded maximum endpoint per user count")}}var is=["PUSH","GCM","APNS","APNS_SANDBOX","APNS_VOIP","APNS_VOIP_SANDBOX","ADM","SMS","VOICE","EMAIL","BAIDU","CUSTOM"],xt=is.reduce(function(e,t){return e[t]=t,e},{}),os=nn(),Er=Ut,Ar=ot,as=/.+\@.+\..+/;function ss(e){return as.test(e)}function us(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getEndpointId,n=e.debug;return(function(){var r=ne(q.mark(function o(){var a,s,c,u,p,l,w,h,I,S,v=arguments;return q.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return a=v.length>0&&v[0]!==void 0?v[0]:[],s=v.length>1&&v[1]!==void 0?v[1]:{},d.next=4,t();case 4:if(c=d.sent,c){d.next=8;break}return console.error("No endpoint id. check getEndpointId()"),d.abrupt("return");case 8:if(u=ee(s)==="object"&&Object.keys(s).length,u){d.next=13;break}d.t0=cs(c),d.next=16;break;case 13:return d.next=15,rn(s,e);case 15:d.t0=d.sent;case 16:return p=d.t0,l=p.ChannelType,p.Address&&ss(p.Address)&&(l=xt.EMAIL),!l&&p.Address&&(os.platform==="android"?l=l||xt.GCM:l=l||xt.APNS),n&&(console.log("Endpoint",p),console.log("CHANNEL_TYPE",l)),p.RequestId=be(),p.ChannelType=l,p.Address&&(p.OptOut=p.OptOut||"NONE"),w=ls(a),h=fs(c,p,w),d.prev=26,d.next=29,ts(h,e);case 29:I=d.sent,d.next=36;break;case 32:d.prev=32,d.t1=d.catch(26),console.log("Error calling AWS",d.t1),S=d.t1;case 36:return d.abrupt("return",{endpoint:p,response:I,error:S,events:a});case 37:case"end":return d.stop()}},o,null,[[26,32]])}));function i(){return r.apply(this,arguments)}return i})()}function cs(e){try{return JSON.parse(Xt(at(e)))||{}}catch{}return{}}function ls(e){return e.sort(function(t,n){var r=t.EventType,i=n.EventType;if(r==Er)return-1;if(i==Er||r==Ar)return 1;if(i==Ar)return-1}).reduce(function(t,n){return F(F({},n),t)},{})}function fs(e,t,n){return{BatchItem:Qt({},e,{Endpoint:t,Events:n})}}var ds=ot;function yi(){return{}}function ps(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=F({getContext:e.getContext||yi,credentials:e.credentials||{},getEndpointId:e.getEndpointId},e),n=t.debug?console.log:function(){},r=us(t),i=ua((function(){var c=ne(q.mark(function u(p,l){var w;return q.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return p.forEach(function(I){return n("> Queue event",I)}),h.next=3,r(p,{});case 3:w=h.sent,n("> Queue response",w);case 5:case"end":return h.stop()}},u)}));return function(u,p){return c.apply(this,arguments)}})(),{max:10,interval:e.flushInterval||3e3,throttle:!0}),o=Ya(i,t);rn({},e);var a=gs(o);function s(c){return r([],c)}return{updateEndpoint:s,recordEvent:o,disable:function(){a()}}}function gs(e){if(!ve)return yi;var t=ms(e);return window.addEventListener("beforeunload",t),function(){return window.removeEventListener("beforeunload",t)}}function ms(e){return function(){e(ds,!0)}}function St(){throw new Error("Pinpoint not loaded")}function hs(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return typeof r=="number"&&(t.metrics[n]=r),(typeof r=="string"||typeof r=="boolean")&&(t.attributes[n]=r),t},{attributes:{},metrics:{}})}function vs(e){var t=e.config,n=e.instance;t&&t.disableAnonymousTraffic&&!n.user("userId")&&n.once("identifyStart",function(r){var i=r.plugins,o=i["aws-pinpoint"];o.loaded()||n.loadPlugin("aws-pinpoint")})}var ys={disableAnonymousTraffic:!1,pinpointRegion:"us-east-1",eventMapping:{}};function bs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t,n,r=!1;function i(){var a=De();e.debug&&console.log("Stop session",a),t(ot,!0)}function o(){var a=Ye(30);e.debug&&console.log("START SESSION",a),t(Ut)}return{name:"aws-pinpoint",config:F(F({},ys),e),bootstrap:vs,initialize:function(a){var s=a.config,c=a.instance,u=s.disableAnonymousTraffic,p=s.debug,l=p?console.log:function(){},w=c.getState(),h=w.user||{},I=h.userId,S=h.anonymousId,v=w.context||{},d=v.app,y=v.version,x=v.campaign,b=en(),m=ci(),O=De();if(l("initPageSession",b),l("initTabSession",m),l("initSessionData",O),O&&O.anonId&&O.anonId!==S){l("anonId different refresh session details"),lr(),fa();var k=Ye(30,{anonId:S,userId:I});l("newSessionForNewUser",k)}if(!I&&u)return!1;var M=Object.keys(x).reduce(function(z,H){return z["utm_".concat(H)]=x[H],z},{}),C=ps(F(F({},s),{},{appTitle:s.appTitle||d,appPackageName:s.appPackageName||d,appVersionCode:s.appVersionCode||y,eventMapping:s.eventMapping,getEndpointId:function(){return c.user("anonymousId")},getUserId:function(){return c.user("userId")},getContext:function(){return{sessionKey:s.sessionKey,pageViewKey:s.pageViewKey,initialSession:O}},enrichEventAttributes:function(){return F({anonId:c.user("anonymousId"),userId:c.user("userId"),hash:window.location.hash,path:window.location.pathname,referrer:document.referrer,search:window.location.search,title:document.title,host:window.location.hostname,url:window.location.origin+window.location.pathname},M)},enrichUserAttributes:s.enrichUserAttributes,enrichEventMetrics:function(){return{}}}));t=C.recordEvent,n=C.updateEndpoint,O&&O.isNew&&(l("Start brand new session because cookie not found"),t(Ut));var A=18e5,W=A;Oa({timeout:W,throttle:2e4,onIdle:function(z,H){l("Session idle. Active ".concat(z," seconds")),i()},onWakeUp:function(z,H){l("Session wakeup. Idle ".concat(z," seconds")),o()},onHeartbeat:function(z,H){l("ping session",new Date),l("total active time",z);var L=c.user();la(30,{anonId:L.anonymousId,userId:L.userId})}})},page:function(a){if(a.payload,a.config,!t)return St();r&&lr(),t(vi),r=!0},track:function(a){var s=a.payload,c=a.config;if(a.instance,!t)return St();if(!(c.disableAnonymousTraffic&&!s.userId)){var u=hs(s.properties);t(s.event,u)}},identify:function(a){var s=a.payload,c=s.userId,u=s.traits;if(!n)return St();var p={},l={};c&&(l.UserId=c),u&&Object.keys(u).length&&(l.UserAttributes=u),Object.keys(l).length&&(p.User=l),n(p,!0)},reset:function(a){var s=a.instance,c=s.user("anonymousId"),u=at(c);Zr(u)},loaded:function(){return!!t}}}var ws=bs;function xs(e,t,n){return n.reduce((r,i)=>{let{action:o,targetProperty:a}=i;return o==="add"?r[a]={updatedAt:new Date,updatedBy:e}:o==="remove"&&delete r[a],r},t)}async function Ss({id:e,authentication:t,username:n,accessChangeset:r}){let{properties:i={}}=await ft(e,{authentication:t}),o=i.telemetry,a=o===void 0?{}:o,{arcgis:{access:s={}}={}}=a,c=lt(a,["arcgis"]),u=xs(n,s,r);return wi({item:{id:e,properties:Object.assign(Object.assign({},i),{telemetry:Object.assign(Object.assign({},c),{arcgis:{access:Object.assign({},u)}})})},authentication:t})}async function Is({id:e,authentication:t}){let{properties:{telemetry:{arcgis:{access:n={}}={}}={}}}=await ft(e,{authentication:t});return{access:n}}var Rt=class{constructor(t){this.name="amazon",this.isInitialized=!1;let{app:n={},fips:r,userPoolID:i}=t;this.analytics=Qo({app:n.name,version:n.version,plugins:[ws({fips:r,pinpointAppId:n.id,getCredentials:()=>zi(i,{fips:r})})]}),Object.assign(this,t)}init(){if(!this.isInitialized)return this.isInitialized=!0,Promise.resolve()}static async setAccessPermissions({id:t,authentication:n,username:r,accessChangeset:i}){return Ss({id:t,authentication:n,username:r,accessChangeset:i})}static async getAccessPermissions({id:t,authentication:n}){return Is({id:t,authentication:n})}logPageView(t,n){let r=$i({page:t,previousPage:this.previousPage,options:n,dimensionLookup:this.dimensions,metricLookup:this.metrics}),{pageUrl:i,pageName:o}=r;this.previousPage={pageUrl:i,pageName:o},this.analytics.track("pageView",r)}logEvent(t={}){let n=Li({event:t,dimensionLookup:this.dimensions,metricLookup:this.metrics}),{name:r}=n;this.analytics.track(r,n)}},ks=an`:host{display:block}`,Ht=class extends un{constructor(){super(...arguments),this.amazonAppId="",this.amazonAppName="",this.amazonUserPoolID="",this.amazonVersion="",this.firstUseVar="",this.measurementIds=[],this._open=!1,this._translations=ln({name:"consent-manager",blocking:!0}),this._loaded=!1,this.consentGranted=sn()}static{this.properties={amazonAppId:1,amazonAppName:1,amazonUserPoolID:1,amazonVersion:1,firstUseVar:1,measurementIds:0,portal:0,_open:16,_translations:16}}static{this.styles=ks}async getInstance(){if(localStorage.getItem(this.firstUseVar)==="true"||this.portal?.eueiEnabled)return await this._init(),this._telemetryInstance}async load(){this._open=localStorage.getItem(this.firstUseVar)===null}render(){return""}loaded(){this.consentGranted.emit({granted:localStorage.getItem(this.firstUseVar)==="true"})}async _init(){if(!this._loaded){let t={info:console.info?console.info.bind(console):console.log.bind(console),error:console.error?console.error.bind(console):console.log.bind(console),warn:(r,...i)=>{(!r.includes("non-primitive value")||!r.includes("userSince"))&&(console.warn||console.log)(r,...i)}},n={plugins:[],portal:this.portal,logger:t};if(this.measurementIds?.length>0){let r=new kt({measurementIds:this.measurementIds});n.plugins.push(r)}if(this.amazonUserPoolID){let r=new Rt({userPoolID:this.amazonUserPoolID,app:{name:this.amazonAppName,id:this.amazonAppId,version:this.amazonVersion}});n.plugins.push(r)}this._telemetryInstance=new It(n),await this._telemetryInstance.init(),this._loaded=!0}}_alertClosed(){this._open=!1,localStorage.getItem(this.firstUseVar)!=="true"&&localStorage.setItem(this.firstUseVar,"false")}_accept(){localStorage.setItem(this.firstUseVar,"true"),this.consentGranted.emit({granted:!0}),this._open=!1}};cn("consent-manager",Ht);export{Ht as ConsentManager};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import b from"./I2GXCEQM.js";import a from"./QKJ4PGBO.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,a])=>{return a},a,b)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as R}from"./L33BENH7.js";import b from"./BGXRCU7G.js";import{a as C,b as F}from"./2B4SGB3I.js";import{b as d}from"./YKQDHR27.js";import{a as S}from"./R67EKKSL.js";import{b as w}from"./KIUBUHVM.js";import{E as n,F as r,G as x,I as p,J as c,h as v,i as a,q as y}from"./H5E6ISYP.js";export default $arcgis.t(([{g:u,h:f,o:g}])=>{var O=v`.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;font-weight:var(--calcite-font-weight-medium)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-sm)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@container (max-width: 800px){.filter{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-4);--calcite-panel-background-color: var(--calcite-color-surface-4)}.chips-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--calcite-spacing-xs);flex:1;padding-block:var(--calcite-spacing-xs)}.header-content-wrapper{min-height:50px;flex-wrap:wrap;gap:var(--calcite-spacing-xs);padding-inline-start:var(--calcite-spacing-lg);padding-top:8px}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}.chip-group{max-width:100%}.chip-group{display:flex;flex-wrap:wrap}.responsive-chip{max-width:100%}.responsive-chip .chip-text{display:inline-flex;align-items:center;line-height:1;max-width:100%}@container (max-width: 800px){.responsive-chip{max-width:100%;min-width:0}.responsive-chip .chip-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.mobile-stack{flex-direction:column;align-items:flex-start;padding-top:var(--calcite-spacing-md)}`,_=class extends x{constructor(){super(),this.solutionsCount=0,this._isLoading=!0,this._filterOpen=!0,this._filters={categories:[],searchTerm:""},this._isMobile=!1,this._translations=S({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=n(),this._solutionsFilterPanelRef=n(),this._mainPanelRef=n(),this._panelFixed=!1,this._configContextConsumer=d({context:F,subscribe:!0}),this._isMobileContextConsumer=d({context:C,subscribe:!0,callback:e=>this._isMobile=e}),this.filterRemoved=y(),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&this._filterApplied(e.detail.option,e.detail.logSearchTelemetry)}),this.listenOn(window,"toggleFilter",this._toggleFilter),this.listenOn(window,"cardsFetched",()=>{this._isLoading=!1,this._syncSolutionChipOrderWithDisplayedCards()}),this.listenOn(window,"solutionMatchesFromAssistant",e=>{this._applyAssistantSolutionMatches(e.detail)})}static{this.properties={solutionsCount:9,_isLoading:16,_filterOpen:16,_filters:16,_isMobile:16,_translations:16}}static{this.styles=O}willUpdate(e){e.has("_isMobile")&&(this._filterOpen=!this._isMobile)}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async searchSolutions(e){if(this._allSolutionsPanelRef.value.setSearchOptions(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let t=e.industry?Object.entries(u).find(([,i])=>i===e.industry)?.[0]:void 0,s=e.domain?Object.entries(f).find(([,i])=>i===e.domain)?.[0]:void 0;e.industry=t||"",e.domain=s||"",e.value=s||t||"",this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}else("searchTerm"in e||"sortType"in e)&&("searchTerm"in e&&(this._filters.searchTerm=e.searchTerm),this._allSolutionsPanelRef.value?.searchSolutions(e))}async load(){this._isMobileContextConsumer.value&&(this._isMobile=this._isMobileContextConsumer.value)}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&(t.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(t=>{t.forEach(s=>{if(s.type==="attributes"&&s.attributeName==="tabindex"){let i=s.target;i.classList.contains("content-wrapper")&&i.tabIndex===0&&(i.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&this._panelObserver.observe(t,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){let e=this._isMobile?"justify-content-end":"",t=this._isLoading?"display-none":"";return a`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile?"":this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1" ${r(this._mainPanelRef)}><div class=${p(this._isMobile?`mobile-stack ${e}`:`display-flex align-items-center header-content-wrapper ${e}`)} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label><div class="chips-container">${this._renderChips()}${this._filters.categories&&this._filters.categories?.length>0&&a`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${()=>{this._filters={...this._filters,categories:[],searchTerm:""},this._emitSolutionMatchesFromAssistant([],[]),this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this.filterRemoved.emit([])}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>`||""}</div></div>${this._isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_emitSolutionMatchesFromAssistant(e,t){window.dispatchEvent(new CustomEvent("solutionMatchesFromAssistant",{detail:{solutionIds:e,solutionTitles:t},bubbles:!0,composed:!0}))}_getFilterPanel(){let e=this._filterOpen?{display:"flex"}:"";return this._isMobile?a`<calcite-panel class=${`border-none ${this._filterOpen?"background-override":"filter background-override"}`} id=solutions-all-shell-panel-start style=${c(e)}><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${r(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:a`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${c(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${r(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this._isMobile&&this._filterOpen?{display:"none"}:"";return a`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${c(e)} ${r(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){if(!this._filters.categories)return;let e=this._filters.categories.filter(t=>t.type==="industry"||t.type==="domain"||t.type==="solution");if(e.length!==0)return a`<calcite-chip-group class="chip-group" label>${R(e,t=>`${t.type}:${t.value}`,t=>a`<calcite-chip appearance=outline-fill class=${p(this._isMobile?"responsive-chip":"padding-start responsive-chip")} closable .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`)}</calcite-chip-group>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_syncSolutionChipOrderWithDisplayedCards(){if(!this._filters.categories?.length)return;let e=this._filters.categories.filter(l=>l.type==="solution");if(e.length<=1)return;let t=this._allSolutionsPanelRef.value?.getDisplayedSolutionIds?.()??[];if(!t.length)return;let s=new Map;t.forEach((l,h)=>{s.set(l,h)});let i=[...e].sort((l,h)=>{let m=s.get(String(l.value)),b=s.get(String(h.value)),$=m===void 0?Number.MAX_SAFE_INTEGER:m,T=b===void 0?Number.MAX_SAFE_INTEGER:b;return $-T}),o=this._filters.categories.filter(l=>l.type!=="solution");this._filters={...this._filters,categories:[...o,...i]}}_chipClosed(e,t){if(this._filters.categories){if(t==="solution"){let s=this._filters.categories.filter(i=>i.type==="solution").filter(i=>i.displayValue!==e);this._filters.categories=this._filters.categories.filter(i=>!(i.type==="solution"&&i.displayValue===e)),this._emitSolutionMatchesFromAssistant(s.map(i=>String(i.value)),s.map(i=>i.displayValue)),s.length===0&&this._filters.categories.length===0&&(this._filters={...this._filters,searchTerm:""},this._allSolutionsPanelRef.value?.searchSolutions());return}if(t==="industry")this._filters.categories=[];else{let s=this._filters.categories.filter(i=>i.displayValue!==e&&i.type!==t);this._filters.categories=s}this._filters.categories.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories):this._filters.searchTerm!==""?(this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm})):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters.categories)}}_applyAssistantSolutionMatches(e){let t=Array.isArray(e?.solutionIds)?e.solutionIds:[],s=Array.isArray(e?.solutionTitles)?e.solutionTitles:[],i=t.map((o,l)=>({type:"solution",value:o,displayValue:s[l]??o}));this._filters={categories:i,searchTerm:""},this.filterRemoved.emit([])}_toggleFilter(){this._filterOpen=!this._filterOpen}_logFilterTelemetry(e){if((e.type==="industry"||e.type==="domain")&&e.industry){let t=[u[e.industry]];if(e.domain){let s=f[e.domain];t.push(s)}this._telemetry?.logEvent({category:g.ALL_SOLUTIONS,action:"Filter",dimensions:t})}}_filterApplied(e,t){if(this._filters.categories)if(e){let s=e;if("displayValue"in e)this._filters.categories.push(e),this._logFilterTelemetry(e);else if(Array.isArray(e)&&e.length>0){e.length>=2&&(s=[e[e.length-1]]),this._filters={categories:e,searchTerm:this._filters.searchTerm};let i=e[e.length-1];i&&this._logFilterTelemetry(i)}if("searchTerm"in s&&(this._filters.searchTerm=s.searchTerm,t&&s.searchTerm)){this._telemetry?.logEvent({category:g.ALL_SOLUTIONS,action:"Search",dimensions:[s.searchTerm]});return}this._allSolutionsPanelRef.value?.searchSolutions(s)}else this._filters.categories=[],this._allSolutionsPanelRef.value?.searchSolutions()}};w("solutions-all-shell",_);return _},b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./VRM54VB2.js";import d from"./BIVYOKLF.js";import"./L33BENH7.js";import c from"./BGXRCU7G.js";import b from"./UYY6JODL.js";import a from"./QKJ4PGBO.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,a])=>{return a},a,b,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import h from"./ZGEMIOB5.js";import e from"./NPOHA56R.js";import c from"./ZP6VPBP4.js";import b from"./XXT542UR.js";import a from"./X5EABWHE.js";import{b as C}from"./2B4SGB3I.js";import{b as v}from"./YKQDHR27.js";import"./J75MHJID.js";import{a as w}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as f}from"./KIUBUHVM.js";import{E as u,F as d,G as g,K as y,h as m,i as r,j as _,q as n}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([{n:x,r:T},,{k:c,o:l,p:b},,{a:h,b:S}])=>{var $=m`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-surface-3)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.text-center{text-align:center}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}solution-deployed-card{width:calc(20% - .75rem)}@container (max-width: 1280px){solution-deployed-card{width:calc(25% - .75rem)}}@container (max-width: 1010px){solution-deployed-card{width:calc(33.333% - .75rem)}}@container (max-width: 740px){solution-deployed-card{width:calc(50% - .75rem)}}@container (max-width: 440px){solution-deployed-card{width:calc(100% - .75rem)}}.margin-top-half{margin-top:.5rem}`,F=5,p=class extends g{constructor(){super(),this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._deletedSolutionName="",this._translations=w({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=c,this._allCards=[],this._baseAgoTerms=c,this._categories=[],this._mainPanelRef=u(),this._panelFixed=!1,this._configContextConsumer=v({context:C,subscribe:!0,callback:async t=>{t&&(this._initCardsFetchers(),await this._getDeployedSolutions())}}),this._delay=!1,this._owner="My solutions",this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=n(),this.searchTermSet=n(),this.sortTypeSet=n(),this.listenOn(window,"solutionDeleted",t=>{this._modifiedCheckTry=F,this.reload(t.detail.showAlert,t.detail.refreshSolutionsTimeout,t.detail.solutionTitle)}),this.listenOn(window,"solutionConfigureDialogClose",t=>{t.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",t=>{this._modifiedCheckTry=F,this._refreshAfterDeploy(t.detail)}),this.listenOn(window,"sortTypeChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(this.sortType=t.detail.sortType,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Sort",dimensions:[x(t.detail.sortType)]}),this.searchSolutions(t.detail))}),this.listenOn(window,"searchChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(t.detail.logSearchTelemetry&&t.detail.option?.searchTerm?this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Search",dimensions:[t.detail.option.searchTerm]}):this.searchSolutions(t.detail.option))})}static{this.properties={sortType:1,_cards:16,_cardsFetching:16,_modifiedCheckTry:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_deletedSolutionName:16,_translations:16}}static{this.styles=$}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async reload(t=!0,e=!0,s){if(this._initCardsFetchers(),t){let i=s||this._translations.solution;T({kind:"success",icon:"check-circle",title:this._translations.deleteComplete.replace("{{solutionName}}",i),message:"",autoClose:!0,autoCloseDuration:"fast"})}e?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(i){console.error("Error getting deployed solutions:",i)}})()},500):await this._getDeployedSolutions()}async searchSolutions(t){if(t){if("searchTerm"in t&&this._setSearchTerm(t.searchTerm||""),"sortType"in t&&this._setSortOptions(t),Object.keys(t).indexOf("type")>-1){let e=t;this._owner=e.value,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Filter",dimensions:[e.value==="My solutions"?"My content":"Organization"]})}if(Object.keys(t).indexOf("filter")>-1){let e=t;this._owner=e.filter===b.ORG?"My organization's solutions":"My solutions"}}else this._agoTerms=this._baseAgoTerms,this._clearFilterCategories();await this._getDeployedSolutions()}async setSearchOptions(t){t&&("searchTerm"in t&&(this._setSearchTerm(t.searchTerm),this.searchTermSet.emit({searchTerm:t.searchTerm,scope:"deployments"})),"sortType"in t&&(this._setSortOptions(t),this.sortTypeSet.emit({sortType:t.sortType,scope:"deployments"})))}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let t=this._mainPanelRef.value;t.componentOnReady?.().then(()=>{if(t.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&(e.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(e=>{e.forEach(s=>{if(s.type==="attributes"&&s.attributeName==="tabindex"){let i=s.target;i.classList.contains("content-wrapper")&&i.tabIndex===0&&(i.tabIndex=-1)}})});let t=this._mainPanelRef.value;if(t?.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&this._panelObserver.observe(e,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){return this._cardsFetching?r`<calcite-loader .label=${this._translations.fetchingDeployedSolutions}></calcite-loader>`:this._cards.length?r`<calcite-panel ${d(this._mainPanelRef)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group></calcite-panel>`:r`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${this._translations.noSolutionsInstruction}</div></div></div>`}_initCardsFetchers(){if(this._configContextConsumer.value){let t=this._configContextConsumer.value;this._cardsFetcher=new h(t.locale,t.orgUrl,t.portalURL),this._cardsFetcherDeployed=new h(t.locale,t.orgUrl,t.portalURL)}}_renderCards(){return this._refs={},this._cards.map(t=>r`<solution-deployed-card .card=${t} .deployedDate=${t.created} .description=${t.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${t.title} id=${t.id??y} .itemId=${t.id} .owner=${this._owner==="My solutions"?"":t.owner} .thumbnail=${t.thumbnailUrl} ${d(this._handleRefs)}></solution-deployed-card>`)}_handleRefs(t){t&&(this._refs[t.id]=t)}async _getDeployedSolutions(){let t=this._configContextConsumer.value.authentication;if(t.IsSignedIn){this._abortController?(this._abortController.abort("redundant request"),this._abortController=new AbortController):this._abortController=new AbortController,this._cardsFetching=!0;try{let e=await S(t,this._configContextConsumer.value.userSession,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._abortController.signal,this._owner);this._abortController=void 0,this._modifiedCheckTry>0&&(this._cards?.length===e?.cards?.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),this._cards=e?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}catch(e){e.message!=="redundant request"&&console.warn(e)}}}_getSolutionsBriefcase(){return r`<div><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${_`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`}_setSearchTerm(t){this._agoTerms=this._baseAgoTerms+` ${t}`}_setSortOptions(t){let e=t.sortType;e==="relevance"||e==="title"?(e==="title"&&(this._sortOrder="asc"),this._sortField=e):(e==="updated"||e==="created")&&(this._sortOrder="desc",this._sortField=e),this.sortType=e}_clearFilterCategories(){this._categories=[]}async _refreshAfterDeploy(t){if(t){this._newId=t;let e=10,s=500;for(let a=0;a<e&&(await this._getDeployedSolutions(),!this._cards.some(o=>o.id===t));a++)a<e-1&&await new Promise(o=>setTimeout(o,s));await this.updateComplete;let i=10,O=100;for(let a=0;a<i;a++){if(this._refs[t]){let o=this._cards.find(D=>D.id===t);window.dispatchEvent(new CustomEvent("deployedCardReady",{detail:{card:o,cardRef:this._refs[t]}})),this._newId="";return}await new Promise(o=>setTimeout(o,O)),await this.updateComplete}console.warn(`Failed to find ref for newly deployed solution after all retries: ${t}`),window.dispatchEvent(new CustomEvent("deploymentCompletedWithoutNav",{detail:{solutionId:t}})),this._newId=""}}};f("solutions-deployed-panel",p);return p},a,b,c,e,h)
|
|
2
|
+
import h from"./2NVL4Z5G.js";import e from"./7RK7YWYV.js";import c from"./BGXRCU7G.js";import b from"./UYY6JODL.js";import a from"./QKJ4PGBO.js";import{b as C}from"./2B4SGB3I.js";import{b as v}from"./YKQDHR27.js";import"./J75MHJID.js";import{a as w}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as f}from"./KIUBUHVM.js";import{E as u,F as d,G as g,K as y,h as m,i as r,j as _,q as n}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([{n:x,r:T},,{k:c,o:l,p:b},,{a:h,b:S}])=>{var $=m`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-surface-3)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.text-center{text-align:center}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}solution-deployed-card{width:calc(20% - .75rem)}@container (max-width: 1280px){solution-deployed-card{width:calc(25% - .75rem)}}@container (max-width: 1010px){solution-deployed-card{width:calc(33.333% - .75rem)}}@container (max-width: 740px){solution-deployed-card{width:calc(50% - .75rem)}}@container (max-width: 440px){solution-deployed-card{width:calc(100% - .75rem)}}.margin-top-half{margin-top:.5rem}`,F=5,p=class extends g{constructor(){super(),this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._deletedSolutionName="",this._translations=w({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=c,this._allCards=[],this._baseAgoTerms=c,this._categories=[],this._mainPanelRef=u(),this._panelFixed=!1,this._configContextConsumer=v({context:C,subscribe:!0,callback:async t=>{t&&(this._initCardsFetchers(),await this._getDeployedSolutions())}}),this._delay=!1,this._owner="My solutions",this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=n(),this.searchTermSet=n(),this.sortTypeSet=n(),this.listenOn(window,"solutionDeleted",t=>{this._modifiedCheckTry=F,this.reload(t.detail.showAlert,t.detail.refreshSolutionsTimeout,t.detail.solutionTitle)}),this.listenOn(window,"solutionConfigureDialogClose",t=>{t.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",t=>{this._modifiedCheckTry=F,this._refreshAfterDeploy(t.detail)}),this.listenOn(window,"sortTypeChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(this.sortType=t.detail.sortType,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Sort",dimensions:[x(t.detail.sortType)]}),this.searchSolutions(t.detail))}),this.listenOn(window,"searchChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(t.detail.logSearchTelemetry&&t.detail.option?.searchTerm?this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Search",dimensions:[t.detail.option.searchTerm]}):this.searchSolutions(t.detail.option))})}static{this.properties={sortType:1,_cards:16,_cardsFetching:16,_modifiedCheckTry:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_deletedSolutionName:16,_translations:16}}static{this.styles=$}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async reload(t=!0,e=!0,s){if(this._initCardsFetchers(),t){let i=s||this._translations.solution;T({kind:"success",icon:"check-circle",title:this._translations.deleteComplete.replace("{{solutionName}}",i),message:"",autoClose:!0,autoCloseDuration:"fast"})}e?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(i){console.error("Error getting deployed solutions:",i)}})()},500):await this._getDeployedSolutions()}async searchSolutions(t){if(t){if("searchTerm"in t&&this._setSearchTerm(t.searchTerm||""),"sortType"in t&&this._setSortOptions(t),Object.keys(t).indexOf("type")>-1){let e=t;this._owner=e.value,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Filter",dimensions:[e.value==="My solutions"?"My content":"Organization"]})}if(Object.keys(t).indexOf("filter")>-1){let e=t;this._owner=e.filter===b.ORG?"My organization's solutions":"My solutions"}}else this._agoTerms=this._baseAgoTerms,this._clearFilterCategories();await this._getDeployedSolutions()}async setSearchOptions(t){t&&("searchTerm"in t&&(this._setSearchTerm(t.searchTerm),this.searchTermSet.emit({searchTerm:t.searchTerm,scope:"deployments"})),"sortType"in t&&(this._setSortOptions(t),this.sortTypeSet.emit({sortType:t.sortType,scope:"deployments"})))}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let t=this._mainPanelRef.value;t.componentOnReady?.().then(()=>{if(t.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&(e.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(e=>{e.forEach(s=>{if(s.type==="attributes"&&s.attributeName==="tabindex"){let i=s.target;i.classList.contains("content-wrapper")&&i.tabIndex===0&&(i.tabIndex=-1)}})});let t=this._mainPanelRef.value;if(t?.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&this._panelObserver.observe(e,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){return this._cardsFetching?r`<calcite-loader .label=${this._translations.fetchingDeployedSolutions}></calcite-loader>`:this._cards.length?r`<calcite-panel ${d(this._mainPanelRef)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group></calcite-panel>`:r`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${this._translations.noSolutionsInstruction}</div></div></div>`}_initCardsFetchers(){if(this._configContextConsumer.value){let t=this._configContextConsumer.value;this._cardsFetcher=new h(t.locale,t.orgUrl,t.portalURL),this._cardsFetcherDeployed=new h(t.locale,t.orgUrl,t.portalURL)}}_renderCards(){return this._refs={},this._cards.map(t=>r`<solution-deployed-card .card=${t} .deployedDate=${t.created} .description=${t.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${t.title} id=${t.id??y} .itemId=${t.id} .owner=${this._owner==="My solutions"?"":t.owner} .thumbnail=${t.thumbnailUrl} ${d(this._handleRefs)}></solution-deployed-card>`)}_handleRefs(t){t&&(this._refs[t.id]=t)}async _getDeployedSolutions(){let t=this._configContextConsumer.value.authentication;if(t.IsSignedIn){this._abortController?(this._abortController.abort("redundant request"),this._abortController=new AbortController):this._abortController=new AbortController,this._cardsFetching=!0;try{let e=await S(t,this._configContextConsumer.value.userSession,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._abortController.signal,this._owner);this._abortController=void 0,this._modifiedCheckTry>0&&(this._cards?.length===e?.cards?.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),this._cards=e?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}catch(e){e.message!=="redundant request"&&console.warn(e)}}}_getSolutionsBriefcase(){return r`<div><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${_`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`}_setSearchTerm(t){this._agoTerms=this._baseAgoTerms+` ${t}`}_setSortOptions(t){let e=t.sortType;e==="relevance"||e==="title"?(e==="title"&&(this._sortOrder="asc"),this._sortField=e):(e==="updated"||e==="created")&&(this._sortOrder="desc",this._sortField=e),this.sortType=e}_clearFilterCategories(){this._categories=[]}async _refreshAfterDeploy(t){if(t){this._newId=t;let e=10,s=500;for(let a=0;a<e&&(await this._getDeployedSolutions(),!this._cards.some(o=>o.id===t));a++)a<e-1&&await new Promise(o=>setTimeout(o,s));await this.updateComplete;let i=10,O=100;for(let a=0;a<i;a++){if(this._refs[t]){let o=this._cards.find(D=>D.id===t);window.dispatchEvent(new CustomEvent("deployedCardReady",{detail:{card:o,cardRef:this._refs[t]}})),this._newId="";return}await new Promise(o=>setTimeout(o,O)),await this.updateComplete}console.warn(`Failed to find ref for newly deployed solution after all retries: ${t}`),window.dispatchEvent(new CustomEvent("deploymentCompletedWithoutNav",{detail:{solutionId:t}})),this._newId=""}}};f("solutions-deployed-panel",p);return p},a,b,c,e,h)
|