@esri/solutions-components 5.1.0-next.94 → 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/2ID55IJB.js +2 -0
- package/dist/cdn/2SGR44DX.js +2 -0
- package/dist/cdn/{C4UB6MNN.js → 3J47AYBV.js} +97 -97
- package/dist/cdn/{VOF34LDF.js → 4B7NJE47.js} +1 -1
- package/dist/cdn/{YVDSW2OQ.js → 5LTIZSXG.js} +1 -1
- 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/{JQXKQHAG.js → DI7PQSFH.js} +1 -1
- package/dist/cdn/FVXS4LF5.js +2 -0
- 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/{LUZYJVG5.js → KYFNXHOH.js} +1 -1
- package/dist/cdn/{NXL2QN3P.js → R3MCMOLS.js} +1 -1
- package/dist/cdn/R4VHCXKS.js +2 -0
- package/dist/cdn/{5Z45KDQY.js → UHPN75WT.js} +1 -1
- package/dist/cdn/VESARS2D.js +7 -0
- package/dist/cdn/{D4GI6KPZ.js → WVRKV5SS.js} +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.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.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 +82 -86
- package/dist/chunks/get.js +387 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +5766 -5676
- package/dist/components/consent-manager/customElement.js +609 -638
- package/dist/components/solution-configure-titles/customElement.js +31 -28
- package/dist/components/solution-delete-dialog/customElement.js +57 -54
- 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 +3 -2
- package/dist/components/solution-item-accordion/customElement.js +52 -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 +3 -2
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/lumina.d.ts +6 -0
- package/dist/types/preact.d.ts +7 -0
- package/dist/types/react.d.ts +8 -0
- package/dist/types/stencil.d.ts +6 -0
- package/dist/utils/getRelatedInfos.d.ts +4 -0
- package/dist/utils/interfaces.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/2L3RREZ4.js +0 -2
- package/dist/cdn/2WHAF4H7.js +0 -2
- package/dist/cdn/AKKTG2RD.js +0 -2
- package/dist/cdn/DLH53PYM.js +0 -7
- package/dist/cdn/P24CZ4HM.js +0 -2
- package/dist/cdn/R2G4DDRZ.js +0 -2
- package/dist/cdn/SO3S3WP4.js +0 -2
- package/dist/cdn/UBLDT5XD.js +0 -2
- package/dist/cdn/ZONXYZVU.js +0 -2
- package/dist/chunks/get-portal-url.js +0 -345
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ import type { SolutionsAllPanel } from "./components/solutions-all-panel/customE
|
|
|
82
82
|
import type { SolutionsAllShell } from "./components/solutions-all-shell/customElement.js";
|
|
83
83
|
import type { SolutionsDeployApp } from "./components/solutions-deploy-app/customElement.js";
|
|
84
84
|
import type { SolutionsDeployAppNav } from "./components/solutions-deploy-app-nav/customElement.js";
|
|
85
|
+
import type { SolutionsDeployedList } from "./components/solutions-deployed-list/customElement.js";
|
|
85
86
|
import type { SolutionsDeployedPanel } from "./components/solutions-deployed-panel/customElement.js";
|
|
86
87
|
import type { SolutionsDeployedShell } from "./components/solutions-deployed-shell/customElement.js";
|
|
87
88
|
import type { SolutionsFilterPanel } from "./components/solutions-filter-panel/customElement.js";
|
|
@@ -301,6 +302,11 @@ export interface SolutionsDeployAppNavCustomEvent<T> extends CustomEvent<T> {
|
|
|
301
302
|
target: SolutionsDeployAppNav;
|
|
302
303
|
currentTarget: SolutionsDeployAppNav;
|
|
303
304
|
}
|
|
305
|
+
export interface SolutionsDeployedListCustomEvent<T> extends CustomEvent<T> {
|
|
306
|
+
detail: T;
|
|
307
|
+
target: SolutionsDeployedList;
|
|
308
|
+
currentTarget: SolutionsDeployedList;
|
|
309
|
+
}
|
|
304
310
|
export interface SolutionsDeployedPanelCustomEvent<T> extends CustomEvent<T> {
|
|
305
311
|
detail: T;
|
|
306
312
|
target: SolutionsDeployedPanel;
|
|
@@ -385,6 +391,7 @@ declare global {
|
|
|
385
391
|
"solutions-all-shell": SolutionsAllShell;
|
|
386
392
|
"solutions-deploy-app": SolutionsDeployApp;
|
|
387
393
|
"solutions-deploy-app-nav": SolutionsDeployAppNav;
|
|
394
|
+
"solutions-deployed-list": SolutionsDeployedList;
|
|
388
395
|
"solutions-deployed-panel": SolutionsDeployedPanel;
|
|
389
396
|
"solutions-deployed-shell": SolutionsDeployedShell;
|
|
390
397
|
"solutions-filter-panel": SolutionsFilterPanel;
|
|
@@ -546,6 +553,9 @@ declare global {
|
|
|
546
553
|
type HTMLSolutionsDeployAppNavElementEventMap = SolutionsDeployAppNav["@eventTypes"];
|
|
547
554
|
type HTMLSolutionsDeployAppNavElement = SolutionsDeployAppNav;
|
|
548
555
|
|
|
556
|
+
type HTMLSolutionsDeployedListElementEventMap = SolutionsDeployedList["@eventTypes"];
|
|
557
|
+
type HTMLSolutionsDeployedListElement = SolutionsDeployedList;
|
|
558
|
+
|
|
549
559
|
type HTMLSolutionsDeployedPanelElementEventMap = SolutionsDeployedPanel["@eventTypes"];
|
|
550
560
|
type HTMLSolutionsDeployedPanelElement = SolutionsDeployedPanel;
|
|
551
561
|
|
package/dist/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { r as e } from "./chunks/runtime.js";
|
|
3
3
|
import { makeDefineCustomElements as a } from "@arcgis/lumina";
|
|
4
|
-
const
|
|
4
|
+
const l = a(e, {
|
|
5
5
|
"arcgis-solutions-assistant": [() => import("./components/arcgis-solutions-assistant/customElement.js"), "_translations:,builderVisible,hasActiveBuilderDesign,open,userFirstName"],
|
|
6
6
|
"buffer-tools": [() => import("./components/buffer-tools/customElement.js"), "_translations:,appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],
|
|
7
7
|
"card-manager": [() => import("./components/card-manager/customElement.js"), "_translations:,createBtnLabel,customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layerOrTable:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,showSketchWidgets,zoomAndScrollToSelected"],
|
|
@@ -57,6 +57,7 @@ const n = a(e, {
|
|
|
57
57
|
"solutions-all-shell": [() => import("./components/solutions-all-shell/customElement.js"), "_translations:,solutionsCount;searchSolutions"],
|
|
58
58
|
"solutions-deploy-app": [() => import("./components/solutions-deploy-app/customElement.js"), "_translations:,appConfig,initTab,initTitleOrId,loadExampleBuilderData,sortType,useLocalAppConfig;selectTab"],
|
|
59
59
|
"solutions-deploy-app-nav": [() => import("./components/solutions-deploy-app-nav/customElement.js"), "_translations:,appConfig,assistantOpen,initTab;;activateMenuItem,clearMenuItems"],
|
|
60
|
+
"solutions-deployed-list": [() => import("./components/solutions-deployed-list/customElement.js"), "_translations:,cards:,listTitle"],
|
|
60
61
|
"solutions-deployed-panel": [() => import("./components/solutions-deployed-panel/customElement.js"), "_translations:,sortType;reload,searchSolutions,setSearchOptions"],
|
|
61
62
|
"solutions-deployed-shell": [() => import("./components/solutions-deployed-shell/customElement.js"), "_translations:,solutionsCount;searchSolutions"],
|
|
62
63
|
"solutions-filter-panel": [() => import("./components/solutions-filter-panel/customElement.js"), "_translations:,hideIndustryFilter,showReset;;changeIndustryFilter,clearFilters"],
|
|
@@ -65,5 +66,5 @@ const n = a(e, {
|
|
|
65
66
|
"solutions-searchsort-toolbar": [() => import("./components/solutions-searchsort-toolbar/customElement.js"), "_translations:,defaultSortType,isOrgSolutions,scope;;changeOwnerFilter,changeSearchFilter,sortChanged"]
|
|
66
67
|
});
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
l as defineCustomElements
|
|
69
70
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Built 04/
|
|
1
|
+
Built 04/23/2026 19:48:00.58
|
|
2
2
|
develop
|
|
3
|
-
commit
|
|
4
|
-
Merge:
|
|
5
|
-
Author:
|
|
6
|
-
Date:
|
|
3
|
+
commit b295d977ec35387031304310562dfa1f38d03dd9
|
|
4
|
+
Merge: 09a9f0905 da7bd5b2f
|
|
5
|
+
Author: Previn Wong <pwong@esri.com>
|
|
6
|
+
Date: Thu Apr 23 16:57:10 2026 -0700
|
|
7
7
|
|
|
8
|
-
Merge pull request #
|
|
8
|
+
Merge pull request #2308 from Esri/prev8048-accordion-chips
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
forgot an import
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ import type { SolutionsAllPanel } from "../components/solutions-all-panel/custom
|
|
|
54
54
|
import type { SolutionsAllShell } from "../components/solutions-all-shell/customElement.js";
|
|
55
55
|
import type { SolutionsDeployApp } from "../components/solutions-deploy-app/customElement.js";
|
|
56
56
|
import type { SolutionsDeployAppNav } from "../components/solutions-deploy-app-nav/customElement.js";
|
|
57
|
+
import type { SolutionsDeployedList } from "../components/solutions-deployed-list/customElement.js";
|
|
57
58
|
import type { SolutionsDeployedPanel } from "../components/solutions-deployed-panel/customElement.js";
|
|
58
59
|
import type { SolutionsDeployedShell } from "../components/solutions-deployed-shell/customElement.js";
|
|
59
60
|
import type { SolutionsFilterPanel } from "../components/solutions-filter-panel/customElement.js";
|
|
@@ -347,6 +348,10 @@ interface LuminaSolutionsDeployAppNav extends Partial<Pick<SolutionsDeployAppNav
|
|
|
347
348
|
ontokenRefreshed?: EventHandler<SolutionsDeployAppNav["tokenRefreshed"]>;
|
|
348
349
|
}
|
|
349
350
|
|
|
351
|
+
interface LuminaSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "listTitle">>, h.JSX.HTMLAttributes<SolutionsDeployedList> {
|
|
352
|
+
ondeployedCardsClicked?: EventHandler<SolutionsDeployedList["deployedCardsClicked"]>;
|
|
353
|
+
}
|
|
354
|
+
|
|
350
355
|
interface LuminaSolutionsDeployedPanel extends Partial<Pick<SolutionsDeployedPanel, "sortType">>, h.JSX.HTMLAttributes<SolutionsDeployedPanel> {
|
|
351
356
|
ondeployedCardsFetched?: EventHandler<SolutionsDeployedPanel["deployedCardsFetched"]>;
|
|
352
357
|
onsearchTermSet?: EventHandler<SolutionsDeployedPanel["searchTermSet"]>;
|
|
@@ -436,6 +441,7 @@ declare module "@arcgis/lumina" {
|
|
|
436
441
|
"solutions-all-shell": LuminaSolutionsAllShell;
|
|
437
442
|
"solutions-deploy-app": LuminaSolutionsDeployApp;
|
|
438
443
|
"solutions-deploy-app-nav": LuminaSolutionsDeployAppNav;
|
|
444
|
+
"solutions-deployed-list": LuminaSolutionsDeployedList;
|
|
439
445
|
"solutions-deployed-panel": LuminaSolutionsDeployedPanel;
|
|
440
446
|
"solutions-deployed-shell": LuminaSolutionsDeployedShell;
|
|
441
447
|
"solutions-filter-panel": LuminaSolutionsFilterPanel;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ import type { SolutionsAllPanel } from "../components/solutions-all-panel/custom
|
|
|
54
54
|
import type { SolutionsAllShell } from "../components/solutions-all-shell/customElement.js";
|
|
55
55
|
import type { SolutionsDeployApp } from "../components/solutions-deploy-app/customElement.js";
|
|
56
56
|
import type { SolutionsDeployAppNav } from "../components/solutions-deploy-app-nav/customElement.js";
|
|
57
|
+
import type { SolutionsDeployedList } from "../components/solutions-deployed-list/customElement.js";
|
|
57
58
|
import type { SolutionsDeployedPanel } from "../components/solutions-deployed-panel/customElement.js";
|
|
58
59
|
import type { SolutionsDeployedShell } from "../components/solutions-deployed-shell/customElement.js";
|
|
59
60
|
import type { SolutionsFilterPanel } from "../components/solutions-filter-panel/customElement.js";
|
|
@@ -348,6 +349,10 @@ interface PreactSolutionsDeployAppNav extends Partial<Pick<SolutionsDeployAppNav
|
|
|
348
349
|
ontokenRefreshed?: EventHandler<SolutionsDeployAppNav["tokenRefreshed"]>;
|
|
349
350
|
}
|
|
350
351
|
|
|
352
|
+
interface PreactSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "listTitle">>, HTMLAttributes<SolutionsDeployedList> {
|
|
353
|
+
ondeployedCardsClicked?: EventHandler<SolutionsDeployedList["deployedCardsClicked"]>;
|
|
354
|
+
}
|
|
355
|
+
|
|
351
356
|
interface PreactSolutionsDeployedPanel extends Partial<Pick<SolutionsDeployedPanel, "sortType">>, HTMLAttributes<SolutionsDeployedPanel> {
|
|
352
357
|
ondeployedCardsFetched?: EventHandler<SolutionsDeployedPanel["deployedCardsFetched"]>;
|
|
353
358
|
onsearchTermSet?: EventHandler<SolutionsDeployedPanel["searchTermSet"]>;
|
|
@@ -437,6 +442,7 @@ declare module 'preact' {
|
|
|
437
442
|
"solutions-all-shell": PreactSolutionsAllShell;
|
|
438
443
|
"solutions-deploy-app": PreactSolutionsDeployApp;
|
|
439
444
|
"solutions-deploy-app-nav": PreactSolutionsDeployAppNav;
|
|
445
|
+
"solutions-deployed-list": PreactSolutionsDeployedList;
|
|
440
446
|
"solutions-deployed-panel": PreactSolutionsDeployedPanel;
|
|
441
447
|
"solutions-deployed-shell": PreactSolutionsDeployedShell;
|
|
442
448
|
"solutions-filter-panel": PreactSolutionsFilterPanel;
|
|
@@ -502,6 +508,7 @@ declare module 'preact' {
|
|
|
502
508
|
"solutions-all-shell": PreactSolutionsAllShell;
|
|
503
509
|
"solutions-deploy-app": PreactSolutionsDeployApp;
|
|
504
510
|
"solutions-deploy-app-nav": PreactSolutionsDeployAppNav;
|
|
511
|
+
"solutions-deployed-list": PreactSolutionsDeployedList;
|
|
505
512
|
"solutions-deployed-panel": PreactSolutionsDeployedPanel;
|
|
506
513
|
"solutions-deployed-shell": PreactSolutionsDeployedShell;
|
|
507
514
|
"solutions-filter-panel": PreactSolutionsFilterPanel;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ import type { SolutionsAllPanel } from "../components/solutions-all-panel/custom
|
|
|
54
54
|
import type { SolutionsAllShell } from "../components/solutions-all-shell/customElement.js";
|
|
55
55
|
import type { SolutionsDeployApp } from "../components/solutions-deploy-app/customElement.js";
|
|
56
56
|
import type { SolutionsDeployAppNav } from "../components/solutions-deploy-app-nav/customElement.js";
|
|
57
|
+
import type { SolutionsDeployedList } from "../components/solutions-deployed-list/customElement.js";
|
|
57
58
|
import type { SolutionsDeployedPanel } from "../components/solutions-deployed-panel/customElement.js";
|
|
58
59
|
import type { SolutionsDeployedShell } from "../components/solutions-deployed-shell/customElement.js";
|
|
59
60
|
import type { SolutionsFilterPanel } from "../components/solutions-filter-panel/customElement.js";
|
|
@@ -348,6 +349,10 @@ interface ReactSolutionsDeployAppNav extends Partial<Pick<SolutionsDeployAppNav,
|
|
|
348
349
|
ontokenRefreshed?: EventHandler<SolutionsDeployAppNav["tokenRefreshed"]>;
|
|
349
350
|
}
|
|
350
351
|
|
|
352
|
+
interface ReactSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "listTitle">>, HTMLProps<SolutionsDeployedList> {
|
|
353
|
+
ondeployedCardsClicked?: EventHandler<SolutionsDeployedList["deployedCardsClicked"]>;
|
|
354
|
+
}
|
|
355
|
+
|
|
351
356
|
interface ReactSolutionsDeployedPanel extends Partial<Pick<SolutionsDeployedPanel, "sortType">>, HTMLProps<SolutionsDeployedPanel> {
|
|
352
357
|
ondeployedCardsFetched?: EventHandler<SolutionsDeployedPanel["deployedCardsFetched"]>;
|
|
353
358
|
onsearchTermSet?: EventHandler<SolutionsDeployedPanel["searchTermSet"]>;
|
|
@@ -437,6 +442,7 @@ declare module "react" {
|
|
|
437
442
|
"solutions-all-shell": ReactSolutionsAllShell;
|
|
438
443
|
"solutions-deploy-app": ReactSolutionsDeployApp;
|
|
439
444
|
"solutions-deploy-app-nav": ReactSolutionsDeployAppNav;
|
|
445
|
+
"solutions-deployed-list": ReactSolutionsDeployedList;
|
|
440
446
|
"solutions-deployed-panel": ReactSolutionsDeployedPanel;
|
|
441
447
|
"solutions-deployed-shell": ReactSolutionsDeployedShell;
|
|
442
448
|
"solutions-filter-panel": ReactSolutionsFilterPanel;
|
|
@@ -504,6 +510,7 @@ declare module "react/jsx-runtime" {
|
|
|
504
510
|
"solutions-all-shell": ReactSolutionsAllShell;
|
|
505
511
|
"solutions-deploy-app": ReactSolutionsDeployApp;
|
|
506
512
|
"solutions-deploy-app-nav": ReactSolutionsDeployAppNav;
|
|
513
|
+
"solutions-deployed-list": ReactSolutionsDeployedList;
|
|
507
514
|
"solutions-deployed-panel": ReactSolutionsDeployedPanel;
|
|
508
515
|
"solutions-deployed-shell": ReactSolutionsDeployedShell;
|
|
509
516
|
"solutions-filter-panel": ReactSolutionsFilterPanel;
|
|
@@ -571,6 +578,7 @@ declare module "react/jsx-dev-runtime" {
|
|
|
571
578
|
"solutions-all-shell": ReactSolutionsAllShell;
|
|
572
579
|
"solutions-deploy-app": ReactSolutionsDeployApp;
|
|
573
580
|
"solutions-deploy-app-nav": ReactSolutionsDeployAppNav;
|
|
581
|
+
"solutions-deployed-list": ReactSolutionsDeployedList;
|
|
574
582
|
"solutions-deployed-panel": ReactSolutionsDeployedPanel;
|
|
575
583
|
"solutions-deployed-shell": ReactSolutionsDeployedShell;
|
|
576
584
|
"solutions-filter-panel": ReactSolutionsFilterPanel;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ import type { SolutionsAllPanel } from "../components/solutions-all-panel/custom
|
|
|
54
54
|
import type { SolutionsAllShell } from "../components/solutions-all-shell/customElement.js";
|
|
55
55
|
import type { SolutionsDeployApp } from "../components/solutions-deploy-app/customElement.js";
|
|
56
56
|
import type { SolutionsDeployAppNav } from "../components/solutions-deploy-app-nav/customElement.js";
|
|
57
|
+
import type { SolutionsDeployedList } from "../components/solutions-deployed-list/customElement.js";
|
|
57
58
|
import type { SolutionsDeployedPanel } from "../components/solutions-deployed-panel/customElement.js";
|
|
58
59
|
import type { SolutionsDeployedShell } from "../components/solutions-deployed-shell/customElement.js";
|
|
59
60
|
import type { SolutionsFilterPanel } from "../components/solutions-filter-panel/customElement.js";
|
|
@@ -348,6 +349,10 @@ interface StencilSolutionsDeployAppNav extends Partial<Pick<SolutionsDeployAppNa
|
|
|
348
349
|
onTokenRefreshed?: EventHandler<SolutionsDeployAppNav["tokenRefreshed"]>;
|
|
349
350
|
}
|
|
350
351
|
|
|
352
|
+
interface StencilSolutionsDeployedList extends Partial<Pick<SolutionsDeployedList, "cards" | "listTitle">>, StencilJsx.HTMLAttributes<SolutionsDeployedList> {
|
|
353
|
+
onDeployedCardsClicked?: EventHandler<SolutionsDeployedList["deployedCardsClicked"]>;
|
|
354
|
+
}
|
|
355
|
+
|
|
351
356
|
interface StencilSolutionsDeployedPanel extends Partial<Pick<SolutionsDeployedPanel, "sortType">>, StencilJsx.HTMLAttributes<SolutionsDeployedPanel> {
|
|
352
357
|
onDeployedCardsFetched?: EventHandler<SolutionsDeployedPanel["deployedCardsFetched"]>;
|
|
353
358
|
onSearchTermSet?: EventHandler<SolutionsDeployedPanel["searchTermSet"]>;
|
|
@@ -435,6 +440,7 @@ interface ExposedElements {
|
|
|
435
440
|
"solutions-all-shell": StencilSolutionsAllShell;
|
|
436
441
|
"solutions-deploy-app": StencilSolutionsDeployApp;
|
|
437
442
|
"solutions-deploy-app-nav": StencilSolutionsDeployAppNav;
|
|
443
|
+
"solutions-deployed-list": StencilSolutionsDeployedList;
|
|
438
444
|
"solutions-deployed-panel": StencilSolutionsDeployedPanel;
|
|
439
445
|
"solutions-deployed-shell": StencilSolutionsDeployedShell;
|
|
440
446
|
"solutions-filter-panel": StencilSolutionsFilterPanel;
|
|
@@ -398,7 +398,7 @@ export interface ISolutionTypeHover {
|
|
|
398
398
|
entering: boolean;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
export type ChipType = "new" | "deployed" | "updated";
|
|
401
|
+
export type ChipType = "new" | "deployed" | "updated" | "deployedOlderVersion";
|
|
402
402
|
|
|
403
403
|
export type SortType = "relevance" | "title" | "new" | "updated" | "suggested" | "created";
|
|
404
404
|
|
package/package.json
CHANGED
package/dist/cdn/2L3RREZ4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a}from"./UBLDT5XD.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export{a as SolutionItemAccordion};
|
package/dist/cdn/2WHAF4H7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
function u(){return{renderer:{type:"simple",symbol:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,colorLocked:!0,anchorPoint:{x:0,y:-12.600000000000001},anchorPointUnits:"Absolute",dominantSizeAxis3D:"Y",size:7.2,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:84.3,ymax:84.3},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[83.2,32.5],[84.3,40.7],[83.8,48.9],[81.7,56.9],[78.1,64.3],[73,70.9],[66.9,76.4],[59.7,80.5],[51.9,83.2],[43.7,84.3],[35.4,83.8],[27.4,81.7],[20,78],[13.4,73],[7.9,66.8],[3.8,59.7],[1.1,51.9],[0,43.7],[.5,35.4],[2.6,27.4],[6.3,20],[11.3,13.4],[17.5,7.9],[24.7,3.8],[32.5,1.1],[39.8,.1],[47.1,.3],[54.3,1.8],[61.1,4.5],[67.4,8.4],[72.9,13.3],[77.4,19.1],[80.9,25.5],[83.2,32.5]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[242,242,242,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:"CIMClippingPath",clippingType:"Intersect",path:{rings:[[[0,0],[84.3,0],[84.3,84.3],[0,84.3],[0,0]]]}},rotation:360},{type:"CIMVectorMarker",enable:!0,anchorPoint:{x:0,y:-9},anchorPointUnits:"Absolute",dominantSizeAxis3D:"Y",size:18,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:197.7,ymax:294.7},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[98.9,0],[119.4,23.2],[139.4,49.3],[156.8,75.2],[171.2,100.8],[182.4,125.3],[190.6,148.8],[195.7,171.4],[197.7,192.9],[197.7,195.8],[197.7,200.3],[197.6,202.5],[197.5,204.8],[197.3,207.1],[197,209.4],[196.7,211.7],[196.4,214.1],[196,216.4],[195.5,218.7],[195,221.1],[194.4,223.4],[193.7,225.8],[193,228.1],[192.2,230.5],[191.4,232.8],[190.5,235.1],[189.5,237.5],[188.5,239.7],[187.4,242],[186.2,244.3],[185,246.5],[183.7,248.7],[182.4,250.9],[181,253.1],[179.5,255.2],[178,257.3],[176.4,259.4],[174.7,261.4],[173.1,263.3],[171.3,265.3],[169.5,267.2],[167.7,269],[165.8,270.8],[163.9,272.5],[161.9,274.2],[159.9,275.8],[157.8,277.4],[155.7,278.9],[153.6,280.4],[151.4,281.7],[149.2,283.1],[147,284.4],[144.8,285.6],[142.5,286.7],[140.3,287.8],[138,288.8],[135.7,289.8],[133.4,290.7],[131,291.5],[128.7,292.3],[126.4,293],[124,293.6],[121.7,294.2],[119.4,294.7],[117,295.2],[114.7,295.6],[112.4,296],[110.1,296.3],[107.8,296.5],[105.5,296.7],[103.3,296.8],[101.1,296.9],[98.8,296.9],[83.1,295.7],[67.8,292],[53.3,285.9],[39.9,277.5],[28.1,267.2],[18,255.1],[10,241.5],[4.2,226.9],[.9,211.5],[0,195.8],[.1,192.9],[2.1,171.4],[7.2,148.8],[15.4,125.3],[26.6,100.8],[41,75.2],[58.4,49.3],[78.4,23.2],[98.9,0]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[39,17,17,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0,clippingPath:{type:"CIMClippingPath",clippingType:"Intersect",path:{rings:[[[0,0],[197.7,0],[197.7,294.7],[0,294.7],[0,0]]]}},rotation:360}],haloSize:1,scaleX:1,angleAlignment:"Display",angle:360}}}}}function m(){return{renderer:{type:"simple",symbol:{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],size:10,angle:0,xoffset:0,yoffset:0,outline:{color:[0,0,0,255],width:0}}}}}var _=class d{constructor(e){this.llm_fs_lookup={},this.structure=e,this._s=this.structure?.buildSolution}static{this.TYPE_LOOKUP={point:"esriGeometryPoint",polyline:"esriGeometryPolyline",polygon:"esriGeometryPolygon"}}static{this.DRAWING_TOOL_LOOKUP={esriGeometryPoint:"esriFeatureEditToolPoint",esriGeometryPolyline:"esriFeatureEditToolLine",esriGeometryPolygon:"esriFeatureEditToolPolygon",Table:"esriFeatureEditToolNone"}}static{this.FIELD_TYPE_TO_ESRI={string:"esriFieldTypeString",integer:"esriFieldTypeInteger",double:"esriFieldTypeDouble",date:"esriFieldTypeDate",guid:"esriFieldTypeGUID",globalid:"esriFieldTypeGlobalID",oid:"esriFieldTypeOID"}}static{this.FIELD_TYPE_TO_SIMPLE=Object.fromEntries(Object.entries(d.FIELD_TYPE_TO_ESRI).map(([e,t])=>[t,e]))}dump_to_llm_template(){let e=this.structure?.buildSolution?.solution,t=Object.entries(e?.strings||{}).map(([o,r])=>({key:o,value:r.value,description:r.description})),i={title:e?.title,description:e?.description,tags:e?.tags,strings:t},s=this.structure?.buildSolution?.items,n=Object.entries(s||{}).map(([o,r])=>({id:o,title:r.title,description:r.description,type:r.type})),a=null;for(let[o,r]of Object.entries(s||{})){if(r.type!=="Feature Layer (hosted)")continue;let l=[];for(let p of r.service?.layers||[]){let c=this._get_fields(p);l.push({id:p.id,type:"",name:p.name,customFields:[],requiredFields:c,systemFields:[]})}for(let p of r.service?.tables||[]){let c=this._get_fields(p);l.push({id:p.id,type:"Table",name:p.name,customFields:[],requiredFields:c,systemFields:[]})}a={itemId:o,addLayers:r.addLayers,layers:l};break}return{solution:i,items:n,featureLayer:a??{itemId:"",addLayers:!1,layers:[]}}}_get_fields(e){let t=[];for(let i of e.fields||[])t.push({name:i.name,type:d.FIELD_TYPE_TO_SIMPLE[i.type]||i.type,alias:i.alias,description:d._get_field_description(i.description),choiceList:d._get_field_domain(i.domain)});return t}static _get_field_description(e){if(e)try{return JSON.parse(e).value||e}catch{return e}}static _get_field_domain(e){if(e)return e.codedValues?.map(t=>t.code)}apply_llm_template(e){let t=this._s.solution;if(this.llm_fs_lookup={},e.featureLayer?.itemId){this.llm_fs_lookup[e.featureLayer.itemId]={};for(let o of e.featureLayer.layers)this.llm_fs_lookup[e.featureLayer.itemId][o.id]=o}for(let[o,r]of Object.entries(this._s.items))r.type==="Feature Layer (hosted, view)"&&(this.llm_fs_lookup[o]={...this.llm_fs_lookup[r.source]});t.title=e.solution.title,t.description=e.solution.description,t.tags=e.solution.tags;let i=t.strings;for(let o of e.solution.strings)i[o.key]&&(i[o.key].value=o.value);let s={},n=new Set,a=this._s.items;for(let o of e.items){let r=a[o.id];if(r)if(r.title=o.title,r.description=o.description,r.type==="Web Map")this._apply_web_map(r);else if(r.type==="Feature Layer (hosted)"){this._apply_feature_service(r,o.id,!1);let l=new y(r).generate_data();r.data=l,s[o.id]=l}else r.type==="Feature Layer (hosted, view)"&&(this._apply_feature_service(r,o.id,!0),n.add(o.id))}for(let o of n){let r=a[o];r.data=s[r.source]}return this.structure}_apply_web_map(e){if(e.layerSources)for(let t of[...e.layers||[],...e.tables||[]]){let[i,s]=this._extract_id_and_layid(t.url),n=this.llm_fs_lookup[i]?.[s];n&&(t.title=n.name)}}_extract_id_and_layid(e){let t=e.replace(/[{}]/g,"").split("."),i=t[0],s=parseInt(t[1].replace("layer",""));return[i,s]}_apply_feature_service(e,t,i=!1){let s=e.source||t,n=this.llm_fs_lookup[s];for(let a of[...e.service.layers,...e.service.tables])this._apply_layer(a,n,i)}_apply_layer(e,t,i=!1){let s=t[e.id];if(!s||(e.name=s.name,i))return;let n=d.TYPE_LOOKUP[s.type.toLowerCase()]||s.type;n.toLowerCase()==="table"?e.type=n:e.geometryType=n,e.editFieldsInfo=this._edit_fields_info(),e.globalIdField="globalid",e.objectIdField="objectid",e.uniqueIdField={name:"objectid",isSystemMaintained:!0},e.hasAttachments=!0,this._update_relationships(e,t),this._update_fields(e,s),this._update_templates(e),this._update_drawing_info(e)}_update_relationships(e,t){let i=e.relationships||[];for(let s of i){let n=t[s.relatedTableId];n&&(s.name=n.name)}}_update_fields(e,t){let i=[],s=[[!1,t.customFields],[!0,t.requiredFields],[!0,t.systemFields]];for(let[n,a]of s)if(Array.isArray(a))for(let o of a){let r={name:o.name,alias:o.alias,type:d.FIELD_TYPE_TO_ESRI[o.type]||o.type,description:JSON.stringify({value:o.description,fieldValueType:""},null,0),domain:this._create_domain(o.choiceList,o.name),required:n};if(o.type?.toLowerCase()==="string"){let l=256;o.choiceList&&(l=Math.max(...o.choiceList.map(p=>p.length))+10),r.length=l}i.push(r)}e.fields=i}_update_templates(e){let t=d.DRAWING_TOOL_LOOKUP[e.geometryType||e.type];e.templates=[{name:e.name,description:"",drawingTool:t,prototype:{attributes:{}}}]}_update_drawing_info(e){if(e.drawingTool==="esriGeometryPoint")e.drawingInfo=m();else return}_create_domain(e,t){return e?{type:"codedValue",name:`${t}_${crypto.randomUUID().replace(/-/g,"")}`,codedValues:e.map(i=>({name:i,code:i}))}:null}_edit_fields_info(){return{creationDateField:"created_date",creatorField:"created_user",editDateField:"last_edited_date",editorField:"last_edited_user"}}},y=class{constructor(e){this.item_def=e,this.source_service_props=this.item_def.service}generate_data(){let e={layers:[],tables:[]};for(let t of this.source_service_props.layers||[]){let i={id:t.id};i.formInfo=this._generate_form_info(t),i.popupInfo=this._generate_popup_info(t),i.layerDefinition=this._generate_drawing_info(t),e.layers.push(i)}for(let t of this.source_service_props.tables||[]){let i={id:t.id};i.formInfo=this._generate_form_info(t),i.popupInfo=this._generate_popup_info(t),e.tables.push(i)}return e}_generate_form_info(e){let t=[];for(let s of e.fields){if(s.required)continue;let n={label:s.alias,type:"field",editableExpression:"expr/system/true",fieldName:s.name,inputType:this._get_input_type(s.type,s.domain,s.length)};t.push(n)}let i=e.relationships||[];for(let s of i)t.push({description:"",label:s.name,type:"relationship",displayCount:3,displayType:"list",editableExpression:"expr/system/true",orderByFields:[{field:"created_date",order:"asc"}],relationshipId:s.id,title:s.name});return{formElements:t,expressionInfos:[{expression:"false",name:"expr/system/false",returnType:"boolean",title:"False"},{expression:"true",name:"expr/system/true",returnType:"boolean",title:"True"}],title:e.name}}_generate_popup_info(e){let t=[],i=[];for(let n of e.fields)n.required||i.push({fieldName:n.name,isEditable:!0,label:n.alias,visible:!0});t.push({type:"fields",description:"",fieldInfos:i});let s=e.relationships||[];if(s.length&&e.type!=="Table")for(let n of s)t.push({type:"relationship",description:"",displayCount:3,displayType:"list",orderByFields:[{field:"created_date",order:"asc"}],relationshipId:n.id});return t.push({type:"attachments",description:"",displayType:"auto",title:""}),{popupElements:t,showLastEditInfo:!1,title:""}}_generate_drawing_info(e){return e.geometryType==="esriGeometryPoint"?{drawingInfo:u()}:{drawingInfo:{}}}_get_input_type(e,t,i){return e==="esriFieldTypeString"&&!t?{type:"text-box",maxLength:i||255,minLength:0}:e==="esriFieldTypeString"&&t?{type:"combo-box",noValueOptionLabel:"No value",showNoValueOption:!0}:["esriFieldTypeInteger","esriFieldTypeDouble"].includes(e)?{type:"text-box",minLength:0}:e==="esriFieldTypeDate"?{type:"datetime-picker",includeTime:!1}:{type:"text-box",maxLength:i||255,minLength:0}}};export{_ as a};
|
package/dist/cdn/AKKTG2RD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{c as g}from"./ZYCAAXQF.js";import i from"./XAW6KPKL.js";import e from"./ZP6VPBP4.js";import d from"./XXT542UR.js";import a from"./X5EABWHE.js";import{b as T}from"./2B4SGB3I.js";import{b as D}from"./YKQDHR27.js";import{sb as _,ta as $,tb as x,ub as b}from"./J75MHJID.js";import{a as S}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 h,G as v,I as f,h as C,i as u,q as c}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{m:w,o:P},{a:V}])=>{var N=C`*[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}`,y=class extends v{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=S({name:"solution-configure-titles",blocking:!0}),this._configContextConsumer=D({context:T,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 e=i.get("open");if(this.open&&!e){await this._updatePrefixSuffix(),this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._originalTitles=this._templateInfos.map(t=>({id:t.id,title:t.title})),this._updateTemplates();let s=await V(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=s._nonSolutionDependencyItems,await this._accordionRef?.expandFirstItem()}}}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async load(){this._updateTemplates(),await this._updatePrefixSuffix()}async _updatePrefixSuffix(){this.solutionData=await $(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 u`<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=g(this._prefixValue),e=this._hasNameLengthError&&this._prefixValue.length>0,s=i.errorType!=="special-character",t=!e,a=s?"display-none":"",n=t?"display-none":"",p=s&&t?"valid":"invalid",d=g(this._suffixValue),l=this._hasNameLengthError&&this._suffixValue.length>0,o=d.errorType!=="special-character",r=!l,E=o?"display-none":"",W=r?"display-none":"",k=o&&r?"valid":"invalid";return this._saveDisabled=!s||!t||!o||!r||!this._hasChanges(),u`<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=${p} .value=${this._prefixValue} ${h(this._prefixRef)}></calcite-input><calcite-input-message class=${f(a)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(n)} 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} ${h(this._suffixRef)}></calcite-input><calcite-input-message class=${f(E)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(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(e=>e.controlItemId))];return u`<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 ${h(async e=>{e&&(this._accordionRef=e)})}></solution-item-accordion></div>`}_getDialogButtons(){return u`<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(){let i=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1,e=this._configContextConsumer.value?.authentication?.PortalUserName;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 s=JSON.parse(JSON.stringify(this._templateInfos));this._hasNameLengthError=!1,this._displayTemplateInfos=s.map(t=>{let a=this._prefixValue!=="",n=this._suffixValue!=="",p=this._defaultPrefix!=="",d=this._defaultSuffix!=="";if(t.owner!==e&&!i)return t;let l=t.title;a&&(p?this._originalTitles.find(r=>r.id===t.id)?.title.startsWith(this._defaultPrefix)?l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue):this._prefixValue!==this._defaultPrefix&&(l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue)):l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue));let o=l;return n&&(d?this._originalTitles.find(r=>r.id===t.id)?.title.endsWith(this._defaultSuffix)?o=this._applySuffixWithDuplicateCheck(l,this._suffixValue):this._suffixValue!==this._defaultSuffix&&(o=this._applySuffixWithDuplicateCheck(l,this._suffixValue)):o=this._applySuffixWithDuplicateCheck(l,this._suffixValue)),t.title=o,this._hasNameLengthError||(this._hasNameLengthError=t.title.length>w),t}),this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1}_replaceStart(i,e,s){return i.startsWith(e)?`${s}${i.slice(e.length)}`:i}_replaceAtEnd(i,e,s){return i.endsWith(e)?`${i.substring(0,i.length-e.length)}${s}`:i}_applyPrefixWithDuplicateCheck(i,e){return!e||i.startsWith(e)?i:e+i}_applySuffixWithDuplicateCheck(i,e){return!e||i.endsWith(e)?i:i+e}_hasChanges(){let i=this._defaultPrefix!==this._prefixValue,e=this._defaultSuffix!==this._suffixValue;return this._displayTemplateInfos.some(s=>{let t=this._originalTitles.find(a=>a.id===s.id);return t&&t.title!==s.title})||i||e}_closeDialog(){this.open=!1}async _commitNameChanges(){if(this._hasChanges()){this._telemetry?.logEvent({category:P.DEPLOYMENTS,action:"Rename Items",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source]}),this._solutionItemsTitlesUpdating=!0;let i=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1,e=this._configContextConsumer.value?.authentication?.PortalUserName,s=this._displayTemplateInfos.reduce((t,a)=>{if(a.owner!==e){if(i){let n={id:a.id,title:a.title};t.push(a.type==="Group"?x(n,this._configContextConsumer.value.userSession):_(n,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner}))}}else{let n={id:a.id,title:a.title};t.push(a.type==="Group"?x(n,this._configContextConsumer.value.userSession):_(n,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner}))}return t},[]);if(this.solutionData?.templates){let t={id:this.card.id},a={...this.solutionData,titles:{prefix:this._prefixValue,suffix:this._suffixValue}};s.push(b(t,a,this._configContextConsumer.value.userSession,void 0,void 0,null,this.card?.owner))}await Promise.all(s),this._solutionItemsTitlesUpdating=!1,this.solutionItemsTitlesChanged.emit()}this._closeDialog()}};I("solution-configure-titles",y);return y},a,d,e,i)
|
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/P24CZ4HM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import i from"./XAW6KPKL.js";import"./UBLDT5XD.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/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)
|