@adobe/alloy 2.29.0-beta.5 → 2.29.0
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/libEs5/components/ActivityCollector/utils/dom/findClickableElement.js +4 -0
- package/libEs5/components/Advertising/handlers/clickThroughHandler.js +2 -1
- package/libEs5/components/Advertising/handlers/onBeforeSendEventHandler.js +8 -3
- package/libEs5/components/Advertising/handlers/viewThroughHandler.js +2 -1
- package/libEs5/components/Advertising/identities/collectID5Id.js +1 -1
- package/libEs5/components/Advertising/identities/collectRampId.js +1 -1
- package/libEs5/components/Consent/createConsentRequestPayload.js +14 -3
- package/libEs5/components/Consent/types.js +18 -0
- package/libEs5/components/Personalization/dom-actions/action.js +7 -4
- package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +10 -10
- package/libEs5/components/PushNotifications/helpers/getPushSubscriptionDetails.js +116 -0
- package/libEs5/components/PushNotifications/index.js +96 -0
- package/libEs5/components/PushNotifications/request/createSendPushSubscriptionPayload.js +62 -0
- package/libEs5/components/PushNotifications/request/createSendPushSubscriptionRequest.js +35 -0
- package/libEs5/components/PushNotifications/request/makeSendPushSubscriptionRequest.js +88 -0
- package/libEs5/components/PushNotifications/types.js +14 -0
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs5/core/componentCreators.js +8 -1
- package/libEs5/core/consent/createConsent.js +10 -0
- package/libEs5/core/consent/createConsentStateMachine.js +36 -0
- package/libEs5/core/consent/types.js +24 -0
- package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +20 -0
- package/libEs5/core/edgeNetwork/types.js +10 -0
- package/libEs5/core/identity/createIdentity.js +36 -0
- package/libEs5/core/identity/types.js +15 -0
- package/libEs5/core/injectCreateResponse.js +9 -7
- package/libEs5/core/types.js +101 -11
- package/libEs5/utils/bytes.js +12 -1
- package/libEs5/utils/createLoggingCookieJar.js +14 -1
- package/libEs5/utils/createMerger.js +5 -4
- package/libEs5/utils/injectStorage.js +19 -0
- package/libEs5/utils/request/createDataCollectionRequestPayload.js +16 -8
- package/libEs5/utils/request/createRequest.js +28 -1
- package/libEs5/utils/request/createRequestPayload.js +15 -2
- package/libEs5/utils/request/types.js +52 -0
- package/libEs5/utils/types.js +39 -0
- package/libEs6/components/ActivityCollector/utils/dom/findClickableElement.js +4 -0
- package/libEs6/components/Advertising/handlers/clickThroughHandler.js +2 -1
- package/libEs6/components/Advertising/handlers/onBeforeSendEventHandler.js +8 -3
- package/libEs6/components/Advertising/handlers/viewThroughHandler.js +2 -1
- package/libEs6/components/Advertising/identities/collectID5Id.js +1 -1
- package/libEs6/components/Advertising/identities/collectRampId.js +1 -1
- package/libEs6/components/Consent/createConsentRequestPayload.js +16 -3
- package/libEs6/components/Consent/types.js +15 -0
- package/libEs6/components/Personalization/dom-actions/action.js +7 -4
- package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +10 -10
- package/libEs6/components/PushNotifications/helpers/getPushSubscriptionDetails.js +114 -0
- package/libEs6/components/PushNotifications/index.js +93 -0
- package/libEs6/components/PushNotifications/request/createSendPushSubscriptionPayload.js +61 -0
- package/libEs6/components/PushNotifications/request/createSendPushSubscriptionRequest.js +34 -0
- package/libEs6/components/PushNotifications/request/makeSendPushSubscriptionRequest.js +84 -0
- package/libEs6/components/PushNotifications/types.js +11 -0
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/core/componentCreators.js +2 -1
- package/libEs6/core/consent/createConsent.js +12 -0
- package/libEs6/core/consent/createConsentStateMachine.js +36 -0
- package/libEs6/core/consent/types.js +21 -0
- package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +20 -0
- package/libEs6/core/edgeNetwork/types.js +7 -0
- package/libEs6/core/identity/createIdentity.js +38 -0
- package/libEs6/core/identity/types.js +12 -0
- package/libEs6/core/injectCreateResponse.js +11 -7
- package/libEs6/core/types.js +101 -11
- package/libEs6/utils/bytes.js +12 -1
- package/libEs6/utils/createLoggingCookieJar.js +15 -1
- package/libEs6/utils/createMerger.js +5 -4
- package/libEs6/utils/injectStorage.js +20 -0
- package/libEs6/utils/request/createDataCollectionRequestPayload.js +19 -8
- package/libEs6/utils/request/createRequest.js +29 -1
- package/libEs6/utils/request/createRequestPayload.js +15 -2
- package/libEs6/utils/request/types.js +49 -0
- package/libEs6/utils/types.js +36 -0
- package/package.json +30 -30
- package/types/components/ActivityCollector/utils/dom/findClickableElement.d.ts.map +1 -1
- package/types/components/Advertising/handlers/onBeforeSendEventHandler.d.ts.map +1 -1
- package/types/components/Advertising/handlers/viewThroughHandler.d.ts.map +1 -1
- package/types/components/Consent/createConsentRequest.d.ts +1 -11
- package/types/components/Consent/createConsentRequest.d.ts.map +1 -1
- package/types/components/Consent/createConsentRequestPayload.d.ts +2 -9
- package/types/components/Consent/createConsentRequestPayload.d.ts.map +1 -1
- package/types/components/Consent/types.d.ts +28 -0
- package/types/components/Consent/types.d.ts.map +1 -0
- package/types/components/Identity/getIdentity/createIdentityRequest.d.ts +1 -11
- package/types/components/Identity/getIdentity/createIdentityRequest.d.ts.map +1 -1
- package/types/components/Identity/getIdentity/createIdentityRequestPayload.d.ts +1 -9
- package/types/components/Identity/getIdentity/createIdentityRequestPayload.d.ts.map +1 -1
- package/types/components/Personalization/dom-actions/action.d.ts +1 -1
- package/types/components/Personalization/dom-actions/action.d.ts.map +1 -1
- package/types/components/PushNotifications/helpers/getPushSubscriptionDetails.d.ts +30 -0
- package/types/components/PushNotifications/helpers/getPushSubscriptionDetails.d.ts.map +1 -0
- package/types/components/PushNotifications/index.d.ts +43 -0
- package/types/components/PushNotifications/index.d.ts.map +1 -0
- package/types/components/PushNotifications/request/createSendPushSubscriptionPayload.d.ts +10 -0
- package/types/components/PushNotifications/request/createSendPushSubscriptionPayload.d.ts.map +1 -0
- package/types/components/PushNotifications/request/createSendPushSubscriptionRequest.d.ts +7 -0
- package/types/components/PushNotifications/request/createSendPushSubscriptionRequest.d.ts.map +1 -0
- package/types/components/PushNotifications/request/makeSendPushSubscriptionRequest.d.ts +20 -0
- package/types/components/PushNotifications/request/makeSendPushSubscriptionRequest.d.ts.map +1 -0
- package/types/components/PushNotifications/types.d.ts +23 -0
- package/types/components/PushNotifications/types.d.ts.map +1 -0
- package/types/components/StreamingMedia/createMediaRequest.d.ts +1 -11
- package/types/components/StreamingMedia/createMediaRequest.d.ts.map +1 -1
- package/types/core/componentCreators.d.ts +1 -0
- package/types/core/consent/createConsent.d.ts +4 -10
- package/types/core/consent/createConsent.d.ts.map +1 -1
- package/types/core/consent/createConsentStateMachine.d.ts +4 -12
- package/types/core/consent/createConsentStateMachine.d.ts.map +1 -1
- package/types/core/consent/types.d.ts +42 -0
- package/types/core/consent/types.d.ts.map +1 -0
- package/types/core/edgeNetwork/injectSendEdgeNetworkRequest.d.ts +15 -13
- package/types/core/edgeNetwork/injectSendEdgeNetworkRequest.d.ts.map +1 -1
- package/types/core/edgeNetwork/types.d.ts +12 -0
- package/types/core/edgeNetwork/types.d.ts.map +1 -0
- package/types/core/identity/createIdentity.d.ts +9 -9
- package/types/core/identity/createIdentity.d.ts.map +1 -1
- package/types/core/identity/types.d.ts +23 -0
- package/types/core/identity/types.d.ts.map +1 -0
- package/types/core/injectCreateResponse.d.ts +3 -27
- package/types/core/injectCreateResponse.d.ts.map +1 -1
- package/types/core/types.d.ts +209 -22
- package/types/core/types.d.ts.map +1 -1
- package/types/utils/bytes.d.ts +3 -1
- package/types/utils/bytes.d.ts.map +1 -1
- package/types/utils/createLoggingCookieJar.d.ts +5 -3
- package/types/utils/createLoggingCookieJar.d.ts.map +1 -1
- package/types/utils/createMerger.d.ts +1 -1
- package/types/utils/createMerger.d.ts.map +1 -1
- package/types/utils/injectStorage.d.ts +2 -40
- package/types/utils/injectStorage.d.ts.map +1 -1
- package/types/utils/request/createDataCollectionRequest.d.ts +1 -11
- package/types/utils/request/createDataCollectionRequest.d.ts.map +1 -1
- package/types/utils/request/createDataCollectionRequestPayload.d.ts +2 -9
- package/types/utils/request/createDataCollectionRequestPayload.d.ts.map +1 -1
- package/types/utils/request/createRequest.d.ts +13 -11
- package/types/utils/request/createRequest.d.ts.map +1 -1
- package/types/utils/request/createRequestPayload.d.ts +7 -9
- package/types/utils/request/createRequestPayload.d.ts.map +1 -1
- package/types/utils/request/types.d.ts +91 -0
- package/types/utils/request/types.d.ts.map +1 -0
- package/types/utils/types.d.ts +91 -0
- package/types/utils/types.d.ts.map +1 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare function _default({ logger, loggingCookieJar, config }: {
|
|
2
|
-
logger:
|
|
3
|
-
loggingCookieJar:
|
|
4
|
-
config:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
awaitIdentity(): Promise<any>;
|
|
9
|
-
getEcidFromCookie: () => string;
|
|
10
|
-
};
|
|
2
|
+
logger: Logger;
|
|
3
|
+
loggingCookieJar: CookieJar;
|
|
4
|
+
config: {
|
|
5
|
+
orgId: string;
|
|
6
|
+
};
|
|
7
|
+
}): IdentityManager;
|
|
11
8
|
export default _default;
|
|
9
|
+
import type { Logger } from '../types.js';
|
|
10
|
+
import type { CookieJar } from '../../utils/types.js';
|
|
11
|
+
import type { IdentityManager } from './types.js';
|
|
12
12
|
//# sourceMappingURL=createIdentity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIdentity.d.ts","sourceRoot":"","sources":["../../../src/core/identity/createIdentity.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createIdentity.d.ts","sourceRoot":"","sources":["../../../src/core/identity/createIdentity.js"],"names":[],"mappings":"AAmDe,gEAvBZ;IAAwB,MAAM,EAAtB,MAAM;IACa,gBAAgB,EAAnC,SAAS;IACgB,MAAM,EAA/B;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC;CAEvB,GAAU,eAAe,CAkD3B;;4BArE2B,aAAa;+BACV,sBAAsB;qCAFhB,YAAY"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @import { Logger } from '../../core/types.js' */
|
|
2
|
+
/** @import { CookieJar } from '../../utils/types.js' */
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {Object} IdentityManager
|
|
5
|
+
* @property {Function} initialize
|
|
6
|
+
* @property {Function} setIdentityAcquired - Marks identity as acquired and resolves any pending identity promises
|
|
7
|
+
* @property {Function} awaitIdentity - Returns a promise that resolves when identity is acquired
|
|
8
|
+
* @property {Function} getEcidFromCookie
|
|
9
|
+
*/
|
|
10
|
+
export const Types: {};
|
|
11
|
+
export type IdentityManager = {
|
|
12
|
+
initialize: Function;
|
|
13
|
+
/**
|
|
14
|
+
* - Marks identity as acquired and resolves any pending identity promises
|
|
15
|
+
*/
|
|
16
|
+
setIdentityAcquired: Function;
|
|
17
|
+
/**
|
|
18
|
+
* - Returns a promise that resolves when identity is acquired
|
|
19
|
+
*/
|
|
20
|
+
awaitIdentity: Function;
|
|
21
|
+
getEcidFromCookie: Function;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/identity/types.js"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,wDAAwD;AAExD;;;;;;GAMG;AAEH,uBAAwB"}
|
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
declare function _default({ extractEdgeInfo }: {
|
|
2
|
-
extractEdgeInfo: any;
|
|
3
|
-
}):
|
|
4
|
-
content?: {};
|
|
5
|
-
getHeader: any;
|
|
6
|
-
}) => {
|
|
7
|
-
/**
|
|
8
|
-
* Returns matching fragments of the response by type.
|
|
9
|
-
* @param {String} type A string with the current format: <namespace:action>
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* getPayloadsByType("identity:persist")
|
|
13
|
-
*/
|
|
14
|
-
getPayloadsByType(type: string): any;
|
|
15
|
-
/**
|
|
16
|
-
* Returns all errors.
|
|
17
|
-
*/
|
|
18
|
-
getErrors(): any;
|
|
19
|
-
/**
|
|
20
|
-
* Returns all warnings.
|
|
21
|
-
*/
|
|
22
|
-
getWarnings(): any;
|
|
23
|
-
/**
|
|
24
|
-
* Returns an object containing the regionId from the x-adobe-edge header
|
|
25
|
-
*/
|
|
26
|
-
getEdge(): any;
|
|
27
|
-
toJSON(): {};
|
|
28
|
-
};
|
|
2
|
+
extractEdgeInfo: (arg0: string) => any;
|
|
3
|
+
}): ResponseCreator;
|
|
29
4
|
export default _default;
|
|
5
|
+
import type { ResponseCreator } from './types.js';
|
|
30
6
|
//# sourceMappingURL=injectCreateResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectCreateResponse.d.ts","sourceRoot":"","sources":["../../src/core/injectCreateResponse.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"injectCreateResponse.d.ts","sourceRoot":"","sources":["../../src/core/injectCreateResponse.js"],"names":[],"mappings":"AA2Be,+CAJZ;IAA0C,eAAe,EAAjD,CAAS,IAAM,EAAN,MAAM,QAAS;CAEhC,GAAU,eAAe,CAyCzB;;qCAtDkC,YAAY"}
|
package/types/core/types.d.ts
CHANGED
|
@@ -1,29 +1,216 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @typedef {object} AlloyMonitor
|
|
3
|
-
* @property {function(
|
|
4
|
-
* @property {function(
|
|
5
|
-
* @property {function(
|
|
6
|
-
* @property {function(
|
|
7
|
-
* @property {function(
|
|
8
|
-
* @property {function(
|
|
9
|
-
* @property {function(
|
|
10
|
-
* @property {function(
|
|
11
|
-
* @property {function(
|
|
12
|
-
* @property {function(
|
|
13
|
-
* @property {function(
|
|
3
|
+
* @property {function(any): void} [onBeforeLog]
|
|
4
|
+
* @property {function(any): void} [onInstanceCreated]
|
|
5
|
+
* @property {function(any): void} [onInstanceConfigured]
|
|
6
|
+
* @property {function(any): void} [onBeforeCommand]
|
|
7
|
+
* @property {function(any): void} [onCommandResolved]
|
|
8
|
+
* @property {function(any): void} [onCommandRejected]
|
|
9
|
+
* @property {function(any): void} [onBeforeNetworkRequest]
|
|
10
|
+
* @property {function(any): void} [onNetworkResponse]
|
|
11
|
+
* @property {function(any): void} [onNetworkError]
|
|
12
|
+
* @property {function(any): void} [onContentHiding]
|
|
13
|
+
* @property {function(any): void} [onContentRendering]
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @typedef {object} Logger
|
|
17
|
+
* @property {boolean} enabled
|
|
18
|
+
* @property {function(any): void} logOnInstanceCreated
|
|
19
|
+
* @property {function(any): void} logOnInstanceConfigured
|
|
20
|
+
* @property {function(any): void} logOnBeforeCommand
|
|
21
|
+
* @property {function(any): void} logOnCommandResolved
|
|
22
|
+
* @property {function(any): void} logOnCommandRejected
|
|
23
|
+
* @property {function(any): void} logOnBeforeNetworkRequest
|
|
24
|
+
* @property {function(any): void} logOnNetworkResponse
|
|
25
|
+
* @property {function(any): void} logOnNetworkError
|
|
26
|
+
* @property {function(any): void} logOnContentHiding
|
|
27
|
+
* @property {function(any): void} logOnContentRendering
|
|
28
|
+
* @property {function(...any): void} info
|
|
29
|
+
* @property {function(...any): void} warn
|
|
30
|
+
* @property {function(...any): void} error
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* @typedef {object} Event
|
|
34
|
+
* @property {function(): boolean} hasQuery
|
|
35
|
+
* @property {function(): object} getContent
|
|
36
|
+
* @property {function(object): void} setUserXdm
|
|
37
|
+
* @property {function(object): void} setUserData
|
|
38
|
+
* @property {function(object): void} mergeXdm
|
|
39
|
+
* @property {function(object): void} mergeData
|
|
40
|
+
* @property {function(object): void} mergeMeta
|
|
41
|
+
* @property {function(object): void} mergeQuery
|
|
42
|
+
* @property {function(): void} documentMayUnload
|
|
43
|
+
* @property {function(function=): void} finalize
|
|
44
|
+
* @property {function(): boolean} getDocumentMayUnload
|
|
45
|
+
* @property {function(): boolean} isEmpty
|
|
46
|
+
* @property {function(): boolean} shouldSend
|
|
47
|
+
* @property {function(): string|undefined} getViewName
|
|
48
|
+
* @property {function(): object} toJSON
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* @typedef {object} SendEventOptions
|
|
52
|
+
* @property {object} [edgeConfigOverrides]
|
|
53
|
+
configuration
|
|
54
|
+
* @property {boolean} [renderDecisions]
|
|
55
|
+
* @property {string[]} [decisionScopes]
|
|
56
|
+
* @property {object} [decisionContext]
|
|
57
|
+
* @property {object} [personalization]
|
|
58
|
+
* @property {object} [mediaOptions]
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* @typedef {object} ApplyResponseOptions
|
|
62
|
+
* @property {boolean} [renderDecisions=false]
|
|
63
|
+
* @property {object} [decisionContext={}]
|
|
64
|
+
* @property {object} [responseHeaders={}]
|
|
65
|
+
* @property {object} [responseBody={handle:[]}]
|
|
66
|
+
* @property {object} [personalization]
|
|
67
|
+
*/
|
|
68
|
+
/**
|
|
69
|
+
* @typedef {object} EventManager
|
|
70
|
+
* @property {function(): Event} createEvent
|
|
71
|
+
* @property {function(Event, SendEventOptions=): Promise<any>} sendEvent
|
|
72
|
+
* @property {function(Event, ApplyResponseOptions=): Promise<any>} applyResponse
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* @typedef {Object} ResponseContent
|
|
76
|
+
* @property {Array<{type: string, payload: Array<Object>}>} [handle] - Array of response fragments with type and payload
|
|
77
|
+
* @property {Array<object>} [errors] - Array of error objects
|
|
78
|
+
* @property {Array<object>} [warnings] - Array of warning objects
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* @typedef {Object} ResponseFragment
|
|
82
|
+
* @property {string} type - Fragment type in format "<namespace:action>"
|
|
83
|
+
* @property {any} payload - Fragment payload data
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* @typedef {Object} Response
|
|
87
|
+
* @property {function(string): Array<any>} getPayloadsByType - Returns matching fragments by type (e.g., "identity:persist")
|
|
88
|
+
* @property {function(): Array<object>} getErrors - Returns all error objects from the response
|
|
89
|
+
* @property {function(): Array<object>} getWarnings - Returns all warning objects from the response
|
|
90
|
+
* @property {function(): object} getEdge - Returns object containing regionId from x-adobe-edge header
|
|
91
|
+
* @property {function(): ResponseContent} toJSON
|
|
92
|
+
*/
|
|
93
|
+
/**
|
|
94
|
+
* @typedef {function({content?: ResponseContent, getHeader: function(string): string|undefined}): Response} ResponseCreator
|
|
14
95
|
*/
|
|
15
96
|
export const Types: {};
|
|
16
97
|
export type AlloyMonitor = {
|
|
17
|
-
onBeforeLog?: (arg0:
|
|
18
|
-
onInstanceCreated?: (arg0:
|
|
19
|
-
onInstanceConfigured?: (arg0:
|
|
20
|
-
onBeforeCommand?: (arg0:
|
|
21
|
-
onCommandResolved?: (arg0:
|
|
22
|
-
onCommandRejected?: (arg0:
|
|
23
|
-
onBeforeNetworkRequest?: (arg0:
|
|
24
|
-
onNetworkResponse?: (arg0:
|
|
25
|
-
onNetworkError?: (arg0:
|
|
26
|
-
onContentHiding?: (arg0:
|
|
27
|
-
onContentRendering?: (arg0:
|
|
98
|
+
onBeforeLog?: (arg0: any) => void;
|
|
99
|
+
onInstanceCreated?: (arg0: any) => void;
|
|
100
|
+
onInstanceConfigured?: (arg0: any) => void;
|
|
101
|
+
onBeforeCommand?: (arg0: any) => void;
|
|
102
|
+
onCommandResolved?: (arg0: any) => void;
|
|
103
|
+
onCommandRejected?: (arg0: any) => void;
|
|
104
|
+
onBeforeNetworkRequest?: (arg0: any) => void;
|
|
105
|
+
onNetworkResponse?: (arg0: any) => void;
|
|
106
|
+
onNetworkError?: (arg0: any) => void;
|
|
107
|
+
onContentHiding?: (arg0: any) => void;
|
|
108
|
+
onContentRendering?: (arg0: any) => void;
|
|
109
|
+
};
|
|
110
|
+
export type Logger = {
|
|
111
|
+
enabled: boolean;
|
|
112
|
+
logOnInstanceCreated: (arg0: any) => void;
|
|
113
|
+
logOnInstanceConfigured: (arg0: any) => void;
|
|
114
|
+
logOnBeforeCommand: (arg0: any) => void;
|
|
115
|
+
logOnCommandResolved: (arg0: any) => void;
|
|
116
|
+
logOnCommandRejected: (arg0: any) => void;
|
|
117
|
+
logOnBeforeNetworkRequest: (arg0: any) => void;
|
|
118
|
+
logOnNetworkResponse: (arg0: any) => void;
|
|
119
|
+
logOnNetworkError: (arg0: any) => void;
|
|
120
|
+
logOnContentHiding: (arg0: any) => void;
|
|
121
|
+
logOnContentRendering: (arg0: any) => void;
|
|
122
|
+
info: (...args: any[]) => void;
|
|
123
|
+
warn: (...args: any[]) => void;
|
|
124
|
+
error: (...args: any[]) => void;
|
|
125
|
+
};
|
|
126
|
+
export type Event = {
|
|
127
|
+
hasQuery: () => boolean;
|
|
128
|
+
getContent: () => object;
|
|
129
|
+
setUserXdm: (arg0: object) => void;
|
|
130
|
+
setUserData: (arg0: object) => void;
|
|
131
|
+
mergeXdm: (arg0: object) => void;
|
|
132
|
+
mergeData: (arg0: object) => void;
|
|
133
|
+
mergeMeta: (arg0: object) => void;
|
|
134
|
+
mergeQuery: (arg0: object) => void;
|
|
135
|
+
documentMayUnload: () => void;
|
|
136
|
+
finalize: (arg0: Function | undefined) => void;
|
|
137
|
+
getDocumentMayUnload: () => boolean;
|
|
138
|
+
isEmpty: () => boolean;
|
|
139
|
+
shouldSend: () => boolean;
|
|
140
|
+
getViewName: () => string | undefined;
|
|
141
|
+
toJSON: () => object;
|
|
142
|
+
};
|
|
143
|
+
export type SendEventOptions = {
|
|
144
|
+
/**
|
|
145
|
+
* configuration
|
|
146
|
+
*/
|
|
147
|
+
edgeConfigOverrides?: object;
|
|
148
|
+
renderDecisions?: boolean;
|
|
149
|
+
decisionScopes?: string[];
|
|
150
|
+
decisionContext?: object;
|
|
151
|
+
personalization?: object;
|
|
152
|
+
mediaOptions?: object;
|
|
153
|
+
};
|
|
154
|
+
export type ApplyResponseOptions = {
|
|
155
|
+
renderDecisions?: boolean;
|
|
156
|
+
decisionContext?: object;
|
|
157
|
+
responseHeaders?: object;
|
|
158
|
+
responseBody?: object;
|
|
159
|
+
personalization?: object;
|
|
160
|
+
};
|
|
161
|
+
export type EventManager = {
|
|
162
|
+
createEvent: () => Event;
|
|
163
|
+
sendEvent: (arg0: Event, arg1: SendEventOptions | undefined) => Promise<any>;
|
|
164
|
+
applyResponse: (arg0: Event, arg1: ApplyResponseOptions | undefined) => Promise<any>;
|
|
165
|
+
};
|
|
166
|
+
export type ResponseContent = {
|
|
167
|
+
/**
|
|
168
|
+
* - Array of response fragments with type and payload
|
|
169
|
+
*/
|
|
170
|
+
handle?: Array<{
|
|
171
|
+
type: string;
|
|
172
|
+
payload: Array<any>;
|
|
173
|
+
}>;
|
|
174
|
+
/**
|
|
175
|
+
* - Array of error objects
|
|
176
|
+
*/
|
|
177
|
+
errors?: Array<object>;
|
|
178
|
+
/**
|
|
179
|
+
* - Array of warning objects
|
|
180
|
+
*/
|
|
181
|
+
warnings?: Array<object>;
|
|
182
|
+
};
|
|
183
|
+
export type ResponseFragment = {
|
|
184
|
+
/**
|
|
185
|
+
* - Fragment type in format "<namespace:action>"
|
|
186
|
+
*/
|
|
187
|
+
type: string;
|
|
188
|
+
/**
|
|
189
|
+
* - Fragment payload data
|
|
190
|
+
*/
|
|
191
|
+
payload: any;
|
|
192
|
+
};
|
|
193
|
+
export type Response = {
|
|
194
|
+
/**
|
|
195
|
+
* - Returns matching fragments by type (e.g., "identity:persist")
|
|
196
|
+
*/
|
|
197
|
+
getPayloadsByType: (arg0: string) => Array<any>;
|
|
198
|
+
/**
|
|
199
|
+
* - Returns all error objects from the response
|
|
200
|
+
*/
|
|
201
|
+
getErrors: () => Array<object>;
|
|
202
|
+
/**
|
|
203
|
+
* - Returns all warning objects from the response
|
|
204
|
+
*/
|
|
205
|
+
getWarnings: () => Array<object>;
|
|
206
|
+
/**
|
|
207
|
+
* - Returns object containing regionId from x-adobe-edge header
|
|
208
|
+
*/
|
|
209
|
+
getEdge: () => object;
|
|
210
|
+
toJSON: () => ResponseContent;
|
|
28
211
|
};
|
|
212
|
+
export type ResponseCreator = (arg0: {
|
|
213
|
+
content?: ResponseContent;
|
|
214
|
+
getHeader: (arg0: string) => string | undefined;
|
|
215
|
+
}) => Response;
|
|
29
216
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uBAAwB;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.js"],"names":[],"mappings":"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"}
|
package/types/utils/bytes.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../src/utils/bytes.js"],"names":[],"mappings":"AAiBO,4CAHI,MAAM,GACJ,UAAU,CAWtB;
|
|
1
|
+
{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../src/utils/bytes.js"],"names":[],"mappings":"AAiBO,4CAHI,MAAM,GACJ,UAAU,CAWtB;AASM,qCALI,UAAU,YAElB;IAA0B,OAAO,GAAzB,OAAO;CACf,GAAU,MAAM,CAWlB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare function _default({ logger, cookieJar }: {
|
|
2
|
-
logger:
|
|
3
|
-
cookieJar:
|
|
4
|
-
}):
|
|
2
|
+
logger: Logger;
|
|
3
|
+
cookieJar: CookieJar;
|
|
4
|
+
}): CookieJar;
|
|
5
5
|
export default _default;
|
|
6
|
+
import type { Logger } from '../core/types.js';
|
|
7
|
+
import type { CookieJar } from './types.js';
|
|
6
8
|
//# sourceMappingURL=createLoggingCookieJar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLoggingCookieJar.d.ts","sourceRoot":"","sources":["../../src/utils/createLoggingCookieJar.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createLoggingCookieJar.d.ts","sourceRoot":"","sources":["../../src/utils/createLoggingCookieJar.js"],"names":[],"mappings":"AA0Be,iDALZ;IAAwB,MAAM,EAAtB,MAAM;IACa,SAAS,EAA5B,SAAS;CAEjB,GAAU,SAAS,CAUrB;;4BAtB2B,kBAAkB;+BACf,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMerger.d.ts","sourceRoot":"","sources":["../../src/utils/createMerger.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createMerger.d.ts","sourceRoot":"","sources":["../../src/utils/createMerger.js"],"names":[],"mappings":"AAuBe,mCALJ,MAAM,OACN,MAAM,GAEJ,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI,CASlC"}
|
|
@@ -1,42 +1,4 @@
|
|
|
1
|
-
declare function _default(context: any):
|
|
2
|
-
session: {
|
|
3
|
-
/**
|
|
4
|
-
* Reads a value from storage.
|
|
5
|
-
* @param {string} name The name of the item to be read.
|
|
6
|
-
* @returns {string}
|
|
7
|
-
*/
|
|
8
|
-
getItem(name: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* Saves a value to storage.
|
|
11
|
-
* @param {string} name The name of the item to be saved.
|
|
12
|
-
* @param {string} value The value of the item to be saved.
|
|
13
|
-
* @returns {boolean} Whether the item was successfully saved to storage.
|
|
14
|
-
*/
|
|
15
|
-
setItem(name: string, value: string): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Clear all values in storage that match the namespace.
|
|
18
|
-
*/
|
|
19
|
-
clear(): boolean;
|
|
20
|
-
};
|
|
21
|
-
persistent: {
|
|
22
|
-
/**
|
|
23
|
-
* Reads a value from storage.
|
|
24
|
-
* @param {string} name The name of the item to be read.
|
|
25
|
-
* @returns {string}
|
|
26
|
-
*/
|
|
27
|
-
getItem(name: string): string;
|
|
28
|
-
/**
|
|
29
|
-
* Saves a value to storage.
|
|
30
|
-
* @param {string} name The name of the item to be saved.
|
|
31
|
-
* @param {string} value The value of the item to be saved.
|
|
32
|
-
* @returns {boolean} Whether the item was successfully saved to storage.
|
|
33
|
-
*/
|
|
34
|
-
setItem(name: string, value: string): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Clear all values in storage that match the namespace.
|
|
37
|
-
*/
|
|
38
|
-
clear(): boolean;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
1
|
+
declare function _default(context: any): StorageCreator;
|
|
41
2
|
export default _default;
|
|
3
|
+
import type { StorageCreator } from './types.js';
|
|
42
4
|
//# sourceMappingURL=injectStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectStorage.d.ts","sourceRoot":"","sources":["../../src/utils/injectStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"injectStorage.d.ts","sourceRoot":"","sources":["../../src/utils/injectStorage.js"],"names":[],"mappings":"AAiFe,yCAFF,cAAc,CAQ1B;;oCA3E4C,YAAY"}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
declare function _default({ payload: dataCollectionRequestPayload, datastreamIdOverride, }: {
|
|
2
2
|
payload: any;
|
|
3
3
|
datastreamIdOverride: any;
|
|
4
|
-
}):
|
|
5
|
-
getId(): string;
|
|
6
|
-
getPayload(): any;
|
|
7
|
-
getAction(): any;
|
|
8
|
-
getDatastreamIdOverride(): any;
|
|
9
|
-
getUseSendBeacon(): any;
|
|
10
|
-
getEdgeSubPath(): any;
|
|
11
|
-
getUseIdThirdPartyDomain(): boolean;
|
|
12
|
-
setUseIdThirdPartyDomain(): void;
|
|
13
|
-
setIsIdentityEstablished(): void;
|
|
14
|
-
};
|
|
4
|
+
}): import("./types.js").Request;
|
|
15
5
|
export default _default;
|
|
16
6
|
//# sourceMappingURL=createDataCollectionRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDataCollectionRequest.d.ts","sourceRoot":"","sources":["../../../src/utils/request/createDataCollectionRequest.js"],"names":[],"mappings":"AAce
|
|
1
|
+
{"version":3,"file":"createDataCollectionRequest.d.ts","sourceRoot":"","sources":["../../../src/utils/request/createDataCollectionRequest.js"],"names":[],"mappings":"AAce;;;iCAuDd"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
declare function _default():
|
|
2
|
-
mergeMeta: Function;
|
|
3
|
-
mergeState: Function;
|
|
4
|
-
mergeQuery: Function;
|
|
5
|
-
mergeConfigOverride: (updates: any) => void;
|
|
6
|
-
addIdentity: any;
|
|
7
|
-
hasIdentity: any;
|
|
8
|
-
toJSON(): any;
|
|
9
|
-
};
|
|
1
|
+
declare function _default(): DataCollectionRequestPayload;
|
|
10
2
|
export default _default;
|
|
3
|
+
import type { DataCollectionRequestPayload } from './types.js';
|
|
11
4
|
//# sourceMappingURL=createDataCollectionRequestPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDataCollectionRequestPayload.d.ts","sourceRoot":"","sources":["../../../src/utils/request/createDataCollectionRequestPayload.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createDataCollectionRequestPayload.d.ts","sourceRoot":"","sources":["../../../src/utils/request/createDataCollectionRequestPayload.js"],"names":[],"mappings":"AAuBe,6BAFF,4BAA4B,CAsBxC;;kDA/BiD,YAAY"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
declare function _default(options:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
getUseSendBeacon(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
1
|
+
declare function _default(options: {
|
|
2
|
+
payload: RequestPayload;
|
|
3
|
+
getAction: (arg0: {
|
|
4
|
+
isIdentityEstablished: boolean;
|
|
5
|
+
}) => string;
|
|
6
|
+
getUseSendBeacon: (arg0: {
|
|
7
|
+
isIdentityEstablished: boolean;
|
|
8
|
+
}) => boolean;
|
|
9
|
+
datastreamIdOverride?: string;
|
|
10
|
+
edgeSubPath?: string;
|
|
11
|
+
}): Request;
|
|
12
12
|
export default _default;
|
|
13
|
+
import type { RequestPayload } from './types.js';
|
|
14
|
+
import type { Request } from './types.js';
|
|
13
15
|
//# sourceMappingURL=createRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRequest.d.ts","sourceRoot":"","sources":["../../../src/utils/request/createRequest.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createRequest.d.ts","sourceRoot":"","sources":["../../../src/utils/request/createRequest.js"],"names":[],"mappings":"AA2Ce,mCArBZ;IAAgC,OAAO,EAA/B,cAAc;IAC8C,SAAS,EAArE,CAAS,IAAgC,EAAhC;QAAC,qBAAqB,EAAE,OAAO,CAAA;KAAC,KAAG,MAAM;IACW,gBAAgB,EAA7E,CAAS,IAAgC,EAAhC;QAAC,qBAAqB,EAAE,OAAO,CAAA;KAAC,KAAG,OAAO;IAClC,oBAAoB,GAArC,MAAM;IACW,WAAW,GAA5B,MAAM;CAEd,GAAU,OAAO,CA4DnB;;oCA5E4C,YAAY;6BAAZ,YAAY"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
declare function _default(options:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
addIdentity: any;
|
|
7
|
-
hasIdentity: any;
|
|
8
|
-
toJSON(): any;
|
|
9
|
-
};
|
|
1
|
+
declare function _default(options: {
|
|
2
|
+
content: any;
|
|
3
|
+
addIdentity: (arg0: string, arg1: Identity) => void;
|
|
4
|
+
hasIdentity: (arg0: string) => boolean;
|
|
5
|
+
}): RequestPayload;
|
|
10
6
|
export default _default;
|
|
7
|
+
import type { Identity } from './types.js';
|
|
8
|
+
import type { RequestPayload } from './types.js';
|
|
11
9
|
//# sourceMappingURL=createRequestPayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRequestPayload.d.ts","sourceRoot":"","sources":["../../../src/utils/request/createRequestPayload.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createRequestPayload.d.ts","sourceRoot":"","sources":["../../../src/utils/request/createRequestPayload.js"],"names":[],"mappings":"AAgFe,mCANZ;IAAwB,OAAO;IACmB,WAAW,EAArD,CAAS,IAAM,EAAN,MAAM,EAAE,IAAQ,EAAR,QAAQ,KAAG,IAAI;IACI,WAAW,EAA/C,CAAS,IAAM,EAAN,MAAM,KAAI,OAAO;CAElC,GAAU,cAAc,CAoB1B;;8BAtF6C,YAAY;oCAAZ,YAAY"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request object with methods to access and modify request properties.
|
|
3
|
+
*
|
|
4
|
+
* @typedef {Object} Request
|
|
5
|
+
* @property {function(): string} getId
|
|
6
|
+
* @property {function(): RequestPayload} getPayload
|
|
7
|
+
* @property {function({isIdentityEstablished: boolean}): string} getAction
|
|
8
|
+
* @property {function(): string|undefined} getDatastreamIdOverride
|
|
9
|
+
* @property {Function} getUseSendBeacon
|
|
10
|
+
* @property {function(): string|undefined} getEdgeSubPath
|
|
11
|
+
* @property {Function} getUseIdThirdPartyDomain
|
|
12
|
+
* @property {Function} setUseIdThirdPartyDomain
|
|
13
|
+
* @property {Function} setIsIdentityEstablished
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Request payload object with methods for merging different types of data.
|
|
17
|
+
*
|
|
18
|
+
* @typedef {Object} RequestPayload
|
|
19
|
+
* @property {function(object): void} mergeMeta
|
|
20
|
+
* @property {function(object): void} mergeState
|
|
21
|
+
* @property {function(object): void} mergeQuery
|
|
22
|
+
* @property {function(object): void} mergeConfigOverride
|
|
23
|
+
* @property {function(string, Identity): void} options.addIdentity
|
|
24
|
+
* @property {function(string): boolean} options.hasIdentity
|
|
25
|
+
* @property {function(): object} toJSON
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* Request payload object with methods for merging different types of data.
|
|
29
|
+
*
|
|
30
|
+
* @typedef {Object} DataCollectionRequestPayload
|
|
31
|
+
* @property {function(object): void} mergeMeta
|
|
32
|
+
* @property {function(object): void} mergeState
|
|
33
|
+
* @property {function(object): void} mergeQuery
|
|
34
|
+
* @property {function(object): void} mergeConfigOverride
|
|
35
|
+
* @property {function(string, Identity): void} options.addIdentity
|
|
36
|
+
* @property {function(string): boolean} options.hasIdentity
|
|
37
|
+
* @property {function(object): void} addEvent
|
|
38
|
+
* @property {function(): boolean} getDocumentMayUnload
|
|
39
|
+
* @property {function(): object} toJSON
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* @typedef {Object} Identity
|
|
43
|
+
* @property {string} id
|
|
44
|
+
*/
|
|
45
|
+
export const Types: {};
|
|
46
|
+
/**
|
|
47
|
+
* Request object with methods to access and modify request properties.
|
|
48
|
+
*/
|
|
49
|
+
export type Request = {
|
|
50
|
+
getId: () => string;
|
|
51
|
+
getPayload: () => RequestPayload;
|
|
52
|
+
getAction: (arg0: {
|
|
53
|
+
isIdentityEstablished: boolean;
|
|
54
|
+
}) => string;
|
|
55
|
+
getDatastreamIdOverride: () => string | undefined;
|
|
56
|
+
getUseSendBeacon: Function;
|
|
57
|
+
getEdgeSubPath: () => string | undefined;
|
|
58
|
+
getUseIdThirdPartyDomain: Function;
|
|
59
|
+
setUseIdThirdPartyDomain: Function;
|
|
60
|
+
setIsIdentityEstablished: Function;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Request payload object with methods for merging different types of data.
|
|
64
|
+
*/
|
|
65
|
+
export type RequestPayload = {
|
|
66
|
+
mergeMeta: (arg0: object) => void;
|
|
67
|
+
mergeState: (arg0: object) => void;
|
|
68
|
+
mergeQuery: (arg0: object) => void;
|
|
69
|
+
mergeConfigOverride: (arg0: object) => void;
|
|
70
|
+
addIdentity: (arg0: string, arg1: Identity) => void;
|
|
71
|
+
hasIdentity: (arg0: string) => boolean;
|
|
72
|
+
toJSON: () => object;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Request payload object with methods for merging different types of data.
|
|
76
|
+
*/
|
|
77
|
+
export type DataCollectionRequestPayload = {
|
|
78
|
+
mergeMeta: (arg0: object) => void;
|
|
79
|
+
mergeState: (arg0: object) => void;
|
|
80
|
+
mergeQuery: (arg0: object) => void;
|
|
81
|
+
mergeConfigOverride: (arg0: object) => void;
|
|
82
|
+
addIdentity: (arg0: string, arg1: Identity) => void;
|
|
83
|
+
hasIdentity: (arg0: string) => boolean;
|
|
84
|
+
addEvent: (arg0: object) => void;
|
|
85
|
+
getDocumentMayUnload: () => boolean;
|
|
86
|
+
toJSON: () => object;
|
|
87
|
+
};
|
|
88
|
+
export type Identity = {
|
|
89
|
+
id: string;
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/request/types.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;GAGG;AAEH,uBAAwB;;;;;WA5CV,MAAY,MAAM;gBAClB,MAAY,cAAc;eAC1B,CAAS,IAAgC,EAAhC;QAAC,qBAAqB,EAAE,OAAO,CAAA;KAAC,KAAG,MAAM;6BAClD,MAAY,MAAM,GAAC,SAAS;;oBAE5B,MAAY,MAAM,GAAC,SAAS;;;;;;;;;eAU5B,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;gBACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;gBACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;yBACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;iBACtB,CAAS,IAAM,EAAN,MAAM,EAAE,IAAQ,EAAR,QAAQ,KAAG,IAAI;iBAChC,CAAS,IAAM,EAAN,MAAM,KAAG,OAAO;YACzB,MAAY,MAAM;;;;;;eAOlB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;gBACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;gBACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;yBACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;iBACtB,CAAS,IAAM,EAAN,MAAM,EAAE,IAAQ,EAAR,QAAQ,KAAG,IAAI;iBAChC,CAAS,IAAM,EAAN,MAAM,KAAG,OAAO;cACzB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;0BACtB,MAAY,OAAO;YACnB,MAAY,MAAM;;;QAKlB,MAAM"}
|