@esri/solutions-components 5.1.0-next.93 → 5.1.0-next.95
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/{CDT7ELTA.js → 2B2ANB2N.js} +1 -1
- package/dist/cdn/2ID55IJB.js +2 -0
- package/dist/cdn/2SGR44DX.js +2 -0
- package/dist/cdn/2VXTMCRJ.js +2 -0
- package/dist/cdn/{L73FGVVE.js → 3J47AYBV.js} +117 -117
- package/dist/cdn/4B7NJE47.js +2 -0
- package/dist/cdn/5LTIZSXG.js +2 -0
- package/dist/cdn/74MDW73I.js +2 -0
- package/dist/cdn/ADPYDJG6.js +2 -0
- package/dist/cdn/{FDE2V7FU.js → AJZHT4GA.js} +1 -1
- package/dist/cdn/{5A7H4LVR.js → AY6K2SJI.js} +1 -1
- package/dist/cdn/{5NPISZEN.js → C6KN2U7N.js} +1 -1
- package/dist/cdn/{OGPKAPZK.js → C7ASL3A4.js} +1 -1
- package/dist/cdn/{NSJAGP7T.js → DI7PQSFH.js} +2 -2
- package/dist/cdn/FVXS4LF5.js +2 -0
- package/dist/cdn/{UJLDLGTN.js → IEKNRCBC.js} +1 -1
- package/dist/cdn/IRRMUFW7.js +2 -0
- package/dist/cdn/ITLTQWCX.js +2 -0
- package/dist/cdn/IYUTLV2O.js +2 -0
- package/dist/cdn/{3XGF3ZJO.js → KW6YOUWC.js} +1 -1
- package/dist/cdn/KYFNXHOH.js +2 -0
- package/dist/cdn/{WEAC3FS7.js → NBPM6OJQ.js} +1 -1
- package/dist/cdn/{S5VV7I2H.js → R3MCMOLS.js} +1 -1
- package/dist/cdn/R4VHCXKS.js +2 -0
- package/dist/cdn/RG2D7ZRS.js +3 -0
- package/dist/cdn/{XBDEGJHE.js → SJCXI4TB.js} +1 -1
- package/dist/cdn/{LCERYSRG.js → U77O2MIG.js} +1 -1
- package/dist/cdn/UHPN75WT.js +2 -0
- package/dist/cdn/VESARS2D.js +7 -0
- package/dist/cdn/{JBFDURMG.js → WVRKV5SS.js} +1 -1
- package/dist/cdn/{N3F6RUT6.js → X23TE3BV.js} +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.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.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/converter.js +620 -0
- package/dist/chunks/get.js +387 -0
- package/dist/chunks/solution-deploy-dialog.js +91 -76
- package/dist/components/arcgis-solutions-assistant/customElement.js +8403 -8881
- package/dist/components/consent-manager/customElement.js +609 -638
- package/dist/components/solution-builder-assistant/customElement.js +115 -76
- package/dist/components/solution-builder-assistant/index.js +2 -0
- package/dist/components/solution-configure-titles/customElement.js +76 -59
- package/dist/components/solution-delete-dialog/customElement.js +57 -54
- package/dist/components/solution-deploy-dialog/customElement.d.ts +3 -1
- package/dist/components/solution-deploy-dialog/customElement.js +3 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +40 -37
- package/dist/components/solution-details-card/customElement.d.ts +4 -0
- package/dist/components/solution-details-card/customElement.js +45 -29
- package/dist/components/solution-details-card/index.js +1 -0
- package/dist/components/solution-item-accordion/customElement.d.ts +5 -4
- package/dist/components/solution-item-accordion/customElement.js +55 -35
- package/dist/components/solution-item-accordion/index.js +2 -0
- package/dist/components/solutions-all-panel/customElement.js +11 -11
- 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/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 +7 -7
- package/dist/types/lumina.d.ts +7 -1
- package/dist/types/preact.d.ts +8 -1
- package/dist/types/react.d.ts +9 -1
- package/dist/types/stencil.d.ts +7 -1
- package/dist/utils/getRelatedInfos.d.ts +4 -0
- package/dist/utils/interfaces.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cdn/4OJ3LBF6.js +0 -2
- package/dist/cdn/5XOS5PST.js +0 -2
- package/dist/cdn/BPELKV5K.js +0 -2
- package/dist/cdn/BRQJSGIX.js +0 -2
- package/dist/cdn/DLH53PYM.js +0 -7
- package/dist/cdn/DX56I3QB.js +0 -3
- package/dist/cdn/J5XFS6HE.js +0 -2
- package/dist/cdn/PJ43TSSJ.js +0 -2
- package/dist/cdn/R2G4DDRZ.js +0 -2
- package/dist/cdn/RTFBOXOK.js +0 -2
- package/dist/cdn/SN4D24TK.js +0 -2
- package/dist/cdn/SO3S3WP4.js +0 -2
- package/dist/cdn/WF32M7B5.js +0 -2
- package/dist/cdn/ZONXYZVU.js +0 -2
- package/dist/chunks/get-portal-url.js +0 -345
package/dist/cdn/5XOS5PST.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import i from"./XAW6KPKL.js";import"./PJ43TSSJ.js";import h from"./ZP6VPBP4.js";import e from"./XXT542UR.js";import b from"./X5EABWHE.js";import{b as I}from"./2B4SGB3I.js";import{b as D}from"./YKQDHR27.js";import{_b as y}from"./J75MHJID.js";import{a as f}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 _}from"./KIUBUHVM.js";import{E as u,F as d,G as g,I as r,h as m,i as a,l as p,q as c}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,{a:b},{c:w,o:$},{a:C,b:v}])=>{var x=m`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.deletion-note-text{display:inline-block}.deletion-note-container{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-0);margin-bottom:var(--calcite-spacing-md)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.display-none{display:none}calcite-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.loader-text{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-xl);text-align:center;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-1)}.padding-around{padding:12px 2rem 2rem}`,h=class extends g{constructor(){super(),this.open=!1,this.source="Card Dropdown",this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=f({name:"solution-delete-dialog",blocking:!0}),this._accordion=u(),this._configContextConsumer=D({context:I,subscribe:!0}),this.solutionDeleteDialogOpen=c(),this.solutionDeleted=c(),this.solutionDeleteDialogBeforeClose=c(),this.listenOn(window,"beforeunload",e=>{this._isDeleteInProgress&&(e.preventDefault(),e.returnValue=!0)})}static{this.properties={card:0,open:5,source:1,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_showUndeletableItems:16,_templateInfos:16,_translations:16}}static{this.styles=x}get _hasAdminDeletePermission(){return this._configContextConsumer.value?.authentication?w(this._configContextConsumer.value?.authentication):!1}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._telemetry?.logEvent({category:$.DEPLOYMENTS,action:"Delete Solution",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],i={progressCallback:o=>{this._deletePercentage=Math.round(o)},solutionOwner:this.card.owner};y(this.card.id,this._configContextConsumer.value.userSession,i).then(o=>{let s=o[1],n;if(s?n=s.items.map(t=>({itemName:t.title,itemType:t.type,owner:t.owner,modified:t.modified})):n=e,n.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._isDeleteInProgress=!1,this.open=!1;else if(n.some(t=>t.itemType==="Solution"))this.card?v(this.card,this._configContextConsumer.value.userSession).then(t=>{this._templateInfos=t,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let t=[];t=s.items.map(l=>({id:l.id,title:l.title,type:l.type,owner:l.owner,modified:l.modified,typeKeywords:[],snippet:"",dependencies:[],url:b(l.id,this._configContextConsumer.value.authentication)})),this._templateInfos=t,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(e){if(e.has("open")){let i=e.get("open");this.open&&!i&&(this._fetchingTemplates=!0,C(this._configContextConsumer.value.userSession,this.card).then(o=>{this._templateInfos=o.templateInfos,this._nonSolutionDependencyItems=o._nonSolutionDependencyItems,this._fetchingTemplates=!1}))}}render(){let e=this._fetchingTemplates?"":"display-none",i=this._fetchingTemplates?"display-none":"",o=[...new Set(this._nonSolutionDependencyItems.map(t=>t.controlItemId))],s=this._templateInfos.length-this._getDependencyCount()-this._getNonOwnerCount(),n=this._translations.deletionCount.replace("{{deleteableCount}}",s.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return a`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??p} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?a`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text" tabindex=0>${this._translations.deleteInProgress}</div>`:this._showUndeletableItems?a`<calcite-label class=${r(i)} layout=inline><span tabindex=0>${this._translations.failedToDeleteItems}</span></calcite-label><solution-item-accordion class=${r(i)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${d(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:a`<div class="padding-around"><div class=${`deletion-note-container ${i}`}><span class="deletion-note-text" tabindex=0>${this._translations.deletionNote}</span><calcite-chip .label=${n} scale=m icon=information>${n}</calcite-chip></div><calcite-loader class=${r(e)} label></calcite-loader><solution-item-accordion class=${r(i)} .itemRelationshipDependencies=${o} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${d(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&a`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}_getDependencyCount(){let e=this._nonSolutionDependencyItems.map(i=>i.controlItemId);return new Set(e).size}_getNonOwnerCount(){if(this._templateInfos.length===0||this._hasAdminDeletePermission)return 0;let e=this._nonSolutionDependencyItems.map(s=>s.controlItemId),i=new Set(e),o=this._configContextConsumer.value.userSession.username;return this._templateInfos.filter(s=>!i.has(s.id)).filter(s=>s.owner!==o).length}};_("solution-delete-dialog",h);return h},b,e,h,i)
|
package/dist/cdn/BPELKV5K.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./4OJ3LBF6.js";import"./ZYCAAXQF.js";import c from"./ZP6VPBP4.js";import b from"./XXT542UR.js";import a from"./X5EABWHE.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)
|
package/dist/cdn/BRQJSGIX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import b from"./NSJAGP7T.js";import"./ZYCAAXQF.js";import a from"./X5EABWHE.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(([,{c:o}])=>{return o},a,b)
|
package/dist/cdn/DLH53PYM.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as ct,b as lt,d as ft,e as we}from"./ZONXYZVU.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 vi(e){return e.owner?Promise.resolve(e.owner):e.item&&e.item.owner?Promise.resolve(e.item.owner):e.authentication&&e.authentication.getUsername?e.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function yi(e){return Array.isArray(e)&&Array.isArray(e[0])&&Array.isArray(e[1])}function bi(e){return e.join(",")}function kr(e,t,n){if(!e)return e;let r=null;return typeof e.thumbnail=="string"&&(r=`${t}/content/items/${e.id}/info/${e.thumbnail}`,r&&e.access!=="public"&&n&&(r+=`?${n}`)),Object.assign(Object.assign({},e),r?{thumbnailUrl:r}:{})}function wi(e){return vi(e).then(t=>{let n=e.folderId?`${we(e)}/content/users/${t}/${e.folderId}/items/${e.item.id}/update`:`${we(e)}/content/users/${t}/items/${e.item.id}/update`;e.params=Object.assign(Object.assign({},e.params),e.item),e.params.extent&&yi(e.params.extent)&&(e.params.extent=bi(e.params.extent));let r=we(e),i=kr(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,ft(n,e)})}function Or(e,t){let n=xi(e,t),r=Object.assign({httpMethod:"GET"},t);return ft(n,r).then(async i=>{let o=t?.portal||we(t),a;if(t?.authentication&&typeof t.authentication!="string"&&i.access!=="public")try{a=await t.authentication.getToken(n)}catch{}return kr(i,o,a)})}var xi=(e,t)=>`${typeof t=="string"?t:we(t)}/content/items/${e}`;function Si(){var e;return!!(!((e=window?.navigator)===null||e===void 0)&&e.globalPrivacyControl)}function Ii(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||Si()?!0:!(!n||ki(n)||Oi(n)||Pi(n))}function ki(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function Oi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Pi(e){return!e.user&&e.ipCntryCode==="US"}var Ce={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]}}},Pr="esri-telemetry";function Ei(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!ji(e)||e.body)&&t()})}function Ai(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${Pr}="${n}"]`)}function ji(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 Je("Window is undefined: Cannot add script element.");if(Ai(e)){console.log(`script (${r||i}) is already present, skipping`);return}let l=Ti({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 Je=class extends Error{};function Ti({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-${Pr}`,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 _i(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 Ni=["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:Ui(),timestamp:Date.now()},t.userPrivacySettings=this._userPrivacySettings),this.disabled=Ii(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=Ni.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=Ce.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){Ce.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Ce.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(Mi(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 Mi(e,t){return function(n,[r,i]){return Ci(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 Ci(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function Ui(){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 _i(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Je("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Ei(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),{})}},fn="TELEMETRY_COGNITO_CREDENTIALS";function Di(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Ce.get(fn);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})=>(Ce.set(fn,o),o))}function Er({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:Wi(t,r),value:e[r]}:{key:r,value:zi(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function zi(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function Wi(e,t){return`dimension${e[t]}`}var Vi=["size","duration","position","number","count"];function Ar(e,t={}){return Object.keys(e).filter(n=>t[n]||Vi.includes(n)).map(n=>t[n]?{key:$i(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function $i(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=Ar(e,n),c=Er({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 Ri({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=Ar(n,i),a=Er({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 dn(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 qi="function",Hi="string",te="undefined",Ki="boolean",Fe="object",Xi="array",Ji="number",Fi="symbol",Bi="null",Gi=function(){},jr="any",Tr="*",ye="__",Yi="form",Qi="input",Zi="button",eo="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 _r(e,t){return t.charAt(0)[e]()+t.slice(1)}var to=_r.bind(null,"toUpperCase"),no=_r.bind(null,"toLowerCase");function ro(e){return Nr(e)?to(Bi):typeof e===Fe?so(e):Object.prototype.toString.call(e).slice(8,-1)}function Ge(e,t){t===void 0&&(t=!0);var n=ro(e);return t?no(n):n}function We(e,t){return typeof t===e}var Z=We.bind(null,qi),ce=We.bind(null,Hi),xe=We.bind(null,te),io=We.bind(null,Ki);We.bind(null,Fi);function Nr(e){return e===null}function oo(e){return Ge(e)===Ji&&!isNaN(e)}function Mr(e){return Ge(e)===Xi}function Y(e){if(!ao(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ao(e){return e&&(typeof e===Fe||e!==null)}function so(e){return Z(e.constructor)?e.constructor.name:null}function uo(e){return e instanceof Error||ce(e.message)&&e.constructor&&oo(e.constructor.stackTraceLimit)}function Cr(e,t){if(typeof t!="object"||Nr(t))return!1;if(t instanceof e)return!0;var n=Ge(new e(""));if(uo(t))for(;t;){if(Ge(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Cr.bind(null,TypeError);Cr.bind(null,SyntaxError);function Ze(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?co(e,t):n}function co(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,Yi);et(Ze,Zi);et(Ze,Qi);et(Ze,eo);function lo(e){return e?Mr(e)?e:[e]:[]}function pn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function fo(){if(Q){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function po(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function go(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=pn(n[1]),a=pn(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&&(mo(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 mo(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",Pe=ye+ge+ye,Ee=typeof self===Fe&&self.self===self&&self||typeof global===Fe&&global[ge]===global&&global||void 0;function fe(e){return Ee[Pe][e]}function de(e,t){return Ee[Pe][e]=t}function je(e){delete Ee[Pe][e]}function Te(e,t,n){var r;try{if(Ht(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ee[Pe]||(Ee[Pe]={});var $e={};function Ht(e){if(typeof $e[e]!==te)return $e[e];try{var t=window[e];t.setItem(te,te),t.removeItem(te)}catch{return $e[e]=!1}return $e[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",Ue="reducer",Ur="@@redux/",Ot=Ur+"INIT",ho=Ur+Math.random().toString(36),gn=(function(){return typeof Symbol===ue&&Symbol.observable||"@@observable"})(),Le=" != "+ue;function Dr(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"+Le);return n(Dr)(e,t)}if(typeof e!==ue)throw new Error(Ue+Le);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"+Le);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 "+Ue);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 "+Ue+Le);i=h,w({type:Ot})}})[gn]=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)}}})[gn]=function(){return this},h},r}function vo(e,t){var n=t&&t.type;return"action "+(n&&n.toString()||"?")+Ue+" "+e+" returns "+ie}function Ae(){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 yo(){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=Ae.apply(void 0,o)(a.dispatch)})}}}var le=ye+"anon_id",me=ye+"user_id",Ie=ye+"user_traits",Pt="analytics",se="userId",Se="anonymousId",Ke=["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=Ke.reduce(function(e,t){return e[t]=t,e},{registerPluginType:function(e){return"registerPlugin:"+e},pluginReadyType:function(e){return"ready:"+e}}),mn=/^utm_/,hn=/^an_prop_/,vn=/^an_trait_/;function bo(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(Ie,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(mn)||S.match(/^(d|g)clid/)){var v=S.replace(mn,"");I.campaign[v==="campaign"?"name":v]=o[S]}return S.match(hn)&&(I.props[S.replace(hn,"")]=o[S]),S.match(vn)&&(I.traits[S.replace(vn,"")]=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 wo(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,Ie].forEach(function(r){e.removeItem(r)}),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function yn(e){return{userId:e.getItem(me),anonymousId:e.getItem(le),traits:e.getItem(Ie)}}var At=function(e){return ye+"TEMP"+ye+e};function xo(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,Ie,le].forEach(function(h){r(h)}),[se,Se,"traits"].forEach(function(h){je(At(h))})),s.type===j.identify){i(le)||n(le,be());var l=i(me),w=i(Ie)||{};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(Ie,T({},w,u))}return a(s)}}}}var Me={};function bn(e,t){Me[e]&&Z(Me[e])&&(Me[e](t),delete Me[e])}function zr(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 zr(e,t,n-10).then(r,i)})})}function So(e){return{abort:e}}function Wr(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,Se].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:So}))&&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(ke),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(ke)?(function(C,A,W,U,q){return function($,E){var H=U?U.name:C,D=E&&De(E)?E:W;if(U&&(!(D=E&&De(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({},q,{abort:{reason:$,plugins:D,caller:A,_:H}})}})(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:Io(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($,E){var H=Pn($);if(H&&H.name===E){var D=Pn(H.method);throw new Error([E+" plugin is calling method "+$,"Plugins cant call self","Use "+H.method+" "+(D?"or "+D.method:"")+" in "+E+" plugin insteadof "+$].join(`
|
|
3
|
-
`))}})(M.methodName,M.pluginName),Promise.resolve(M.method({payload:A,instance:r,abort:(W=A,U=x,q=M.pluginName,function($,E){return T({},W,{abort:{reason:$,plugins:E||[U],caller:l,from:q||U}})}),config:Sn(M.pluginName,u,o),plugins:u})).then(function($){var E=Y($)?$:{};return Promise.resolve(T({},A,E))})):A;var W,U,q})},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:Sn(m,u,o),plugins:u})).then(function(A){var W=Y(A)?A:{},U=T({},k,W),q=v[m];if(gt(q,m))pt({data:q,method:l,instance:r,pluginName:m,store:s});else{var $=l+":"+m;($.match(/:/g)||[]).length<2&&!l.match(wn)&&!l.match(xn)&&r.dispatch(T({},w?U:M,{type:$,_:{called:$,from:"submethod"}}))}return Promise.resolve(U)})})}catch(k){return Promise.reject(k)}},Promise.resolve(n))).then(function(d){if(!(l.match(ke)||l.match(/^registerPlugin/)||l.match(xn)||l.match(wn)||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"}});Vr(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)}},ke=/Start$/,wn=/^bootstrap/,xn=/^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 Sn(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function In(e,t){return t.reduce(function(n,r){return r[e]?n.concat({methodName:e,pluginName:r.name,method:r[e]}):n},[])}function kn(e,t){var n=e.replace(ke,""),r=t?":"+t:"";return[""+e+r,""+n+r,n+"End"+r]}function gt(e,t){var n=e.abort;return!!n&&(n===!0||On(n,t)||n&&On(n.plugins,t))}function Vr(e,t){var n=e.abort;if(!n)return!1;if(n===!0||ce(n))return!0;var r=n.plugins;return De(n)&&n.length===t||De(r)&&r.length===t}function De(e){return Array.isArray(e)}function On(e,t){return!(!e||!De(e))&&e.includes(t)}function Pn(e){var t=e.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function Io(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 ko(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 bn(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 zr(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 Wr(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(ke,"");if(b._&&b._.called)return Promise.resolve(b);var U=O.getState(),q=(H=C,(D=U.plugins)===void 0&&(D={}),(_=b.options)===void 0&&(_={}),Object.keys(H).filter(function(f){var g=_.plugins||{};return io(g[f])?g[f]:g.all!==!1&&(!D[f]||D[f].enabled!==!1)}).map(function(f){return H[f]}));A===j.initializeStart&&b.fromEnable&&(q=Object.keys(U.plugins).filter(function(f){var g=U.plugins[f];return b.plugins.includes(f)&&!g.initialized}).map(function(f){return C[f]}));var $=q.map(function(f){return f.name}),E=(function(f,g){var P=kn(f).map(function(N){return In(N,g)});return g.reduce(function(N,V){var z=V.name,F=kn(f,z).map(function(re){return In(re,g)}),R=F[0],X=F[1],L=F[2];return R.length&&(N.beforeNS[z]=R),X.length&&(N.duringNS[z]=X),L.length&&(N.afterNS[z]=L),N},{before:P[0],beforeNS:{},during:P[1],duringNS:{},after:P[2],afterNS:{}})})(A,q);return Promise.resolve(dt({action:b,data:{exact:E.before,namespaced:E.beforeNS},state:U,allPlugins:C,allMatches:E,instance:O,store:k,EVENTS:M})).then(function(f){function g(){var V=(function(){if(A.match(ke))return Promise.resolve(dt({action:T({},P,{type:W+"End"}),data:{exact:E.after,namespaced:E.afterNS},state:U,allPlugins:C,allMatches:E,instance:O,store:k,EVENTS:M})).then(function(z){z.meta&&z.meta.hasCallback&&bn(z.meta.rid,{payload:z})})})();return V&&V.then?V.then(function(){return f}):f}if(Vr(f,$.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:U,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 H,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 Oo(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 Po=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 Ae.apply(void 0,a)(r)(i)}}}}};function Eo(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=En(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=En(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,An(n.plugins,!1,t));case j.enablePlugin:return T({},t,An(n.plugins,!0,t));default:return t}}}function En(e,t){return e.substring(t.length+1,e.length)}function An(e,t,n){return e.reduce(function(r,i){return r[i]=T({},n[i],{enabled:t}),r},n)}function $r(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var Ao={last:{},history:[]};function jo(e,t){e===void 0&&(e=Ao);var n=t.options,r=t.meta;if(t.type===j.track){var i=$r(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 To={actions:[]};function _o(e,t){e===void 0&&(e=To);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 Lr=/#.*$/;function No(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);return"/"+(t&&t[3]?t[3].split("?")[0].replace(Lr,""):"")}var Rr,qr,Hr,Kr,Mo=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(Lr,"")})(u),l={title:n,url:p,path:No(p),hash:c,search:u,width:a,height:s};return r&&r!==""&&(l.referrer=r),T({},l,e)},Co={last:{},history:[]};function Uo(e,t){e===void 0&&(e=Co);var n=t.options;if(t.type===j.page){var r=$r(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}Rr=(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"})(),qr=Q?document.referrer:null,Hr=fo(),Kr=po();var jn={initialized:!1,sessionId:be(),app:null,version:null,debug:!1,offline:!!Q&&!navigator.onLine,os:{name:Rr},userAgent:Q?navigator.userAgent:"node",library:{name:Pt,version:"0.13.1"},timezone:Kr,locale:Hr,campaign:{},referrer:qr};function Do(e,t){e===void 0&&(e=jn);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({},jn,e,{initialized:!0})}}var zo=["plugins","reducers","storage"];function Wo(e,t,n){if(Q){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach(function(i){r(i,t)})}}function Vo(e){var t=Wo.bind(null,"online offline",function(n){return Promise.resolve(!navigator.onLine).then(e)});return t(!0),function(n){return t(!1)}}function Xr(){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 Ee[Pe][Pt].push(a.action||a),o(a)}})}}}function Tn(e){return function(){return Ae(Ae.apply(null,arguments),Xr())}}function mt(e){return e?Mr(e)?e:[e]:[]}function _n(e,t,n){e===void 0&&(e={});var r,i,o=be();return t&&(Me[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 $o(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(z){return g.EVENTS[z]}):[];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(z,F){var R;return z[F]=(R=g.methods[F],function(){for(var X=Array.prototype.slice.call(arguments),L=new Array(R.length),re=0;re<X.length;re++)L[re]=X[re];return L[L.length]=m,R.apply({instance:m},L)}),z},{}),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:je},o=(function(f){return function(g,P,N){return P.getState("user")[g]||(N&&Y(N)&&N[g]?N[g]:yn(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(Ke).filter(function(f){return!Et.includes(f)})),u=Array.from(c).sort(),p=function(){return a},l=new Po,w=l.addMiddleware,h=l.removeMiddleware,I=l.dynamicMiddlewares,S=function(){throw new Error("Abort disabled inListener")},v=go(),d=yn(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,z=Y(f)?f:g,F=P||{},R=m.user();de(At(se),V);var X=V||z.userId||o(se,m,z);return Promise.resolve(new Promise(function(L){E.dispatch(T({type:j.identifyStart,userId:X,traits:z||{},options:F,anonymousId:R.anonymousId},R.id&&R.id!==V&&{previousId:R.id}),L,[g,P,N])}))}catch(L){return Promise.reject(L)}},track:function(f,g,P,N){try{var V=Y(f)?f.event:f;if(!V||!ce(V))throw new Error("EventMissing");var z=Y(f)?f:g||{},F=Y(P)?P:{};return Promise.resolve(new Promise(function(R){E.dispatch({type:j.trackStart,event:V,properties:z,options:F,userId:o(se,m,g),anonymousId:o(Se,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(z){E.dispatch({type:j.pageStart,properties:Mo(N),options:V,userId:o(se,m,N),anonymousId:o(Se,m,N)},z,[f,g,P])}))}catch(z){return Promise.reject(z)}},user:function(f){if(f===se||f==="id")return o(se,m);if(f===Se||f==="anonId")return o(Se,m);var g=m.getState("user");return f?dn(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(L){return L.type.match(P)&&g({payload:L,instance:m,plugins:a}),X(L)}}},V=function(R){return function(X){return function(L){return L.type.match(P)||g({payload:L,instance:m,plugins:a}),X(L)}}};return w(N,Re),w(V,qe),function(){h(N,Re),h(V,qe)}}var z=f.match(P)?Re:qe,F=function(R){return function(X){return function(L){return L.type===f&&g({payload:L,instance:m,plugins:a,abort:S}),X(L)}}};return w(F,z),function(){return h(F,z)}},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?dn(g,f):Object.assign({},g)},dispatch:function(f){var g=ce(f)?{type:f}:f;if(Ke.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:Ke,plugins:s}},O=r.middlewares.concat([function(f){return function(g){return function(P){return P.meta||(P.meta=_n()),g(P)}}},I(Re),ko(m,p,{all:u,plugins:s}),Oo(i),bo(m),xo(m),I(qe)]),k={context:Do,user:wo(i),page:Uo,track:jo,plugins:Eo(p),queue:_o},M=Ae,C=Ae;if(Q&&e.debug){var A=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;A&&(M=A({trace:!0,traceLimit:25})),C=function(){return arguments.length===0?Xr():Y(typeof arguments[0])?Tn():Tn().apply(null,arguments)}}var W,U=(function(f){return Object.keys(f).reduce(function(g,P){return zo.includes(P)||(g[P]=f[P]),g},{})})(e),q=r.pluginsArray.reduce(function(f,g){var P=g.name,N=g.config,V=g.loaded,z=r.pluginEnabled[P];return f[P]={enabled:z,initialized:!!z&&!g.initialize,loaded:!!V({config:N}),config:N},f},{}),$={context:U,user:y,plugins:q},E=Dr((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 z,F=Object.keys(P);try{(function(R){Object.keys(R).forEach(function(X){var L=R[X];if(typeof L(void 0,{type:Ot})===ie||typeof L(void 0,{type:ho})===ie)throw new Error(Ue+" "+X+" "+ie)})})(P)}catch(R){z=R}return function(R,X){if(R===void 0&&(R={}),z)throw z;for(var L=!1,re={},st=0;st<F.length;st++){var Ve=F[st],on=R[Ve],ut=(0,P[Ve])(on,X);if(typeof ut===ie){var hi=vo(Ve,X);throw new Error(hi)}re[Ve]=ut,L=L||ut!==on}return L?re:R}})(T({},k,t)),$,C(M(yo.apply(void 0,O))));E.dispatch=(W=E.dispatch,function(f,g,P){var N=T({},f,{meta:_n(f.meta,g,mt(P))});return W.apply(null,[N])});var H=Object.keys(a);E.dispatch({type:j.bootstrap,plugins:H,config:U,params:v,user:y,initialUser:n,persistedUser:d});var D=H.filter(function(f){return r.pluginEnabled[f]}),_=H.filter(function(f){return!r.pluginEnabled[f]});return E.dispatch({type:j.registerPlugins,plugins:H,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:_})}),Vo(function(f){E.dispatch({type:f?j.offline:j.online})}),(function(f,g,P){setInterval(function(){return Wr(f,g,P)},3e3)})(E,p,m),m}var Re="before",qe="after",he="cookie",pe=Br(),Kt=tt,Jr=tt;function Fr(e){return pe?tt(e,"",-1):je(e)}function Br(){if(pe!==void 0)return pe;var e=he+he;try{tt(e,e),pe=document.cookie.indexOf(e)!==-1,Fr(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=Ht.bind(null,oe),Xt=Te(oe,"getItem",fe),Ro=Te(oe,"setItem",de),Gr=Te(oe,"removeItem",je),ae="sessionStorage",qo=Ht.bind(null,ae),Ho=Te(ae,"getItem",fe),Ko=Te(ae,"setItem",de);Te(ae,"removeItem",je);function Oe(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 Xo=Lo(),Jo=qo(),Fo=Br();function Yr(e,t){if(e){var n=Jt(t),r=!Yt(n),i=Ft(n)?Oe(localStorage.getItem(e)):void 0;if(r&&!xe(i))return i;var o=Bt(n)?Oe(Kt(e)):void 0;if(r&&o)return o;var a=Gt(n)?Oe(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 Bo(e,t,n){if(e&&!xe(t)){var r={},i=Jt(n),o=JSON.stringify(t),a=!Yt(i);return Ft(i)&&(r[oe]=He(oe,t,Oe(localStorage.getItem(e))),localStorage.setItem(e,o),a)?r[oe]:Bt(i)&&(r[he]=He(he,t,Oe(Kt(e))),Jr(e,o),a)?r[he]:Gt(i)&&(r[ae]=He(ae,t,Oe(sessionStorage.getItem(e))),sessionStorage.setItem(e,o),a)?r[ae]:(r[ge]=He(ge,t,fe(e)),de(e,t),a?r[ge]:r)}}function Go(e,t){if(e){var n=Jt(t),r=Yr(e,Tr),i={};return!xe(r.localStorage)&&Ft(n)&&(localStorage.removeItem(e),i[oe]=r.localStorage),!xe(r.cookie)&&Bt(n)&&(Fr(e),i[he]=r.cookie),!xe(r.sessionStorage)&&Gt(n)&&(sessionStorage.removeItem(e),i[ae]=r.sessionStorage),!xe(r.global)&&nt(n,ge)&&(je(e),i[ge]=r.global),i}}function Jt(e){return e?ce(e)?e:e.storage:jr}function Ft(e){return Xo&&nt(e,oe)}function Bt(e){return Fo&&nt(e,he)}function Gt(e){return Jo&&nt(e,ae)}function Yt(e){return e===Tr||e==="all"}function nt(e,t){return e===jr||e===t||Yt(e)}function He(e,t,n){return{location:e,current:t,previous:n}}var Yo={setItem:Bo,getItem:Yr,removeItem:Go};function Qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(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 Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nn(Object(n),!0).forEach(function(r){Qo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={storage:Yo};return $o(Mn(Mn({},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 ea(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 ta(e){var t=ea(e,"string");return ee(t)=="symbol"?t:t+""}function Qt(e,t,n){return(t=ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cn(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 J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cn(Object(n),!0).forEach(function(r){Qt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Un={exports:{}},Dn={exports:{}},zn;function Qr(){return zn||(zn=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})(Dn)),Dn.exports}var Wn={exports:{}},Vn={exports:{}},$n;function Zr(){return $n||($n=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})(Vn)),Vn.exports}var Ln;function ei(){return Ln||(Ln=1,(function(e){var t=Zr();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,U=0,q=M||[],$=!1,E={p:0,n:0,v:r,a:H,f:H.bind(r,4),d:function(D,_){return C=D,A=0,W=r,E.n=_,u}};function H(D,_){for(A=D,W=_,i=0;!$&&U&&!f&&i<q.length;i++){var f,g=q[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 $=!0,_}return function(D,_,f){if(U>1)throw TypeError("Generator is already running");for($&&_===1&&H(_,f),A=_,W=f;(i=A<2?r:W)||!$;){C||(A?A<3?(A>1&&(E.n=-1),H(A,W)):E.n=W:E.v=W);try{if(U=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=($=E.n<0)?W:O.call(k,E))!==u)break}catch(g){C=r,A=1,W=g}finally{U=1}}return{value:i,done:$}}})(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})(Wn)),Wn.exports}var Rn={exports:{}},qn={exports:{}},Hn={exports:{}},Kn;function ti(){return Kn||(Kn=1,(function(e){var t=Qr(),n=Zr();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})(Hn)),Hn.exports}var Xn;function ni(){return Xn||(Xn=1,(function(e){var t=ei(),n=ti();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})(qn)),qn.exports}var Jn;function na(){return Jn||(Jn=1,(function(e){var t=ni();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})(Rn)),Rn.exports}var Fn={exports:{}},Bn;function ra(){return Bn||(Bn=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})(Fn)),Fn.exports}var Gn={exports:{}},Yn={exports:{}},Qn;function ia(){return Qn||(Qn=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})(Yn)),Yn.exports}var Zn;function oa(){return Zn||(Zn=1,(function(e){var t=ia().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})(Gn)),Gn.exports}var er;function aa(){return er||(er=1,(function(e){var t=Qr(),n=ei(),r=na(),i=ni(),o=ti(),a=ra(),s=oa();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})(Un)),Un.exports}var ht,tr;function sa(){if(tr)return ht;tr=1;var e=aa()();ht=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return ht}var ua=sa(),K=ct(ua);function nr(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){nr(o,r,i,a,s,"next",c)}function s(c){nr(o,r,i,a,s,"throw",c)}a(void 0)})}}var rr=function(){};function ca(e,t){var n,r,i,o=(t=t||{}).initial||[],a=t.max||1/0,s=t.interval||1e4,c=t.onEmpty||rr,u=t.onPause||rr;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",ri=Xe+rt,ii="page",ir=["id","createdAt","created"];function jt(e){var t=e?new Date(e):new Date;return[t.toISOString(),t.getTime()]}function oi(){var e=jt(),t=e[0],n=e[1];return{id:be(),created:n,createdAt:t}}var la={session:[Ho,Ko],page:[fe,de]};function it(e,t){for(var n=la[e],r=n[0],i=n[1],o=oi(),a=!1,s={},c=0;c<ir.length;c++){var u=ir[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 ze(e,t){e===void 0&&(e=30);var n=Kt(ri),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?ze(e,!0):oi(),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)),Jr(ri,JSON.stringify(r),i),Zt(r,!n)}var fa=function(e,t){return Ye(e,t,!0)},ai=it.bind(null,rt),da=it.bind(null,rt,!0),en=it.bind(null,ii),or=it.bind(null,ii,!0),ve=typeof window<"u";function pa(e){return typeof e=="string"}function ar(e){return typeof e=="boolean"}var vt,sr;function ga(){if(sr)return vt;sr=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 ma=ga(),ha=ct(ma),Tt=new TextEncoder,va={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"},ya=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]=ba(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||!ya.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=lr(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=>lr(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 _e("AWS4"+this.secretAccessKey,t),o=await _e(i,this.region),a=await _e(o,this.service);r=await _e(a,"aws4_request"),this.cache.set(n,r)}return yt(await _e(r,await this.stringToSign()))}async stringToSign(){return["AWS4-HMAC-SHA256",this.datetime,this.credentialString,yt(await ur(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 ur(this.body||""))}return t}};async function _e(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 ur(e){return crypto.subtle.digest("SHA-256",typeof e=="string"?Tt.encode(e):e)}var cr=["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+=cr[i>>>4&15],n+=cr[i&15]}return n}function lr(e){return e.replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())}function ba(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[va[o]||o,a||""]}var tn="Event",fr=tn+"Listener";function wa(e){return function(t,n,r,i){var o=r||Gi,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"+fr:"remove"+fr,h=0;h<c.length;h++){var I=c[h];u[h]=l?a&&a.once?xa(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=lo(e);return t?o.map(function(a){return ce(a)?Qe(a,!0):a}).flat():o}function xa(e,t){var n;return function(){return e&&(n=e.apply(this,arguments),e=null),n}}var bt=wa(tn);function si(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}si.bind(null,"onerror");si.bind(null,"onload");var ui=typeof window>"u",dr="hidden";function Sa(e){if(ui)return!1;var t=Ia(),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 Ia(){var e=["webkit","moz","ms","o"];return ui||dr in document?dr:e.reduce(function(t,n){var r=n+"Hidden";return!t&&r in document?r:t},null)}var ka=["mousemove","mousedown","touchmove","touchstart","touchend","keydown"];function Oa(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=Sa(function(s){s||n({type:"tabVisible"})});return r=[a].concat(ka.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 Pa(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(Ne(w),v),i&&p&&(p=!1,i(Ne(n),v),w=new Date),t=setTimeout(function(){p=!0,r&&(n=new Date,r(Ne(w),v))},s)}var S=Oa(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:Ne(w,l),idle:p?Ne(n,l):0}}}}function Ne(e,t){return t?0:Math.round((new Date-e)/1e3)}var ci="object",Ea="string",pr="?",B="name",G="version",Aa="",gr="function",ja="undefined",Ta="BlackBerry",_a="Chrome",Na="Firefox",mr={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"},Ma=[[/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,hr,mr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[B,"Windows"],[G,hr,mr]],[/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,Ta]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[G,[B,Na+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[G,[B,"webOS"]],[/crkey\/([\d\.]+)/i],[G,[B,_a+"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 Ca(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)===ci&&a.length>0?a.length==2?ee(a[1])==gr?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:a.length==3?ee(a[1])===gr&&!(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 hr(e,t){for(var n in t)if(ee(t[n])===ci&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(vr(t[n][r],e))return n===pr?void 0:n}else if(vr(t[n],e))return n===pr?void 0:n;return e}function vr(e,t){return ee(e)===Ea?yr(t).indexOf(yr(e))!==-1:!1}function yr(e){return e.toLowerCase()}function Ua(e){var t=(typeof window>"u"?"undefined":ee(window))!==ja&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:Aa,n={};return n[B]=void 0,n[G]=void 0,Ca.call(n,t,Ma),n}var li="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=Wa(window.navigator),o=i.type,a=i.version,s=o===li?o:(r||"").split(" ")[0];return{platform:t,os:Ua(),make:s||n,model:o,version:a,name:[o,a].join("/"),language:Da(),timezone:za()}}function Da(){var e=window.navigator,t=e.language,n=e.browserLanguage,r=e.languages;return(t||n||(r||["en_US"])[0]).toLowerCase().replace("-","_")}function za(){var e=/\(([A-Za-z\s].*)\)/.exec(new Date().toString());return e&&e[1]||""}function Wa(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?li: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 Va(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(K.mark(function e(t){var n,r,i,o,a,s,c=arguments;return K.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=K.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,di(a,$a);case 9:s=u.sent,pi(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 fi(e){return Ut.apply(this,arguments)}function Ut(){return Ut=ne(K.mark(function e(t){var n,r;return K.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n={},i.t0=K.keys(t);case 2:if((i.t1=i.t0()).done){i.next=9;break}return r=i.t1.value,i.next=6,di(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)})),Ut.apply(this,arguments)}function di(e,t){return Dt.apply(this,arguments)}function Dt(){return Dt=ne(K.mark(function e(t,n){return K.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 $a(e){if(e!=null)return Array.isArray(e)?e.filter(Ra).map(function(t){return t.toString()}):pi(e)?e:e.toString()}function La(e){return parseFloat(Number(Array.isArray(e)?e[0]:e))}function Ra(e){return e!==null&&typeof e<"u"}function pi(e){return e==null}var zt="_session.start",ot="_session.stop",gi="pageView";function qa(e){return Wt.apply(this,arguments)}function Wt(){return Wt=ne(K.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,U,q,$,E,H,D=arguments;return K.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=Va(t,s),h=ze(),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=ai(),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=J({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=J(J(J({},M),C),x),W=n.metrics||{},U={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 q=_.t1,$=J(J(J({},U),q),W),_.next=39,Mt(A);case 39:return _.t2=_.sent,_.next=42,fi($);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()),H=Qt({},b,J(J({EventType:w,Timestamp:O,AppPackageName:o,AppTitle:i},a?{AppVersionCode:a}:{}),{},{Attributes:E.attributes,Metrics:E.metrics,Session:{Id:I,StartTimestamp:S}})),t===ot&&(H[b].Session.Duration=k,H[b].Session.StopTimestamp=O),_.abrupt("return",H);case 51:case"end":return _.stop()}},e)})),Wt.apply(this,arguments)}var Ha="__endpoint";function at(e){return"".concat(Ha,".").concat(e)}var br="__endpoint",wr=!1;function rn(){return Vt.apply(this,arguments)}function Vt(){return Vt=ne(K.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 K.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=Ya(n),s=a.sessionKey?a.sessionKey():"sessions",c=a.pageViewKey?a.pageViewKey():"pageViews",ve&&(l=nn(),u=en(),p=u.id),w=ze(),k.next=10,i();case 10:if(h=k.sent,wr||(wr=!0,I=Xt(br),I&&(wt(h,I),Gr(br))),S=Ka(h),v=Ba(n),d=Xa(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=ha.all([S,y,t],{arrayMerge:Ga}),!(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,fi(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=pa(t)?t:JSON.stringify(t);return Ro(n,r),t}function Ka(e){try{return JSON.parse(Xt(at(e)))||{}}catch{}return{}}function Xa(e,t){return ve?Fa(e,t):Ja(e)}function Ja(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 Ba(e){var t=e.appTitle||e.appPackageName||"",n=e.appVersionCode||"0.0.0";return t?"".concat(t,"@").concat(n):n}function Ga(e,t){return t}function Ya(e){var t=e.getContext;return typeof t=="function"?t():t}function Qa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function(){var n=ne(K.mark(function i(o){var a,s,c,u,p=arguments;return K.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,ar(a)&&(a={},c=a),ar(s)&&(s={},c=s),l.next=7,qa(o,a,t);case 7:if(u=l.sent,!(Object.entries(s).length||o===gi)){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 xr,Za=[429,500],es=[202],ts=400;function ns(e,t){return $t.apply(this,arguments)}function $t(){return $t=ne(K.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 K.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,rs(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 xr.PinpointClient({credentials:p,region:r}),b=new xr.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&&(es.includes(M.StatusCode)||Za.includes(M.StatusCode)||is(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)})),$t.apply(this,arguments)}function rs(e,t){return Lt.apply(this,arguments)}function Lt(){return Lt=ne(K.mark(function e(t,n){var r,i;return K.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]])})),Lt.apply(this,arguments)}function is(e,t){var n=e.StatusCode,r=e.Message;if(n===ts){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 os=["PUSH","GCM","APNS","APNS_SANDBOX","APNS_VOIP","APNS_VOIP_SANDBOX","ADM","SMS","VOICE","EMAIL","BAIDU","CUSTOM"],xt=os.reduce(function(e,t){return e[t]=t,e},{}),as=nn(),Sr=zt,Ir=ot,ss=/.+\@.+\..+/;function us(e){return ss.test(e)}function cs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getEndpointId,n=e.debug;return(function(){var r=ne(K.mark(function o(){var a,s,c,u,p,l,w,h,I,S,v=arguments;return K.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=ls(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&&us(p.Address)&&(l=xt.EMAIL),!l&&p.Address&&(as.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=fs(a),h=ds(c,p,w),d.prev=26,d.next=29,ns(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 ls(e){try{return JSON.parse(Xt(at(e)))||{}}catch{}return{}}function fs(e){return e.sort(function(t,n){var r=t.EventType,i=n.EventType;if(r==Sr)return-1;if(i==Sr||r==Ir)return 1;if(i==Ir)return-1}).reduce(function(t,n){return J(J({},n),t)},{})}function ds(e,t,n){return{BatchItem:Qt({},e,{Endpoint:t,Events:n})}}var ps=ot;function mi(){return{}}function gs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=J({getContext:e.getContext||mi,credentials:e.credentials||{},getEndpointId:e.getEndpointId},e),n=t.debug?console.log:function(){},r=cs(t),i=ca((function(){var c=ne(K.mark(function u(p,l){var w;return K.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=Qa(i,t);rn({},e);var a=ms(o);function s(c){return r([],c)}return{updateEndpoint:s,recordEvent:o,disable:function(){a()}}}function ms(e){if(!ve)return mi;var t=hs(e);return window.addEventListener("beforeunload",t),function(){return window.removeEventListener("beforeunload",t)}}function hs(e){return function(){e(ps,!0)}}function St(){throw new Error("Pinpoint not loaded")}function vs(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 ys(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 bs={disableAnonymousTraffic:!1,pinpointRegion:"us-east-1",eventMapping:{}};function ws(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t,n,r=!1;function i(){var a=ze();e.debug&&console.log("Stop session",a),t(ot,!0)}function o(){var a=Ye(30);e.debug&&console.log("START SESSION",a),t(zt)}return{name:"aws-pinpoint",config:J(J({},bs),e),bootstrap:ys,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=ai(),O=ze();if(l("initPageSession",b),l("initTabSession",m),l("initSessionData",O),O&&O.anonId&&O.anonId!==S){l("anonId different refresh session details"),or(),da();var k=Ye(30,{anonId:S,userId:I});l("newSessionForNewUser",k)}if(!I&&u)return!1;var M=Object.keys(x).reduce(function(U,q){return U["utm_".concat(q)]=x[q],U},{}),C=gs(J(J({},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 J({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(zt));var A=18e5,W=A;Pa({timeout:W,throttle:2e4,onIdle:function(U,q){l("Session idle. Active ".concat(U," seconds")),i()},onWakeUp:function(U,q){l("Session wakeup. Idle ".concat(U," seconds")),o()},onHeartbeat:function(U,q){l("ping session",new Date),l("total active time",U);var $=c.user();fa(30,{anonId:$.anonymousId,userId:$.userId})}})},page:function(a){if(a.payload,a.config,!t)return St();r&&or(),t(gi),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=vs(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);Gr(u)},loaded:function(){return!!t}}}var xs=ws;function Ss(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 Is({id:e,authentication:t,username:n,accessChangeset:r}){let{properties:i={}}=await Or(e,{authentication:t}),o=i.telemetry,a=o===void 0?{}:o,{arcgis:{access:s={}}={}}=a,c=lt(a,["arcgis"]),u=Ss(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 ks({id:e,authentication:t}){let{properties:{telemetry:{arcgis:{access:n={}}={}}={}}}=await Or(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=Zo({app:n.name,version:n.version,plugins:[xs({fips:r,pinpointAppId:n.id,getCredentials:()=>Di(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 Is({id:t,authentication:n,username:r,accessChangeset:i})}static async getAccessPermissions({id:t,authentication:n}){return ks({id:t,authentication:n})}logPageView(t,n){let r=Ri({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)}},Os=an`:host{display:block}`,qt=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=Os}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",qt);export{qt as ConsentManager};
|
package/dist/cdn/DX56I3QB.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import"./QPIMTXPL.js";var{entries:gt,setPrototypeOf:ft,isFrozen:Yt,getPrototypeOf:Xt,getOwnPropertyDescriptor:jt}=Object,{freeze:S,seal:b,create:ne}=Object,{apply:Ue,construct:Fe}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});b||(b=function(o){return o});Ue||(Ue=function(o,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),O=2;O<a;O++)c[O-2]=arguments[O];return o.apply(l,c)});Fe||(Fe=function(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return new o(...a)});var Z=R(Array.prototype.forEach),Vt=R(Array.prototype.lastIndexOf),ut=R(Array.prototype.pop),J=R(Array.prototype.push),$t=R(Array.prototype.splice),Ee=R(String.prototype.toLowerCase),Me=R(String.prototype.toString),we=R(String.prototype.match),B=R(String.prototype.replace),qt=R(String.prototype.indexOf),Kt=R(String.prototype.trim),C=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),Q=Zt(TypeError);function R(s){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return Ue(s,o,a)}}function Zt(s){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return Fe(s,l)}}function r(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee;ft&&ft(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){let O=l(c);O!==c&&(Yt(o)||(o[a]=O),c=O)}s[c]=!0}return s}function Jt(s){for(let o=0;o<s.length;o++)C(s,o)||(s[o]=null);return s}function M(s){let o=ne(null);for(let[l,a]of gt(s))C(s,l)&&(Array.isArray(a)?o[l]=Jt(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=M(a):o[l]=a);return o}function ee(s,o){for(;s!==null;){let a=jt(s,o);if(a){if(a.get)return R(a.get);if(typeof a.value=="function")return R(a.value)}s=Xt(s)}function l(){return null}return l}var mt=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xe=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pe=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qt=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ke=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),en=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pt=S(["#text"]),Tt=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ve=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),dt=S(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),de=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tn=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nn=b(/<%[\w\W]*|[\w\W]*%>/gm),on=b(/\$\{[\w\W]*/gm),an=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=b(/^aria-[\-\w]+$/),ht=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sn=b(/^(?:\w+script|data):/i),ln=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),At=b(/^html$/i),cn=b(/^[a-z][.\w]*(-[.\w]+)+$/i),Et=Object.freeze({__proto__:null,ARIA_ATTR:rn,ATTR_WHITESPACE:ln,CUSTOM_ELEMENT:cn,DATA_ATTR:an,DOCTYPE_NAME:At,ERB_EXPR:nn,IS_ALLOWED_URI:ht,IS_SCRIPT_OR_DATA:sn,MUSTACHE_EXPR:tn,TMPLIT_EXPR:on}),te={element:1,text:3,progressingInstruction:7,comment:8,document:9},fn=function(){return typeof window>"u"?null:window},un=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null,c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));let O="dompurify"+(a?"#"+a:"");try{return o.createPolicy(O,{createHTML(F){return F},createScriptURL(F){return F}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}},_t=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function St(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn(),o=i=>St(i);if(o.version="3.4.0",o.removed=[],!s||!s.document||s.document.nodeType!==te.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s,a=l,c=a.currentScript,{DocumentFragment:O,HTMLTemplateElement:F,Node:_e,Element:He,NodeFilter:Y,NamedNodeMap:Rt=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:Ot,DOMParser:Dt,trustedTypes:oe}=s,X=He.prototype,Lt=ee(X,"cloneNode"),bt=ee(X,"remove"),yt=ee(X,"nextSibling"),Ct=ee(X,"childNodes"),ie=ee(X,"parentNode");if(typeof F=="function"){let i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,j="",{implementation:ge,createNodeIterator:It,createDocumentFragment:Nt,getElementsByTagName:Mt}=l,{importNode:wt}=a,h=_t();o.isSupported=typeof gt=="function"&&typeof ie=="function"&&ge&&ge.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ae,ERB_EXPR:re,TMPLIT_EXPR:se,DATA_ATTR:xt,ARIA_ATTR:Pt,IS_SCRIPT_OR_DATA:kt,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:vt}=Et,{IS_ALLOWED_URI:Ge}=Et,T=null,We=r({},[...mt,...xe,...Pe,...ke,...pt]),d=null,Be=r({},[...Tt,...ve,...dt,...de]),u=Object.seal(ne(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,le=null,x=Object.seal(ne(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ye=!0,he=!0,Xe=!1,je=!0,k=!1,$=!0,v=!1,Ae=!1,Se=!1,H=!1,ce=!1,fe=!1,Ve=!0,$e=!1,Ut="user-content-",Re=!0,q=!1,z={},I=null,Oe=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,Ke=r({},["audio","video","img","source","image","track"]),De=null,Ze=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xhtml",G=N,Le=!1,be=null,Ft=r({},[ue,me,N],Me),pe=r({},["mi","mo","mn","ms","mtext"]),Te=r({},["annotation-xml"]),Ht=r({},["title","style","font","a","script"]),K=null,zt=["application/xhtml+xml","text/html"],Gt="text/html",p=null,W=null,Wt=l.createElement("form"),Je=function(e){return e instanceof RegExp||e instanceof Function},ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(W&&W===e)){if((!e||typeof e!="object")&&(e={}),e=M(e),K=zt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Gt:e.PARSER_MEDIA_TYPE,p=K==="application/xhtml+xml"?Me:Ee,T=C(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,p):We,d=C(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,p):Be,be=C(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,Me):Ft,De=C(e,"ADD_URI_SAFE_ATTR")?r(M(Ze),e.ADD_URI_SAFE_ATTR,p):Ze,qe=C(e,"ADD_DATA_URI_TAGS")?r(M(Ke),e.ADD_DATA_URI_TAGS,p):Ke,I=C(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,p):Oe,V=C(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,p):M({}),le=C(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,p):M({}),z=C(e,"USE_PROFILES")?e.USE_PROFILES:!1,Ye=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,Xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,$=e.SAFE_FOR_XML!==!1,v=e.WHOLE_DOCUMENT||!1,H=e.RETURN_DOM||!1,ce=e.RETURN_DOM_FRAGMENT||!1,fe=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,Ve=e.SANITIZE_DOM!==!1,$e=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,q=e.IN_PLACE||!1,Ge=e.ALLOWED_URI_REGEXP||ht,G=e.NAMESPACE||N,pe=e.MATHML_TEXT_INTEGRATION_POINTS||pe,Te=e.HTML_INTEGRATION_POINTS||Te,u=e.CUSTOM_ELEMENT_HANDLING||ne(null),e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(he=!1),ce&&(H=!0),z&&(T=r({},pt),d=ne(null),z.html===!0&&(r(T,mt),r(d,Tt)),z.svg===!0&&(r(T,xe),r(d,ve),r(d,de)),z.svgFilters===!0&&(r(T,Pe),r(d,ve),r(d,de)),z.mathMl===!0&&(r(T,ke),r(d,dt),r(d,de))),x.tagCheck=null,x.attributeCheck=null,e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?x.tagCheck=e.ADD_TAGS:(T===We&&(T=M(T)),r(T,e.ADD_TAGS,p))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?x.attributeCheck=e.ADD_ATTR:(d===Be&&(d=M(d)),r(d,e.ADD_ATTR,p))),e.ADD_URI_SAFE_ATTR&&r(De,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(I===Oe&&(I=M(I)),r(I,e.FORBID_CONTENTS,p)),e.ADD_FORBID_CONTENTS&&(I===Oe&&(I=M(I)),r(I,e.ADD_FORBID_CONTENTS,p)),Re&&(T["#text"]=!0),v&&r(T,["html","head","body"]),T.table&&(r(T,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,j=g.createHTML("")}else g===void 0&&(g=un(oe,c)),g!==null&&typeof j=="string"&&(j=g.createHTML(""));S&&S(e),W=e}},Qe=r({},[...xe,...Pe,...Qt]),et=r({},[...ke,...en]),Bt=function(e){let t=ie(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:"template"});let n=Ee(e.tagName),f=Ee(t.tagName);return be[e.namespaceURI]?e.namespaceURI===me?t.namespaceURI===N?n==="svg":t.namespaceURI===ue?n==="svg"&&(f==="annotation-xml"||pe[f]):!!Qe[n]:e.namespaceURI===ue?t.namespaceURI===N?n==="math":t.namespaceURI===me?n==="math"&&Te[f]:!!et[n]:e.namespaceURI===N?t.namespaceURI===me&&!Te[f]||t.namespaceURI===ue&&!pe[f]?!1:!et[n]&&(Ht[n]||!Qe[n]):!!(K==="application/xhtml+xml"&&be[e.namespaceURI]):!1},y=function(e){J(o.removed,{element:e});try{ie(e).removeChild(e)}catch{bt(e)}},U=function(e,t){try{J(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{J(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(H||ce)try{y(t)}catch{}else try{t.setAttribute(e,"")}catch{}},tt=function(e){let t=null,n=null;if(Se)e="<remove></remove>"+e;else{let m=we(e,/^[\r\n\t ]+/);n=m&&m[0]}K==="application/xhtml+xml"&&G===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let f=g?g.createHTML(e):e;if(G===N)try{t=new Dt().parseFromString(f,K)}catch{}if(!t||!t.documentElement){t=ge.createDocument(G,"template",null);try{t.documentElement.innerHTML=Le?j:f}catch{}}let _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),G===N?Mt.call(t,v?"html":"body")[0]:v?t.documentElement:_},nt=function(e){return It.call(e.ownerDocument||e,e,Y.SHOW_ELEMENT|Y.SHOW_COMMENT|Y.SHOW_TEXT|Y.SHOW_PROCESSING_INSTRUCTION|Y.SHOW_CDATA_SECTION,null)},Ce=function(e){return e instanceof Ot&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Rt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Ie=function(e){return typeof _e=="function"&&e instanceof _e};function w(i,e,t){Z(i,n=>{n.call(o,e,t,W)})}let ot=function(e){let t=null;if(w(h.beforeSanitizeElements,e,null),Ce(e))return y(e),!0;let n=p(e.nodeName);if(w(h.uponSanitizeElement,e,{tagName:n,allowedTags:T}),$&&e.hasChildNodes()&&!Ie(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)||$&&e.namespaceURI===N&&n==="style"&&Ie(e.firstElementChild)||e.nodeType===te.progressingInstruction||$&&e.nodeType===te.comment&&A(/<[/\w]/g,e.data))return y(e),!0;if(V[n]||!(x.tagCheck instanceof Function&&x.tagCheck(n))&&!T[n]){if(!V[n]&&at(n)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Re&&!I[n]){let f=ie(e)||e.parentNode,_=Ct(e)||e.childNodes;if(_&&f){let m=_.length;for(let D=m-1;D>=0;--D){let L=Lt(_[D],!0);L.__removalCount=(e.__removalCount||0)+1,f.insertBefore(L,yt(e))}}}return y(e),!0}return e instanceof He&&!Bt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(y(e),!0):(k&&e.nodeType===te.text&&(t=e.textContent,Z([ae,re,se],f=>{t=B(t,f," ")}),e.textContent!==t&&(J(o.removed,{element:e.cloneNode()}),e.textContent=t)),w(h.afterSanitizeElements,e,null),!1)},it=function(e,t,n){if(le[t]||Ve&&(t==="id"||t==="name")&&(n in l||n in Wt))return!1;if(!(he&&!le[t]&&A(xt,t))){if(!(Ye&&A(Pt,t))){if(!(x.attributeCheck instanceof Function&&x.attributeCheck(t,e))){if(!d[t]||le[t]){if(!(at(e)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&A(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!De[t]){if(!A(Ge,B(n,ze,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&qt(n,"data:")===0&&qe[e])){if(!(Xe&&!A(kt,B(n,ze,"")))){if(n)return!1}}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&we(e,vt)},rt=function(e){w(h.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||Ce(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0},f=t.length;for(;f--;){let _=t[f],{name:m,namespaceURI:D,value:L}=_,P=p(m),Ne=L,E=m==="value"?Ne:Kt(Ne);if(n.attrName=P,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,w(h.uponSanitizeAttribute,e,n),E=n.attrValue,$e&&(P==="id"||P==="name")&&(U(m,e),E=Ut+E),$&&A(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,E)){U(m,e);continue}if(P==="attributename"&&we(E,"href")){U(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){U(m,e);continue}if(!je&&A(/\/>/i,E)){U(m,e);continue}k&&Z([ae,re,se],ct=>{E=B(E,ct," ")});let lt=p(e.nodeName);if(!it(lt,P,E)){U(m,e);continue}if(g&&typeof oe=="object"&&typeof oe.getAttributeType=="function"&&!D)switch(oe.getAttributeType(lt,P)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==Ne)try{D?e.setAttributeNS(D,m,E):e.setAttribute(m,E),Ce(e)?y(e):ut(o.removed)}catch{U(m,e)}}w(h.afterSanitizeAttributes,e,null)},st=function(e){let t=null,n=nt(e);for(w(h.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)w(h.uponSanitizeShadowNode,t,null),ot(t),rt(t),t.content instanceof O&&st(t.content);w(h.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(Le=!i,Le&&(i="<!-->"),typeof i!="string"&&!Ie(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Q("dirty is not a string, aborting")}else throw Q("toString is not a function");if(!o.isSupported)return i;if(Ae||ye(e),o.removed=[],typeof i=="string"&&(q=!1),q){if(i.nodeName){let L=p(i.nodeName);if(!T[L]||V[L])throw Q("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof _e)t=tt("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===te.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!H&&!k&&!v&&i.indexOf("<")===-1)return g&&fe?g.createHTML(i):i;if(t=tt(i),!t)return H?null:fe?j:""}t&&Se&&y(t.firstChild);let m=nt(q?i:t);for(;f=m.nextNode();)ot(f),rt(f),f.content instanceof O&&st(f.content);if(q)return i;if(H){if(k){t.normalize();let L=t.innerHTML;Z([ae,re,se],P=>{L=B(L,P," ")}),t.innerHTML=L}if(ce)for(_=Nt.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(d.shadowroot||d.shadowrootmode)&&(_=wt.call(a,_,!0)),_}let D=v?t.outerHTML:t.innerHTML;return v&&T["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(At,t.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
3
|
-
`+D),k&&Z([ae,re,se],L=>{D=B(D,L," ")}),g&&fe?g.createHTML(D):D},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ye(i),Ae=!0},o.clearConfig=function(){W=null,Ae=!1},o.isValidAttribute=function(i,e,t){W||ye({});let n=p(i),f=p(e);return it(n,f,t)},o.addHook=function(i,e){typeof e=="function"&&J(h[i],e)},o.removeHook=function(i,e){if(e!==void 0){let t=Vt(h[i],e);return t===-1?void 0:$t(h[i],t,1)[0]}return ut(h[i])},o.removeHooks=function(i){h[i]=[]},o.removeAllHooks=function(){h=_t()},o}var mn=St();export{mn as default};
|
package/dist/cdn/J5XFS6HE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import x from"./5BU6XZAD.js";import t from"./ZGEMIOB5.js";import s from"./K6WLYYPH.js";import r from"./5OF3YOO7.js";import q from"./ELPH6EFW.js";import n from"./SO3S3WP4.js";import m from"./NPOHA56R.js";import l from"./JBFDURMG.js";import"./QPNIPE5H.js";import k from"./JC5EXPFH.js";import j from"./4OJ3LBF6.js";import i from"./XAW6KPKL.js";import g from"./NSJAGP7T.js";import"./ZYCAAXQF.js";import"./O3O4EPB6.js";import{a as L}from"./L33BENH7.js";import e from"./ZP6VPBP4.js";import c from"./XXT542UR.js";import b from"./X5EABWHE.js";import{a as S,b as D,c as A}from"./2B4SGB3I.js";import{a as u}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 C}from"./KIUBUHVM.js";import{E as o,F as a,G as f,I as p,K as T,h as v,i as h,q as d}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,{c:x,g:I,k:F,l:O,o:c},{b:$},,,,,{g:P,h:k},,,,,{a:m,b:B},{a:y}])=>{var M=v`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--panel-edge-adjustment: 2vw;--assistant-panel-min-width: 420px;--assistant-panel-width: max(var(--assistant-panel-min-width), calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment) - 15px))}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.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}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-right:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel{margin-left:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));margin-right:0;width:auto;max-width:1440px}.builder-panel{position:fixed;top:65px;left:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));right:var(--assistant-panel-width);bottom:0;z-index:400;display:flex;flex-direction:column;transition:transform .3s cubic-bezier(.4,0,.2,1);transform:translate(0);pointer-events:auto}.builder-panel.display-none{display:flex!important;transform:translate(100%);pointer-events:none}.builder-panel.display-none:has(~.assistant-panel.display-none){display:none!important;transition:none}.assistant-panel{position:fixed;top:65px;right:0;bottom:0;width:var(--assistant-panel-width);min-width:var(--assistant-panel-min-width);z-index:400;display:flex;flex-direction:column}@media(max-width:800px){.builder-panel{display:none!important}.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-right:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);right:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}`,R={solution:{title:"Bus Stop ADA Compliance Inspections",description:"Bus Stop ADA Compliance Inspections can be used to perform routine inspections of bus stops for ADA compliance and monitor inspection progress.",tags:["Bus Stop","ADA Compliance","Inspection","Field","Monitor","ArcGIS Solutions"],strings:[{key:"inspectionsByMonth",value:"Inspections by Month",description:"Descriptive title of dashboard chart displaying the number of inspections completed by month."},{key:"inspectionsCompleted",value:"Inspections Completed",description:"Descriptive title of dashboard indicator displaying the total number of inspections completed."},{key:"assetInventory",value:"Bus Stop Inventory",description:"Descriptive title of dashboard indicator displaying the total number of bus stops."}]},items:[{id:"b21885d38b3c4924922ce36c90112737",title:"Bus Stop ADA Inspection Dashboard",description:"An ArcGIS Dashboards app used to monitor bus stop ADA compliance inspections.",type:"Dashboard"},{id:"54f69b6af00b4f06b1c1eef05e80dc93",title:"Bus Stop ADA Inspection Map",description:"A map used by the Bus Stop ADA Inspection Dashboard app to monitor inspections.",type:"Web Map"},{id:"2fc93fa4e07e42508669d02acb837a75",title:"Bus Stop ADA Inspection Field Map",description:"A map used in ArcGIS Field Maps to inspect bus stops in the field for ADA compliance.",type:"Web Map"},{id:"0bd4ecf9c95e4dcd8ff1744adc12f323",title:"BusStops_field",description:"A hosted feature layer view used to inspect bus stops for ADA compliance.",type:"Feature Layer (hosted, view)"},{id:"0bd4ecf9c95e4dcd8ff1744adc12f324",title:"BusStops_dashboard",description:"A hosted feature layer view used to monitor bus stop ADA inspections.",type:"Feature Layer (hosted, view)"},{id:"36d0bdce3a74436f8314c88c9667003e",title:"BusStops",description:"A hosted feature layer used to store bus stop and ADA inspection details.",type:"Feature Layer (hosted)"}],featureLayer:{itemId:"36d0bdce3a74436f8314c88c9667003e",addLayers:!0,layers:[{id:"0",type:"Point",name:"BusStops",description:"Point layer containing bus stop locations and ADA compliance information.",customFields:[{name:"stop_id",type:"string",alias:"Stop ID",description:"Identifier for the bus stop.",choiceList:null,length:255},{name:"location_description",type:"string",alias:"Location Description",description:"Description of the bus stop location.",choiceList:null,length:255},{name:"shelter_present",type:"string",alias:"Shelter Present",description:"Indicates if a waiting shelter is present at the bus stop.",choiceList:["Yes","No"],length:5},{name:"bench_present",type:"string",alias:"Bench Present",description:"Indicates if a bench is present at the bus stop.",choiceList:["Yes","No"],length:5},{name:"ada_compliant",type:"string",alias:"ADA Compliant",description:"Indicates if the bus stop meets ADA compliance requirements.",choiceList:["Yes","No"],length:5},{name:"capacity",type:"integer",alias:"Seating Capacity",description:"Number of people that can be seated at the bus stop."},{name:"distance_from_curb",type:"double",alias:"Distance from Curb (ft)",description:"Distance in feet from the curb to the shelter."},{name:"last_inspection_date",type:"date",alias:"Last Inspection Date",description:"Date of the most recent inspection."},{name:"installation_date",type:"date",alias:"Installation Date",description:"Date when the bus stop was installed."}],requiredFields:[{name:"route_number",type:"string",alias:"Route Number",description:"Number of the bus route that uses this stop.",choiceList:null,length:50},{name:"average_daily_riders",type:"integer",alias:"Average Daily Riders",description:"Average number of riders using this stop per day."},{name:"inspection_priority",type:"string",alias:"Inspection Priority",description:"Priority level for scheduling inspections.",choiceList:["High","Medium","Low"],length:10}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"1",type:"Polyline",name:"Routes",description:"Polyline layer containing bus route paths.",customFields:[{name:"route_name",type:"string",alias:"Route Name",description:"Name of the bus route.",choiceList:null,length:100},{name:"route_type",type:"string",alias:"Route Type",description:"Type of bus route service.",choiceList:["Express","Local","Rapid"],length:20},{name:"frequency_minutes",type:"integer",alias:"Frequency (minutes)",description:"How often buses run on this route in minutes."},{name:"route_length_miles",type:"double",alias:"Route Length (miles)",description:"Total length of the route in miles."}],requiredFields:[{name:"route_id",type:"string",alias:"Route ID",description:"Unique identifier for the route.",choiceList:null,length:50},{name:"active",type:"string",alias:"Active Status",description:"Whether the route is currently active.",choiceList:["Yes","No"],length:3}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"2",type:"Polygon",name:"ServiceAreas",description:"Polygon layer defining bus service coverage areas.",customFields:[{name:"area_name",type:"string",alias:"Area Name",description:"Name of the service area.",choiceList:null,length:100},{name:"service_level",type:"string",alias:"Service Level",description:"Level of service provided in this area.",choiceList:["High Frequency","Standard","Limited"],length:20},{name:"population",type:"integer",alias:"Population",description:"Estimated population within the service area."},{name:"area_sq_miles",type:"double",alias:"Area (sq miles)",description:"Size of the service area in square miles."}],requiredFields:[{name:"district_id",type:"string",alias:"District ID",description:"Unique identifier for the service district.",choiceList:null,length:50}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"3",type:"Table",name:"Inspections",description:"Table containing inspection records and findings.",customFields:[{name:"inspection_id",type:"string",alias:"Inspection ID",description:"Unique identifier for the inspection.",choiceList:null,length:50},{name:"stop_id",type:"string",alias:"Bus Stop ID",description:"ID of the bus stop that was inspected.",choiceList:null,length:255},{name:"inspector_name",type:"string",alias:"Inspector Name",description:"Name of the person who performed the inspection.",choiceList:null,length:100},{name:"inspection_date",type:"date",alias:"Inspection Date",description:"Date when the inspection was performed."},{name:"overall_condition",type:"string",alias:"Overall Condition",description:"Overall condition assessment of the bus stop.",choiceList:["Excellent","Good","Fair","Poor","Critical"],length:20},{name:"issues_found",type:"integer",alias:"Issues Found",description:"Number of issues identified during inspection."},{name:"notes",type:"string",alias:"Inspection Notes",description:"Additional notes or comments about the inspection.",choiceList:null,length:1e3}],requiredFields:[{name:"inspection_status",type:"string",alias:"Inspection Status",description:"Current status of the inspection.",choiceList:["Scheduled","In Progress","Completed","Cancelled"],length:20}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]}]}},g=class extends f{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.loadExampleBuilderData=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._isAssistantOpen=!1,this._builderVisible=!1,this._hasActiveBuilderDesign=!1,this._showFabTooltip=!0,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._globalAlerts=[],this._translations=w({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${O}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=u({context:D}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._tabpanelsFixed=!1,this._solutionBuilderPanel=o(),this._builderDesignContextProvider=u({context:A}),this._isMobileContextProvider=u({context:S}),this._mainContentRef=o(),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=d(),this.deployedCardFetchFailed=d(),this.detailsCardSelected=d(),this.deployedCardSelected=d(),this.metaTagStringsReady=d(),this.sessionRefreshed=d(),this.tabChanged=d(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this.listenOn(window,"showGlobalAlert",this._handleShowGlobalAlert),this.listenOn(window,"openAssistant",()=>{this._openAssistant()}),this.listenOn(window,"closeAssistant",()=>{this._isAssistantOpen=!1,this._builderVisible=!1}),this.listenOn(window,"toggleSolutionBuilder",()=>{this._builderVisible=!this._builderVisible}),this.listenOn(window,"arcgis-solution-design-update",this._solutionBuilderSelected),this._builderDesignContextProvider.value={design:this.loadExampleBuilderData?R:null,updateDesign:t=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:t}},isBuilderVisible:!1,setBuilderVisible:t=>{this._builderVisible=t,this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:t}}},this.loadExampleBuilderData&&(this._hasActiveBuilderDesign=!0)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:5,loadExampleBuilderData:5,authentication:16,_isLoaded:16,isMobile:16,_isAssistantOpen:16,_builderVisible:16,_hasActiveBuilderDesign:16,_showFabTooltip:16,_activeTab:16,_showDeployedCardFetchFailed:16,_globalAlerts:16,_translations:16}}static{this.styles=M}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}_openAssistant(){this._telemetry?.logEvent({category:c.ASSISTANT,action:"Open"}),this._isAssistantOpen=!0}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(l=>l.id===t.tabTitleOrId?(s=l,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let s=P(this._allCards,t.tabTitleOrId);s=s||k(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i?.filter&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._builderVisible=!1,this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}updated(t){this._fixTabpanelFocus(),t.has("_isAssistantOpen")&&this._setScrollbarGutters(this._isAssistantOpen?"stable":"stable both-edges"),!this._resizeObserver&&this._mainContentRef.value&&(this._resizeObserver=new ResizeObserver(e=>{for(let i of e){let s=i.contentRect.width<=800;this.isMobile!==s&&(this.isMobile=s,this._isMobileContextProvider.setValue(s))}}),this._resizeObserver.observe(this._mainContentRef.value))}_fixTabpanelFocus(){if(!this._tabpanelsFixed&&this._allTab.value){let t=[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab];Promise.all(t.map(async e=>{let i=e.value;if(i&&(await i.componentOnReady?.(),i.shadowRoot)){let s=i.shadowRoot.querySelector('[role="tabpanel"]');s&&(s.tabIndex=-1)}})).then(()=>{this._tabpanelsFixed=!0,this._setupTabpanelObserver()}).catch(()=>{this._tabpanelsFixed=!0})}}_setupTabpanelObserver(){this._tabpanelObserver||(this._tabpanelObserver=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"&&e.attributeName==="tabindex"){let i=e.target;i.getAttribute("role")==="tabpanel"&&i.tabIndex===0&&(i.tabIndex=-1)}})}),[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(t=>{let e=t.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector('[role="tabpanel"]');i&&this._tabpanelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}))}async load(){this.useLocalAppConfig&&(this.appConfig=$)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return h`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen?" assistant-open":""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing()&&h`<div class="border"></div>`||""}<solutions-searchsort-toolbar ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i)})}></solutions-searchsort-toolbar><calcite-loader class=${p(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${p(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell .assistantOpen=${this._isAssistantOpen} class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise&&h`<div class=${`builder-panel${this._builderVisible?"":" display-none"}`}><solution-builder-assistant class="height-100" ${a(this._solutionBuilderPanel)}></solution-builder-assistant></div><div class=${`assistant-panel${this._isAssistantOpen?"":" display-none"}`}><arcgis-solutions-assistant class="height-100" .builderVisible=${this._builderVisible} .hasActiveBuilderDesign=${this._hasActiveBuilderDesign}></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip??T} class=${`assistant-fab${this._isAssistantOpen?" display-none":""}`} icon=effects id=assistant-fab-button @click=${()=>{this._openAssistant(),this._showFabTooltip=!1}} scale=l></calcite-fab><calcite-tooltip class=${p(this._isAssistantOpen?"display-none":"")} .open=${this._showFabTooltip&&!this._isAssistantOpen} placement=leading reference-element=assistant-fab-button><span>${this._translations.assistantFabTooltip}</span></calcite-tooltip>`||""}</calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect(),this._tabpanelObserver?.disconnect()}_renderGlobalAlerts(){return L(this._globalAlerts,t=>t.id,t=>h`<calcite-alert .autoClose=${t.autoClose} .autoCloseDuration=${t.autoCloseDuration} .icon=${t.icon} .kind=${t.kind} .label=${t.title||""} @calciteAlertClose=${()=>this._removeGlobalAlert(t.id)} open>${t.title&&h`<div slot=title>${t.title}</div>`||""}<div slot=message>${t.message}</div></calcite-alert>`)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=y.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new m(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new m(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_setActiveTab(t){let e=t.detail.tabType,i=this._activeTab!==e;switch(this._activeTab=e,i&&this._logTabViewTelemetry(e),e){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}this._builderVisible=!1,e!=="details"&&e!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e),this._emitMetaTagStrings(e))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=c.ALL_SOLUTIONS;break;case"deployments":i=c.DEPLOYMENTS;break;case"resources":i=c.RESOURCES;break;case"details":i=c.SOLUTION_DETAILS;break;case"deployed-card":i=c.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let n=e;s.push(n.title||""),s.push(n.deployCommonId||""),s.push(n.deployVersion||"")}let l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,dimensions:s.length>0?s:void 0})}}_emitMetaTagStrings(t,e){let i="",s="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,s=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,s=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,s=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),s=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:s,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_solutionBuilderSelected(t){t?.detail&&(this._builderVisible=!0,this._hasActiveBuilderDesign=!0,this._builderDesignContextProvider.value={design:t.detail,updateDesign:e=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:e}},isBuilderVisible:!0,setBuilderVisible:e=>{this._builderVisible=e,this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:e}}})}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}_handleShowGlobalAlert(t){let e=t.detail,i=e.id||`alert-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;this._globalAlerts=[...this._globalAlerts,{...e,id:i}]}_removeGlobalAlert(t){this._globalAlerts=this._globalAlerts.filter(e=>e.id!==t)}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];this._abortController?(this._abortController.abort(),this._abortController=new AbortController):this._abortController=new AbortController;let i=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let s=x(e);try{let l=await B(e,i,this._cardsFetcher,this._cardFetcherDeployed,F,"created","desc",!1,[],[],this._abortControllerDeployed.signal,s?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let n=l.message;n.indexOf("CONT_0001")>-1||n.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):n.indexOf("GWM_0003")>-1||n.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(l)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry==="AEC"?I.AEC:t.industry,l=t.offerType,n=t.searchTerm,E="",r=t.sortField,b=t.owner,_=t.filter;r==="suggested"&&!this.authentication?.IsSignedIn&&(r=this.sortType),e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),n&&(e=e?{...e,searchTerm:n}:{searchTerm:n}),e&&(e={...e,displayValue:E}),r&&(e=e?{...e,sortType:r}:{sortType:r}),l&&(r=l.toLowerCase(),e=e?{...e,sortType:r}:{sortType:r}),b&&(e=e?{...e,owner:b}:{owner:b}),_&&(e=e?{...e,filter:_}:{filter:_})}return e}_setScrollbarGutters(t="stable both-edges"){[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(e=>{let i=e.value?.shadowRoot?.firstElementChild;i?.style&&(i.style.scrollbarGutter=t)})}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),s=(e.Credential?.expires-i)*.95;setInterval(async()=>{if(e.Credential&&e.Credential.expires){await e.Credential?.refreshToken();let l=new Date(e.Credential.expires);t.updateToken(e.Credential.token,l),this.sessionRefreshed.emit(t.token)}},s)}}};C("solutions-deploy-app",g);return g},"identity/IdentityManager","identity/OAuthInfo","portal/Portal","intl",b,c,e,g,i,j,k,l,m,n,q,r,s,t,x)
|
package/dist/cdn/PJ43TSSJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as u}from"./2B4SGB3I.js";import{b as m}from"./YKQDHR27.js";import{a as h}from"./R67EKKSL.js";import{b as p}from"./KIUBUHVM.js";import{G as d,h as r,i as o,l as c,q as l}from"./H5E6ISYP.js";var y=r`:host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-brand)}`,a=class extends d{constructor(){super(...arguments),this.itemRelationshipDependencies=[],this.linkType="item",this.listSelectionMode="none",this.reuseWarning="",this.templateInfos=[],this.typeKeywords=[],this.usageContext="content",this._canDeletePermission=!1,this._sortedTemplateInfos=[],this._translations=h({name:"solution-item-accordion",blocking:!0}),this._configContextConsumer=m({context:u,subscribe:!0}),this._sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic (hosted)","Real Time Analytic (hosted)","Feed (hosted)","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Table (hosted, view)","Table (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"],this.solutionItemHover=l(),this.solutionItemSelect=l(),this.solutionTypeHover=l()}static{this.properties={itemRelationshipDependencies:0,linkType:1,listSelectionMode:1,reuseWarning:1,templateInfos:0,typeKeywords:0,usageContext:1,_canDeletePermission:16,_sortedTemplateInfos:16,_translations:16}}static{this.styles=y}willUpdate(e){e.has("templateInfos")&&(this.hasUpdated||this.templateInfos?.length>0)&&this.templateInfosWatchHandler()}async templateInfosWatchHandler(){this._sortedTemplateInfos=this._sortTemplates()}async collapseAll(){this.el?.shadowRoot?.querySelectorAll("calcite-accordion-item")?.forEach(e=>{e.expanded=!1})}async deselectAll(e=!1){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.selected&&(t.selected=!1),e&&(t.parentElement?.parentElement).expanded&&((t.parentElement?.parentElement).expanded=!1)})}async expandItemById(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&((t.parentElement?.parentElement).expanded=!0)})}async expandFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&((e[0].parentElement?.parentElement).expanded=!0)}async expandItems(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&((t.parentElement?.parentElement).expanded=!0)})}async selectItem(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async selectFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&(e[0].selected=!0,(e[0].parentElement?.parentElement).expanded=!0)}async selectItems(e){this.listSelectionMode==="multiple"&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async load(){this._sortedTemplateInfos=this._sortTemplates(),this._canDeletePermission=(this._configContextConsumer.value?.authentication?.CanDeleteSolution&&this._configContextConsumer.value?.authentication?.CanUpdateSolution)??!1}render(){return this._getAccordion()}_deselectOthers(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id!==e&&(t.selected=!1)})}_getAccordion(){let e=[],t=this._sortedTemplateInfos.reduce((i,n)=>{let s=this._getTypeForDisplay(n.type,n.typeKeywords);return e.indexOf(s)<0&&(e.push(s),i.push(this._getAccordionItem(n))),i},[]);return o`<calcite-accordion class="border-override" selection-mode=single>${t}</calcite-accordion>`}_getAccordionItem(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords),i=this._sortedTemplateInfos.filter(n=>this._getTypeForDisplay(n.type,n.typeKeywords)===t);return o`<calcite-accordion-item .heading=${`${t} (${i.length})`} @mouseenter=${()=>this.solutionTypeHover.emit({itemType:t,entering:!0})} @mouseleave=${()=>this.solutionTypeHover.emit({itemType:t,entering:!1})}><solution-item-icon class="padding-start-1 display-flex align-center" slot=actions-start .type=${e.type} .typeKeywords=${e.typeKeywords}></solution-item-icon>${this._getList(i)}</calcite-accordion-item>`}_getList(e){let t=this._sortTemplatesByTitle(e);return o`<calcite-list .label=${this._translations.solutionsTemplates} selection-appearance=border .selectionMode=${this.listSelectionMode}>${t.map(i=>this._getListItem(i))}</calcite-list>`}_getListItem(e){let t=this.typeKeywords.includes("Deployed")&&e.url,i=this.linkType==="action";return o`<calcite-list-item id=${e.id??c} @mouseenter=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!0})} @mouseleave=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!1})} @calciteListItemSelect=${()=>{this._deselectOthers(e.id),this.solutionItemSelect.emit({itemId:e.id,selected:!0}),t&&!i&&window.open(e.url,"_blank")}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${t&&!i?"underline":""}`}>${e.title}</div><div class="solution-list-item-description">${e.snippet}</div></div>${this._checkUsageForWarnings(e)}${t&&i?o`<div slot=actions-end><calcite-action icon=launch .id=${`${e.id}-launch`} @click=${()=>window.open(e.url,"_blank")} text></calcite-action><calcite-tooltip overlay-positioning=fixed .referenceElement=${`${e.id}-launch`}><span>${this._translations?.openDetails}</span></calcite-tooltip></div>`:null}</calcite-list-item>`}_sortTemplatesByTitle(e){return e.sort((t,i)=>t.title<i.title?-1:t.title>i.title?1:0)}_sortTemplates(){return this.templateInfos.sort((e,t)=>{let i=this._getTypeForSort(e),n=this._getTypeForSort(t),s=this._sortOrder.indexOf(i),g=this._sortOrder.indexOf(n);return s-g})}_getTypeForSort(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords);return this._sortOrder.indexOf(t)<0&&(t="TypeNotFound"),t}_getTypeForDisplay(e,t){let i=e;if(e==="Feature Service"){let n=t.indexOf("View Service")>-1,s=t.indexOf("Table")>-1;i=n&&s?"Table (hosted, view)":s?"Table (hosted)":n?"Feature Layer (hosted, view)":"Feature Layer (hosted)"}return e==="Web Mapping Application"&&(i=t.indexOf("configurableApp")>-1?"Instant App":i),i=e==="Geoprocessing Service"?"Tool":i,i=e==="Feed"?"Feed (hosted)":i,i=e==="Real Time Analytic"?"Real Time Analytic (hosted)":i,i=e==="Big Data Analytic"?"Big Data Analytic (hosted)":i,i=e==="Vector Tile Service"?"Tile Layer":i,i}_getWarningChip(e,t){return o`<calcite-chip .icon=${t==="info"?"information":"exclamation-mark-triangle"} kind=neutral .label=${e} scale=s slot=actions-end>${e}</calcite-chip>`}_checkUsageForWarnings(e){let t=this._configContextConsumer.value?.userSession?.username??null,i=this.itemRelationshipDependencies.some(n=>n===e.id);if(this.usageContext==="content"&&i&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info");if(this.usageContext==="rename"){let n=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1;if(e.owner!==t)if(n){if(i&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info")}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn");else if(i&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info")}if(this.usageContext==="delete"){if(e.owner!==t){if(this._canDeletePermission)return i?this._getWarningChip(this._translations?.differentOwnerDeleteWarning||"","info"):this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn")}else if(i)return this._getWarningChip(this._translations?.differentOwnerDeleteWarning||"","info")}return""}};p("solution-item-accordion",a);export{a};
|
package/dist/cdn/R2G4DDRZ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import e from"./NPOHA56R.js";import c from"./ZP6VPBP4.js";import b from"./XXT542UR.js";import a from"./X5EABWHE.js";import{b as g}from"./2B4SGB3I.js";import{b as f}from"./YKQDHR27.js";import"./J75MHJID.js";import{a as u}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 m}from"./KIUBUHVM.js";import{G as h,I as p,K as o,h as n,i as t,q as d}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([{q:b},,{o:x},{f:v}])=>{var S=n`calcite-card{height:100%;padding-bottom:2px;border:2px solid transparent;transition:border-color .1s ease;box-sizing:border-box}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border-color:var(--calcite-color-brand);cursor:pointer}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`,l=class extends h{constructor(){super(...arguments),this.referrerSolutionId="",this.referrerSolutionTitle="",this.referrerSolutionVersion="",this.source="all-solutions",this._translations=u({name:"solution-details-card",blocking:!0}),this._configContextConsumer=f({context:g,subscribe:!0}),this.detailsCardSelected=d()}static{this.properties={card:0,referrerSolutionId:1,referrerSolutionTitle:1,referrerSolutionVersion:1,source:1,_translations:16}}static{this.styles=S}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){let e=v(this.card.title);return t`<a href=${e??o} @click=${this._anchorClick} tabindex=-1 .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`}_anchorClick(e){e.preventDefault()}_cardSelected(){if(this.source==="you-may-also-like"){let e=[this.referrerSolutionTitle,this.referrerSolutionId,this.referrerSolutionVersion,this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""];this._telemetry?.logEvent({category:x.SOLUTION_DETAILS,action:"Related Solution",dimensions:e})}this.detailsCardSelected.emit(this.card)}_renderChips(e){let r=e.includes("deployed"),y=e.filter(i=>i!=="deployed"),a=[];return y.forEach(i=>{let $="chip-status",c=`solution-details-card-chip-${i}`,_=i==="new"?"star":"mega-phone",s=i==="new"?this._translations.newSolution:this._translations.updated;a.push(t`<calcite-chip class=${p($)} .icon=${_} id=${c??o} .label=${s} .value=${s} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${s}</span></calcite-tooltip>`)}),r&&a.push(t`<calcite-chip class="chip-deployed" icon=check-circle id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip reference-element=solution-details-card-chip-deployed><span>${this._translations.deployed}</span></calcite-tooltip>`),a}_renderCard(){let e=this.card;return t`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${r=>b(r,()=>this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??o} class="thumbnail card-image" src=${e.thumbnailUrl??o}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips&&e.chips.length>0?t`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>`:void 0}<div slot=footer-start></div></calcite-card>`}};m("solution-details-card",l);return l},a,b,c,e)
|
package/dist/cdn/RTFBOXOK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import f from"./JBFDURMG.js";import"./QPNIPE5H.js";import e from"./JC5EXPFH.js";import d from"./NSJAGP7T.js";import"./ZYCAAXQF.js";import"./O3O4EPB6.js";import c from"./ZP6VPBP4.js";import b from"./XXT542UR.js";import a from"./X5EABWHE.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,f)
|
package/dist/cdn/SN4D24TK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import h from"./XAW6KPKL.js";import{c as _}from"./ZYCAAXQF.js";import e from"./ZP6VPBP4.js";import d from"./XXT542UR.js";import a from"./X5EABWHE.js";import{b as v}from"./2B4SGB3I.js";import{b as T}from"./YKQDHR27.js";import{sb as S,ta as C,tb as $,ub as b}from"./J75MHJID.js";import{a as D}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 I}from"./KIUBUHVM.js";import{E as m,F as f,G as y,I as u,h as g,i as r,q as c}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{m:V,o:w},{a:P}])=>{var N=g`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.font-style-1{font-size:1rem;color:var(--calcite-color-text-2)}.margin-top-0{margin-top:0}.padding-top-20{padding-top:20px}.padding-bottom-2{padding-bottom:2rem}.padding-left-2{padding-left:2rem}.padding-right-2{padding-right:2rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`,x=class extends y{constructor(){super(...arguments),this.open=!1,this.source="Card Dropdown",this.solutionData={},this.templateInfos=[],this._saveDisabled=!1,this._displayTemplateInfos=[],this._hasNameLengthError=!1,this._nonSolutionDependencyItems=[],this._solutionItemsTitlesUpdating=!1,this._translations=D({name:"solution-configure-titles",blocking:!0}),this._configContextConsumer=T({context:v,subscribe:!0}),this._defaultPrefix="",this._defaultSuffix="",this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1,this._prefixRef=m(),this._prefixValue="",this._suffixRef=m(),this._suffixValue="",this._templateInfos=[],this._originalTitles=[],this.solutionConfigureTitlesBeforeClose=c(),this.solutionItemsTitlesChanged=c()}static{this.properties={card:0,open:5,source:1,solutionData:1,templateInfos:0,_saveDisabled:16,_displayTemplateInfos:16,_hasNameLengthError:16,_nonSolutionDependencyItems:16,_solutionItemsTitlesUpdating:16,_translations:16}}static{this.styles=N}async willUpdate(i){if(i.has("templateInfos")&&(this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._updateTemplates()),i.has("open")){let t=i.get("open");if(this.open&&!t){await this._updatePrefixSuffix(),this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._originalTitles=this._templateInfos.map(s=>({id:s.id,title:s.title})),this._updateTemplates();let e=await P(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=e._nonSolutionDependencyItems,await this._accordionRef?.expandFirstItem()}}}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async load(){this._updateTemplates(),await this._updatePrefixSuffix()}async _updatePrefixSuffix(){this.solutionData=await C(this.card.id,this._configContextConsumer.value.userSession),this.solutionData.titles?.prefix&&(this._loadingDefaultPrefix=!0,this._defaultPrefix=this.solutionData.titles.prefix,this._prefixValue=this.solutionData.titles.prefix),this.solutionData.titles?.suffix&&(this._loadingDefaultSuffix=!0,this._defaultSuffix=this.solutionData.titles.suffix,this._suffixValue=this.solutionData.titles.suffix)}render(){return r`<calcite-dialog .heading=${this.card.title} modal @calciteDialogBeforeClose=${()=>{this.solutionConfigureTitlesBeforeClose.emit()}} .open=${this.open} outside-close-disabled width=l>${this._getPrefixSuffixControls()}${this._getAccordion()}${this._getDialogButtons()}</calcite-dialog>`}_getPrefixSuffixControls(){let i=_(this._prefixValue),t=this._hasNameLengthError&&this._prefixValue.length>0,e=i.errorType!=="special-character",s=!t,n=e?"display-none":"",h=s?"display-none":"",a=e&&s?"valid":"invalid",l=_(this._suffixValue),o=this._hasNameLengthError&&this._suffixValue.length>0,p=l.errorType!=="special-character",d=!o,E=p?"display-none":"",W=d?"display-none":"",k=p&&d?"valid":"invalid";return this._saveDisabled=!e||!s||!p||!d||!this._hasChanges(),r`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-top-20"><calcite-label scale=l class="font-weight-medium"><span tabindex=0>${this._translations.configureTitlesDialogHeader}</span></calcite-label><p class="font-style-1 margin-top-0" tabindex=0>${this._translations.addPrefixOrSuffixToItems}</p><div class="display-flex flex-direction-row justify-content-space"><calcite-label class="width-full padding-end-1" scale=l>${this._translations.prefixToAddToItems}<calcite-input clearable @blur=${this._prefixInput} @input=${this._prefixInput} .placeholder=${this._translations.enterPrefixPlaceholder} .status=${a} .value=${this._prefixValue} ${f(this._prefixRef)}></calcite-input><calcite-input-message class=${u(n)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${u(h)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label><calcite-label class="width-full" scale=l>${this._translations.suffixToAddToItems}<calcite-input clearable @blur=${this._suffixInput} @input=${this._suffixInput} .placeholder=${this._translations.enterSuffixPlaceholder} .status=${k} .value=${this._suffixValue} ${f(this._suffixRef)}></calcite-input><calcite-input-message class=${u(E)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${u(W)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label></div></div>`}_getAccordion(){let i=[...new Set(this._nonSolutionDependencyItems.map(t=>t.controlItemId))];return r`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-bottom-2"><p class="font-style-1 margin-top-0">${this._translations.previewTheChanges}</p><solution-item-accordion .itemRelationshipDependencies=${i} list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReuseWarning} .templateInfos=${this._displayTemplateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=rename ${f(async t=>{t&&(this._accordionRef=t)})}></solution-item-accordion></div>`}_getDialogButtons(){return r`<div slot=footer-end><calcite-button appearance=outline class="padding-end-1-2" kind=brand @click=${this._closeDialog}>${this._translations.cancelTheDialog}</calcite-button><calcite-button .disabled=${this._saveDisabled} kind=brand .loading=${this._solutionItemsTitlesUpdating} @click=${this._commitNameChanges}>${this._translations.applyChangesAndCloseTheDialog}</calcite-button></div>`}_prefixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._prefixValue=this._prefixRef.value?.value||"",this._updateTemplates()},500)}_suffixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._suffixValue=this._suffixRef.value?.value||"",this._updateTemplates()},500)}_updateTemplates(){this._templateInfos=this._templateInfos.map(t=>(this._loadingDefaultPrefix&&t.title.startsWith(this._prefixValue)&&(t.title=this._replaceStart(t.title,this._prefixValue,"")),this._loadingDefaultSuffix&&t.title.endsWith(this._suffixValue)&&(t.title=this._replaceAtEnd(t.title,this._suffixValue,"")),t));let i=JSON.parse(JSON.stringify(this._templateInfos));this._hasNameLengthError=!1,this._displayTemplateInfos=i.map(t=>{let e=this._prefixValue!=="",s=this._suffixValue!=="",n=this._defaultPrefix!=="",h=this._defaultSuffix!=="",a=t.title;e&&(n?this._originalTitles.find(o=>o.id===t.id)?.title.startsWith(this._defaultPrefix)?a=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue):this._prefixValue!==this._defaultPrefix&&(a=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue)):a=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue));let l=a;return s&&(h?this._originalTitles.find(o=>o.id===t.id)?.title.endsWith(this._defaultSuffix)?l=this._applySuffixWithDuplicateCheck(a,this._suffixValue):this._suffixValue!==this._defaultSuffix&&(l=this._applySuffixWithDuplicateCheck(a,this._suffixValue)):l=this._applySuffixWithDuplicateCheck(a,this._suffixValue)),t.title=l,this._hasNameLengthError||(this._hasNameLengthError=t.title.length>V),t}),this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1}_replaceStart(i,t,e){return i.startsWith(t)?`${e}${i.slice(t.length)}`:i}_replaceAtEnd(i,t,e){return i.endsWith(t)?`${i.substring(0,i.length-t.length)}${e}`:i}_applyPrefixWithDuplicateCheck(i,t){return!t||i.startsWith(t)?i:t+i}_applySuffixWithDuplicateCheck(i,t){return!t||i.endsWith(t)?i:i+t}_hasChanges(){let i=this._defaultPrefix!==this._prefixValue,t=this._defaultSuffix!==this._suffixValue;return this._displayTemplateInfos.some(e=>{let s=this._originalTitles.find(n=>n.id===e.id);return s&&s.title!==e.title})||i||t}_closeDialog(){this.open=!1}async _commitNameChanges(){if(this._hasChanges()){this._telemetry?.logEvent({category:w.DEPLOYMENTS,action:"Rename Items",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._solutionItemsTitlesUpdating=!0;let i=this._displayTemplateInfos.reduce((t,e)=>{let s={id:e.id,title:e.title};return t.push(e.type==="Group"?$(s,this._configContextConsumer.value.userSession):S(s,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner})),t},[]);if(this.solutionData?.templates){let t={id:this.card.id},e={...this.solutionData,titles:{prefix:this._prefixValue,suffix:this._suffixValue}};i.push(b(t,e,this._configContextConsumer.value.userSession,void 0,void 0,null,this.card?.owner))}await Promise.all(i),this._solutionItemsTitlesUpdating=!1,this.solutionItemsTitlesChanged.emit()}this._closeDialog()}};I("solution-configure-titles",x);return x},a,d,e,h)
|