[2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate hostInfo access soon. Please use HostInfoController instead. [2024-05-22_13-10-21][153736][Warn] [general] Host should provide base paths for persistent and temporary storage for 1P plugins in uxp initialization! [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate hostInfo access soon. Please use HostInfoController instead. [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate hostInfo access soon. Please use HostInfoController instead. [2024-05-22_13-10-21][153736][Info] [general] Instead of the WebView2 runtime in the system, UXP will use the WebView2 runtime in the folder: C:\Program Files\Common Files\Adobe\Microsoft\EdgeWebView\ [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate hostInfo access soon. Please use HostInfoController instead. [2024-05-22_13-10-21][153736][Default] [general] UXP DevTools: Sending Notification that UXP is Dev Ready [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.ccx.comments-webview : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.ccx.comments-webview : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.ccx.timeline : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.ccx.timeline : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.photoshop-material-filters : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.photoshop-material-filters : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.pluginspanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.pluginspanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.cclibrariespanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.cclibrariespanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.cclibrariespanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.cclibrariespanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.cclibrariespanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.cclibrariespanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Error] [general] The Host version is lower than what plugin: com.adobe.ccx.start is compatible with [2024-05-22_13-10-21][153736][Error] [general] The Host version is lower than what plugin: com.adobe.ccx.start is compatible with [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-21][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-21][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-21][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-21][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-21][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-21][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-21][153736][Info] upic::Upic version 2.6.0 is initialized [2024-05-22_13-10-21][153736][Info] upic::Failed to read plugin info file: C:\Program Files\Common Files\Adobe\UXP\PluginsInfo\v1\PS.json [2024-05-22_13-10-21][153736][Info] upic::Failed to read plugin info file: C:\Users\Harmonogram\AppData\Roaming\Adobe\UXP\PluginsInfo\v1\PS.json [2024-05-22_13-10-21][153736][Info] upic::Loading plugins from system fallback plugins folder: C:\Program Files\Common Files\Adobe\UXP\Plugins\External [2024-05-22_13-10-21][153736][Info] upic::Loading plugins from user fallback plugins folder: C:\Users\Harmonogram\AppData\Roaming\Adobe\UXP\Plugins\External [2024-05-22_13-10-21][153736][Info] upic::Loading plugins from hybrid fallback plugins folder: C:\Program Files\Common Files\Adobe\UXP\Plugins\Harmonogram\External [2024-05-22_13-10-21][153736][Info] upic::Number of plugins added from system's fallback: 0 [2024-05-22_13-10-21][153736][Info] upic::Number of plugins added from user's fallback: 0 [2024-05-22_13-10-21][153736][Info] upic::Number of plugins added from hybrid's fallback: 0 [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.cclibrariespanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.cclibrariespanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.ccx.comments-webview : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.ccx.comments-webview : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Warn] [general] We are going to deprecate UxpIsland::setAllowWebView (a.k.a., torq_uxp_island_alpaca_ref::set_allow_web_view) soon as WebView can be loaded in any container from UXP-6.4 onwards [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.ccx.timeline : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.ccx.timeline : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][138624][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.photoshop-material-filters : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.photoshop-material-filters : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.pluginspanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][153736][Info] [general] Plugin com.adobe.pluginspanel : [v4] Using Default Value for Icon species [2024-05-22_13-10-21][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 724 PERF - Start Screen Init start [2024-05-22_13-10-22][80384][Default] [console] [HS][StartScreen] CCX Start v6.7.0.42 [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 726 PERF - Sophia Init start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 731 PERF - Ututs Init start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 731 PERF - IMS Init start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 733 PERF - IMS.updateUserProfile start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 733 message: Fetching NGL Profile. Awaiting Response. [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 733 PERF - Fetching NGL Profile. Awaiting Response. [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 735 PERF - Locale Init start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 740 PERF - MainStore Init start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 751 PERF - Platform init start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 751 PERF - Photoshop Init start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 752 PERF - Shared Settings Init start [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 754 message: Received NGL Profile. [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 754 PERF - Received NGL Profile. [2024-05-22_13-10-22][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-22_13-10-22][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 761 message: Data Loader for home: Get data using File Accessor. [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 761 PERF - Data Loader for home: Get data using File Accessor. [2024-05-22_13-10-22][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-05-22_13-10-22][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 764 message: Data Loader for utut: Get data using File Accessor. [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 764 PERF - Data Loader for utut: Get data using File Accessor. [2024-05-22_13-10-22][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 33 message: IMS.updateUserProfile [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 766 PERF - IMS.updateUserProfile done: 33 [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 15 message: Shared Settings Init [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 767 PERF - Shared Settings Init done: 15 [2024-05-22_13-10-22][80384][Default] [console] [HS][Performance] 767 PERF - IMS.updateAccessToken start [2024-05-22_13-10-22][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-22][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1470 message: Updated access token [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1470 PERF - Updated access token [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 704 message: IMS.updateAccessToken [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1471 PERF - IMS.updateAccessToken done: 704 [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 740 message: IMS Init [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1471 PERF - IMS Init done: 740 [2024-05-22_13-10-23][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1502 message: Data Loader for home: Read data using File Accessor. [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1502 PERF - Data Loader for home: Read data using File Accessor. [2024-05-22_13-10-23][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1503 message: Data Loader for utut: Read data using File Accessor. [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1503 PERF - Data Loader for utut: Read data using File Accessor. [2024-05-22_13-10-23][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-22_13-10-23][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 784 message: Locale Init [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1519 PERF - Locale Init done: 784 [2024-05-22_13-10-23][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1525 message: Loaded JSON Data: Utut [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1525 PERF - Loaded JSON Data: Utut [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1526 message: Parsed JSON file for Utut [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1526 PERF - Parsed JSON file for Utut [2024-05-22_13-10-23][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-cca36ba2-f103-41db-a0c7-069b9183444a.json [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1529 message: Finished parsing data for Utut [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1529 PERF - Finished parsing data for Utut [2024-05-22_13-10-23][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-05-22_13-10-23][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-22_13-10-23][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-22_13-10-23][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-05-22_13-10-23][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 802 message: Ututs Init [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1533 PERF - Ututs Init done: 802 [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1533 message: Loaded JSON Data: Home [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1533 PERF - Loaded JSON Data: Home [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1534 message: Parsed JSON file for Home [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1534 PERF - Parsed JSON file for Home [2024-05-22_13-10-23][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-8f1f9d61-5768-4c31-9714-61e2484e7fc9.json [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 1536 message: Finished parsing data for Home [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1536 PERF - Finished parsing data for Home [2024-05-22_13-10-23][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-22_13-10-23][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-22_13-10-23][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-cca36ba2-f103-41db-a0c7-069b9183444a.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\clientLogs\PHXS-24-7-0-pl_PL-2D6683A40968467A96FFD5DA65877F6C.json [2024-05-22_13-10-23][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-8f1f9d61-5768-4c31-9714-61e2484e7fc9.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-C0E04686E01C41779DEB71B2206F117B.json [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] log perf event: time: 816 message: Sophia Init [2024-05-22_13-10-23][80384][Default] [console] [HS][Performance] 1542 PERF - Sophia Init done: 816 [2024-05-22_13-10-27][80384][Default] [console] [HS][Performance] log perf event: time: 5653 message: UI Ready [2024-05-22_13-10-27][80384][Default] [console] [HS][Performance] 5653 PERF - UI Ready [2024-05-22_13-10-27][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-27][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-27][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-27][181912][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-28][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-28][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-28][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-28][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] log perf event: time: 5666 message: MainStore Init [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] 6406 PERF - MainStore Init done: 5666 [2024-05-22_13-10-28][80384][Default] [console] [HS][Photoshop] PS: Recent files provided. No. of items = 20 [2024-05-22_13-10-28][80384][Warn] [console] [CDO] @ccx/ccx-cdo/Stylesheets.ts | @ccx/ccx-cdo/theme/Core.css | @ccx/ccx-cdo/theme/CCXHomeScreen/Themes.css will soon be deprecated. [2024-05-22_13-10-28][80384][Default] [console] 6555 PERF - Launch CCXProcess start [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] log perf event: time: 5805 message: Platform init [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] 6556 PERF - Platform init done: 5805 [2024-05-22_13-10-28][150764][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] log perf event: time: 5883 message: Photoshop Init [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] 6634 PERF - Photoshop Init done: 5883 [2024-05-22_13-10-28][80384][Default] [console] [HS][AvatarDataLoader] Avatar Loader: Get data using File Accessor. [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] log perf event: time: 6635 message: Avatar Loader: Get data using File Accessor. [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] 6635 PERF - Avatar Loader: Get data using File Accessor. [2024-05-22_13-10-28][80384][Default] [console] [HS][LicenseChiclet] NGL: Showing no chiclet. [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-1] QuotaStore.fetch - Waiting for initialization to complete [2024-05-22_13-10-28][80384][Default] [console] [initCDOStores-1] ACPLModel.applicationAssetContext is already present [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-1] SAMSyncingAssets - Waiting for initialization to complete [2024-05-22_13-10-28][38200][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] log perf event: time: 6729 message: Interactive Ready [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] 6729 PERF - Interactive Ready [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-2] QuotaStore.fetch - Waiting for initialization to complete [2024-05-22_13-10-28][80384][Default] [console] [initCDOStores-1] ACPLModel.applicationAssetContext is already present [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-2] SAMSyncingAssets - Waiting for initialization to complete [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-2] preFetchDocuments - Waiting for initialization to complete [2024-05-22_13-10-28][80384][Default] [console] User intent container: undefined [2024-05-22_13-10-28][80384][Default] [console] User intent container: undefined [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] log perf event: time: 6179 message: Start Screen Init [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] 6903 PERF - Start Screen Init done: 6179 [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-1] QuotaStore.fetch - Initialization complete [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-1] SAMSyncingAssets - Initialization complete [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-2] QuotaStore.fetch - Initialization complete [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-2] SAMSyncingAssets - Initialization complete [2024-05-22_13-10-28][80384][Default] [console] [_DocumentStore-2] preFetchDocuments - Initialization complete [2024-05-22_13-10-28][80384][Default] [console] [HS][Performance] 6981 PERF - Late Loads start [2024-05-22_13-10-28][80384][Default] [console] 7056 PERF - Launch CCXProcess done: 501 [2024-05-22_13-10-28][181912][Info] [console] TOKEN: Initial fetch fired [2024-05-22_13-10-28][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-28][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-28][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-28][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-28][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-28][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-28][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-28][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-28][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-28][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-28][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-28][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-28][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-28][80384][Default] [console] [QuotaStore-1] quota available [2024-05-22_13-10-28][80384][Default] [console] [QuotaStore-2] quota available [2024-05-22_13-10-29][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-29][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-29][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-29][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-29][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-22_13-10-29][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-22_13-10-29][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-29][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-22_13-10-30][80384][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-30][80384][Default] [console] [DP] Templates are not initialized yet! [2024-05-22_13-10-31][80384][Warn] [console] createSharedAssetModel() is deprecated - call the asynchronous initializeSharedAssetModel() instead. [2024-05-22_13-10-31][80384][Warn] [console] createSharedAssetModel() is deprecated - call the asynchronous initializeSharedAssetModel() instead. [2024-05-22_13-10-31][80384][Default] [console] [HS][Photoshop] PS: Home screen visibility set to visible without back button. [2024-05-22_13-10-31][153736][Info] [general] WebView2BrowserVersion: 124.0.2478.97 [2024-05-22_13-10-31][80384][Default] [console] [HS][Analytics] analytics.ingest: (prod) active [2024-05-22_13-10-31][80384][Warn] [console] loading "pl_PL" at "./nls/pl-PL/strings.json" failed, try "pl" at "./nls/pl/strings.json" [2024-05-22_13-10-31][80384][Default] [console] [HS][AvatarDataLoader] clearInterval for avatarFetchInterval [2024-05-22_13-10-31][80384][Default] [console] [HS][Performance] log perf event: time: 9971 message: Avatar Loader: Read data using File Accessor. [2024-05-22_13-10-31][80384][Default] [console] [HS][Performance] 9971 PERF - Avatar Loader: Read data using File Accessor. [2024-05-22_13-10-31][80384][Warn] [console] locale.strings "pl_PL" from ./nls/pl/strings.json [2024-05-22_13-10-32][80384][Warn] [console] ps-presets [object Object] [2024-05-22_13-10-34][80384][Default] [console] [HS][Performance] log perf event: time: 12202 message: Avatar Loader: Avatar file found and set using File Accessor [2024-05-22_13-10-34][80384][Default] [console] [HS][Performance] 12202 PERF - Avatar Loader: Avatar file found and set using File Accessor [2024-05-22_13-10-34][80384][Default] [console] [HS][AvatarDataLoader] Avatar Loader: Avatar file found and set using File Accessor. Path: C:/Users/Harmonogram/AppData/Roaming/Adobe/CCX Welcome/avatar/assets/e6fc7a4b-6708-473f-858a-ed24aa0251e0.png [2024-05-22_13-10-34][80384][Default] [console] [HS][AvatarDataLoader] Successfully read data from file c4515729-60c5-4b2a-9d93-89e7ae938995.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\avatar\clientLogs\PHXS-24-7-0-pl_PL-3C242A6103764C0BB63FA697F23FD8E0.json [2024-05-22_13-10-35][80384][Warn] [console] Wed, 22 May 2024 11:10:35 GMT [CMDN] [Performance] Trying to measure licensed templates with request ID undefined but there is not tracking set for this id [2024-05-22_13-10-35][80384][Warn] [console] Wed, 22 May 2024 11:10:35 GMT [CMDN] [Performance] Trying to measure stock data with request ID 5ddc3198f74642169dd4cd3c3d062d13 but there is not tracking set for this id [2024-05-22_13-10-35][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-22_13-10-35][153736][Info] [general] featureTracker_ is being accessed without setting [2024-05-22_13-10-35][153736][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-35][153736][Warn] [general] Please call HostInfoController::instance()->initialize() when the app is initializing. [2024-05-22_13-10-35][178572][Warn] [general] We are going to deprecate HostInfo API soon, please use HostApi instead. [2024-05-22_13-10-36][178572][Default] [console] (0) ccxp manifest update started ... [2024-05-22_13-10-36][178572][Error] [console] Headless mode has no photoshopAction. So should not reach here in headless mode. [2024-05-22_13-10-36][178572][Info] [console] Including internal filters... (12) [2024-05-22_13-10-36][178572][Default] [console] (1) getWorkingManifest:: setting to pluginManifest 47.001 [2024-05-22_13-10-36][178572][Default] [console] Download store initialized! [2024-05-22_13-10-36][178572][Default] [console] active filters set [2024-05-22_13-10-43][80384][Default] [console] [HS][Photoshop] PS: Home screen visibility changed to invisible with back button. [2024-05-22_13-10-52][80384][Default] [console] [HS][Photoshop] getVmStatus resolved after retry=45 and timeout=400 [2024-05-22_13-10-52][80384][Default] [console] [HS][Photoshop] VM is available: 21977688576 [2024-05-22_13-10-52][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-22_13-10-52][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] log perf event: time: 30648 message: Data Loader for home: Get data using File Accessor. [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] 30648 PERF - Data Loader for home: Get data using File Accessor. [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] log perf event: time: 30649 message: Data Loader for home: Read data using File Accessor. [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] 30649 PERF - Data Loader for home: Read data using File Accessor. [2024-05-22_13-10-52][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] log perf event: time: 30651 message: Loaded JSON Data: Home [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] 30651 PERF - Loaded JSON Data: Home [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] log perf event: time: 30651 message: Parsed JSON file for Home [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] 30651 PERF - Parsed JSON file for Home [2024-05-22_13-10-52][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-8f1f9d61-5768-4c31-9714-61e2484e7fc9.json [2024-05-22_13-10-52][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-8f1f9d61-5768-4c31-9714-61e2484e7fc9.json [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] log perf event: time: 30653 message: Finished parsing data for Home [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] 30653 PERF - Finished parsing data for Home [2024-05-22_13-10-52][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-22_13-10-52][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-22_13-10-52][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] log perf event: time: 23675 message: Late Loads [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] 30656 PERF - Late Loads done: 23675 [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] log perf event: time: 30656 message: All done [2024-05-22_13-10-52][80384][Default] [console] [HS][Performance] 30656 PERF - All done [2024-05-22_13-10-52][80384][Default] [console] [HS][Photoshop] Ps: VMStatusResolved. VmStatus is already available 21977688576 [2024-05-22_13-13-28][80384][Default] [console] [QuotaStore-1] quota available [2024-05-22_23-41-45][80384][Default] [console] [QuotaStore-1] quota available [2024-05-22_23-44-45][80384][Default] [console] [QuotaStore-1] quota available [2024-05-23_03-09-22][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-23_03-09-22][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] log perf event: time: 50340914 message: Data Loader for home: Get data using File Accessor. [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] 50340914 PERF - Data Loader for home: Get data using File Accessor. [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] log perf event: time: 50340927 message: Data Loader for home: Read data using File Accessor. [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] 50340927 PERF - Data Loader for home: Read data using File Accessor. [2024-05-23_03-09-22][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-23_03-09-22][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] log perf event: time: 50340937 message: Loaded JSON Data: Home [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] 50340937 PERF - Loaded JSON Data: Home [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] log perf event: time: 50340938 message: Parsed JSON file for Home [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] 50340938 PERF - Parsed JSON file for Home [2024-05-23_03-09-22][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-49e9ab1b-0a00-46f8-88c3-d50649ad84b6.json [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] log perf event: time: 50340942 message: Finished parsing data for Home [2024-05-23_03-09-22][80384][Default] [console] [HS][Performance] 50340942 PERF - Finished parsing data for Home [2024-05-23_03-09-22][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-23_03-09-22][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-23_03-09-22][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-23_03-09-22][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-49e9ab1b-0a00-46f8-88c3-d50649ad84b6.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-FA360487C02C40329B2F498C7BB9970E.json [2024-05-23_13-10-11][80384][Default] [console] [HS][Performance] 86389853 PERF - IMS.updateAccessToken start [2024-05-23_13-10-11][80384][Default] [console] [HS][Performance] log perf event: time: 86389879 message: Updated access token [2024-05-23_13-10-11][80384][Default] [console] [HS][Performance] 86389879 PERF - Updated access token [2024-05-23_13-10-11][80384][Default] [console] [HS][Performance] log perf event: time: 28 message: IMS.updateAccessToken [2024-05-23_13-10-11][80384][Default] [console] [HS][Performance] 86389881 PERF - IMS.updateAccessToken done: 28 [2024-05-23_13-10-19][181912][Info] [console] TOKEN: Expired token fired [2024-05-23_13-10-19][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-23_13-10-19][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-23_13-10-20][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-23_13-10-21][80384][Default] [console] [HS][Performance] 86399880 PERF - IMS.updateAccessToken start [2024-05-23_13-10-21][80384][Default] [console] [HS][Performance] log perf event: time: 86400081 message: Updated access token - throttled at 10000ms [2024-05-23_13-10-21][80384][Default] [console] [HS][Performance] 86400081 PERF - Updated access token - throttled at 10000ms [2024-05-23_13-10-21][80384][Default] [console] [HS][Performance] log perf event: time: 202 message: IMS.updateAccessToken [2024-05-23_13-10-21][80384][Default] [console] [HS][Performance] 86400082 PERF - IMS.updateAccessToken done: 202 [2024-05-23_18-39-16][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-05-23_18-39-16][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] log perf event: time: 106135023 message: Data Loader for utut: Get data using File Accessor. [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] 106135023 PERF - Data Loader for utut: Get data using File Accessor. [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] log perf event: time: 106135034 message: Data Loader for utut: Read data using File Accessor. [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] 106135034 PERF - Data Loader for utut: Read data using File Accessor. [2024-05-23_18-39-16][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-23_18-39-16][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] log perf event: time: 106135065 message: Loaded JSON Data: Utut [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] 106135065 PERF - Loaded JSON Data: Utut [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] log perf event: time: 106135066 message: Parsed JSON file for Utut [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] 106135066 PERF - Parsed JSON file for Utut [2024-05-23_18-39-16][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-08f8128f-2d32-4c98-a840-23924b5e7d6b.json [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] log perf event: time: 106135069 message: Finished parsing data for Utut [2024-05-23_18-39-16][80384][Default] [console] [HS][Performance] 106135069 PERF - Finished parsing data for Utut [2024-05-23_18-39-16][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-05-23_18-39-16][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-23_18-39-16][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-23_18-39-16][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-05-23_18-39-16][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Utut [2024-05-23_18-39-16][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-05-23_18-39-16][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-08f8128f-2d32-4c98-a840-23924b5e7d6b.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\clientLogs\PHXS-24-7-0-pl_PL-083A268934364A6AAD1FF772CB86C5ED.json [2024-05-23_23-36-47][80384][Default] [console] [QuotaStore-1] quota available [2024-05-23_23-39-46][80384][Default] [console] [QuotaStore-1] quota available [2024-05-24_05-11-59][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-24_05-11-59][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] log perf event: time: 144097149 message: Data Loader for home: Get data using File Accessor. [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] 144097149 PERF - Data Loader for home: Get data using File Accessor. [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] log perf event: time: 144097159 message: Data Loader for home: Read data using File Accessor. [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] 144097159 PERF - Data Loader for home: Read data using File Accessor. [2024-05-24_05-11-59][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-24_05-11-59][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] log perf event: time: 144097166 message: Loaded JSON Data: Home [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] 144097166 PERF - Loaded JSON Data: Home [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] log perf event: time: 144097167 message: Parsed JSON file for Home [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] 144097167 PERF - Parsed JSON file for Home [2024-05-24_05-11-59][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-a243c8ed-a3dc-43e8-b03e-e3cf6f69687f.json [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] log perf event: time: 144097168 message: Finished parsing data for Home [2024-05-24_05-11-59][80384][Default] [console] [HS][Performance] 144097168 PERF - Finished parsing data for Home [2024-05-24_05-11-59][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-24_05-11-59][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-24_05-11-59][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-a243c8ed-a3dc-43e8-b03e-e3cf6f69687f.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-2FCA1C462542490E8DC31631C17A3E8F.json [2024-05-24_05-11-59][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-24_10-42-18][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-24_13-10-09][181912][Info] [console] TOKEN: Expired token fired [2024-05-24_13-10-09][80384][Default] [console] [HS][Performance] 172788078 PERF - IMS.updateAccessToken start [2024-05-24_13-10-09][80384][Default] [console] [HS][Performance] log perf event: time: 172788085 message: Updated access token [2024-05-24_13-10-09][80384][Default] [console] [HS][Performance] 172788085 PERF - Updated access token [2024-05-24_13-10-09][80384][Default] [console] [HS][Performance] log perf event: time: 9 message: IMS.updateAccessToken [2024-05-24_13-10-09][80384][Default] [console] [HS][Performance] 172788087 PERF - IMS.updateAccessToken done: 9 [2024-05-24_13-10-10][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-24_13-10-10][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-24_13-10-10][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-24_13-10-19][80384][Default] [console] [HS][Performance] 172798086 PERF - IMS.updateAccessToken start [2024-05-24_13-10-20][80384][Default] [console] [HS][Performance] log perf event: time: 172798312 message: Updated access token - throttled at 10000ms [2024-05-24_13-10-20][80384][Default] [console] [HS][Performance] 172798312 PERF - Updated access token - throttled at 10000ms [2024-05-24_13-10-20][80384][Default] [console] [HS][Performance] log perf event: time: 227 message: IMS.updateAccessToken [2024-05-24_13-10-20][80384][Default] [console] [HS][Performance] 172798313 PERF - IMS.updateAccessToken done: 227 [2024-05-24_23-31-49][80384][Default] [console] [QuotaStore-1] quota available [2024-05-24_23-34-48][80384][Default] [console] [QuotaStore-1] quota available [2024-05-25_07-13-40][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-25_07-13-40][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] log perf event: time: 237798185 message: Data Loader for home: Get data using File Accessor. [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] 237798185 PERF - Data Loader for home: Get data using File Accessor. [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] log perf event: time: 237798195 message: Data Loader for home: Read data using File Accessor. [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] 237798195 PERF - Data Loader for home: Read data using File Accessor. [2024-05-25_07-13-40][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-25_07-13-40][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] log perf event: time: 237798204 message: Loaded JSON Data: Home [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] 237798204 PERF - Loaded JSON Data: Home [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] log perf event: time: 237798204 message: Parsed JSON file for Home [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] 237798204 PERF - Parsed JSON file for Home [2024-05-25_07-13-40][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-92051205-26eb-4a01-a238-4010e6b22bdf.json [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] log perf event: time: 237798206 message: Finished parsing data for Home [2024-05-25_07-13-40][80384][Default] [console] [HS][Performance] 237798206 PERF - Finished parsing data for Home [2024-05-25_07-13-40][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-25_07-13-40][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-25_07-13-40][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-25_07-13-40][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-92051205-26eb-4a01-a238-4010e6b22bdf.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-BE09BC96ACE14889AE94AC7D11733A62.json [2024-05-25_12-49-07][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-25_13-09-59][181912][Info] [console] TOKEN: Expired token fired [2024-05-25_13-10-00][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-25_13-10-00][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-25_13-10-00][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-25_13-10-07][80384][Default] [console] [HS][Performance] 259185385 PERF - IMS.updateAccessToken start [2024-05-25_13-10-07][80384][Default] [console] [HS][Performance] log perf event: time: 259185414 message: Updated access token [2024-05-25_13-10-07][80384][Default] [console] [HS][Performance] 259185414 PERF - Updated access token [2024-05-25_13-10-07][80384][Default] [console] [HS][Performance] log perf event: time: 41 message: IMS.updateAccessToken [2024-05-25_13-10-07][80384][Default] [console] [HS][Performance] 259185426 PERF - IMS.updateAccessToken done: 41 [2024-05-25_13-10-17][80384][Default] [console] [HS][Performance] 259195416 PERF - IMS.updateAccessToken start [2024-05-25_13-10-17][80384][Default] [console] [HS][Performance] log perf event: time: 259195612 message: Updated access token - throttled at 10000ms [2024-05-25_13-10-17][80384][Default] [console] [HS][Performance] 259195612 PERF - Updated access token - throttled at 10000ms [2024-05-25_13-10-17][80384][Default] [console] [HS][Performance] log perf event: time: 196 message: IMS.updateAccessToken [2024-05-25_13-10-17][80384][Default] [console] [HS][Performance] 259195612 PERF - IMS.updateAccessToken done: 196 [2024-05-25_19-04-04][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-05-25_19-04-04][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] log perf event: time: 280422638 message: Data Loader for utut: Get data using File Accessor. [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] 280422638 PERF - Data Loader for utut: Get data using File Accessor. [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] log perf event: time: 280422647 message: Data Loader for utut: Read data using File Accessor. [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] 280422647 PERF - Data Loader for utut: Read data using File Accessor. [2024-05-25_19-04-04][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-25_19-04-04][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] log perf event: time: 280422672 message: Loaded JSON Data: Utut [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] 280422672 PERF - Loaded JSON Data: Utut [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] log perf event: time: 280422673 message: Parsed JSON file for Utut [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] 280422673 PERF - Parsed JSON file for Utut [2024-05-25_19-04-04][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-a58a84f0-bc5e-4bf2-9a29-4b1e498b8644.json [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] log perf event: time: 280422674 message: Finished parsing data for Utut [2024-05-25_19-04-04][80384][Default] [console] [HS][Performance] 280422674 PERF - Finished parsing data for Utut [2024-05-25_19-04-04][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-05-25_19-04-04][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-25_19-04-04][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-25_19-04-04][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-05-25_19-04-04][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Utut [2024-05-25_19-04-04][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-05-25_19-04-04][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-a58a84f0-bc5e-4bf2-9a29-4b1e498b8644.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\clientLogs\PHXS-24-7-0-pl_PL-F9E9E46F08674945BD2F7B19DCC1DD1B.json [2024-05-25_23-26-50][80384][Default] [console] [QuotaStore-1] quota available [2024-05-25_23-29-49][80384][Default] [console] [QuotaStore-1] quota available [2024-05-26_07-59-23][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-26_07-59-23][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] log perf event: time: 326941657 message: Data Loader for home: Get data using File Accessor. [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] 326941657 PERF - Data Loader for home: Get data using File Accessor. [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] log perf event: time: 326941673 message: Data Loader for home: Read data using File Accessor. [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] 326941673 PERF - Data Loader for home: Read data using File Accessor. [2024-05-26_07-59-23][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-26_07-59-23][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] log perf event: time: 326941685 message: Loaded JSON Data: Home [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] 326941685 PERF - Loaded JSON Data: Home [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] log perf event: time: 326941686 message: Parsed JSON file for Home [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] 326941686 PERF - Parsed JSON file for Home [2024-05-26_07-59-23][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-9ca88707-04b3-4a3a-a9ec-4c0eb971b62e.json [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] log perf event: time: 326941689 message: Finished parsing data for Home [2024-05-26_07-59-23][80384][Default] [console] [HS][Performance] 326941689 PERF - Finished parsing data for Home [2024-05-26_07-59-23][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-26_07-59-23][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-26_07-59-23][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-26_07-59-23][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-9ca88707-04b3-4a3a-a9ec-4c0eb971b62e.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-14AA7579060E48B1A7B41C6BFD2D289D.json [2024-05-26_13-09-49][181912][Info] [console] TOKEN: Expired token fired [2024-05-26_13-09-50][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-26_13-09-50][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-26_13-09-50][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-26_13-10-03][80384][Default] [console] [HS][Performance] 345581803 PERF - IMS.updateAccessToken start [2024-05-26_13-10-03][80384][Default] [console] [HS][Performance] log perf event: time: 345581820 message: Updated access token [2024-05-26_13-10-03][80384][Default] [console] [HS][Performance] 345581820 PERF - Updated access token [2024-05-26_13-10-03][80384][Default] [console] [HS][Performance] log perf event: time: 19 message: IMS.updateAccessToken [2024-05-26_13-10-03][80384][Default] [console] [HS][Performance] 345581822 PERF - IMS.updateAccessToken done: 19 [2024-05-26_13-10-13][80384][Default] [console] [HS][Performance] 345591822 PERF - IMS.updateAccessToken start [2024-05-26_13-10-13][80384][Default] [console] [HS][Performance] log perf event: time: 345592048 message: Updated access token - throttled at 10000ms [2024-05-26_13-10-13][80384][Default] [console] [HS][Performance] 345592048 PERF - Updated access token - throttled at 10000ms [2024-05-26_13-10-13][80384][Default] [console] [HS][Performance] log perf event: time: 228 message: IMS.updateAccessToken [2024-05-26_13-10-13][80384][Default] [console] [HS][Performance] 345592050 PERF - IMS.updateAccessToken done: 228 [2024-05-26_14-36-18][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-26_23-21-52][80384][Default] [console] [QuotaStore-1] quota available [2024-05-26_23-24-51][80384][Default] [console] [QuotaStore-1] quota available [2024-05-27_09-19-38][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-27_09-19-38][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] log perf event: time: 418156133 message: Data Loader for home: Get data using File Accessor. [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] 418156133 PERF - Data Loader for home: Get data using File Accessor. [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] log perf event: time: 418156146 message: Data Loader for home: Read data using File Accessor. [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] 418156146 PERF - Data Loader for home: Read data using File Accessor. [2024-05-27_09-19-38][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-27_09-19-38][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] log perf event: time: 418156154 message: Loaded JSON Data: Home [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] 418156154 PERF - Loaded JSON Data: Home [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] log perf event: time: 418156155 message: Parsed JSON file for Home [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] 418156155 PERF - Parsed JSON file for Home [2024-05-27_09-19-38][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-d2b0cf4e-d5a2-44d2-b96c-e85eda0daa36.json [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] log perf event: time: 418156157 message: Finished parsing data for Home [2024-05-27_09-19-38][80384][Default] [console] [HS][Performance] 418156157 PERF - Finished parsing data for Home [2024-05-27_09-19-38][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-27_09-19-38][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-27_09-19-38][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-27_09-19-38][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-d2b0cf4e-d5a2-44d2-b96c-e85eda0daa36.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-26829C740C8E45D9AA0365DA88D66314.json [2024-05-27_13-09-40][181912][Info] [console] TOKEN: Expired token fired [2024-05-27_13-09-40][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-27_13-09-40][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-27_13-09-41][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-27_13-09-59][80384][Default] [console] [HS][Performance] 431977345 PERF - IMS.updateAccessToken start [2024-05-27_13-09-59][80384][Default] [console] [HS][Performance] log perf event: time: 431977364 message: Updated access token [2024-05-27_13-09-59][80384][Default] [console] [HS][Performance] 431977364 PERF - Updated access token [2024-05-27_13-09-59][80384][Default] [console] [HS][Performance] log perf event: time: 22 message: IMS.updateAccessToken [2024-05-27_13-09-59][80384][Default] [console] [HS][Performance] 431977367 PERF - IMS.updateAccessToken done: 22 [2024-05-27_13-10-09][80384][Default] [console] [HS][Performance] 431987365 PERF - IMS.updateAccessToken start [2024-05-27_13-10-09][80384][Default] [console] [HS][Performance] log perf event: time: 431987593 message: Updated access token - throttled at 10000ms [2024-05-27_13-10-09][80384][Default] [console] [HS][Performance] 431987593 PERF - Updated access token - throttled at 10000ms [2024-05-27_13-10-09][80384][Default] [console] [HS][Performance] log perf event: time: 231 message: IMS.updateAccessToken [2024-05-27_13-10-09][80384][Default] [console] [HS][Performance] 431987596 PERF - IMS.updateAccessToken done: 231 [2024-05-27_13-20-46][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-23-35][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-33-17][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-33-43][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-34-24][80384][Error] [console] [DP] Error: source_not_found [2024-05-27_13-34-24][80384][Error] [console] [DP] Error: source_not_found [2024-05-27_13-34-35][80384][Error] [console] [DP] Error: source_not_found [2024-05-27_13-34-35][80384][Error] [console] [DP] Error: source_not_found [2024-05-27_13-42-23][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-45-22][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-45-53][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-56-53][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-58-53][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_13-59-30][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_14-02-00][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_14-02-33][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-27_15-46-47][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-27_20-30-41][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-05-27_20-30-41][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] log perf event: time: 458425208 message: Data Loader for utut: Get data using File Accessor. [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] 458425208 PERF - Data Loader for utut: Get data using File Accessor. [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] log perf event: time: 458425222 message: Data Loader for utut: Read data using File Accessor. [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] 458425222 PERF - Data Loader for utut: Read data using File Accessor. [2024-05-27_20-30-41][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-27_20-30-41][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] log perf event: time: 458425248 message: Loaded JSON Data: Utut [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] 458425248 PERF - Loaded JSON Data: Utut [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] log perf event: time: 458425249 message: Parsed JSON file for Utut [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] 458425249 PERF - Parsed JSON file for Utut [2024-05-27_20-30-41][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-9dfd9c12-006d-426f-959c-4b3e0884d8c5.json [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] log perf event: time: 458425254 message: Finished parsing data for Utut [2024-05-27_20-30-41][80384][Default] [console] [HS][Performance] 458425254 PERF - Finished parsing data for Utut [2024-05-27_20-30-41][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-05-27_20-30-41][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-27_20-30-41][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-27_20-30-41][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-05-27_20-30-41][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Utut [2024-05-27_20-30-41][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-05-27_20-30-41][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-9dfd9c12-006d-426f-959c-4b3e0884d8c5.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\clientLogs\PHXS-24-7-0-pl_PL-951295D580B341CBB3DCD4FDF90395A7.json [2024-05-27_23-17-18][80384][Default] [console] [QuotaStore-1] quota available [2024-05-27_23-20-17][80384][Default] [console] [QuotaStore-1] quota available [2024-05-28_10-20-28][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-28_10-20-28][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] log perf event: time: 508212489 message: Data Loader for home: Get data using File Accessor. [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] 508212489 PERF - Data Loader for home: Get data using File Accessor. [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] log perf event: time: 508212504 message: Data Loader for home: Read data using File Accessor. [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] 508212504 PERF - Data Loader for home: Read data using File Accessor. [2024-05-28_10-20-28][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-28_10-20-28][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] log perf event: time: 508212515 message: Loaded JSON Data: Home [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] 508212515 PERF - Loaded JSON Data: Home [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] log perf event: time: 508212516 message: Parsed JSON file for Home [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] 508212516 PERF - Parsed JSON file for Home [2024-05-28_10-20-28][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-64ad9b88-be79-457f-8178-2062e81969ce.json [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] log perf event: time: 508212519 message: Finished parsing data for Home [2024-05-28_10-20-28][80384][Default] [console] [HS][Performance] 508212519 PERF - Finished parsing data for Home [2024-05-28_10-20-28][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-28_10-20-28][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-28_10-20-28][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-64ad9b88-be79-457f-8178-2062e81969ce.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-1CD09937F2FE4222BCFB4CC2A334CB75.json [2024-05-28_10-20-28][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-28_13-09-24][181912][Info] [console] TOKEN: Expired token fired [2024-05-28_13-09-25][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-28_13-09-25][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-28_13-09-25][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-28_13-09-48][80384][Default] [console] [HS][Performance] 518371989 PERF - IMS.updateAccessToken start [2024-05-28_13-09-48][80384][Default] [console] [HS][Performance] log perf event: time: 518372035 message: Updated access token [2024-05-28_13-09-48][80384][Default] [console] [HS][Performance] 518372035 PERF - Updated access token [2024-05-28_13-09-48][80384][Default] [console] [HS][Performance] log perf event: time: 48 message: IMS.updateAccessToken [2024-05-28_13-09-48][80384][Default] [console] [HS][Performance] 518372037 PERF - IMS.updateAccessToken done: 48 [2024-05-28_13-09-58][80384][Default] [console] [HS][Performance] 518382036 PERF - IMS.updateAccessToken start [2024-05-28_13-09-58][80384][Default] [console] [HS][Performance] log perf event: time: 518382042 message: Updated access token - throttled at 10000ms [2024-05-28_13-09-58][80384][Default] [console] [HS][Performance] 518382042 PERF - Updated access token - throttled at 10000ms [2024-05-28_13-09-58][80384][Default] [console] [HS][Performance] log perf event: time: 6 message: IMS.updateAccessToken [2024-05-28_13-09-58][80384][Default] [console] [HS][Performance] 518382042 PERF - IMS.updateAccessToken done: 6 [2024-05-28_13-10-08][80384][Default] [console] [HS][Performance] 518392044 PERF - IMS.updateAccessToken start [2024-05-28_13-10-08][80384][Default] [console] [HS][Performance] log perf event: time: 518392278 message: Updated access token - throttled at 10000ms [2024-05-28_13-10-08][80384][Default] [console] [HS][Performance] 518392278 PERF - Updated access token - throttled at 10000ms [2024-05-28_13-10-08][80384][Default] [console] [HS][Performance] log perf event: time: 237 message: IMS.updateAccessToken [2024-05-28_13-10-08][80384][Default] [console] [HS][Performance] 518392281 PERF - IMS.updateAccessToken done: 237 [2024-05-28_17-49-31][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-28_23-12-19][80384][Default] [console] [QuotaStore-1] quota available [2024-05-28_23-15-19][80384][Default] [console] [QuotaStore-1] quota available [2024-05-29_11-19-48][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-29_11-19-48][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] log perf event: time: 598173768 message: Data Loader for home: Get data using File Accessor. [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] 598173768 PERF - Data Loader for home: Get data using File Accessor. [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] log perf event: time: 598173780 message: Data Loader for home: Read data using File Accessor. [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] 598173780 PERF - Data Loader for home: Read data using File Accessor. [2024-05-29_11-19-48][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-29_11-19-48][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] log perf event: time: 598173791 message: Loaded JSON Data: Home [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] 598173791 PERF - Loaded JSON Data: Home [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] log perf event: time: 598173792 message: Parsed JSON file for Home [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] 598173792 PERF - Parsed JSON file for Home [2024-05-29_11-19-48][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-6bd6672d-cb85-4f28-ac92-1767e7847f5b.json [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] log perf event: time: 598173793 message: Finished parsing data for Home [2024-05-29_11-19-48][80384][Default] [console] [HS][Performance] 598173793 PERF - Finished parsing data for Home [2024-05-29_11-19-48][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-29_11-19-48][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-29_11-19-48][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-29_11-19-48][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-6bd6672d-cb85-4f28-ac92-1767e7847f5b.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-38D9D73E113147EFB1EBC6AFB223F85B.json [2024-05-29_13-09-13][181912][Info] [console] TOKEN: Expired token fired [2024-05-29_13-09-13][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-29_13-09-13][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-29_13-09-14][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-29_13-09-55][80384][Default] [console] [HS][Performance] 604781394 PERF - IMS.updateAccessToken start [2024-05-29_13-09-55][80384][Default] [console] [HS][Performance] log perf event: time: 604781427 message: Updated access token [2024-05-29_13-09-55][80384][Default] [console] [HS][Performance] 604781427 PERF - Updated access token [2024-05-29_13-09-55][80384][Default] [console] [HS][Performance] log perf event: time: 35 message: IMS.updateAccessToken [2024-05-29_13-09-55][80384][Default] [console] [HS][Performance] 604781429 PERF - IMS.updateAccessToken done: 35 [2024-05-29_13-10-05][80384][Default] [console] [HS][Performance] 604791428 PERF - IMS.updateAccessToken start [2024-05-29_13-10-05][80384][Default] [console] [HS][Performance] log perf event: time: 604791439 message: Updated access token - throttled at 10000ms [2024-05-29_13-10-05][80384][Default] [console] [HS][Performance] 604791439 PERF - Updated access token - throttled at 10000ms [2024-05-29_13-10-05][80384][Default] [console] [HS][Performance] log perf event: time: 12 message: IMS.updateAccessToken [2024-05-29_13-10-05][80384][Default] [console] [HS][Performance] 604791440 PERF - IMS.updateAccessToken done: 12 [2024-05-29_13-10-15][80384][Default] [console] [HS][Performance] 604801441 PERF - IMS.updateAccessToken start [2024-05-29_13-10-16][80384][Default] [console] [HS][Performance] log perf event: time: 604801659 message: Updated access token - throttled at 10000ms [2024-05-29_13-10-16][80384][Default] [console] [HS][Performance] 604801659 PERF - Updated access token - throttled at 10000ms [2024-05-29_13-10-16][80384][Default] [console] [HS][Performance] log perf event: time: 219 message: IMS.updateAccessToken [2024-05-29_13-10-16][80384][Default] [console] [HS][Performance] 604801660 PERF - IMS.updateAccessToken done: 219 [2024-05-29_18-21-20][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-29_22-14-22][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-05-29_22-14-22][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] log perf event: time: 637447775 message: Data Loader for utut: Get data using File Accessor. [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] 637447775 PERF - Data Loader for utut: Get data using File Accessor. [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] log perf event: time: 637447791 message: Data Loader for utut: Read data using File Accessor. [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] 637447791 PERF - Data Loader for utut: Read data using File Accessor. [2024-05-29_22-14-22][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] log perf event: time: 637447808 message: Loaded JSON Data: Utut [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] 637447808 PERF - Loaded JSON Data: Utut [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] log perf event: time: 637447810 message: Parsed JSON file for Utut [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] 637447810 PERF - Parsed JSON file for Utut [2024-05-29_22-14-22][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-28972d29-2153-4abb-8ff3-fc07639a20c7.json [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] log perf event: time: 637447812 message: Finished parsing data for Utut [2024-05-29_22-14-22][80384][Default] [console] [HS][Performance] 637447812 PERF - Finished parsing data for Utut [2024-05-29_22-14-22][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-05-29_22-14-22][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-29_22-14-22][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-29_22-14-22][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-05-29_22-14-22][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Utut [2024-05-29_22-14-22][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-05-29_22-14-22][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-28972d29-2153-4abb-8ff3-fc07639a20c7.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\clientLogs\PHXS-24-7-0-pl_PL-8B9F5FDA2AD84DD094F1E89B46000CB7.json [2024-05-29_22-14-22][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-29_23-07-49][80384][Default] [console] [QuotaStore-1] quota available [2024-05-29_23-10-48][80384][Default] [console] [QuotaStore-1] quota available [2024-05-30_11-43-27][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-30_11-43-27][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] log perf event: time: 685992680 message: Data Loader for home: Get data using File Accessor. [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] 685992680 PERF - Data Loader for home: Get data using File Accessor. [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] log perf event: time: 685992714 message: Data Loader for home: Read data using File Accessor. [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] 685992714 PERF - Data Loader for home: Read data using File Accessor. [2024-05-30_11-43-27][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] log perf event: time: 685992727 message: Loaded JSON Data: Home [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] 685992727 PERF - Loaded JSON Data: Home [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] log perf event: time: 685992730 message: Parsed JSON file for Home [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] 685992730 PERF - Parsed JSON file for Home [2024-05-30_11-43-27][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-30_11-43-27][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-478ea4af-d183-472e-8744-099a4e75b12a.json [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] log perf event: time: 685992734 message: Finished parsing data for Home [2024-05-30_11-43-27][80384][Default] [console] [HS][Performance] 685992734 PERF - Finished parsing data for Home [2024-05-30_11-43-27][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-30_11-43-27][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-30_11-43-27][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-30_11-43-27][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-478ea4af-d183-472e-8744-099a4e75b12a.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-9390CF62DB6243CE94B159758FD36518.json [2024-05-30_13-09-03][181912][Info] [console] TOKEN: Expired token fired [2024-05-30_13-09-04][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-30_13-09-04][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-30_13-09-04][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-30_13-10-06][80384][Default] [console] [HS][Performance] 691191746 PERF - IMS.updateAccessToken start [2024-05-30_13-10-06][80384][Default] [console] [HS][Performance] log perf event: time: 691191781 message: Updated access token [2024-05-30_13-10-06][80384][Default] [console] [HS][Performance] 691191781 PERF - Updated access token [2024-05-30_13-10-06][80384][Default] [console] [HS][Performance] log perf event: time: 40 message: IMS.updateAccessToken [2024-05-30_13-10-06][80384][Default] [console] [HS][Performance] 691191786 PERF - IMS.updateAccessToken done: 40 [2024-05-30_13-10-16][80384][Default] [console] [HS][Performance] 691201783 PERF - IMS.updateAccessToken start [2024-05-30_13-10-16][80384][Default] [console] [HS][Performance] log perf event: time: 691202016 message: Updated access token - throttled at 10000ms [2024-05-30_13-10-16][80384][Default] [console] [HS][Performance] 691202016 PERF - Updated access token - throttled at 10000ms [2024-05-30_13-10-16][80384][Default] [console] [HS][Performance] log perf event: time: 234 message: IMS.updateAccessToken [2024-05-30_13-10-16][80384][Default] [console] [HS][Performance] 691202017 PERF - IMS.updateAccessToken done: 234 [2024-05-30_20-10-33][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-30_23-02-52][80384][Default] [console] [QuotaStore-1] quota available [2024-05-30_23-05-50][80384][Default] [console] [QuotaStore-1] quota available [2024-05-31_12-57-44][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-05-31_12-57-44][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] log perf event: time: 776849869 message: Data Loader for home: Get data using File Accessor. [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] 776849869 PERF - Data Loader for home: Get data using File Accessor. [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] log perf event: time: 776849911 message: Data Loader for home: Read data using File Accessor. [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] 776849911 PERF - Data Loader for home: Read data using File Accessor. [2024-05-31_12-57-44][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] log perf event: time: 776849925 message: Loaded JSON Data: Home [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] 776849925 PERF - Loaded JSON Data: Home [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] log perf event: time: 776849928 message: Parsed JSON file for Home [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] 776849928 PERF - Parsed JSON file for Home [2024-05-31_12-57-44][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-31_12-57-44][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-bfcf23ac-8488-4f3c-a538-a29280ada67d.json [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] log perf event: time: 776849946 message: Finished parsing data for Home [2024-05-31_12-57-44][80384][Default] [console] [HS][Performance] 776849946 PERF - Finished parsing data for Home [2024-05-31_12-57-44][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-05-31_12-57-44][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-05-31_12-57-44][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-bfcf23ac-8488-4f3c-a538-a29280ada67d.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-9DBBB1FD900C423083EBCE872313634A.json [2024-05-31_12-57-44][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-05-31_13-08-53][181912][Info] [console] TOKEN: Expired token fired [2024-05-31_13-08-54][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-05-31_13-08-54][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-05-31_13-08-54][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-05-31_13-10-05][80384][Default] [console] [HS][Performance] 777591204 PERF - IMS.updateAccessToken start [2024-05-31_13-10-05][80384][Default] [console] [HS][Performance] log perf event: time: 777591214 message: Updated access token [2024-05-31_13-10-05][80384][Default] [console] [HS][Performance] 777591214 PERF - Updated access token [2024-05-31_13-10-05][80384][Default] [console] [HS][Performance] log perf event: time: 13 message: IMS.updateAccessToken [2024-05-31_13-10-05][80384][Default] [console] [HS][Performance] 777591217 PERF - IMS.updateAccessToken done: 13 [2024-05-31_13-10-15][80384][Default] [console] [HS][Performance] 777601214 PERF - IMS.updateAccessToken start [2024-05-31_13-10-15][80384][Default] [console] [HS][Performance] log perf event: time: 777601422 message: Updated access token - throttled at 10000ms [2024-05-31_13-10-15][80384][Default] [console] [HS][Performance] 777601422 PERF - Updated access token - throttled at 10000ms [2024-05-31_13-10-15][80384][Default] [console] [HS][Performance] log perf event: time: 222 message: IMS.updateAccessToken [2024-05-31_13-10-15][80384][Default] [console] [HS][Performance] 777601436 PERF - IMS.updateAccessToken done: 222 [2024-05-31_20-39-08][80384][Default] [console] [HS][Photoshop] PS: Recent list changed. No of items = 20 [2024-05-31_21-57-16][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-05-31_22-58-21][80384][Default] [console] [QuotaStore-1] quota available [2024-05-31_23-01-20][80384][Default] [console] [QuotaStore-1] quota available [2024-05-31_23-07-01][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-05-31_23-07-01][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] log perf event: time: 813409102 message: Data Loader for utut: Get data using File Accessor. [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] 813409102 PERF - Data Loader for utut: Get data using File Accessor. [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] log perf event: time: 813409109 message: Data Loader for utut: Read data using File Accessor. [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] 813409109 PERF - Data Loader for utut: Read data using File Accessor. [2024-05-31_23-07-01][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] log perf event: time: 813409119 message: Loaded JSON Data: Utut [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] 813409119 PERF - Loaded JSON Data: Utut [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] log perf event: time: 813409120 message: Parsed JSON file for Utut [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] 813409120 PERF - Parsed JSON file for Utut [2024-05-31_23-07-01][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-c55bbbb0-2099-44cb-8804-8eeebb743737.json [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] log perf event: time: 813409121 message: Finished parsing data for Utut [2024-05-31_23-07-01][80384][Default] [console] [HS][Performance] 813409121 PERF - Finished parsing data for Utut [2024-05-31_23-07-01][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-05-31_23-07-01][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-31_23-07-01][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-05-31_23-07-01][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-05-31_23-07-01][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Utut [2024-05-31_23-07-01][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-05-31_23-07-01][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-05-31_23-07-01][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-c55bbbb0-2099-44cb-8804-8eeebb743737.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\clientLogs\PHXS-24-7-0-pl_PL-2CBBE91F9B894CB3B42F403480D5A353.json [2024-06-01_13-08-42][181912][Info] [console] TOKEN: Expired token fired [2024-06-01_13-08-42][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-06-01_13-08-42][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-06-01_13-08-43][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-06-01_13-10-02][80384][Default] [console] [HS][Performance] 863989732 PERF - IMS.updateAccessToken start [2024-06-01_13-10-02][80384][Default] [console] [HS][Performance] log perf event: time: 863989778 message: Updated access token [2024-06-01_13-10-02][80384][Default] [console] [HS][Performance] 863989778 PERF - Updated access token [2024-06-01_13-10-02][80384][Default] [console] [HS][Performance] log perf event: time: 64 message: IMS.updateAccessToken [2024-06-01_13-10-02][80384][Default] [console] [HS][Performance] 863989796 PERF - IMS.updateAccessToken done: 64 [2024-06-01_13-10-12][80384][Default] [console] [HS][Performance] 863999780 PERF - IMS.updateAccessToken start [2024-06-01_13-10-12][80384][Default] [console] [HS][Performance] log perf event: time: 863999819 message: Updated access token - throttled at 10000ms [2024-06-01_13-10-12][80384][Default] [console] [HS][Performance] 863999819 PERF - Updated access token - throttled at 10000ms [2024-06-01_13-10-12][80384][Default] [console] [HS][Performance] log perf event: time: 39 message: IMS.updateAccessToken [2024-06-01_13-10-12][80384][Default] [console] [HS][Performance] 863999819 PERF - IMS.updateAccessToken done: 39 [2024-06-01_13-10-22][80384][Default] [console] [HS][Performance] 864009819 PERF - IMS.updateAccessToken start [2024-06-01_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 864010337 message: Updated access token - throttled at 10000ms [2024-06-01_13-10-22][80384][Default] [console] [HS][Performance] 864010337 PERF - Updated access token - throttled at 10000ms [2024-06-01_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 533 message: IMS.updateAccessToken [2024-06-01_13-10-22][80384][Default] [console] [HS][Performance] 864010352 PERF - IMS.updateAccessToken done: 533 [2024-06-01_14-01-23][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-06-01_14-01-23][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] log perf event: time: 867070381 message: Data Loader for home: Get data using File Accessor. [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] 867070381 PERF - Data Loader for home: Get data using File Accessor. [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] log perf event: time: 867070414 message: Data Loader for home: Read data using File Accessor. [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] 867070414 PERF - Data Loader for home: Read data using File Accessor. [2024-06-01_14-01-23][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] log perf event: time: 867070430 message: Loaded JSON Data: Home [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] 867070430 PERF - Loaded JSON Data: Home [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] log perf event: time: 867070432 message: Parsed JSON file for Home [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] 867070432 PERF - Parsed JSON file for Home [2024-06-01_14-01-23][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-01_14-01-23][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-88e717de-e5eb-4d7c-aac7-bcd29d45ef24.json [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] log perf event: time: 867070437 message: Finished parsing data for Home [2024-06-01_14-01-23][80384][Default] [console] [HS][Performance] 867070437 PERF - Finished parsing data for Home [2024-06-01_14-01-23][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-06-01_14-01-23][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-06-01_14-01-23][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-06-01_14-01-23][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-88e717de-e5eb-4d7c-aac7-bcd29d45ef24.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-99F848ED2E8843FF8F91A9F27A13205C.json [2024-06-01_14-28-49][80384][Default] [console] [QuotaStore-1] quota available [2024-06-01_14-31-49][80384][Default] [console] [QuotaStore-1] quota available [2024-06-01_14-33-05][80384][Default] [console] [QuotaStore-1] quota available [2024-06-01_14-36-05][80384][Default] [console] [QuotaStore-1] quota available [2024-06-01_22-12-24][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-06-01_22-53-23][80384][Default] [console] [QuotaStore-1] quota available [2024-06-01_22-56-22][80384][Default] [console] [QuotaStore-1] quota available [2024-06-02_13-08-32][181912][Info] [console] TOKEN: Expired token fired [2024-06-02_13-08-33][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-06-02_13-08-33][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-06-02_13-08-33][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-06-02_13-10-12][80384][Default] [console] [HS][Performance] 950399472 PERF - IMS.updateAccessToken start [2024-06-02_13-10-12][80384][Default] [console] [HS][Performance] log perf event: time: 950399488 message: Updated access token [2024-06-02_13-10-12][80384][Default] [console] [HS][Performance] 950399488 PERF - Updated access token [2024-06-02_13-10-12][80384][Default] [console] [HS][Performance] log perf event: time: 31 message: IMS.updateAccessToken [2024-06-02_13-10-12][80384][Default] [console] [HS][Performance] 950399503 PERF - IMS.updateAccessToken done: 31 [2024-06-02_13-10-22][80384][Default] [console] [HS][Performance] 950409490 PERF - IMS.updateAccessToken start [2024-06-02_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 950409721 message: Updated access token - throttled at 10000ms [2024-06-02_13-10-22][80384][Default] [console] [HS][Performance] 950409721 PERF - Updated access token - throttled at 10000ms [2024-06-02_13-10-22][80384][Default] [console] [HS][Performance] log perf event: time: 237 message: IMS.updateAccessToken [2024-06-02_13-10-22][80384][Default] [console] [HS][Performance] 950409727 PERF - IMS.updateAccessToken done: 237 [2024-06-02_15-02-18][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-06-02_15-02-18][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] log perf event: time: 957126245 message: Data Loader for home: Get data using File Accessor. [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] 957126245 PERF - Data Loader for home: Get data using File Accessor. [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] log perf event: time: 957126257 message: Data Loader for home: Read data using File Accessor. [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] 957126257 PERF - Data Loader for home: Read data using File Accessor. [2024-06-02_15-02-18][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] log perf event: time: 957126267 message: Loaded JSON Data: Home [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] 957126267 PERF - Loaded JSON Data: Home [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] log perf event: time: 957126271 message: Parsed JSON file for Home [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] 957126271 PERF - Parsed JSON file for Home [2024-06-02_15-02-18][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-02_15-02-18][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-b0d630cc-1684-4452-8709-b1fac1693338.json [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] log perf event: time: 957126290 message: Finished parsing data for Home [2024-06-02_15-02-18][80384][Default] [console] [HS][Performance] 957126290 PERF - Finished parsing data for Home [2024-06-02_15-02-18][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-06-02_15-02-18][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-06-02_15-02-18][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-06-02_15-02-19][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-b0d630cc-1684-4452-8709-b1fac1693338.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-DC4F7FAF12DB40B6B0D95B85097D74A7.json [2024-06-02_22-48-25][80384][Default] [console] [QuotaStore-1] quota available [2024-06-02_22-51-23][80384][Default] [console] [QuotaStore-1] quota available [2024-06-02_23-19-14][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-06-03_00-25-18][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-06-03_00-25-18][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] log perf event: time: 990906192 message: Data Loader for utut: Get data using File Accessor. [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] 990906192 PERF - Data Loader for utut: Get data using File Accessor. [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] log perf event: time: 990906200 message: Data Loader for utut: Read data using File Accessor. [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] 990906200 PERF - Data Loader for utut: Read data using File Accessor. [2024-06-03_00-25-18][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] log perf event: time: 990906212 message: Loaded JSON Data: Utut [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] 990906212 PERF - Loaded JSON Data: Utut [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] log perf event: time: 990906213 message: Parsed JSON file for Utut [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] 990906213 PERF - Parsed JSON file for Utut [2024-06-03_00-25-18][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-d1677cd4-d6b4-47e6-948e-343e5fae2239.json [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] log perf event: time: 990906217 message: Finished parsing data for Utut [2024-06-03_00-25-18][80384][Default] [console] [HS][Performance] 990906217 PERF - Finished parsing data for Utut [2024-06-03_00-25-18][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-06-03_00-25-18][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-06-03_00-25-18][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-06-03_00-25-18][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-06-03_00-25-18][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Utut [2024-06-03_00-25-18][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-06-03_00-25-18][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-03_00-25-18][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-d1677cd4-d6b4-47e6-948e-343e5fae2239.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\clientLogs\PHXS-24-7-0-pl_PL-FDD5AFDB0EF1495FA6897514F0C3F977.json [2024-06-03_13-08-22][181912][Info] [console] TOKEN: Expired token fired [2024-06-03_13-08-23][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-06-03_13-08-23][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-06-03_13-08-23][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-06-03_13-10-10][80384][Default] [console] [HS][Performance] 1036797962 PERF - IMS.updateAccessToken start [2024-06-03_13-10-10][80384][Default] [console] [HS][Performance] log perf event: time: 1036797983 message: Updated access token [2024-06-03_13-10-10][80384][Default] [console] [HS][Performance] 1036797983 PERF - Updated access token [2024-06-03_13-10-10][80384][Default] [console] [HS][Performance] log perf event: time: 34 message: IMS.updateAccessToken [2024-06-03_13-10-10][80384][Default] [console] [HS][Performance] 1036797996 PERF - IMS.updateAccessToken done: 34 [2024-06-03_13-10-20][80384][Default] [console] [HS][Performance] 1036807984 PERF - IMS.updateAccessToken start [2024-06-03_13-10-20][80384][Default] [console] [HS][Performance] log perf event: time: 1036808210 message: Updated access token - throttled at 10000ms [2024-06-03_13-10-20][80384][Default] [console] [HS][Performance] 1036808210 PERF - Updated access token - throttled at 10000ms [2024-06-03_13-10-20][80384][Default] [console] [HS][Performance] log perf event: time: 233 message: IMS.updateAccessToken [2024-06-03_13-10-20][80384][Default] [console] [HS][Performance] 1036808217 PERF - IMS.updateAccessToken done: 233 [2024-06-03_15-09-09][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-06-03_15-09-09][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] log perf event: time: 1043936435 message: Data Loader for home: Get data using File Accessor. [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] 1043936435 PERF - Data Loader for home: Get data using File Accessor. [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] log perf event: time: 1043936452 message: Data Loader for home: Read data using File Accessor. [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] 1043936452 PERF - Data Loader for home: Read data using File Accessor. [2024-06-03_15-09-09][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-03_15-09-09][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] log perf event: time: 1043936470 message: Loaded JSON Data: Home [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] 1043936470 PERF - Loaded JSON Data: Home [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] log perf event: time: 1043936471 message: Parsed JSON file for Home [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] 1043936471 PERF - Parsed JSON file for Home [2024-06-03_15-09-09][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-a926033e-a096-4326-9e10-1e4c23955482.json [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] log perf event: time: 1043936475 message: Finished parsing data for Home [2024-06-03_15-09-09][80384][Default] [console] [HS][Performance] 1043936475 PERF - Finished parsing data for Home [2024-06-03_15-09-09][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-06-03_15-09-09][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-06-03_15-09-09][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-06-03_15-09-09][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-a926033e-a096-4326-9e10-1e4c23955482.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-C746D58BF78D43159AC75DB2CEF16822.json [2024-06-03_22-43-26][80384][Default] [console] [QuotaStore-1] quota available [2024-06-03_22-46-25][80384][Default] [console] [QuotaStore-1] quota available [2024-06-04_00-06-06][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-06-04_13-08-09][181912][Info] [console] TOKEN: Expired token fired [2024-06-04_13-08-10][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-06-04_13-08-10][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-06-04_13-08-10][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-06-04_13-10-04][80384][Default] [console] [HS][Performance] 1123195555 PERF - IMS.updateAccessToken start [2024-06-04_13-10-04][80384][Default] [console] [HS][Performance] log perf event: time: 1123195593 message: Updated access token [2024-06-04_13-10-04][80384][Default] [console] [HS][Performance] 1123195593 PERF - Updated access token [2024-06-04_13-10-04][80384][Default] [console] [HS][Performance] log perf event: time: 50 message: IMS.updateAccessToken [2024-06-04_13-10-04][80384][Default] [console] [HS][Performance] 1123195605 PERF - IMS.updateAccessToken done: 50 [2024-06-04_13-10-14][80384][Default] [console] [HS][Performance] 1123205594 PERF - IMS.updateAccessToken start [2024-06-04_13-10-14][80384][Default] [console] [HS][Performance] log perf event: time: 1123205601 message: Updated access token - throttled at 10000ms [2024-06-04_13-10-14][80384][Default] [console] [HS][Performance] 1123205601 PERF - Updated access token - throttled at 10000ms [2024-06-04_13-10-14][80384][Default] [console] [HS][Performance] log perf event: time: 8 message: IMS.updateAccessToken [2024-06-04_13-10-14][80384][Default] [console] [HS][Performance] 1123205602 PERF - IMS.updateAccessToken done: 8 [2024-06-04_13-10-24][80384][Default] [console] [HS][Performance] 1123215602 PERF - IMS.updateAccessToken start [2024-06-04_13-10-25][80384][Default] [console] [HS][Performance] log perf event: time: 1123215857 message: Updated access token - throttled at 10000ms [2024-06-04_13-10-25][80384][Default] [console] [HS][Performance] 1123215857 PERF - Updated access token - throttled at 10000ms [2024-06-04_13-10-25][80384][Default] [console] [HS][Performance] log perf event: time: 262 message: IMS.updateAccessToken [2024-06-04_13-10-25][80384][Default] [console] [HS][Performance] 1123215864 PERF - IMS.updateAccessToken done: 262 [2024-06-04_17-08-00][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-06-04_17-08-00][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] log perf event: time: 1137471501 message: Data Loader for home: Get data using File Accessor. [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] 1137471501 PERF - Data Loader for home: Get data using File Accessor. [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] log perf event: time: 1137471520 message: Data Loader for home: Read data using File Accessor. [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] 1137471520 PERF - Data Loader for home: Read data using File Accessor. [2024-06-04_17-08-00][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-04_17-08-00][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] log perf event: time: 1137471537 message: Loaded JSON Data: Home [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] 1137471537 PERF - Loaded JSON Data: Home [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] log perf event: time: 1137471538 message: Parsed JSON file for Home [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] 1137471538 PERF - Parsed JSON file for Home [2024-06-04_17-08-00][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-58384c51-98e9-4048-8dfa-4bca8bb21af2.json [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] log perf event: time: 1137471541 message: Finished parsing data for Home [2024-06-04_17-08-00][80384][Default] [console] [HS][Performance] 1137471541 PERF - Finished parsing data for Home [2024-06-04_17-08-00][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-06-04_17-08-00][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-06-04_17-08-00][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-06-04_17-08-00][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-58384c51-98e9-4048-8dfa-4bca8bb21af2.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-7B6EB86DE4D84A4E85D0249BEA8121BC.json [2024-06-04_22-38-54][80384][Default] [console] [QuotaStore-1] quota available [2024-06-04_22-41-53][80384][Default] [console] [QuotaStore-1] quota available [2024-06-05_01-37-54][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-06-05_01-37-54][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] log perf event: time: 1168065490 message: Data Loader for utut: Get data using File Accessor. [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] 1168065490 PERF - Data Loader for utut: Get data using File Accessor. [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] log perf event: time: 1168065497 message: Data Loader for utut: Read data using File Accessor. [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] 1168065497 PERF - Data Loader for utut: Read data using File Accessor. [2024-06-05_01-37-54][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] log perf event: time: 1168065517 message: Loaded JSON Data: Utut [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] 1168065517 PERF - Loaded JSON Data: Utut [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] log perf event: time: 1168065518 message: Parsed JSON file for Utut [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] 1168065518 PERF - Parsed JSON file for Utut [2024-06-05_01-37-54][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-59b4bed3-e7ac-408a-8056-587b8923cee8.json [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] log perf event: time: 1168065519 message: Finished parsing data for Utut [2024-06-05_01-37-54][80384][Default] [console] [HS][Performance] 1168065519 PERF - Finished parsing data for Utut [2024-06-05_01-37-54][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-06-05_01-37-54][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-06-05_01-37-54][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-06-05_01-37-54][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-06-05_01-37-54][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Utut [2024-06-05_01-37-54][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-06-05_01-37-54][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-05_01-37-54][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-59b4bed3-e7ac-408a-8056-587b8923cee8.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\clientLogs\PHXS-24-7-0-pl_PL-141B5924812C41B6AFA5701328C7F564.json [2024-06-05_02-12-43][80384][Error] [console] [DP] Invalid locale meta information for CuratedContent [2024-06-05_08-12-28][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-06-05_08-12-28][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] log perf event: time: 1191739310 message: Data Loader for home: Get data using File Accessor. [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] 1191739310 PERF - Data Loader for home: Get data using File Accessor. [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] log perf event: time: 1191739320 message: Data Loader for home: Read data using File Accessor. [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] 1191739320 PERF - Data Loader for home: Read data using File Accessor. [2024-06-05_08-12-28][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] log perf event: time: 1191739323 message: Loaded JSON Data: Home [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] 1191739323 PERF - Loaded JSON Data: Home [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] log perf event: time: 1191739324 message: Parsed JSON file for Home [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] 1191739324 PERF - Parsed JSON file for Home [2024-06-05_08-12-28][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-05_08-12-28][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-58384c51-98e9-4048-8dfa-4bca8bb21af2.json [2024-06-05_08-12-28][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-58384c51-98e9-4048-8dfa-4bca8bb21af2.json [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] log perf event: time: 1191739333 message: Finished parsing data for Home [2024-06-05_08-12-28][80384][Default] [console] [HS][Performance] 1191739333 PERF - Finished parsing data for Home [2024-06-05_08-12-28][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-06-05_08-12-28][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-06-05_08-12-28][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-06-05_12-40-44][80384][Default] [console] [HS][SophiaBase] Data Loader for Utut: Use File Accessor to get data. [2024-06-05_12-40-44][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for utut: Get data using File Accessor. [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] log perf event: time: 1207834815 message: Data Loader for utut: Get data using File Accessor. [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] 1207834815 PERF - Data Loader for utut: Get data using File Accessor. [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] log perf event: time: 1207834826 message: Data Loader for utut: Read data using File Accessor. [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] 1207834826 PERF - Data Loader for utut: Read data using File Accessor. [2024-06-05_12-40-44][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] log perf event: time: 1207834836 message: Loaded JSON Data: Utut [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] 1207834836 PERF - Loaded JSON Data: Utut [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] log perf event: time: 1207834837 message: Parsed JSON file for Utut [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] 1207834837 PERF - Parsed JSON file for Utut [2024-06-05_12-40-44][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-59b4bed3-e7ac-408a-8056-587b8923cee8.json [2024-06-05_12-40-44][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Utut with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\learn\PHXS-24.7.0-pl_PL-59b4bed3-e7ac-408a-8056-587b8923cee8.json [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] log perf event: time: 1207834838 message: Finished parsing data for Utut [2024-06-05_12-40-44][80384][Default] [console] [HS][Performance] 1207834838 PERF - Finished parsing data for Utut [2024-06-05_12-40-44][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Utut [2024-06-05_12-40-44][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-06-05_12-40-44][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_3.1_Tutorials","campaignId":44824} [2024-06-05_12-40-44][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"LCM_LEARN_PANEL","campaignId":57327} [2024-06-05_12-40-44][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Utut [2024-06-05_12-40-44][80384][Default] [console] [HS][Ututs] User has 15 web tutorials [2024-06-05_12-40-44][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-05_13-07-59][181912][Info] [console] TOKEN: Expired token fired [2024-06-05_13-08-00][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/v1 [object Object] [2024-06-05_13-08-00][181912][Info] [console] [Request] https://cai-identity.adobe.io/profiles/727667174B98F85E992015C2@AdobeID/connected_accounts/v2 [object Object] [2024-06-05_13-08-00][181912][Info] [console] [Request] https://cai-identity.adobe.io/identities/did:adobe:fd07ba6e2fd2ec30817d31f1df322c68e9a004aaece1ad8a9c85d2d356c608e3e?service=VerifiableCredentials [object Object] [2024-06-05_13-10-14][80384][Default] [console] [HS][Performance] 1209605652 PERF - IMS.updateAccessToken start [2024-06-05_13-10-14][80384][Default] [console] [HS][Performance] log perf event: time: 1209605658 message: Updated access token [2024-06-05_13-10-14][80384][Default] [console] [HS][Performance] 1209605658 PERF - Updated access token [2024-06-05_13-10-14][80384][Default] [console] [HS][Performance] log perf event: time: 8 message: IMS.updateAccessToken [2024-06-05_13-10-14][80384][Default] [console] [HS][Performance] 1209605660 PERF - IMS.updateAccessToken done: 8 [2024-06-05_13-10-24][80384][Default] [console] [HS][Performance] 1209615661 PERF - IMS.updateAccessToken start [2024-06-05_13-10-25][80384][Default] [console] [HS][Performance] log perf event: time: 1209615891 message: Updated access token - throttled at 10000ms [2024-06-05_13-10-25][80384][Default] [console] [HS][Performance] 1209615891 PERF - Updated access token - throttled at 10000ms [2024-06-05_13-10-25][80384][Default] [console] [HS][Performance] log perf event: time: 233 message: IMS.updateAccessToken [2024-06-05_13-10-25][80384][Default] [console] [HS][Performance] 1209615894 PERF - IMS.updateAccessToken done: 233 [2024-06-05_17-42-28][80384][Default] [console] [HS][SophiaBase] Data Loader for Home: Use File Accessor to get data. [2024-06-05_17-42-28][80384][Default] [console] [HS][FileAccessorDataLoader] Data Loader for home: Get data using File Accessor. [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] log perf event: time: 1225939338 message: Data Loader for home: Get data using File Accessor. [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] 1225939338 PERF - Data Loader for home: Get data using File Accessor. [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] log perf event: time: 1225939349 message: Data Loader for home: Read data using File Accessor. [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] 1225939349 PERF - Data Loader for home: Read data using File Accessor. [2024-06-05_17-42-28][80384][Default] [console] [HS][SharedSettings] Making Settings Request [2024-06-05_17-42-28][80384][Default] [console] [HS][SharedSettings] Received Settings Get Response [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] log perf event: time: 1225939362 message: Loaded JSON Data: Home [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] 1225939362 PERF - Loaded JSON Data: Home [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] log perf event: time: 1225939363 message: Parsed JSON file for Home [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] 1225939363 PERF - Parsed JSON file for Home [2024-06-05_17-42-28][80384][Default] [console] [HS][SophiaBase] Received fresh data from CCXProcess for Home with path C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\PHXS-24.7.0-pl_PL-52fd532e-dd41-449e-9e84-4f775aac56a8.json [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] log perf event: time: 1225939367 message: Finished parsing data for Home [2024-06-05_17-42-28][80384][Default] [console] [HS][Performance] 1225939367 PERF - Finished parsing data for Home [2024-06-05_17-42-28][80384][Default] [console] [HS][SophiaBase] Setting data to the cache for Home [2024-06-05_17-42-28][80384][Default] [console] [HS][SophiaBase] Surface data {"surface":"CCX_Start_4.0_Home","campaignId":23201,"url":"https://odin.adobe.com/content/dam/ccfirstmile/PHSP/pl_PL/experienceHomeMx19/Ps-Home-Max-2020-Photo-editing.cfm.gql.json"} [2024-06-05_17-42-28][80384][Default] [console] [HS][SophiaBase] Applying broadcast data for Home [2024-06-05_17-42-28][80384][Default] [console] [HS][FileAccessorDataLoader] Successfully read data from file PHXS-24.7.0-pl_PL-52fd532e-dd41-449e-9e84-4f775aac56a8.json and wrote response in C:\Users\Harmonogram\AppData\Roaming\Adobe\CCX Welcome\data\clientLogs\PHXS-24-7-0-pl_PL-3FB49913312F485BA334A4D726F35359.json [2024-06-05_18-14-53][80384][Warn] [console] Wed, 05 Jun 2024 16:14:53 GMT [CMDN] [LibraryManager] Get licensed templates: Failed to load library collections [2024-06-05_18-14-53][80384][Error] [console] Wed, 05 Jun 2024 16:14:53 GMT [CMDN] [LibraryManager] Failed to get licensed templates [2024-06-05_18-14-53][80384][Warn] [console] Wed, 05 Jun 2024 16:14:53 GMT [CMDN] [LibraryManager] Get licensed templates: Failed to load library collections [2024-06-05_18-14-53][80384][Error] [console] Wed, 05 Jun 2024 16:14:53 GMT [CMDN] [LibraryManager] Failed to get licensed templates [2024-06-05_18-14-55][80384][Debug] [general] (()=>{var e={466:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,a=arguments.length;r{"use strict";t.wQ=t.xZ=t.eO=t.WJ=t.YB=t.jf=t.bc=t.rQ=t.$b=t.ei=t.f0=t.$Y=t.rG=t.sH=t.SE=t.rC=t.zs=t.YL=t.tF=t.iH=t.Gj=t.ne=t.Jj=t._$=t.Ry=t.wf=t.Or=t.og=t.Xb=t.jp=t.PO=t.Pf=t.qh=t.MM=t.x=t.gS=t.LE=void 0,t.LE=function applyAddNoise(e,t,r){return{_obj:"addNoise",distort:{_enum:"distort",_value:t},noise:{_unit:"percentUnit",_value:e},monochromatic:r}},t.gS=function applyAverage(){return{_obj:"$Avrg"}},t.x=function applyBlur(){return{_obj:"blurEvent"}},t.MM=function applyBlurMore(){return{_obj:"blurMore"}},t.qh=function applyClouds(){return{_obj:"clouds"}},t.Pf=function applyCustomFilter(e,t,r){return{_obj:"custom",matrix:e,scale:t,offset:r}},t.PO=function applyDeInterlace(e,t){return{_obj:"deInterlace",interlaceCreateType:{_enum:"interlaceCreateType",_value:t},interlaceEliminateType:{_enum:"interlaceEliminateType",_value:e}}},t.jp=function applyDespeckle(){return{_obj:"despeckle"}},t.Xb=function applyDifferenceClouds(){return{_obj:"differenceClouds"}},t.og=function applyDiffuseGlow(e,t,r){return{_obj:"$GEfc",$GEfk:{_enum:"$GEft",_value:"diffuseGlow"},graininess:e,glowAmount:t,clearAmount:r}},t.Or=function applyDisplace(e,t,r,a,n){return{_obj:"displace",displaceFile:{_kind:"local",_path:n},displacementMap:{_enum:"displacementMap",_value:r},undefinedArea:{_enum:"undefinedArea",_value:a},horizontalScale:e,verticalScale:t}},t.wf=function applyDustAndScratches(e,t){return{_obj:"dustAndScratches",radius:e,threshold:t}},t.Ry=function applyGaussian(e){return{_obj:"gaussianBlur",radius:{_unit:"pixelsUnit",_value:e}}},t._$=function applyGlassEffect(e,t,r,a,n,i){var o={_obj:"$GEfc",$GEfk:{_enum:"$GEft",_value:"glass"},distort:e,invertTexture:a,scaling:r,smoothness:t},s={};return void 0!==i?(s._kind="local",s._path=i):(s._enum="textureType",s._value=n),o.textureType=s,o},t.Jj=function applyHighPass(e){return{_obj:"highPass",radius:{_unit:"pixelsUnit",_value:e}}},t.ne=function applyLensBlur(e,t,r,a,n,i,o,s,l,c,u,d){var p={_obj:"$Bokh",$BkDp:t,$BkDs:r,$BkIb:n,$BkIc:i,$BkIr:o,$BkNa:c,$BkNm:d,$BkSb:s,$BkSt:l,$BkIs:{_enum:"$BtIs",_value:a}},y={},m={_enum:"$BtDi"};"layerMask"===e?(m._value="$BeIt",p.$BkDi=m,y._enum="$BtDc",y._value="$BeCm",p.$BkDc=y):"transparency"===e?(m._value="$BeIt",p.$BkDi=m,y._enum="$BtDc",y._value="$BeCt",p.$BkDc=y):"imageHighlight"===e?(m._value="$BeIa",p.$BkDi=m):(m._value="$BeIn",p.$BkDi=m);var g={_enum:"$BtNt"};return g._value="uniformDistribution"===u?"$BeNu":"$BeNg",p.$BkNt=g,p},t.Gj=function applyTwirl(e){return{_obj:"twirl",angle:e}},t.iH=function applyPinch(e){return{_obj:"pinch",amount:e}},t.tF=function applyPolarCoordinates(e){return{_obj:"polar",convert:{_enum:"convert",_value:e}}},t.YL=function applyRipple(e,t){return{_obj:"ripple",amount:e,rippleSize:{_enum:"rippleSize",_value:t}}},t.zs=function applySharpen(){return{_obj:"sharpen"}},t.rC=function applySharpenEdges(){return{_obj:"sharpenEdges"}},t.SE=function applySharpenMore(){return{_obj:"sharpenMore"}},t.sH=function applyShear(e,t){return{_obj:"shear",shearPoints:e.map((function(e){return{_obj:"point",horizontal:e.x,vertical:e.y}})),undefinedArea:{_enum:"undefinedArea",_value:t},shearSt:0,shearEd:e.length-1}},t.rG=function applySmartBlur(e,t,r,a){return{_obj:"smartBlur",radius:e,threshold:t,smartBlurQuality:{_enum:"smartBlurQuality",_value:r},smartBlurMode:{_enum:"smartBlurMode",_value:a}}},t.$Y=function applySpherize(e,t){return{_obj:"spherize",amount:e,spherizeMode:{_enum:"spherizeMode",_value:t}}},t.f0=function applyUnSharpMask(e,t,r){return{_obj:"unsharpMask",amount:{_unit:"percentUnit",_value:e},radius:{_unit:"pixelsUnit",_value:t},threshold:r}},t.ei=function applyWave(e,t,r,a,n,i,o,s,l,c){return{_obj:"wave",waveType:{_enum:"waveType",_value:s},numberOfGenerators:e,wavelengthMin:t,wavelengthMax:r,amplitudeMin:a,amplitudeMax:n,scaleHorizontal:i,scaleVertical:o,undefinedArea:{_enum:"undefinedArea",_value:l},randomSeed:c}},t.$b=function applyZigZag(e,t,r){return{_obj:"zigZag",amount:e,numberOfRipples:t,zigZagType:{_enum:"zigZagType",_value:r}}},t.rQ=function applyLensFlare(e,t,r,a){return{_obj:"lensFlare",brightness:e,flareCenter:{_obj:"paint",horizontal:t,vertical:r},lens:{_enum:"lens",_value:a}}},t.bc=function applyMaximum(e,t){return{_obj:"maximum",preserveShape:{_enum:"preserveShape",_value:t},radius:{_unit:"pixelsUnit",_value:e}}},t.jf=function applyMinimum(e,t){return{_obj:"minimum",preserveShape:{_enum:"preserveShape",_value:t},radius:{_unit:"pixelsUnit",_value:e}}},t.YB=function applyMedianNoise(e){return{_obj:"median",radius:{_unit:"pixelsUnit",_value:e}}},t.WJ=function applyMotionBlur(e,t){return{_obj:"motionBlur",angle:e,distance:{_unit:"pixelsUnit",_value:t}}},t.eO=function applyNTSC(){return{_obj:"NTSC"}},t.xZ=function applyOceanRipple(e,t){return{_obj:"$GEfc",$GEfk:{_enum:"$GEft",_value:"oceanRipple"},rippleSize:e,rippleMagnitude:t}},t.wQ=function applyOffset(e,t,r){return{_obj:"offset",fill:{_enum:"fillMode",_value:r},horizontal:e,vertical:t}}},979:(e,t)=>{"use strict";t.zM=t.$s=t.PQ=t.Od=t.OM=t.hY=t.iH=void 0,t.iH={name:function(e){return{_ref:"action",_name:e}},index:function(e){return{_ref:"action",_index:e}},id:function(e){return{_ref:"action",_id:e}},selected:function(){return{_ref:"action",_enum:"ordinal",_value:"targetEnum"}}},t.hY=function play(e,r){return void 0===e&&(e=t.iH.selected()),void 0===r&&(r=!1),{_obj:"play",_target:e,continue:r}},t.OM=function duplicate(e){return void 0===e&&(e=t.iH.selected()),{_obj:"duplicate",_target:e}},t.Od=function remove(e){return void 0===e&&(e=t.iH.selected()),{_obj:"delete",_target:e}},t.PQ=function rename(e,r){return void 0===e&&(e=t.iH.selected()),{_obj:"set",_target:{_ref:[{_ref:"property",_property:"title"},e]},to:{title:r}}},t.$s=function getProperty(e,r){return void 0===r&&(r=t.iH.selected()),{_obj:"multiGet",_target:r,extendedReference:[e]}},t.zM=function getPropertiesRange(e,t,r,a){return void 0===r&&(r=1),void 0===a&&(a=-1),{_obj:"multiGet",_target:t,extendedReference:[e,{_obj:"action",index:r,count:a}]}}},817:(e,t)=>{"use strict";t.$s=t.hY=t.OM=t.PQ=t.Od=t.iH=void 0,t.iH={name:function(e){return{_ref:"actionSet",_name:e}},index:function(e){return{_ref:"actionSet",_index:e}},id:function(e){return{_ref:"actionSet",_id:e}},selected:function(){return{_ref:"actionSet",_enum:"ordinal",_value:"targetEnum"}}},t.Od=function remove(e){return void 0===e&&(e=t.iH.selected()),{_obj:"delete",_target:e}},t.PQ=function rename(e,r){return void 0===e&&(e=t.iH.selected()),{_obj:"set",_target:{_ref:[{_ref:"property",_property:"title"},e]},to:{title:r}}},t.OM=function duplicate(e){return void 0===e&&(e=t.iH.selected()),{_obj:"duplicate",_target:e}},t.hY=function play(e,r){return void 0===e&&(e=t.iH.selected()),void 0===r&&(r=!1),{_obj:"play",_target:e,continue:r}},t.$s=function getProperty(e,r){return void 0===r&&(r=t.iH.selected()),{_obj:"multiGet",_target:r,extendedReference:[e]}}},966:function(e,t,r){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r{"use strict";t.W2=t.QP=t.l_=t.mz=t.Yy=t.iD=t.RC=t.Xd=t.S4=t.Lq=t.AJ=t.eO=t.qD=void 0,t.qD=function countItemsDesc(e){return{_obj:"get",_target:[{_property:"countClass"},e]}},t.eO=function addCountItemToActiveGroup(e,t){return{_obj:"countAdd",x:e,y:t}},t.AJ=function moveCountItem(e,t,r,a){return{_obj:"countMove",group:t,itemIndex:e,x:r,y:a}},t.Lq=function removeCountItem(e,t){return{_obj:"countDelete",group:t,itemIndex:e+1}},t.S4=function removeAllFromActiveGroup(){return{_obj:"countClear"}},t.Xd=function setActiveCountGroupColor(e,t,r){return{_obj:"countColor",red:e,green:t,blue:r}},t.RC=function setActiveCountGroupMarkerSize(e){return{_obj:"countGroupMarkerSize",size:e}},t.iD=function setActiveCountGroupLabelSize(e){return{_obj:"countGroupFontSize",size:e}},t.Yy=function renameActiveCountGroup(e){return{_obj:"countRenameGroup",name:e}},t.mz=function addNewCountGroup(e){return{_obj:"countAddGroup",name:e}},t.l_=function removeCountGroupByIndex(e){return{_obj:"countDeleteGroup",itemIndex:e}},t.QP=function toggleActiveCountGroupVisibility(e){return{_obj:"countGroupVisible",visible:e}},t.W2=function activateCountGroupByIndex(e){return{_obj:"countSetCurrentGroup",itemIndex:e}}},235:function(e,t,r){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0){r.as={_obj:"PDFGenericFormat"};var a=t.pdfOptions,n=a.crop,i=a.mode,s=a.resolution,u=a.selection,d=o(a,["crop","mode","resolution","selection"]);n&&(r.as.crop={_enum:"cropTo",_value:n}),i&&(r.as.mode={_enum:"colorSpace",_value:i}),s&&(r.as.resolution=l.Density(s)),u&&(r.as.selection={_enum:"pdfSelection",_value:u}),c.applyOptionalParams(r.as,d)}return r},t.flip=function flip(e,t){return void 0===t&&(t="vertical"),{_obj:"flip",_target:e,axis:t}},t.resizeImage=function resizeImage(e,t,r,a){var n={_obj:"imageSize"};return c.applyOptionalParams(n,{width:e,height:t,resolution:r,interpolation:a}),n},t.resizeCanvas=function resizeCanvas(e,t){var r=a({_obj:"canvasSize"},e);return void 0!==t&&(r=a(a({},r),t)),r},t.trim=function trim(e,t,r,a,n){return{_obj:"trim",trimBasedOn:{_enum:"trimBasedOn",_value:e},top:t,left:r,bottom:a,right:n}},t.flattenImage=function flattenImage(){return{_obj:"flattenImage"}},t.mergeVisible=function mergeVisible(){return{_obj:"mergeVisible"}},t.crop=function crop(e,t,r,a){return void 0===t&&(t=0),void 0===r&&(r=0),void 0===a&&(a=0),{_obj:"crop",to:{_obj:"rectangle",left:l.Pixel(e.left),top:l.Pixel(e.top),right:l.Pixel(e.right),bottom:l.Pixel(e.bottom)},angle:l.Angle(t),width:l.Pixel(r),height:l.Pixel(a)}},t.close=function close(e,t){var r={_obj:"close"};return void 0!==e&&(r.saving={_enum:"saving",_value:e?"yes":"no"}),t&&c.applyOptionalParams(r,{_target:{_ref:"document",_id:t}}),r},t.revert=function revert(){return{_obj:"revert"}},function(e){e[e.None=1]="None",e[e.JPEGMaximumQuality=7]="JPEGMaximumQuality",e[e.JPEGHighQuality=8]="JPEGHighQuality",e[e.JPEGMediumQuality=9]="JPEGMediumQuality",e[e.JPEGLowQuality=10]="JPEGLowQuality",e[e.JPEGMinimumQuality=11]="JPEGMinimumQuality",e[e.JPEG2000MaximumQuality=14]="JPEG2000MaximumQuality",e[e.JPEG2000HighQuality=15]="JPEG2000HighQuality",e[e.JPEG2000MediumQuality=16]="JPEG2000MediumQuality",e[e.JPEG2000LowQuality=17]="JPEG2000LowQuality",e[e.JPEG2000MinimumQuality=18]="JPEG2000MinimumQuality",e[e.JPEG2000LosslessQuality=19]="JPEG2000LosslessQuality",e[e.ZIP=65540]="ZIP"}(t.PDFCompressionType||(t.PDFCompressionType={})),t.save=function save(e,t,r){return{_obj:"save",documentID:e,in:t,as:r}},t.saveDocumentDialog=function saveDocumentDialog(){return{name:"save",descriptor:{},options:{dialogOptions:"dontDisplay"}}},t.saveAs={jpg:function(e,t,r){var a,n={_obj:"save",documentID:e,in:{_kind:"local",_path:t},as:{_obj:"JPEG",extendedQuality:null!==(a=null==r?void 0:r.extendedQuality)&&void 0!==a?a:8}};return c.applyTypedOptionalParams(n.as,{optimized:r.optimized,scans:r.scans,matteColor:r.matteColor?{_enum:"matteColor",_value:r.matteColor}:void 0,customMatte:r.customMatte,embedProfiles:r.embedProfiles}),c.applyOptionalParams(n,{copy:r.copy}),n},psd:function(e,t,r){var a={_obj:"save",documentID:e,in:{_kind:"local",_path:t},as:{_obj:"photoshop35Format"}};return c.applyTypedOptionalParams(a,{copy:r.copy,embedProfiles:r.embedProfiles,layers:r.layers,flatten:r.flatten,alphaChannels:r.alphaChannels,title:r.title,annotType:r.annotType,spotColor:r.spotColor}),c.applyTypedOptionalParams(a.as,{maximizeCompatibility:r.maximizeCompatibility}),a},psb:function(e,r,a){var n=t.saveAs.psd(e,r,a);return n.as._obj="largeDocumentFormat",n},psdc:function(e,t){var r={_obj:"save",documentID:e,as:{_obj:"cloudPSDFormat"},saveToCloud:!0};return c.applyTypedOptionalParams(r,{saveToCloudPath:t.saveToCloudPath,title:t.title,embedProfiles:t.embedProfiles,layers:t.layers,flatten:t.flatten,alphaChannels:t.alphaChannels,annotType:t.annotType,spotColor:t.spotColor,forceCloudPickerFirst:t.forceCloudPickerFirst,forceLocalOSPickerFirst:t.forceLocalOSPickerFirst,disableCloudPickerOnboarding:t.disableCloudPickerOnboarding,hideOnYourComputerButton:t.hideOnYourComputerButton,saveWithMinimumUpdateOfCloudRenditions:t.saveWithMinimumUpdateOfCloudRenditions,saveWithoutDCXCommit:t.saveWithoutDCXCommit}),r},gif:function(e,t,r){var a={_obj:"save",documentID:e,in:{_kind:"local",_path:t},as:{_obj:"GIFFormat"},to:{_obj:"indexedColorMode"}};if(c.applyTypedOptionalParams(a.as,{interlaced:r.interlaced}),c.applyTypedOptionalParams(a.to,{matteColor:r.matteColor?{_enum:"matteColor",_value:r.matteColor}:void 0,customMatte:r.customMatte,dither:r.dither?{_enum:"dither",_value:r.dither}:void 0,ditherAmount:r.ditherAmount,ditherPreserve:r.ditherPreserve}),r.paletteFile)c.applyTypedOptionalParams(a.to,{paletteFile:r.paletteFile});else if(r.customPalette)c.applyTypedOptionalParams(a.to,{customPalette:r.customPalette,transparentIndex:r.transparentIndex});else{if(!r.palette)throw new Error("No palette defined for the GIF save descriptor");c.applyTypedOptionalParams(a.to,{palette:{_enum:"colorPalette",_value:r.palette},colors:r.colors,forcedColors:r.forcedColors?{_enum:"forcedColors",_value:r.forcedColors}:void 0,customForced:r.customForced,transparentIndex:r.transparentIndex,transparency:r.transparency})}return c.applyTypedOptionalParams(a,{copy:r.copy}),a},png:function(e,t,r){var a={_obj:"save",documentID:e,in:{_kind:"local",_path:t},as:{_obj:"PNGFormat"}};return c.applyTypedOptionalParams(a.as,{compression:r.compression,PNGInterlaceType:r.PNGInterlaceType?{_enum:"PNGInterlaceType",_value:r.PNGInterlaceType}:void 0,PNGFilter:r.PNGFilter?{_enum:"PNGFilter",_value:r.PNGFilter}:void 0,method:r.method?{_enum:"PNGMethod",_value:r.method}:void 0}),c.applyTypedOptionalParams(a,{copy:r.copy}),a},bmp:function(e,t,r){var a={_obj:"save",documentID:e,in:{_kind:"local",_path:t},as:{_obj:"bMPFormat"}};return c.applyTypedOptionalParams(a.as,{bitDepth:r.bitDepth?{_enum:"bitDepth",_value:r.bitDepth}:void 0,platform:r.platform?{_enum:"platform",_value:r.platform}:void 0,compression:r.compression,flipVertical:r.flipVertical}),c.applyTypedOptionalParams(a,{alphaChannels:r.alphaChannels}),c.applyTypedOptionalParams(a,{copy:r.copy}),a},webp:function(e,t,r){var a={_obj:"save",documentID:e,in:{_kind:"local",_path:t},as:{_obj:"WebPFormat"}};return c.applyTypedOptionalParams(a.as,{compression:r.compression?{_enum:"WebPCompression",_value:r.compression}:void 0}),c.applyTypedOptionalParams(a,{copy:r.copy}),a}},t.getProperties=function getProperties(e,t){return{_obj:"multiGet",_target:e,extendedReference:[t]}},t.getPropertiesRange=function getPropertiesRange(e,t,r){return void 0===t&&(t=1),void 0===r&&(r=-1),{_obj:"multiGet",_target:s.ref.active(),extendedReference:[e,{_obj:"document",index:t,count:r}]}},t.set=function set(e,r){return void 0===r&&(r=t.ref.active()),{_obj:"set",_target:r,to:e}},function(e){e.bitmap="bitmapMode",e.CMYKColor="CMYKColorMode",e.duotone="duotoneMode",e.grayscale="grayscaleMode",e.indexedColor="indexedColorMode",e.labColor="labColorMode",e.multichannel="multichannelMode",e.RGBColor="RGBColorMode"}(t.ColorModes||(t.ColorModes={})),t.makeFromHistoryState=function makeFromHistoryState(){return{_obj:"make",_target:{_ref:"document"},using:{_property:"currentHistoryState",_ref:"historyState"}}}},916:function(e,t,r){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};t.__esModule=!0,t.deleteGuide=t.clearAllGuides=t.newGuide=t.setProperty=t.getPropertiesRange=t.getProperties=t.get=t.remove=t.ref=void 0,n(r(638),t),t.ref={index:function(e){return{_ref:"guide",_index:e}},id:function(e){return{_ref:"guide",_id:e}}},t.remove=function remove(e){return{_obj:"delete",_target:e}},t.get=function get(e){return{_obj:"get",_target:e}},t.getProperties=function getProperties(e,t,r){if(void 0===r&&(r={}),t.length>1)return{_obj:"multiGet",_target:e,extendedReference:[t],options:r};var a=e;return Array.isArray(e)?a.unshift({_ref:"property",_property:t[0]}):a=[{_ref:"property",_property:t[0]},e],{_obj:"get",_target:{_ref:a}}},t.getPropertiesRange=function getPropertiesRange(e,t,r,a){return void 0===r&&(r=1),void 0===a&&(a=-1),{_obj:"multiGet",_target:e,extendedReference:[t,{_obj:"guide",index:r,count:a}]}},t.setProperty=function setProperty(e,t,r){var a={_obj:"set",_target:e};return"orientation"===t?a[t]={_enum:"orientation",_value:r}:"position"===t&&(a[t]={_unit:"pixelsUnit",_value:r}),a},t.newGuide=function newGuide(e,t,r,a){var n={_obj:"newGuide",_target:{_ref:"guide"},new:{orientation:{_enum:"orientation",_value:e},position:"number"==typeof t?{_unit:"pixelsUnit",_value:t}:t}};return r&&(n.guideTarget={_enum:"guideTarget",_value:r}),a&&(n.guideUserValue="number"==typeof a?{_unit:"pixelsUnit",_value:a}:a),n},t.clearAllGuides=function clearAllGuides(e){return{_obj:"delete",_target:{_ref:[{_ref:"guide",_enum:"ordinal",_value:"allEnum"},e]}}},t.deleteGuide=function deleteGuide(e){return{_obj:"delete",_target:{_ref:e}}}},388:function(e,t,r){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};t.__esModule=!0,t.setProperty=t.getProperties=t.deleteCurrentState=t.createSnapshot=t.get=t.remove=t.select=t.ref=void 0,n(r(607),t),t.ref={active:function(){return{_ref:"historyState",_enum:"ordinal",_value:"targetEnum"}},first:function(){return{_ref:"historyState",_enum:"ordinal",_value:"first"}},last:function(){return{_ref:"historyState",_enum:"ordinal",_value:"last"}},next:function(){return{_ref:"historyState",_enum:"ordinal",_value:"next"}},previous:function(){return{_ref:"historyState",_enum:"ordinal",_value:"previous"}},id:function(e){return{_ref:"historyState",_id:e}},offset:function(e){return{_ref:"historyState",_offset:e}},index:function(e){return{_ref:"historyState",_index:e}},name:function(e){return{_ref:"historyState",_name:e}}},t.select=function select(e){return{_obj:"select",_target:e}},t.remove=function remove(e){return{_obj:"delete",_target:e}},t.get=function get(e){return{_obj:"get",_target:e}},t.createSnapshot=function createSnapshot(e,t){return e&&t?{_obj:"make",_target:{_ref:"snapshotClass"},from:{_property:"currentHistoryState",_ref:"historyState"},name:e,using:{_enum:"historyState",_value:t}}:e?{_obj:"make",_target:{_ref:"snapshotClass"},from:{_property:"currentHistoryState",_ref:"historyState"},name:e,using:{_enum:"historyState",_value:"fullDocument"}}:{_obj:"make",_target:{_ref:"snapshotClass"},from:{_property:"currentHistoryState",_ref:"historyState"}}},t.deleteCurrentState=function deleteCurrentState(){return{_obj:"delete",_target:{_property:"currentHistoryState",_ref:"historyState"}}},t.getProperties=function getProperties(e,t,r){return void 0===r&&(r={}),{_obj:"multiGet",_target:e,extendedReference:[t],options:r}},t.setProperty=function setProperty(e,t){return{_obj:"set",_target:{_property:e,_ref:"historyState"},to:t}}},593:function(e,t,r){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0&&(r.what={_enum:"rasterizeItem",_value:e}),r._obj="rasterizeLayer"}return r},t.deleteLayer=function deleteLayer(e,t){return void 0===t&&(t=!1),{_obj:"delete",_target:e,deleteContained:t}},t.duplicate=function duplicate(e,t,r){var a={name:"duplicate",descriptor:{_target:e,version:5}};return i.applyOptionalParams(a.descriptor,{to:t,name:r}),a},function(e){e.select="0",e.deselect="removeFromSelection",e.add="addToSelection",e.addUpTo="addToSelectionContinuous"}(n=t.SelectionModifier||(t.SelectionModifier={})),t.select=function select(e,t,r){void 0===t&&(t=n.select);var a={_obj:"select",_target:e,selectionModifier:{_enum:"selectionModifierType",_value:t}};return i.applyOptionalParams(a,{makeVisible:r}),a},t.hide=function hide(e,t){var r={_obj:"hide",_target:e};return i.applyOptionalParams(r,{toggleOthers:t}),r},t.show=function show(e,t){var r={_obj:"show",_target:e};return i.applyOptionalParams(r,{toggleOthers:t}),r},t.saveLayerSelection=function saveLayerSelection(){return{_obj:"saveLayerSelection"}},t.restoreLayerSelection=function restoreLayerSelection(){return{_obj:"restoreLayerSelection"}},t.link=function link(e,t){return{_obj:"link",_target:e,to:t}},t.unlink=function unlink(e,t){var r={_obj:"unlink",_target:e};return i.applyOptionalParams(r,{to:t}),r},t.move=function move(e,r,a){return void 0===a&&(a=!0),{_obj:"move",_target:e,to:t.ref.index(r),version:5,adjustment:a}},t.makeBackground=function makeBackground(e){return{_obj:"make",_target:[{_ref:"backgroundLayer"}],using:e}},t.getProperties=function getProperties(e,t,r){return void 0===r&&(r={}),{_obj:"multiGet",_target:e,extendedReference:[t],options:r}},t.getPropertiesRange=function getPropertiesRange(e,t,r,a,n){return void 0===r&&(r=0),void 0===a&&(a=-1),void 0===n&&(n={}),{_obj:"multiGet",_target:e,extendedReference:[t,{_obj:"layer",index:r,count:a}],options:n}},function(e){e.none="none",e.red="red",e.orange="orange",e.yellow="yellowColor",e.green="grain",e.blue="blue",e.violet="violet",e.gray="gray"}(t.LabelColors||(t.LabelColors={})),function(e){e[e.any=0]="any",e[e.pixel=1]="pixel",e[e.adjustment=2]="adjustment",e[e.text=3]="text",e[e.vector=4]="vector",e[e.smartObject=5]="smartObject",e[e.video=6]="video",e[e.group=7]="group",e[e.threeD=8]="threeD",e[e.gradient=9]="gradient",e[e.pattern=10]="pattern",e[e.solidColor=11]="solidColor",e[e.background=12]="background",e[e.groupEnd=13]="groupEnd"}(t.Kinds||(t.Kinds={})),function(e){e.solid="solidColorLayer",e.gradient="gradientLayer",e.pattern="patternLayer"}(t.FillKinds||(t.FillKinds={}))},44:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,a=arguments.length;r{"use strict";t.nc=t.ZH=t.Go=t.P_=t.aT=t.hl=t.OM=t._H=t.PQ=t.uy=t.vw=t.Ys=t.Ux=t.Od=t.ks=t.OG=t.cD=t.iH=void 0;var a,n=r(782);t.iH={selected:function(){return{_ref:"path",_enum:"ordinal",_value:"targetEnum"}},all:function(){return{_ref:"path",_enum:"ordinal",_value:"all"}},name:function(e){return{_ref:"path",_name:e}},id:function(e){return{_ref:"path",_id:e}},index:function(e){return{_ref:"path",_index:e}},range:function(e,t){return{_obj:"path",index:e,count:t}}},t.cD=function getWorkPath(){return{_obj:"get",_target:{_property:"workPath",_ref:"path"}}},t.OG=function getVectorMask(){return{_obj:"get",_target:{_enum:"ordinal",_value:"vectorMask",_ref:"path"}}},t.ks=function getTextShapePath(){return{_obj:"get",_target:{_enum:"ordinal",_value:"textShape",_ref:"path"}}},t.Od=function remove(e){return{_obj:"delete",_target:e}},function(e){e.select="0",e.deselect="removeFromSelection",e.add="addToSelection",e.addUpTo="addToSelectionContinuous"}(a=t.Ux||(t.Ux={})),t.Ys=function select(e,t){void 0===t&&(t=a.select);var r={_obj:"select",_target:e};return t&&n.applyOptionalParams(r,{selectionModifier:{_enum:"selectionModifierType",_value:t}}),r},t.vw=function getProperties(e,t,r){if(void 0===r&&(r={}),t.length>1)return{_obj:"multiGet",_target:e,extendedReference:[t],options:r};var a=e;return Array.isArray(e)?a.unshift({_ref:"property",_property:t[0]}):a=[{_ref:"property",_property:t[0]},e],{_obj:"get",_target:{_ref:a}}},t.uy=function setSource(e,t,r){return{_obj:"set",_target:[{_property:"cloneSource",_ref:"property"},{_ref:"application"}],to:{_obj:"imagePoint",position:{_obj:"paint",horizontal:{_unit:"pixelsUnit",_value:e},vertical:{_unit:"pixelsUnit",_value:t}},source:r}}},t.PQ=function rename(e,t){return{_obj:"rename",_target:e,to:t}},t._H=function deselect(e){return{_obj:"deselect",_target:e}},t.OM=function duplicate(e,t){var r={_obj:"duplicate",_target:e};return n.applyOptionalParams(r,{name:t}),r},t.hl=function fill(e,t,r,a,i,o,s,l){var c={_obj:"fill",_target:e};return n.applyOptionalParams(c,{wholePath:t,preserveTransparency:o,antiAlias:l}),void 0!==a&&(c.opacity={_unit:"floatUnit",_value:a}),void 0!==i&&(c.mode={_enum:"mode",_value:i}),void 0!==s&&(c.radius={_unit:"floatUnit",_value:s}),r&&n.applyOptionalParams(c,{color:r,using:{_enum:"fillContents",_value:"color"}}),c},t.aT=function makeClippingPath(e,t){var r={_obj:"set",_target:[{_property:"clippingPath",_ref:"path"}],to:{_obj:"clippingPathEPS",path:e}};return void 0!==t&&(r.to.flatness=t),r},t.P_=function makePathSelection(e,t,r,a){var i={_obj:null!=t?t:"set",_target:[{_property:"selection",_ref:"channel"}],to:e};return n.applyOptionalParams(i,{antiAlias:a}),void 0!==r&&(i.feather={_unit:"floatUnit",_value:r}),i},t.Go=function stroke(e,t,r){return{_obj:"stroke",_target:e,using:{_class:t},pressure:r}},t.ZH=function clear(e){return{_obj:"clearEvent",_target:e}},t.nc=function makePathFromPoints(e){return{_obj:"set",_target:[{_property:"workPath",_ref:"path"}],to:e.map((function(e){return{_obj:"pathComponent",shapeOperation:{_enum:"shapeOperation",_value:e.operation},subpathListKey:[{_obj:"subpathsList",closedSubpath:e.closed,points:e.entireSubPath.map((function(e){return{_obj:"pathPoint",anchor:{_obj:"point",horizontal:{_unit:"pixelsUnit",_value:e.anchor[0]},vertical:{_unit:"pixelsUnit",_value:e.anchor[1]}},backward:{_obj:"point",horizontal:{_unit:"pixelsUnit",_value:e.rightDirection[0]},vertical:{_unit:"pixelsUnit",_value:e.rightDirection[1]}},forward:{_obj:"point",horizontal:{_unit:"pixelsUnit",_value:e.leftDirection[0]},vertical:{_unit:"pixelsUnit",_value:e.leftDirection[1]}}}}))}]}}))}}},664:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,a=arguments.length;r{"use strict";t.i=void 0,t.i={selected:function(){return{_ref:"textLayer",_enum:"ordinal",_value:"targetEnum"}},next:function(){return{_ref:"textLayer",_enum:"ordinal",_value:"next"}},front:function(){return{_ref:"textLayer",_enum:"ordinal",_value:"front"}},previous:function(){return{_ref:"textLayer",_enum:"ordinal",_value:"previous"}},back:function(){return{_ref:"textLayer",_enum:"ordinal",_value:"back"}},name:function(e){return{_ref:"textLayer",_name:e}},id:function(e){return{_ref:"textLayer",_id:e}},index:function(e){return{_ref:"textLayer",_index:e}}}},993:(e,t)=>{"use strict";t.__esModule=!0},397:(e,t)=>{"use strict";t.__esModule=!0},915:(e,t)=>{"use strict";t.de=t.bJ=t.sz=t.RW=t.RE=t.$7=t.mI=void 0,function(e){e[e.ALL=0]="ALL",e[e.ERROR=1]="ERROR",e[e.NO=2]="NO"}(t.mI||(t.mI={})),function(e){e[e.DISCARD_CHANGES=0]="DISCARD_CHANGES",e[e.PROMPT_TO_SAVE_CHANGES=1]="PROMPT_TO_SAVE_CHANGES",e[e.SAVE_CHANGES=2]="SAVE_CHANGES"}(t.$7||(t.$7={})),function(e){e[e.END=0]="END",e[e.FRONT=1]="FRONT"}(t.RE||(t.RE={})),function(e){e.nearestNeighbor="nearestNeighbor",e.bilinear="bilinear",e.bicubic="bicubic",e.bicubicSmoother="bicubicSmoother",e.bicubicSharper="bicubicSharper",e.bicubicAutomatic="bicubicAutomatic",e.preserveDetailsUpscale="preserveDetailsUpscale",e.deepUpscale="deepUpscale"}(t.RW||(t.RW={})),function(e){e.nearestNeighbor="nearestNeighbor",e.bilinear="bilinear",e.bicubic="bicubic",e.bicubicSmoother="bicubicSmoother",e.bicubicSharper="bicubicSharper",e.bicubicAutomatic="bicubicAutomatic"}(t.sz||(t.sz={})),function(e){e.BOTTOMCENTER="bottom-center",e.BOTTOMLEFT="bottom-left",e.BOTTOMRIGHT="bottom-right",e.MIDDLECENTER="middle-center",e.MIDDLELEFT="middle-left",e.MIDDLERIGHT="middle-right",e.TOPCENTER="top-center",e.TOPLEFT="top-left",e.TOPRIGHT="top-right"}(t.bJ||(t.bJ={})),function(e){e.normal="normal",e.dissolve="dissolve",e.darken="darken",e.multiply="multiply",e.colorBurn="colorBurn",e.linearBurn="linearBurn",e.darkerColor="darkerColor",e.lighten="lighten",e.screen="screen",e.colorDodge="colorDodge",e.linearDodge="linearDodge",e.lighterColor="lighterColor",e.overlay="overlay",e.softLight="softLight",e.hardLight="hardLight",e.vividLight="vividLight",e.linearLight="linearLight",e.passThrough="passThrough",e.pinLight="pinLight",e.hardMix="hardMix",e.difference="difference",e.exclusion="exclusion",e.subtract="blendSubtraction",e.divide="blendDivide",e.hue="hue",e.saturation="saturation",e.color="color",e.luminosity="luminosity"}(t.de||(t.de={}))},462:(e,t)=>{"use strict";t.__esModule=!0},638:(e,t)=>{"use strict";t.__esModule=!0},607:(e,t)=>{"use strict";t.__esModule=!0},637:(e,t)=>{"use strict";t.__esModule=!0,t.FromFloat=t.FromPica=t.FromInch=t.FromCentimeter=t.FromMillimeter=t.FromPoint=t.FromPixel=t.FromPercent=t.FromDistance=t.FromDensity=t.FromAngle=t.isPicaValue=t.isInchValue=t.isCentimeterValue=t.isMillimeterValue=t.isPointValue=t.isPixelValue=t.isFloatValue=t.isPercentValue=t.isDistanceValue=t.isDensityValue=t.isAngleValue=t.Float=t.Pica=t.Inch=t.Centimeter=t.Millimeter=t.Point=t.Pixel=t.Percent=t.Distance=t.Density=t.Angle=void 0;t.Angle=function(e){return r.angle(e)};t.Density=function(e){return r.density(e)};t.Distance=function(e){return r.distance(e)};t.Percent=function(e){return r.percent(e)};t.Pixel=function(e){return r.pixels(e)};t.Point=function(e){return r.points(e)};t.Millimeter=function(e){return r.millimeters(e)};t.Centimeter=function(e){return r.centimeters(e)};t.Inch=function(e){return r.inches(e)};t.Pica=function(e){return r.picas(e)};function isAngleValue(e){return"angleUnit"===e._unit}function isDensityValue(e){return"densityUnit"===e._unit}function isDistanceValue(e){return"distanceUnit"===e._unit}function isPercentValue(e){return"percentUnit"===e._unit}function isFloatValue(e){return"floatUnit"===e._unit}function isPixelValue(e){return"pixelsUnit"===e._unit}function isPointValue(e){return"pointsUnit"===e._unit}function isMillimeterValue(e){return"millimetersUnit"===e._unit}function isCentimeterValue(e){return"centimetersUnit"===e._unit}function isInchValue(e){return"inchesUnit"===e._unit}function isPicaValue(e){return"picasUnit"===e._unit}function _unit(e,t){return{_unit:e+"Unit",_value:t}}t.Float=function(e){return r.float(e)},t.isAngleValue=isAngleValue,t.isDensityValue=isDensityValue,t.isDistanceValue=isDistanceValue,t.isPercentValue=isPercentValue,t.isFloatValue=isFloatValue,t.isPixelValue=isPixelValue,t.isPointValue=isPointValue,t.isMillimeterValue=isMillimeterValue,t.isCentimeterValue=isCentimeterValue,t.isInchValue=isInchValue,t.isPicaValue=isPicaValue,t.FromAngle=function FromAngle(e){if(e&&isAngleValue(e))return e._value;throw new Error("descriptor is not of type AngleValue")},t.FromDensity=function FromDensity(e){if(e&&isDensityValue(e))return e._value;throw new Error("descriptor is not of type DensityValue")},t.FromDistance=function FromDistance(e){if(e&&isDistanceValue(e))return e._value;throw new Error("descriptor is not of type DistanceValue")},t.FromPercent=function FromPercent(e){if(e&&isPercentValue(e))return e._value;throw new Error("descriptor is not of type PercentValue")},t.FromPixel=function FromPixel(e){if(e&&isPixelValue(e))return e._value;throw new Error("descriptor is not of type PixelValue")},t.FromPoint=function FromPoint(e){if(e&&isPointValue(e))return e._value;throw new Error("descriptor is not of type PointValue")},t.FromMillimeter=function FromMillimeter(e){if(e&&isMillimeterValue(e))return e._value;throw new Error("descriptor is not of type MillimeterValue")},t.FromCentimeter=function FromCentimeter(e){if(e&&isCentimeterValue(e))return e._value;throw new Error("descriptor is not of type CentimeterValue")},t.FromInch=function FromInch(e){if(e&&isInchValue(e))return e._value;throw new Error("descriptor is not of type InchValue")},t.FromPica=function FromPica(e){if(e&&isPicaValue(e))return e._value;throw new Error("descriptor is not of type PicaValue")},t.FromFloat=function FromFloat(e){if(e&&isFloatValue(e))return e._value;throw new Error("descriptor is not of type FloatValue")};var r={density:_unit.bind(null,"density"),pixels:_unit.bind(null,"pixels"),px:_unit.bind(null,"pixels"),percent:_unit.bind(null,"percent"),angle:_unit.bind(null,"angle"),float:_unit.bind(null,"float"),inches:_unit.bind(null,"inches"),centimeters:_unit.bind(null,"centimeters"),cm:_unit.bind(null,"centimeters"),picas:_unit.bind(null,"picas"),degrees:_unit.bind(null,"degrees"),number:_unit.bind(null,"number"),seconds:_unit.bind(null,"seconds"),points:_unit.bind(null,"points"),pt:_unit.bind(null,"points"),millimeters:_unit.bind(null,"millimeters"),mm:_unit.bind(null,"millimeters"),distance:_unit.bind(null,"distance")}},782:(e,t)=>{"use strict";t.__esModule=!0,t.applyTypedOptionalParams=t.applyOptionalParams=void 0,t.applyOptionalParams=function applyOptionalParams(e,t){for(var r in t)void 0!==t[r]&&null!==t[r]&&(e[r]=t[r]);return e},t.applyTypedOptionalParams=function applyTypedOptionalParams(e,t){for(var r in t)void 0!==t[r]&&(e[r]=t[r]);return e}}},t={};function __webpack_require__(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};(()=>{"use strict";let e;__webpack_require__.d(r,{default:()=>ja});const getCoreModules=()=>e?{photoshopAction:{batchPlay:(t,r)=>r.synchronousExecution?e?.batchPlaySync(t,r):e?.batchPlay(t,r,"DOM"),batchPlaySync:(t,r)=>e?.batchPlay(t,r,"DOM"),validateReference:t=>e?.callSyncUxpApi("action","validateReference",t),getIDFromString:t=>e?.callSyncUxpApi("action","getIDFromString",t),addNotificationListener:(e,t)=>{},removeNotificationListener:(e,t)=>{}},photoshopCore:{getLayerTreeSync:t=>e?.callSyncUxpApi("core","getLayerTreeSync",t),getLayerGroupContentsSync:t=>e?.callSyncUxpApi("core","getLayerGroupContentsSync",t),translateUIString:e=>{const t=e.match(/\$\$\$.*=(.*)/);return t?t[1]:e},performMenuCommand:(...t)=>e?.callAsyncUxpApi("core","performMenuCommand",...t),getMenuCommandState:(...t)=>e?.callAsyncUxpApi("core","getMenuCommandState",...t),getMenuCommandTitle:(...t)=>e?.callAsyncUxpApi("core","getMenuCommandTitle",...t),getActiveTool:()=>e?.callAsyncUxpApi("core","getActiveTool"),getCPUInfo:()=>e?.callAsyncUxpApi("core","getCPUInfo"),getGPUInfo:()=>e?.callAsyncUxpApi("core","getGPUInfo"),endModalToolState:t=>e?.callAsyncUxpApi("core","endModalToolState",t),showAlert:t=>e?.callAsyncUxpApi("core","showAlert",t),calculateDialogSize:t=>e?.callAsyncUxpApi("core","calculateDialogSize",...t),executeAsModal:()=>{throw new Error("This method can't be used when DOM is a library")},convertColor:(...t)=>e?.callSyncUxpApi("core","convertColor",...t)},UXP:{storage:{localFileSystem:{createSessionToken:e=>e}}}}:{photoshopAction:window?.require("photoshop").action,photoshopCore:window?.require("photoshop").core,UXP:window?.require("uxp")};var t,a;function replaceAndTranslate(e,t){let r=a.translateUIString(e);return Array.isArray(t)?(t.map(((e,t)=>{r=r.replace("^"+t.toString(),a.translateUIString(e))})),r):r}!function(e){e.batchPlay=async function batchPlay(e,t){return getCoreModules().photoshopAction.batchPlay(e,t)},e.batchPlaySync=function batchPlaySync(e,t){return getCoreModules().photoshopAction.batchPlay(e,t)},e.addNotificationListener=async function addNotificationListener(e,t){return getCoreModules().photoshopAction.addNotificationListener(e,t)},e.removeNotificationListener=async function removeNotificationListener(e,t){return getCoreModules().photoshopAction.removeNotificationListener(e,t)},e.validateReference=function validateReference(e){return getCoreModules().photoshopAction.validateReference(e)},e.getIDFromString=function getIDFromString(e){return getCoreModules().photoshopAction.getIDFromString(e)}}(t||(t={})),function(e){e.isModal=function isModal(){return getCoreModules().photoshopCore.isModal()},e.translateUIString=function translateUIString(e){return getCoreModules().photoshopCore.translateUIString(e)},e.performMenuCommand=async function performMenuCommand(e){return getCoreModules().photoshopCore.performMenuCommand(e)},e.getMenuCommandState=async function getMenuCommandState(e){return getCoreModules().photoshopCore.getMenuCommandState(e)},e.getMenuCommandTitle=async function getMenuCommandTitle(e){return getCoreModules().photoshopCore.getMenuCommandTitle(e)},e.getActiveTool=async function getActiveTool(){return getCoreModules().photoshopCore.getActiveTool()},e.getCPUInfo=function getCPUInfo(){return getCoreModules().photoshopCore.getCPUInfo()},e.getGPUInfo=function getGPUInfo(){return getCoreModules().photoshopCore.getGPUInfo()},e.endModalToolState=async function endModalToolState(e){return getCoreModules().photoshopCore.endModalToolState(e)},e.redrawDocument=async function redrawDocument(e){return getCoreModules().photoshopCore.redrawDocument(e)},e.showAlert=async function showAlert(e){return getCoreModules().photoshopCore.showAlert(e)},e.calculateDialogSize=async function calculateDialogSize(e,t,r){return getCoreModules().photoshopCore.calculateDialogSize()},e.executeAsModal=async function executeAsModal(e,t){return getCoreModules().photoshopCore.executeAsModal(e,t)},e.convertColor=function convertColor(e,t){return getCoreModules().photoshopCore.convertColor(e,t)},e.setExecutionMode=async function setExecutionMode(e){return getCoreModules().photoshopCore.setExecutionMode(e)},e.getPluginInfo=async function getPluginInfo(){return getCoreModules().photoshopCore.getPluginInfo()},e.getLayerTreeSync=function getLayerTreeSync(e){return getCoreModules().photoshopCore.getLayerTreeSync(e)},e.getLayerGroupContentsSync=function getLayerGroupContentsSync(e){return getCoreModules().photoshopCore.getLayerGroupContentsSync(e)},e.addNotificationListener=async function addNotificationListener(e,t,r){return getCoreModules().photoshopCore.addNotificationListener(e,t,r)},e.setUserIdleTime=async function setUserIdleTime(e){return getCoreModules().photoshopCore.setUserIdleTime(e)}}(a||(a={}));const n="$$$/ScriptingSupport/Error/CannotChangeFilterMaskParrams=You cannot change filter mask parameters without the filter mask",i="$$$/ScriptingSupport/Error/CannotChangeLayerMaskParams=You cannot change layer mask parameters without the layer mask",o="$$$/ScriptingSupport/Error/CannotChangeVectorMaskParams=You cannot change vector mask parameters without the vector mask",s="$$$/CT/MultiScript/Error/IllegalArgument=Illegal Argument",l="$$$/ScriptingSupport/Error/NotValidForComponentChannel=The operation is not valid for channels of type component.",c="$$$/PSUXP/Error/SpecifiedTwoKeyDoesNotExist=The requested ^0 ^1 does not exist.",u="$$$/PSUXP/Error/DocumentWIthIDDoesNot=The ^0 with an id of ^1 does not exist.",d="$$$/PSUXP/Error/UnknownColorSpace=Unknown color space: ^0",p="$$$/PSUXP/Error/InputValueNotAnArrayLayers=Input parameter is not an array.",y="$$$/PSUXP/Error/UXPFileEntry=UXP File entry was not provided. See https://www.adobe.com/go/ps-api-uxp-filesystemprovider",m="$$$/PSUXP/Error/CouldNotCreateUXPFileToken=Could not create UXP File token: ^0",g="$$$/PSUXP/Error/InvalidType=Invalid value of ^{^0^} for the type ^{^1^}",f="$$$/PSUXP/Error/InvalidComponentChannel=Invalid ComponentChannel referenced in PSChannel",_="$$$/PSUXP/Error/InvalidChannelIndex=Cannot instantiate channel with index ^0 and document ID ^1",P="$$$/PSUXP/Error/InvalidLayerID=Invalid layer ID: ^0",S="$$$/PSUXP/Error/InvalidDocument=Invalid document",b="$$$/PSUXP/Error/InvalidLayer=Invalid layer",I="$$$/PSUXP/Error/InvalidChannel=Invalid channel",C="$$$/PSUXP/Error/InvalidTargetForMove=Invalid target for move.",L="$$$/PSUXP/Error/ImplementedInsideProxy=Implemented inside proxy",E="$$$/PSUXP/Error/BatchPlaySync=BatchPlay is asynchronous, please use batchPlaySync",D="$$$/PSUXP/Error/OutsideOfRange=The input '^0' is outside of range ^1^2,^3^4.",A="$$$/PSUXP/Error/IncorrectType='^0' is of type ^1. Expecting type ^2.",w="$$$/PSUXP/Error/InvalidConstant=Invalid constant. Expected '^0' to be one of ^1.",T="$$$/PSUXP/Error/CannotRunFilterOnGroup=Command cannot be applied on group layers.",R="$$$/PSUXP/Error/ColorModeValidation=Command '^0' is not supported in color mode ^1 with depth ^2 bits per channel. Please consider to convert document into different color mode or bit depth. Please read UXP documentation to see supported modes",O="$$$/PSUXP/Error/CannotAddLayerComp=Cannot add layer comp. This can happen if document has only background layer and no other layers.",x="$$$/PSUXP/Error/DocumentSizesMismatchInCalculationsError=Calculations can be performed only on documents with the same dimensions in pixels",M="$$$/PSUXP/Error/UnrecognizedValue=The internal value '^0' is not recognized by '^1'",N="$$$/PSUXP/Error/WrongNumberOfInks=Duotone color mode is expected to have: 1, 2, 3 or 4 inks but found '^0' instead",k={modalBehavior:"execute"};let B=!0;async function batchPlay(e,r=k){if(!0===r.synchronousExecution)throw new Error(a.translateUIString(E));let n=Array.isArray(e)?e:[e];n=n.map((e=>e.hasOwnProperty("_obj")?{...e,_options:{dialogOptions:ja.displayDialogs,...e._options}}:{...e,options:{dialogOptions:ja.displayDialogs,...e.options}}));const i={...r,skipAnalytics:!0};return t.batchPlay(n,i)}function batchPlaySync(e,r=k){let a=Array.isArray(e)?e:[e];a=a.map((e=>e.hasOwnProperty("_obj")?{...e,_options:{dialogOptions:ja.displayDialogs,...e._options}}:{...e,options:{dialogOptions:ja.displayDialogs,...e.options}}));const n={...r,synchronousExecution:!0,skipAnalytics:!0};return t.batchPlaySync(a,n)}function validateReference(e){if(!B)return!0;try{return getCoreModules().photoshopAction.validateReference(e)}catch(e){return!1}}var G,U,j,F,H,$,V,W,z,K,X,Y,q,Q,J,Z,ee,te,re,ae,ne,ie,oe,se,le,ce,ue,de,he,pe,ye,me,ge,fe,_e,Pe,Se,ve,be,Ie,Ce,Le,Ee,De,Ae,we,Te,Re,Oe,xe,Me,Ne,ke,Be,Ge,Ue,je,Fe,He,$e,Ve,We,ze,Ke,Xe,Ye,qe,Qe,Je,Ze,et,tt,rt,at,nt,it,ot,st,lt,ct,ut,dt,ht,pt,yt,mt,gt,ft,_t,Pt,St,vt,bt,It,Ct,Lt,Et,Dt,At,wt;!function(e){e.AUTOMATIC="bicubicAutomatic",e.BICUBIC="bicubic",e.BICUBICSHARPER="bicubicSharper",e.BICUBICSMOOTHER="bicubicSmoother",e.BILINEAR="bilinear",e.NEARESTNEIGHBOR="nearestNeighbor"}(G||(G={})),function(e){e.AUTOMATIC="bicubicAutomatic",e.BICUBIC="bicubic",e.BICUBICSHARPER="bicubicSharper",e.BICUBICSMOOTHER="bicubicSmoother",e.BILINEAR="bilinear",e.NEARESTNEIGHBOR="nearestNeighbor",e.PRESERVEDETAILS="preserveDetailsUpscale",e.DEEPUPSCALE="deepUpscale",e.NONE="none"}(U||(U={})),function(e){e.SAVE="save",e.SAVEAS="saveAs",e.SAVEASCOPY="saveAsCopy"}(j||(j={})),function(e){e[e.DONOTSAVECHANGES=0]="DONOTSAVECHANGES",e[e.PROMPTTOSAVECHANGES=1]="PROMPTTOSAVECHANGES",e[e.SAVECHANGES=2]="SAVECHANGES"}(F||(F={})),function(e){e.ONE="bitDepth1",e.FOUR="bitDepth4",e.EIGHT="bitDepth8",e.SIXTEEN="bitDepth16",e.TWENTYFOUR="bitDepth24",e.THIRTYTWO="bitDepth32"}(H||(H={})),function(e){e.ONE="bitDepth1",e.EIGHT="bitDepth8",e.SIXTEEN="bitDepth16",e.THIRTYTWO="bitDepth32"}($||($={})),function(e){e.IMAGEHIGHLIGHT="imageHighlight",e.LAYERMASK="layerMask",e.NONE="none",e.TRANSPARENCYCHANNEL="transparency"}(V||(V={})),function(e){e.WINDOWS="windows",e.OS2="OS2"}(W||(W={})),function(e){e.STANDARDBASELINE="standardbaseline",e.PROGRESSIVE="progressive",e.OPTIMIZEDBASELINE="optimizedbaseline"}(z||(z={})),function(e){e.BACKGROUND="backgroundColor",e.BLACK="black",e.FOREGROUND="foregroundColor",e.NETSCAPE="netscapeGray",e.SEMIGRAY="gray50",e.WHITE="white"}(K||(K={})),function(e){e.DIFFUSION="diffusion",e.PATTERN="pattern",e.NOISE="blue",e.NONE="none"}(X||(X={})),function(e){e.NONE="none",e.BLACKANDWHITE="blackAndWhite",e.PRIMARIES="primaries",e.WEB="web"}(Y||(Y={})),function(e){e.EXACT="exact",e.MACOSPALETTE="macintoshSystem",e.WINDOWSPALETTE="windowsSystem",e.WEBPALETTE="web",e.UNIFORM="uniform",e.LOCALPERCEPTUAL="perceptual",e.LOCALSELECTIVE="selective",e.LOCALADAPTIVE="adaptive",e.MASTERPERCEPTUAL="masterPerceptual",e.MASTERSELECTIVE="masterSelective",e.MASTERADAPTIVE="masterAdaptive",e.PREVIOUSPALETTE="previous"}(q||(q={})),function(e){e.QUICK="quick",e.MODERATE="moderate",e.THOROUGH="thorough"}(Q||(Q={})),function(e){e.BOTTOMCENTER="bottom-center",e.BOTTOMLEFT="bottom-left",e.BOTTOMRIGHT="bottom-right",e.MIDDLECENTER="middle-center",e.MIDDLELEFT="middle-left",e.MIDDLERIGHT="middle-right",e.TOPCENTER="top-center",e.TOPLEFT="top-left",e.TOPRIGHT="top-right"}(J||(J={})),function(e){e.BOTTOMRIGHT="bottom-right",e.TOPLEFT="top-left",e.TRANSPARENT="transparent"}(Z||(Z={})),function(e){e.RED="red",e.ORANGE="orange",e.YELLOW="yellowColor",e.GREEN="grain",e.BLUE="blue",e.VIOLET="violet",e.GRAY="gray",e.NONE="none"}(ee||(ee={})),function(e){e.NORMAL="normal",e.DISSOLVE="dissolve",e.DARKEN="darken",e.MULTIPLY="multiply",e.COLORBURN="colorBurn",e.LINEARBURN="linearBurn",e.DARKERCOLOR="darkerColor",e.LIGHTEN="lighten",e.SCREEN="screen",e.COLORDODGE="colorDodge",e.LINEARDODGE="linearDodge",e.LIGHTERCOLOR="lighterColor",e.OVERLAY="overlay",e.SOFTLIGHT="softLight",e.HARDLIGHT="hardLight",e.VIVIDLIGHT="vividLight",e.LINEARLIGHT="linearLight",e.PINLIGHT="pinLight",e.HARDMIX="hardMix",e.DIFFERENCE="difference",e.EXCLUSION="exclusion",e.SUBTRACT="blendSubtraction",e.DIVIDE="blendDivide",e.HUE="hue",e.SATURATION="saturation",e.COLOR="color",e.LUMINOSITY="luminosity",e.PASSTHROUGH="passThrough"}(te||(te={})),function(e){e.BEHIND="behind",e.CLEAR="clearEnum",e.COLOR="color",e.COLORBURN="colorBurn",e.COLORDODGE="colorDodge",e.DARKEN="darken",e.DARKERCOLOR="darkerColor",e.DIFFERENCE="difference",e.DISSOLVE="dissolve",e.EXCLUSION="exclusion",e.HARDLIGHT="hardLight",e.HARDMIXBLEND="hardMix",e.HUE="hue",e.LIGHTEN="lighten",e.LIGHTERCOLOR="lighterColor",e.LINEARBURN="linearBurn",e.LINEARDODGE="linearDodge",e.LINEARLIGHT="linearLight",e.LUMINOSITY="luminosity",e.MULTIPLY="multiply",e.NORMAL="normal",e.OVERLAY="overlay",e.PINLIGHT="pinLight",e.SATURATION="saturation",e.SCREEN="screen",e.SOFTLIGHT="softLight",e.VIVIDLIGHT="vividLight"}(re||(re={})),function(e){e.NORMAL="normal",e.DARKEN="darken",e.MULTIPLY="multiply",e.COLORBURN="colorBurn",e.LINEARBURN="linearBurn",e.DARKERCOLOR="darkerColor",e.LIGHTEN="lighten",e.SCREEN="screen",e.COLORDODGE="colorDodge",e.LINEARDODGE="linearDodge",e.LIGHTERCOLOR="lighterColor",e.OVERLAY="overlay",e.SOFTLIGHT="softLight",e.HARDLIGHT="hardLight",e.VIVIDLIGHT="vividLight",e.LINEARLIGHT="linearLight",e.PINLIGHT="pinLight",e.HARDMIX="hardMix",e.ADD="add",e.SUBTRACT="subtract",e.DIFFERENCE="difference",e.EXCLUSION="exclusion",e.DIVIDE="blendDivide"}(ae||(ae={})),function(e){e.NORMAL="normal",e.DARKEN="darken",e.MULTIPLY="multiply",e.COLORBURN="colorBurn",e.LINEARBURN="linearBurn",e.DARKERCOLOR="darkerColor",e.LIGHTEN="lighten",e.SCREEN="screen",e.COLORDODGE="colorDodge",e.LINEARDODGE="linearDodge",e.LIGHTERCOLOR="lighterColor",e.OVERLAY="overlay",e.SOFTLIGHT="softLight",e.HARDLIGHT="hardLight",e.VIVIDLIGHT="vividLight",e.LINEARLIGHT="linearLight",e.PINLIGHT="pinLight",e.HARDMIX="hardMix",e.ADD="add",e.SUBTRACT="subtract",e.DIFFERENCE="difference",e.EXCLUSION="exclusion",e.DIVIDE="blendDivide"}(ne||(ne={})),function(e){e.BITMAP="bitmapMode",e.CMYK="CMYKColorMode",e.DUOTONE="duotoneMode",e.GRAYSCALE="grayscaleMode",e.INDEXEDCOLOR="indexedColorMode",e.LAB="labColorMode",e.MULTICHANNEL="multichannelMode",e.RGB="RGBColorMode"}(ie||(ie={})),function(e){e.BITMAP="bitmapMode",e.GRAYSCALE="grayscaleMode",e.RGB="RGBColorMode",e.CMYK="CMYKColorMode",e.LAB="labColorMode"}(oe||(oe={})),function(e){e.CM="cm",e.INCHES="in",e.MM="mm",e.PICAS="pc",e.PIXELS="px",e.POINTS="pt"}(se||(se={})),function(e){e.BITMAP="bitmapMode",e.CMYK="CMYKColorMode",e.GRAYSCALE="grayscaleMode",e.INDEXEDCOLOR="indexedColorMode",e.LAB="labColorMode",e.MULTICHANNEL="multichannelMode",e.RGB="RGBColorMode"}(le||(le={})),function(e){e.WHITE="white",e.BLACK="black",e.BACKGROUNDCOLOR="backgroundColor",e.TRANSPARENT="transparent",e.COLOR="color"}(ce||(ce={})),function(e){e.BLACKANDWHITE="blackAndWhite",e.BRIGHTNESSCONTRAST="brightnessContrast",e.CHANNELMIXER="channelMixer",e.COLORBALANCE="colorBalance",e.CURVES="curves",e.EXPOSURE="exposure",e.GRADIENTFILL="gradientFill",e.GRADIENTMAP="gradientMap",e.HUESATURATION="hueSaturation",e.INVERSION="inversion",e.LEVELS="levels",e.NORMAL="pixel",e.PATTERNFILL="pattern",e.PHOTOFILTER="photoFilter",e.POSTERIZE="posterize",e.SELECTIVECOLOR="selectiveColor",e.SMARTOBJECT="smartObject",e.SOLIDFILL="solidColor",e.TEXT="text",e.THRESHOLD="threshold",e.LAYER3D="threeD",e.VIBRANCE="vibrance",e.VIDEO="video",e.GROUP="group",e.COLORLOOKUP="colorLookup"}(ue||(ue={})),function(e){e.PLACEBEFORE="placeBefore",e.PLACEATBEGINNING="placeAtBeginning",e.PLACEATEND="placeAtEnd",e.PLACEAFTER="placeAfter",e.PLACEINSIDE="placeInside"}(de||(de={})),function(e){e.CUSTOM="customEnum",e.NONE="none",e.WORKING="workingSpaceCode"}(he||(he={})),function(e){e.CUSTOMPATTERN="customPattern",e.DIFFUSIONDITHER="diffusionDither",e.HALFTHRESHOLD="halfThreshold",e.HALFTONESCREEN="halfToneScreen",e.PATTERNDITHER="patternDither"}(pe||(pe={})),function(e){e.CROSS="cross",e.DIAMOND="diamond",e.ELLIPSE="ellipse",e.LINE="lineClass",e.ROUND="round",e.SQUARE="square"}(ye||(ye={})),function(e){e.ABSOLUTECOLORIMETRIC="absColorimetric",e.PERCEPTUAL="image",e.RELATIVECOLORIMETRIC="colorimetric",e.SATURATION="graphics"}(me||(me={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(ge||(ge={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(fe||(fe={})),function(e){e.GRAYSCALE="grayScale",e.HSB="HSBColorEnum",e.CMYK="CMYKColorEnum",e.LAB="labColor",e.RGB="RGBColor",e.NONE="noColor"}(_e||(_e={})),function(e){e.ENTIRELAYER="entire",e.FILLCONTENT="content",e.LAYERCLIPPINGPATH="clippingPath",e.LINKEDLAYERS="linked",e.SHAPE="shape",e.TEXTCONTENTS="type",e.VECTORMASK="vectorMask",e.PLACED="placed",e.VIDEO="video",e.LAYERSTYLE="layerStyle"}(Pe||(Pe={})),function(e){e.ALL="display",e.ERROR="silent",e.NONE="dontDisplay"}(Se||(Se={})),function(e){e.STRETCHTOFIT="stretchToFit",e.TILE="tile"}(ve||(ve={})),function(e){e.COMPONENT="component",e.MASKEDAREA="maskedAreas",e.SELECTEDAREA="selectedAreas",e.SPOTCOLOR="spot"}(be||(be={})),function(e){e.GAUSSIAN="gaussianDistribution",e.UNIFORM="uniformDistribution"}(Ie||(Ie={})),function(e){e.EVENFIELDS="eliminateEvenFields",e.ODDFIELDS="eliminateOddFields"}(Ce||(Ce={})),function(e){e.HEPTAGON="heptagon",e.HEXAGON="hexagon",e.OCTAGON="octagon",e.PENTAGON="pentagon",e.SQUARE="square",e.TRIANGLE="triangle"}(Le||(Le={})),function(e){e.DUPLICATION="createDroplet",e.INTERPOLATION="createInterpolation"}(Ee||(Ee={})),function(e){e.DUPLICATE="duplicate",e.INTERPOLATE="interpolate",e.CLIPPINGPATH="clippingPathEPS",e.NORMALPATH="normalPath",e.TEXTMASK="textShape",e.VECTORMASK="vectorMask",e.WORKPATH="workPathIndex"}(De||(De={})),function(e){e.DIMINISH="subtractFrom",e.EXTEND="addTo",e.INTERSECT="intersectWith",e.REPLACE="set"}(Ae||(Ae={})),function(e){e.ARTHISTORYBRUSH="artBrushTool",e.BACKGROUNDERASER="backgroundEraserTool",e.BLUR="blurTool",e.BRUSH="paintbrushTool",e.BURN="burnInTool",e.CLONESTAMP="cloneStampTool",e.COLORREPLACEMENTTOOL="colorReplacementBrushTool",e.DODGE="dodgeTool",e.ERASER="eraserTool",e.HEALINGBRUSH="magicStampTool",e.HISTORYBRUSH="historyBrushTool",e.PATTERNSTAMP="patternStampTool",e.PENCIL="pencilTool",e.SHARPEN="sharpenTool",e.SMUDGE="smudgeTool",e.SPONGE="saturationTool"}(we||(we={})),function(e){e.CORNERPOINT="cornerPoint",e.SMOOTHPOINT="smoothPoint"}(Te||(Te={})),function(e){e.SHAPEADD="add",e.SHAPEINTERSECT="intersect",e.SHAPESUBTRACT="subtract",e.SHAPEXOR="xor"}(Re||(Re={})),function(e){e.BLOCKS="texTypeBlocks",e.CANVAS="texTypeCanvas",e.FROSTED="texTypeFrosted",e.TINYLENS="texTypeTinyLens"}(Oe||(Oe={})),function(e){e.REPEATEDGEPIXELS="repeatEdgePixels",e.WRAPAROUND="wrapAround"}(xe||(xe={})),function(e){e.POLARTORECTANGULAR="polarToRect",e.RECTANGULARTOPOLAR="rectToPolar"}(Me||(Me={})),function(e){e.SPIN="spin",e.ZOOM="zoom"}(Ne||(Ne={})),function(e){e.DRAFT="draft",e.GOOD="good",e.BEST="best"}(ke||(ke={})),function(e){e.LARGE="large",e.MEDIUM="mediumQuality",e.SMALL="small"}(Be||(Be={})),function(e){e.HIGH="smartBlurQualityHigh",e.LOW="smartBlurQualityLow",e.MEDIUM="smartBlurQualityMedium"}(Ge||(Ge={})),function(e){e.EDGEONLY="smartBlurModeEdgeOnly",e.NORMAL="smartBlurModeNormal",e.OVERLAYEDGE="smartBlurModeOverlayEdge"}(Ue||(Ue={})),function(e){e.HORIZONTAL="horizontalOnly",e.NORMAL="normal",e.VERTICAL="verticalOnly"}(je||(je={})),function(e){e.SINE="waveSine",e.SQUARE="waveSquare",e.TRIANGULAR="waveTriangle"}(Fe||(Fe={})),function(e){e.AROUNDCENTER="aroundCenter",e.OUTFROMCENTER="outFromCenter",e.PONDRIPPLES="pondRipples"}(He||(He={})),function(e){e.MOVIEPRIME="panaVision",e.PRIME105="nikon105",e.PRIME35="nikon",e.ZOOMLENS="zoom"}($e||($e={})),function(e){e.SQUARENESS="squareness",e.ROUNDNESS="roundness"}(Ve||(Ve={})),function(e){e.SETTOBACKGROUND="background",e.REPEATEDGEPIXELS="repeat",e.WRAPAROUND="wrap"}(We||(We={})),function(e){e[e.POINTSAMPLE=0]="POINTSAMPLE",e[e.SAMPLE3X3=1]="SAMPLE3X3",e[e.SAMPLE5X5=2]="SAMPLE5X5",e[e.SAMPLE11X11=5]="SAMPLE11X11",e[e.SAMPLE31X31=15]="SAMPLE31X31",e[e.SAMPLE51X51=25]="SAMPLE51X51",e[e.SAMPLE101X101=50]="SAMPLE101X101"}(ze||(ze={})),function(e){e.ALWAYSSAVE="queryAlways",e.ASKWHENSAVING="queryAsk",e.NEVERSAVE="queryNever"}(Ke||(Ke={})),function(e){e.ADOBE="photoshopPicker",e.OSNATIVE="systemPicker",e.PLUGIN="pluginPicker"}(Xe||(Xe={})),function(e){e.CONCISE="concise",e.DETAILED="detailed",e.SESSIONONLY="session"}(Ye||(Ye={})),function(e){e.LARGE="large",e.MEDIUM="medium",e.NONE="none",e.SMALL="small"}(qe||(qe={})),function(e){e.DASHED="dashedLines",e.DOTTED="dots",e.SOLID="lens"}(Qe||(Qe={})),function(e){e.DASHED="dashedLines",e.SOLID="lens"}(Je||(Je={})),function(e){e.ALWAYS="queryAlways",e.ASK="queryAsk",e.NEVER="queryNever"}(Ze||(Ze={})),function(e){e.PRECISE="precise",e.STANDARD="standard"}(et||(et={})),function(e){e.FULLSIZE="fullSize",e.BRUSHSIZE="brushSize",e.PRECISE="precise",e.STANDARD="standard"}(tt||(tt={})),function(e){e.POSTSCRIPT="POSTSCRIPT",e.TRADITIONAL="TRADITIONAL"}(rt||(rt={})),function(e){e.LOGFILE="textFile",e.LOGFILEANDMETADATA="both",e.METADATA="metadata"}(at||(at={})),function(e){e.TINY="preferTinyPaletteFontType",e.LARGE="preferLargePaletteFontType",e.MEDIUM="preferMediumPaletteFontType",e.SMALL="preferSmallPaletteFontType"}(nt||(nt={})),function(e){e.MILLIMETERS="rulerMm",e.PIXELS="rulerPixels",e.POINTS="rulerPoints"}(it||(it={})),function(e){e.CENTIMETERS="rulerCm",e.INCHES="rulerInches",e.MILLIMETERS="rulerMm",e.PERCENT="rulerPercent",e.PICAS="rulerPicas",e.PIXELS="rulerPixels",e.POINTS="rulerPoints"}(ot||(ot={})),function(e){e.DEFAULT="defaultTextInterface",e.EASTASIAN="advancedAsianInterface",e.MIDDLEEASTERN="middleEasternInterface"}(st||(st={})),function(e){e.NEWDOCUMENT="document",e.NEWCHANNEL="channel",e.SELECTION="selection"}(lt||(lt={})),function(e){e.TRANSPARENCY="transparencyEnum",e.SELECTION="selection",e.GRAY="gray"}(ct||(ct={})),function(e){e.TRANSPARENCY="transparencyEnum",e.SELECTION="selection",e.RGB="RGB",e.CMYK="CMYK",e.LAB="lab"}(ut||(ut={})),function(e){e.MERGED="merged"}(dt||(dt={})),function(e){e.MERGED="merged"}(ht||(ht={})),function(e){e.NONE="antiAliasNone",e.SHARP="antiAliasSharp",e.CRISP="antiAliasCrisp",e.STRONG="antiAliasStrong",e.SMOOTH="antiAliasSmooth"}(pt||(pt={})),function(e){e.ARC="warpArc",e.ARCH="warpArch",e.ARCLOWER="warpArcLower",e.ARCUPPER="warpArcUpper",e.BULGE="warpBulge",e.FISH="warpFish",e.FISHEYE="warpFisheye",e.FLAG="warpFlag",e.INFLATE="warpInflate",e.NONE="warpNone",e.RISE="warpRise",e.SHELLLOWER="warpShellLower",e.SHELLUPPER="warpShellUpper",e.SQUEEZE="warpSqueeze",e.TWIST="warpTwist",e.WAVE="warpWave"}(yt||(yt={})),function(e){e.MANUAL="manual",e.METRICS="metricsKern",e.OPTICAL="opticalKern"}(mt||(mt={})),function(e){e.ALLCAPS="allCaps",e.NORMAL="normal",e.SMALLCAPS="smallCaps"}(gt||(gt={})),function(e){e.NORMAL="normal",e.SUPERSCRIPT="superScript",e.SUBSCRIPT="subScript"}(ft||(ft={})),function(e){e.NONE="underlineOff",e.RIGHTINVERTICAL="underlineOnRightInVertical",e.LEFTINVERTICAL="underlineOnLeftInVertical"}(_t||(_t={})),function(e){e.ENGLISHUSA="englishLanguage",e.ENGLISHUK="ukenglishLanguage",e.ENGLISHCANADA="canadianEnglishLanguage",e.FINNISH="finnishLanguage",e.FRENCH="standardFrenchLanguage",e.CANADIANFRENCH="canadianFrenchLanguage",e.GERMAN="standardGermanLanguage",e.GERMAN1996="germanLanguageReformed1996",e.OLDGERMAN="oldGermanLanguage",e.SWISSGERMAN="swissGermanLanguage",e.OLDSWISSGERMAN="swissGermanLanguageOldRules",e.ITALIAN="italianLanguage",e.NORWEGIAN="bokmalNorwegianLanguage",e.NYNORSKNORWEGIAN="nynorskNorwegianLanguage",e.PORTUGUESE="standardPortugueseLanguage",e.BRAZILLIANPORTUGUESE="brazilianPortugueseLanguage",e.SPANISH="spanishLanguage",e.SWEDISH="swedishLanguage",e.DUTCH="dutchLanguage",e.OLDDUTCH="kdutchLanguageOldRules",e.DANISH="danishLanguage",e.RUSSIAN="russianLanguage",e.SERBIAN="serbianLanguage",e.CZECH="czechLanguage",e.POLISH="polishLanguage",e.GREEK="greekLanguage",e.TURKISH="turkishLanguage",e.ICELANDIC="icelandicLanguage",e.HUNGARIAN="hungarianLanguage",e.CATALAN="catalanLanguage",e.CROATIAN="croatianLanguage",e.ROMANIAN="romanianLanguage",e.UKRAINIAN="ukranianLanguage",e.SLOVENIAN="slovenianLanguage",e.BULGARIAN="bulgarianLanguage",e.LATVIAN="latvianLanguage",e.LITHUANIAN="lithuanianLanguage",e.ESTONIAN="estonianLanguage",e.SLOVAK="slovakLanguage",e.CHINESE="chineseLanguage",e.JAPANESE="japaneseLanguage",e.ARABIC="arabicLanguage",e.HEBREW="hebrewLanguage",e.HINDI="hindiLanguage",e.BANGLAINDIA="bengaliIndiaLanguage",e.TAMIL="tamilLanguage",e.MALAYALAM="malayalamLanguage",e.TELUGU="teluguLanguage",e.KANNADA="kannadaLanguage",e.GUJARATI="gujaratiLanguage",e.MARATHI="marathiLanguage",e.PUNJABI="punjabiLanguage",e.ODIA="oriyaLanguage",e.THAI="thaiLanguage",e.KHMER="khmerLanguage",e.BURMESE="burmeseLanguage",e.LAO="laoLanguage",e.SINHALESE="sinhaleseLanguage",e.INDONESIAN="indonesianLanguage"}(Pt||(Pt={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.LEFTJUSTIFIED="justifyLeft",e.CENTERJUSTIFIED="justifyCenter",e.RIGHTJUSTIFIED="justifyRight",e.FULLYJUSTIFIED="justifyAll"}(St||(St={})),function(e){e.STRIKEBOX="eMBoxStrikethroughOn",e.STRIKEHEIGHT="xHeightStrikethroughOn",e.STRIKEOFF="strikethroughOff"}(vt||(vt={})),function(e){e.ROMAN="roman",e.EMBOXTOPRIGHT="top",e.EMBOXCENTER="center",e.EMBOXBOTTOMLEFT="bottom",e.ICFBOXTOPRIGHT="icftop",e.ICFBOTTOMLEFT="icfbottom"}(bt||(bt={})),function(e){e.LATINEASTASIAN="textLatinCJKComposer",e.WORLDREADY="textOptycaComposer"}(It||(It={})),function(e){e.DEFAULT="defaultTextInterface",e.EASTASIAN="advancedAsianInterface",e.MIDDLEASTERN="middleEasternInterface"}(Ct||(Ct={})),function(e){e.DEFAULT="dirOverrideDefault",e.LEFTTORIGHT="dirOverrideLTR",e.RIGHTTOLEFT="dirOverrideRTL"}(Lt||(Lt={})),function(e){e.LTRARABIC="arabicDigits",e.RTLARABIC="RTLarabicDigits",e.HINDI="hindiDigits",e.FARSI="farsiDigits"}(Et||(Et={})),function(e){e.NONE="kashidaWidthNone",e.SHORT="kashidaWidthSmall",e.MEDIUM="kashidaWidthMedium",e.LONG="kashidaWidthLong",e.STYLISTIC="kashidaWidthStylistic"}(Dt||(Dt={})),function(e){e.NONE="None",e.JISWEAK="Soft",e.JISMAXIMUM="Hard"}(At||(At={})),function(e){e.NONE="None",e.SET1="Photoshop6MojiKumiSet1",e.SET2="Photoshop6MojiKumiSet2",e.SET3="Photoshop6MojiKumiSet3",e.SET4="Photoshop6MojiKumiSet4"}(wt||(wt={}));var Tt,Rt,Ot=__webpack_require__(235),xt=__webpack_require__(593);function selectionDance(e){return Array.isArray(e)||"Document"!==e.typename?function selectionDanceLayer(e){Array.isArray(e)||(e=[e]);if(!e.length)return[];return[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(e[0]._docId)),(0,xt.saveLayerSelection)(),(0,xt.select)(e.map((e=>xt.ref.id(e.id))))]}(e):function selectionDanceDoc(e){return[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(e.id))]}(e)}function validateColorMode(e,t,r){const a=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(e.id),["depth","mode"])),[{depth:n,mode:{_value:i}}]=a;let o=!1,s="unknown";switch(i){case"grayScale":case"gray16":o=t?.Gray?.includes(n),s="DocumentMode.GRAYSCALE";break;case"RGBColor":case"RGB48":o=t?.RGB?.includes(n),s="DocumentMode.RGB";break;case"CMYKColorEnum":case"CMYK64":o=t?.CMYK?.includes(n),s="DocumentMode.CMYK";break;case"labColor":case"lab48":o=t?.Lab?.includes(n),s="DocumentMode.LAB";break;case"bitmap":o=t.Bitmap,s="DocumentMode.BITMAP";break;case"indexedColor":o=t.Indexed,s="DocumentMode.INDEXEDCOLOR";break;case"duotone":o=t?.Duotone?.includes(n),s="DocumentMode.DUOTONE";break;case"multichannel":o=t?.Multi?.includes(n),s="DocumentMode.MULTICHANNEL";break;default:{const e=replaceAndTranslate(d,[i]);throw new Error(e)}}if("ALLOWED"===t.rule&&!o||"DISALLOWED"===t.rule&&o){const e=[r,s,n.toString()],t=replaceAndTranslate(R,e);throw new Error(t)}}function validateRange(e,t,r,a,n="closed",i="closed"){validateBasicType(e,t,"number");let o,s,l=!1,c=!1;if("closed"===n?(o="[",e>=r&&(l=!0)):(o="(",e>r&&(l=!0)),"closed"===i?(s="]",e<=a&&(c=!0)):(s=")",e{if(!Object.hasOwnProperty.call(e,a)){let a=[t,`{${Object.keys(e).join(", ")}}`,`{${r.join(", ")}}`];const n=replaceAndTranslate(A,a);throw new Error(n)}}))}function retrieveUXPFileToken(e){if(null==e)throw new Error(a.translateUIString(y));let t;try{t=getCoreModules().UXP.storage.localFileSystem.createSessionToken(e)}catch(e){const t=replaceAndTranslate(m,[e.message||e]);throw new Error(t)}return t}class DOMError extends Error{constructor(e,t){super(replaceAndTranslate(e,t))}get name(){return"DomError"}get typename(){return this.name}}!function(e){e.CLOSED="closed",e.OPEN="open"}(Tt||(Tt={})),function(e){e.NUMBER="number",e.STRING="string",e.BOOLEAN="boolean"}(Rt||(Rt={}));const Mt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16]},Nt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},kt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Bt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Gt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Ut={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,RGB:[32],Gray:[32]},jt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Ft={rule:"ALLOWED",RGB:[8],CMYK:[8],Duotone:[8],Gray:[8],Lab:[8],Multi:[8]},Ht={rule:"ALLOWED",RGB:[8],Duotone:[8],Gray:[8],Multi:[8]},$t={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Vt={rule:"ALLOWED",RGB:[8],Duotone:[8],Gray:[8],Multi:[8]},Wt={rule:"ALLOWED",RGB:[8],Duotone:[8],Gray:[8],Multi:[8]},zt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Kt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Xt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Yt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},qt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Qt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Jt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},Zt={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},er={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},tr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,RGB:[32],Gray:[32]},rr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,RGB:[32],Gray:[32]},ar={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,RGB:[32],Gray:[32]},nr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},ir={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Lab:[8,16]},or={rule:"ALLOWED",RGB:[8,16,32]},sr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},lr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,RGB:[32],Gray:[32]},cr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},ur={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},dr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,CMYK:[8,16],Duotone:[8]},hr={rule:"ALLOWED",RGB:[8,16,32]},pr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},yr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},mr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},gr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},fr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0},_r={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16]},Pr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16]},Sr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Lab:[8,16]},vr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16]},br={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Lab:[8,16],Gray:[32],RGB:[32]},Ir={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},Cr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[8,16,32],Duotone:[8]},Lr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Lab:[8,16]},Er={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},Dr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32],Lab:[8,16]},Ar={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16]},wr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8],Gray:[8,16,32],Duotone:[8]},Tr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},Rr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},Or={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},xr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},Mr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},Nr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},kr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[32],RGB:[32]},Br={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Lab:[8,16]},Gr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Lab:[8,16],Gray:[32],RGB:[32]},Ur={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Lab:[8,16]},jr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Lab:[8,16]},Fr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[8,16,32],Duotone:[8]},Hr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[8,16,32],Duotone:[8]},$r={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[8,16,32],Duotone:[8]},Vr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[8,16,32],Duotone:[8]},Wr={rule:"DISALLOWED",Bitmap:!0,Indexed:!0,Multi:[8,16],Gray:[8,16,32],Duotone:[8]};var zr,Kr=__webpack_require__(637),Xr=__webpack_require__(915);class Bounds{constructor(){}get left(){return this._left}set left(e){this._left=e}get right(){return this._right}set right(e){this._right=e}get top(){return this._top}set top(e){this._top=e}get bottom(){return this._bottom}set bottom(e){this._bottom=e}get width(){return this._right-this._left}get height(){return this._bottom-this._top}union(e){const t=new Bounds;return t.top=Math.min(this._top??1/0,e.top??1/0),t.bottom=Math.max(this._bottom??-1/0,e.bottom??-1/0),t.left=Math.min(this._left??1/0,e.left??1/0),t.right=Math.max(this._right??-1/0,e.right??-1/0),t}get typename(){return"Bounds"}}!function(e){e[e.HSB=4]="HSB",e[e.CMYK=5]="CMYK",e[e.Lab=6]="Lab",e[e.RGB=15]="RGB",e[e.Gray=16]="Gray"}(zr||(zr={}));class CMYKColor{constructor(e){e&&(validateConstant(e._obj,"desc._obj",["CMYKColorClass"]),validateRange(e.cyan,"desc.cyan",0,360),validateRange(e.magenta,"desc.magenta",0,100),validateRange(e.yellowColor,"desc.yellowColor",0,100),validateRange(e.black,"desc.black",0,100)),this.desc=e??{_obj:"CMYKColorClass",cyan:0,magenta:0,yellowColor:0,black:0}}get black(){return this.desc.black}set black(e){this.desc.black=e}get cyan(){return this.desc.cyan}set cyan(e){this.desc.cyan=e}get magenta(){return this.desc.magenta}set magenta(e){this.desc.magenta=e}get yellow(){return this.desc.yellowColor}set yellow(e){this.desc.yellowColor=e}get typename(){return"CMYKColor"}}class GrayColor{constructor(e){e&&(validateConstant(e._obj,"desc._obj",["grayscale"]),validateRange(e.gray,"desc.gray",0,100)),this.desc=e??{_obj:"grayscale",gray:0}}get gray(){return this.desc.gray}set gray(e){validateRange(e,"gray",0,100),this.desc.gray=e}get typename(){return"GrayColor"}}class HSBColor{constructor(e){e&&(validateConstant(e._obj,"desc._obj",["HSBColorClass"]),validateRange(e.hue._value,"desc.hue._value",0,360),validateRange(e.saturation,"desc.saturation",0,100),validateRange(e.brightness,"desc.brightness",0,100)),this.desc=e??{_obj:"HSBColorClass",hue:{_unit:"angleUnit",_value:0},saturation:0,brightness:100}}get brightness(){return this.desc.brightness}set brightness(e){validateRange(e,"brightness",0,100),this.desc.brightness=e}get hue(){return this.desc.hue._value}set hue(e){validateRange(e,"hue",0,360),this.desc.hue._value=e}get saturation(){return this.desc.saturation}set saturation(e){validateRange(e,"saturation",0,100),this.desc.saturation=e}get typename(){return"HSBColor"}}class LabColor{constructor(e){e&&(validateConstant(e._obj,"desc._obj",["labColor"]),validateRange(e.luminance,"desc.luminance",0,100),validateRange(e.a,"desc.a",-128,127),validateRange(e.b,"desc.b",-128,127)),this.desc=e??{_obj:"labColor",luminance:100,a:0,b:0}}get a(){return this.desc.a}set a(e){validateRange(e,"a",-128,127),this.desc.a=e}get b(){return this.desc.b}set b(e){validateRange(e,"b",-128,127),this.desc.b=e}get l(){return this.desc.luminance}set l(e){validateRange(e,"l",0,100),this.desc.luminance=e}get typename(){return"LabColor"}}class RGBColor{constructor(e){"redFloat"in(e=e??{_obj:"RGBColor",red:255,green:255,blue:255})&&"blueFloat"in e&&"greenFloat"in e&&(e.blueFloat=Math.min(Math.max(e.blueFloat,0),1),e.greenFloat=Math.min(Math.max(e.greenFloat,0),1),e.redFloat=Math.min(Math.max(e.redFloat,0),1),e=a.convertColor(e,zr.RGB),console.warn("RGB with 32 bits per channels is not supported. Color values were rounded to the nearest range valid for RGB with 16 bits per channel")),e&&void 0!==e.grain&&delete(e={...e,green:e.grain}).grain,e&&(validateConstant(e._obj,"desc._obj",["RGBColor"]),validateRange(e.blue,"desc.blue",0,255),validateRange(e.red,"desc.red",0,255),validateRange(e.green,"desc.green",0,255)),this.desc=e}get blue(){return this.desc.blue}set blue(e){validateRange(e,"blue",0,255),this.desc.blue=e}get green(){return this.desc.green}set green(e){validateRange(e,"green",0,255),this.desc.green=e}get red(){return this.desc.red}set red(e){validateRange(e,"red",0,255),this.desc.red=e}get hexValue(){return(Math.round(this.desc.red).toString(16).padStart(2,"0")+Math.round(this.desc.green).toString(16).padStart(2,"0")+Math.round(this.desc.blue).toString(16).padStart(2,"0")).toUpperCase()}set hexValue(e){if(!e.match(/#?[0-9a-fA-F]{6}/))throw new Error(a.translateUIString("$$$/PSUXP/Error/InvalidHexCode=Invalid hex code provided to RGBColor.hexValue setter. Please provide a 6 character hexadecimal string with or without # symbol at the beginning."));const t=e.slice(-6);this.desc.red=Number.parseInt(t.substring(0,2),16),this.desc.green=Number.parseInt(t.substring(2,4),16),this.desc.blue=Number.parseInt(t.substring(4,6),16)}get typename(){return"RGBColor"}}class NoColor{constructor(){}get typename(){return"NoColor"}}function mapRGBToNearestWebColor(e){return{_obj:"RGBColor",red:51*Math.round(e.red/255*5),green:51*Math.round(e.green/255*5),blue:51*Math.round(e.blue/255*5)}}class SolidColor{constructor(e){switch(e){case _e.CMYK:this.base=new CMYKColor;break;case _e.GRAYSCALE:this.base=new GrayColor;break;case _e.HSB:this.base=new HSBColor;break;case _e.LAB:this.base=new LabColor;break;default:this.base=new RGBColor}}get model(){switch(this.base.typename){case"CMYKColor":return _e.CMYK;case"GrayColor":return _e.GRAYSCALE;case"HSBColor":return _e.HSB;case"LabColor":return _e.LAB;case"RGBColor":return _e.RGB}throw new Error(replaceAndTranslate(M,[this.base.typename,"SolidColor.model"]))}get rgb(){if("RGBColor"!==this.base.typename){const e=a.convertColor(this.base.desc,zr.RGB);this.base=new RGBColor(e)}return this.base}set rgb(e){this.base=e}get cmyk(){if("CMYKColor"!==this.base.typename){const e=a.convertColor(this.base.desc,zr.CMYK);this.base=new CMYKColor(e)}return this.base}set cmyk(e){this.base=e}get hsb(){if("HSBColor"!==this.base.typename){const e=a.convertColor(this.base.desc,zr.HSB);this.base=new HSBColor(e)}return this.base}set hsb(e){this.base=e}get lab(){if("LabColor"!==this.base.typename){const e=a.convertColor(this.base.desc,zr.Lab);this.base=new LabColor(e)}return this.base}set lab(e){this.base=e}get gray(){if("GrayColor"!==this.base.typename){const e=a.convertColor(this.base.desc,zr.Gray);e.gray=100-e.gray,this.base=new GrayColor(e)}return this.base}set gray(e){this.base=e}get nearestWebColor(){if("RGBColor"!==this.base.typename){const e=a.convertColor(this.base.desc,zr.RGB),t=mapRGBToNearestWebColor(SolidColor.fromDesc(e).rgb.desc);return new RGBColor(t)}{const e=mapRGBToNearestWebColor(this.base.desc);return new RGBColor(e)}}isEqual(e){const t="LabColor"===this.base.typename?this.base.desc:a.convertColor(this.base.desc,zr.Lab),r="LabColor"===e.base.typename?e.base.desc:a.convertColor(e.base.desc,zr.Lab);return(((t.luminance-r.luminance)/100)**2+((t.a-r.a)/255)**2+((t.b-r.b)/255)**2)/3<35e-7}get typename(){return"SolidColor"}static fromDesc(e){let t=new SolidColor;switch(e._obj){case"RGBColor":if("redFloat"in e&&"blueFloat"in e&&"greenFloat"in e)throw new DOMError("$$$/PSUXP/Error/unsupportedRGB32=RGB in 32 bits per channel precisions is currently not supported");t.rgb=new RGBColor(e);break;case"labColor":t.lab=new LabColor(e);break;case"CMYKColorClass":t.cmyk=new CMYKColor(e);break;case"grayscale":t.gray=new GrayColor(e);break;case"HSBColorClass":t.hsb=new HSBColor(e);break;default:throw Error(replaceAndTranslate(M,[e._obj,"SolidColor.fromDesc()"]))}return t}}function validateSolidColor(e,t){if(!(e instanceof SolidColor)){const r=replaceAndTranslate(A,[t,typeof e,"SolidColor"]);throw new Error(r)}}const Yr={textGridding:{_enum:"textGridding",_value:"none"},orientation:{_enum:"orientation",_value:"horizontal"},antiAlias:{_enum:"antiAliasType",_value:"antiAliasSharp"},textStyleRange:[{_obj:"textStyleRange",textStyle:{_obj:"textStyle",styleSheetHasParent:!0,fontPostScriptName:"MyriadPro-Regular",fontName:"Myriad Pro",fontStyleName:"Regular",fontScript:0,fontTechnology:0,fontAvailable:!0,size:{_unit:"pointsUnit",_value:12},impliedFontSize:{_unit:"pointsUnit",_value:12},horizontalScale:100,verticalScale:100,syntheticBold:!1,syntheticItalic:!1,autoLeading:!0,tracking:0,baselineShift:{_unit:"pointsUnit",_value:0},impliedBaselineShift:{_unit:"pointsUnit",_value:0},autoKern:{_enum:"autoKern",_value:"metricsKern"},fontCaps:{_enum:"fontCaps",_value:"normal"},digitSet:{_enum:"digitSet",_value:"arabicDigits"},kashidas:{_enum:"kashidas",_value:"kashidaDefault"},diacXOffset:{_unit:"pointsUnit",_value:0},diacYOffset:{_unit:"pointsUnit",_value:0},markYDistFromBaseline:{_unit:"pointsUnit",_value:0},baseline:{_enum:"baseline",_value:"normal"},otbaseline:{_enum:"otbaseline",_value:"normal"},strikethrough:{_enum:"strikethrough",_value:"strikethroughOff"},underline:{_enum:"underline",_value:"underlineOff"},ligature:!0,altligature:!1,contextualLigatures:!0,fractions:!1,ordinals:!1,swash:!1,titling:!1,connectionForms:!0,stylisticAlternates:!1,stylisticSets:0,ornaments:!1,justificationAlternates:!1,figureStyle:{_enum:"figureStyle",_value:"normal"},proportionalMetrics:!1,kana:!1,italics:!1,baselineDirection:{_enum:"baselineDirection",_value:"withStream"},textLanguage:{_enum:"textLanguage",_value:"englishLanguage"},japaneseAlternate:{_enum:"japaneseAlternate",_value:"defaultForm"},mojiZume:0,gridAlignment:{_enum:"gridAlignment",_value:"roman"},noBreak:!1,color:{_obj:"RGBColor",red:0,grain:0,blue:0},strokeColor:{_obj:"RGBColor",red:0,grain:0,blue:0},baseParentStyle:{_obj:"textStyle",fontPostScriptName:"MyriadPro-Regular",fontName:"Myriad Pro",fontStyleName:"Regular",fontScript:0,fontTechnology:0,fontAvailable:!0,size:{_unit:"pointsUnit",_value:12},impliedFontSize:{_unit:"pointsUnit",_value:12},horizontalScale:100,verticalScale:100,syntheticBold:!1,syntheticItalic:!1,autoLeading:!0,tracking:0,baselineShift:{_unit:"pointsUnit",_value:0},impliedBaselineShift:{_unit:"pointsUnit",_value:0},characterRotation:0,autoKern:{_enum:"autoKern",_value:"metricsKern"},fontCaps:{_enum:"fontCaps",_value:"normal"},digitSet:{_enum:"digitSet",_value:"defaultDigits"},dirOverride:{_enum:"dirOverride",_value:"dirOverrideDefault"},kashidas:{_enum:"kashidas",_value:"kashidaDefault"},diacVPos:{_enum:"diacVPos",_value:"diacVPosOpenType"},diacXOffset:{_unit:"pointsUnit",_value:0},diacYOffset:{_unit:"pointsUnit",_value:0},markYDistFromBaseline:{_unit:"pointsUnit",_value:100},baseline:{_enum:"baseline",_value:"normal"},otbaseline:{_enum:"otbaseline",_value:"normal"},strikethrough:{_enum:"strikethrough",_value:"strikethroughOff"},underline:{_enum:"underline",_value:"underlineOff"},underlineOffset:{_unit:"pointsUnit",_value:0},ligature:!0,altligature:!1,contextualLigatures:!1,alternateLigatures:!1,oldStyle:!1,fractions:!1,ordinals:!1,swash:!1,titling:!1,connectionForms:!1,stylisticAlternates:!1,stylisticSets:0,ornaments:!1,justificationAlternates:!1,figureStyle:{_enum:"figureStyle",_value:"normal"},proportionalMetrics:!1,kana:!1,italics:!1,ruby:!1,baselineDirection:{_enum:"baselineDirection",_value:"rotated"},textLanguage:{_enum:"textLanguage",_value:"englishLanguage"},japaneseAlternate:{_enum:"japaneseAlternate",_value:"defaultForm"},mojiZume:0,gridAlignment:{_enum:"gridAlignment",_value:"roman"},enableWariChu:!1,wariChuCount:2,wariChuLineGap:0,wariChuScale:.5,wariChuWidow:2,wariChuOrphan:2,wariChuJustification:{_enum:"wariChuJustification",_value:"wariChuAutoJustify"},tcyUpDown:0,tcyLeftRight:0,leftAki:-1,rightAki:-1,jiDori:0,noBreak:!1,color:{_obj:"RGBColor",red:0,grain:0,blue:0},strokeColor:{_obj:"RGBColor",red:0,grain:0,blue:0},fill:!0,stroke:!1,fillFirst:!0,fillOverPrint:!1,strokeOverPrint:!1,lineCap:{_enum:"lineCap",_value:"buttCap"},lineJoin:{_enum:"lineJoin",_value:"miterJoin"},lineWidth:{_unit:"pointsUnit",_value:1},miterLimit:{_unit:"pointsUnit",_value:4},lineDashoffset:0}}}],kerningRange:[]};var qr=__webpack_require__(664),Qr=__webpack_require__(596);class CharacterStyle{constructor(e){this._parent=e}getCharacterPropertyDesc(e){const t=batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]));let r=t[0].textKey?.textStyleRange[0]?.textStyle?.[e];return null==r&&(r=t[0].textKey?.textStyleRange[0]?.textStyle?.baseParentStyle?.[e]),r}getCharacterPropertyValue(e){const t=this.getCharacterPropertyDesc(e);return t?.hasOwnProperty("_value")?t._value:"RGBColor"===t?._obj?SolidColor.fromDesc(t):"boolean"==typeof t||"string"==typeof t||"number"==typeof t?t:null}get font(){return this.getCharacterPropertyValue("fontPostScriptName")}set font(e){validateBasicType(e,"font","string"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"fontPostScriptName",e)])}get size(){return unitDescToPixelUnitValue(this.getCharacterPropertyDesc("size"),this._parent.parent._docId)}set size(e){validateRange(e,"size",.01,normalizePixels(this._parent.parent._docId,1296)),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"size",{_unit:"pixelsUnit",_value:e})])}get horizontalScale(){return this.getCharacterPropertyValue("horizontalScale")}set horizontalScale(e){validateRange(e,"horizontalScale",0,1e3),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"horizontalScale",e)])}get verticalScale(){return this.getCharacterPropertyValue("verticalScale")}set verticalScale(e){validateRange(e,"verticalScale",0,1e3),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"verticalScale",e)])}get fauxBold(){return this.getCharacterPropertyValue("syntheticBold")}set fauxBold(e){validateBasicType(e,"fauxBold","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"syntheticBold",e)])}get fauxItalic(){return this.getCharacterPropertyValue("syntheticItalic")}set fauxItalic(e){validateBasicType(e,"fauxItalic","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"syntheticItalic",e)])}get useAutoLeading(){return this.getCharacterPropertyValue("autoLeading")}set useAutoLeading(e){validateBasicType(e,"autoLeading","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"autoLeading",e)])}get leading(){let e=this.getCharacterPropertyDesc("leading");return e?unitDescToPixelUnitValue(e,this._parent.parent._docId):null}set leading(e){validateRange(e,"leading",0,normalizePixels(this._parent.parent._docId,4999.99)),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.selected(),"leading",{_unit:"pixelsUnit",_value:e})])}get tracking(){return this.getCharacterPropertyValue("tracking")}set tracking(e){validateRange(e,"tracking",-1e3,1e4),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"tracking",e)])}get baselineShift(){return unitDescToPixelUnitValue(this.getCharacterPropertyDesc("baselineShift"),this._parent.parent._docId)}set baselineShift(e){validateRange(e,"baselineShift",normalizePixels(this._parent.parent._docId,-1296),normalizePixels(this._parent.parent._docId,1296)),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"baselineShift",{_unit:"pixelsUnit",_value:e})])}get horizontalDiacriticPosition(){return unitDescToPixelUnitValue(this.getCharacterPropertyDesc("diacXOffset"),this._parent.parent._docId)}set horizontalDiacriticPosition(e){validateRange(e,"horizontalDiacriticPosition",-1e3,1e3),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"diacXOffset",{_unit:"pixelsUnit",_value:e})])}get verticalDiacriticPosition(){return unitDescToPixelUnitValue(this.getCharacterPropertyDesc("markYDistFromBaseline"),this._parent.parent._docId)}set verticalDiacriticPosition(e){validateRange(e,"verticalDiacriticPosition",-1e3,1e3),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"markYDistFromBaseline",{_unit:"pixelsUnit",_value:e})])}get autoKerning(){return this.getCharacterPropertyValue("autoKern")}set autoKerning(e){validateConstant(e,"Constants.AutoKernType",mt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"autoKern",{_enum:"autoKern",_value:e})])}get capitalization(){return this.getCharacterPropertyValue("fontCaps")}set capitalization(e){validateConstant(e,"Constants.TextCase",gt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"fontCaps",{_enum:"fontCaps",_value:e})])}get baseline(){return this.getCharacterPropertyValue("baseline")}set baseline(e){validateConstant(e,"Constants.Baseline",ft),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"baseline",{_enum:"baseline",_value:e})])}get strikeThrough(){return this.getCharacterPropertyValue("strikethrough")}set strikeThrough(e){validateConstant(e,"Constants.StrikeThrough",vt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"strikethrough",{_enum:"strikethrough",_value:e})])}get underline(){return this.getCharacterPropertyValue("underline")}set underline(e){validateConstant(e,"Constants.Underline",_t),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"underline",{_enum:"underline",_value:e})])}get ligatures(){return this.getCharacterPropertyValue("ligature")}set ligatures(e){validateBasicType(e,"ligatures","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"ligature",e)])}get alternateLigatures(){return this.getCharacterPropertyValue("altligature")}set alternateLigatures(e){validateBasicType(e,"alternateLigatures","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"altligature",e)])}get fractions(){return this.getCharacterPropertyValue("fractions")}set fractions(e){validateBasicType(e,"fractions","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"fractions",e)])}get ordinals(){return this.getCharacterPropertyValue("ordinals")}set ordinals(e){validateBasicType(e,"ordinals","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"ordinals",e)])}get swash(){return this.getCharacterPropertyValue("swash")}set swash(e){validateBasicType(e,"swash","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"swash",e)])}get titlingAlternates(){return this.getCharacterPropertyValue("titling")}set titlingAlternates(e){validateBasicType(e,"titlingAlternates","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"titling",e)])}get stylisticAlternates(){return this.getCharacterPropertyValue("stylisticAlternates")}set stylisticAlternates(e){validateBasicType(e,"stylisticAlternates","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"stylisticAlternates",e)])}get language(){return this.getCharacterPropertyValue("textLanguage")}set language(e){validateConstant(e,"Constants.Language",Pt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"textLanguage",{_enum:"textLanguage",_value:e})])}get characterAlignment(){return this.getCharacterPropertyValue("gridAlignment")}set characterAlignment(e){validateConstant(e,"Constants.CharacterAlignment",bt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"gridAlignment",{_enum:"gridAlignment",_value:e})])}get noBreak(){return this.getCharacterPropertyValue("noBreak")}set noBreak(e){validateBasicType(e,"noBreak","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"noBreak",e)])}get color(){return this.getCharacterPropertyValue("color")}set color(e){if(e instanceof SolidColor==!1){const t=replaceAndTranslate(A,["color",""+typeof e,"SolidColor"]);throw new Error(t)}batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"color",e.base.desc)])}get kashidas(){return"kashidaDefault"===this.getCharacterPropertyValue("kashidas")}set kashidas(e){validateBasicType(e,"kashidas","boolean"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.id(this._parent.parent.id),"kashidas",{_enum:"kashidas",_value:e?"kashidaDefault":"kashidaOff"})])}get middleEasternTextDirection(){return this.getCharacterPropertyValue("dirOverride")}set middleEasternTextDirection(e){validateConstant(e,"Constants.MiddleEasternTextDirection",Lt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.selected(),"dirOverride",{_enum:"dirOverride",_value:e},{typeStyleOperationType:3,textOverrideFeatureName:808466489})])}get middleEasternDigitsType(){return this.getCharacterPropertyValue("digitSet")}set middleEasternDigitsType(e){validateConstant(e,"Constants.MiddleEasternDigitsType",Et),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setCharacterStyleProperty)(Qr.i.selected(),"digitSet",{_enum:"digitSet",_value:e},{typeStyleOperationType:3})])}get fractionalWidths(){return"none"===batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey.textGridding._value}set fractionalWidths(e){validateBasicType(e,"fractionalWidths","boolean");let t=e?"none":"round";batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setTextItemProperty)(Qr.i.id(this._parent.parent.id),"textGridding",t)])}get antiAliasMethod(){return batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey.antiAlias._value}set antiAliasMethod(e){validateConstant(e,"Constants.AntiAlias",pt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setTextItemProperty)(Qr.i.id(this._parent.parent.id),"antiAlias",e)])}async reset(){const e=batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey;["textGridding","orientation","antiAlias","kerningRange"].forEach((t=>{e[t]=Yr[t]})),e.textStyleRange.forEach((e=>{e.textStyle=Yr.textStyleRange[0].textStyle})),batchPlaySync([...selectionDance(this._parent.parent),{_obj:"set",_target:Qr.i.selected(),to:e},(0,qr.setCharacterStyleProperty)(Qr.i.selected(),"digitSet",{_enum:"digitSet",_value:Lt.DEFAULT},{typeStyleOperationType:3,textOverrideFeatureName:808466489})])}}class ParagraphStyle{constructor(e){this._parent=e}getParagraphPropertyDesc(e){const t=batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey?.paragraphStyleRange[0]?.paragraphStyle?.[e];return t}getParagraphPropertyValue(e){const t=this.getParagraphPropertyDesc(e);return t?.hasOwnProperty("_value")?t._value:"boolean"==typeof t||"string"==typeof t||"number"==typeof t?t:null}get justification(){return this.getParagraphPropertyValue("align")}set justification(e){validateConstant(e,"Constants.Justification",St),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"align",{_enum:"align",_value:e})])}get justificationFeatures(){const e=batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey;if(e.paragraphStyleRange[0].paragraphStyle.hasOwnProperty("justificationWordMinimum")){const t=e.paragraphStyleRange[0].paragraphStyle;return{wordSpacingMinimum:100*t.justificationWordMinimum,wordSpacingDesired:100*t.justificationWordDesired,wordSpacingMaximum:100*t.justificationWordMaximum,letterSpacingMinimum:100*t.justificationLetterMinimum,letterSpacingDesired:100*t.justificationLetterDesired,letterSpacingMaximum:100*t.justificationLetterMaximum,glyphScalingMinimum:100*t.justificationGlyphMinimum,glyphScalingDesired:100*t.justificationGlyphDesired,glyphScalingMaximum:100*t.justificationGlyphMaximum,autoLeadingAmount:100*t.autoLeadingPercentage}}return null}set justificationFeatures(e){const t={wordSpacingMinimum:80,wordSpacingDesired:100,wordSpacingMaximum:133,letterSpacingMinimum:0,letterSpacingDesired:0,letterSpacingMaximum:0,glyphScalingMinimum:100,glyphScalingDesired:100,glyphScalingMaximum:100,autoLeadingAmount:120};for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);validateRange(t.wordSpacingMinimum,"wordSpacingMinimum",0,t.wordSpacingMaximum),validateRange(t.wordSpacingDesired,"wordSpacingDesired",t.wordSpacingMinimum,t.wordSpacingMaximum),validateRange(t.wordSpacingMaximum,"wordSpacingMaximum",t.wordSpacingMinimum,1e3),validateRange(t.letterSpacingMinimum,"letterSpacingMinimum",-100,t.letterSpacingMaximum),validateRange(t.letterSpacingDesired,"letterSpacingDesired",t.letterSpacingMinimum,t.letterSpacingMaximum),validateRange(t.letterSpacingMaximum,"letterSpacingMaximum",t.letterSpacingMinimum,500),validateRange(t.glyphScalingMinimum,"glyphScalingMinimum",50,t.glyphScalingMaximum),validateRange(t.glyphScalingDesired,"glyphScalingDesired",t.glyphScalingMinimum,t.glyphScalingMaximum),validateRange(t.glyphScalingMaximum,"glyphScalingMaximum",t.glyphScalingMinimum,200),validateRange(t.autoLeadingAmount,"autoLeadingAmount",0,500);const r=batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey,a={autoLeadingPercentage:t.autoLeadingAmount/100,justificationWordMinimum:t.wordSpacingMinimum/100,justificationWordDesired:t.wordSpacingDesired/100,justificationWordMaximum:t.wordSpacingMaximum/100,justificationLetterMinimum:t.letterSpacingMinimum/100,justificationLetterDesired:t.letterSpacingDesired/100,justificationLetterMaximum:t.letterSpacingMaximum/100,justificationGlyphMinimum:t.glyphScalingMinimum/100,justificationGlyphDesired:t.glyphScalingDesired/100,justificationGlyphMaximum:t.glyphScalingMaximum/100};r.paragraphStyleRange.forEach(((e,t,r)=>{for(let e in a)a.hasOwnProperty(e)&&(r[t].paragraphStyle[e]=a[e])})),batchPlaySync([...selectionDance(this._parent.parent),{_obj:"set",_target:Qr.i.selected(),to:r}])}get leftIndent(){const e=this.getParagraphPropertyDesc("startIndent");return e?unitDescToPixelUnitValue(e,this._parent.parent._docId):null}set leftIndent(e){validateRange(e,"leftIndent",normalizePixels(this._parent.parent._docId,-1296),normalizePixels(this._parent.parent._docId,1296)),validateBasicType(e,"leftIndent","number"),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"startIndent",{_unit:"pixelsUnit",_value:e})])}get rightIndent(){const e=this?.getParagraphPropertyDesc("endIndent");return e?unitDescToPixelUnitValue(e,this._parent.parent._docId):null}set rightIndent(e){validateRange(e,"rightIndent",normalizePixels(this._parent.parent._docId,-1296),normalizePixels(this._parent.parent._docId,1296)),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"endIndent",{_unit:"pixelsUnit",_value:e})])}get firstLineIndent(){const e=this.getParagraphPropertyDesc("firstLineIndent");return e?unitDescToPixelUnitValue(e,this._parent.parent._docId):null}set firstLineIndent(e){validateRange(e,"firstLineIndent",normalizePixels(this._parent.parent._docId,-1296),normalizePixels(this._parent.parent._docId,1296)),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"firstLineIndent",{_unit:"pixelsUnit",_value:e})])}get spaceBefore(){const e=this.getParagraphPropertyDesc("spaceBefore");return e?unitDescToPixelUnitValue(e,this._parent.parent._docId):null}set spaceBefore(e){validateRange(e,"spaceBefore",normalizePixels(this._parent.parent._docId,-1296),normalizePixels(this._parent.parent._docId,1296)),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"spaceBefore",{_unit:"pixelsUnit",_value:e})])}get kashidaWidth(){return this.getParagraphPropertyValue("kashidaWidthType")}set kashidaWidth(e){validateConstant(e,"Constants.KashidaWidthType",Dt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"kashidaWidthType",{_enum:"kashidaWidthType",_value:e})])}get kinsoku(){return this.getParagraphPropertyValue("kinsokuSetName")}set kinsoku(e){validateConstant(e,"Constants.Kinsoku",At),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"kinsokuSetName",{_enum:"kinsokuSetName",_value:e})])}get mojikumi(){return this.getParagraphPropertyValue("mojiKumiName")??wt.NONE}set mojikumi(e){validateConstant(e,"Constants.Mojikumi",wt),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"mojiKumiName",{_enum:"mojiKumiName",_value:e})])}get spaceAfter(){const e=this.getParagraphPropertyDesc("spaceAfter");return e?unitDescToPixelUnitValue(e,this._parent.parent._docId):null}set spaceAfter(e){validateRange(e,"spaceAfter",normalizePixels(this._parent.parent._docId,-1296),normalizePixels(this._parent.parent._docId,1296)),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"spaceAfter",{_unit:"pixelsUnit",_value:e})])}get hyphenation(){return this.getParagraphPropertyValue("hyphenate")}set hyphenation(e){validateBasicType(e,"hyphenation","boolean");const t=[(0,qr.setParagraphStyleProperty)(Qr.i.selected(),"hyphenateWordSize",6),(0,qr.setParagraphStyleProperty)(Qr.i.selected(),"hyphenatePreLength",2),(0,qr.setParagraphStyleProperty)(Qr.i.selected(),"hyphenatePostLength",2),(0,qr.setParagraphStyleProperty)(Qr.i.selected(),"hyphenateLimit",2),(0,qr.setParagraphStyleProperty)(Qr.i.selected(),"hyphenateCapitalized",!0),(0,qr.setParagraphStyleProperty)(Qr.i.selected(),"hyphenationZone",36)],r=null===this.getParagraphPropertyValue("hyphenateWordsLongerThan");batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.selected(),"hyphenate",e),...r?t:[]])}get hyphenationFeatures(){const e=batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey;if(e.paragraphStyleRange[0].paragraphStyle.hasOwnProperty("hyphenateWordSize")){const t=e.paragraphStyleRange[0].paragraphStyle;return{wordsLongerThan:t.hyphenateWordSize-1,afterFirst:t.hyphenatePreLength,beforeLast:t.hyphenatePostLength,limit:t.hyphenateLimit,zone:unitDescToPixelUnitValue({_unit:"pointsUnit",_value:t.hyphenationZone},this._parent.parent._docId),capitalWords:t.hyphenateCapitalized}}return null}set hyphenationFeatures(e){if(null===e||"object"!=typeof e||Array.isArray(e)){const t=replaceAndTranslate(A,["features",""+typeof e,"Object with the following (optional) properties: wordsLongerThan, afterFirst, beforeLast, limit, zone, capitalWords"]);throw new Error(t)}const t={wordsLongerThan:5,afterFirst:2,beforeLast:2,limit:2,zone:36,capitalWords:!0};for(let r in e)if(e.hasOwnProperty(r)){if("zone"===r){const t=PSDocument(this._parent.parent._docId).resolution;e[r]=Ia[se.PIXELS][se.POINTS](e[r],t)}t[r]=e[r]}validateRange(t.wordsLongerThan,"wordsLongerThan",2,25),validateRange(t.afterFirst,"afterFirst",1,15),validateRange(t.beforeLast,"beforeLast",1,15),validateRange(t.limit,"limit",2,25),validateRange(t.zone,"zone",2,unitDescToPixelUnitValue({_unit:"pointsUnit",_value:8640},this._parent.parent._docId)),validateBasicType(t.capitalWords,"capitalWords","boolean");const r=batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey,a={hyphenate:!0,hyphenateWordSize:t.wordsLongerThan+1,hyphenatePreLength:t.afterFirst,hyphenatePostLength:t.beforeLast,hyphenateLimit:t.limit,hyphenationZone:t.zone,hyphenateCapitalized:t.capitalWords};r.paragraphStyleRange.forEach(((e,t,r)=>{for(let e in a)a.hasOwnProperty(e)&&(r[t].paragraphStyle[e]=a[e])})),batchPlaySync([...selectionDance(this._parent.parent),{_obj:"set",_target:Qr.i.selected(),to:r}])}get layoutMode(){return this.getParagraphPropertyValue("textComposerEngine")}set layoutMode(e){validateConstant(e,"Constants.ParagraphLayout",It),batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.id(this._parent.parent.id),"textComposerEngine",{_enum:"textComposerEngine",_value:e})])}get features(){return ja.preferences.type.showTextFeatures}set features(e){validateConstant(e,"Constants.TypeInterfaceFeatures",st),ja.preferences.type.showTextFeatures=e}async reset(){await batchPlay([...selectionDance(this._parent.parent),(0,qr.setParagraphStyleProperty)(Qr.i.selected(),"styleSheetName",{},{styleSheetName:"Basic Paragraph",typeStyleOperationType:9})])}}class WarpStyle{constructor(e){this._parent=e}getWarpDesc(){return batchPlaySync((0,xt.getProperties)(_directRef(this._parent),["textKey"]))[0].textKey?.warp}getWarpPropertyDesc(e){return this.getWarpDesc()[e]}getWarpPropertyValue(e){const t=this.getWarpPropertyDesc(e);return t.hasOwnProperty("_value")?t._value:"number"==typeof t?t:null}getEditAndPutWarpDesc(e,t,r){let a=this.getWarpDesc();a[e]=void 0!==r?{_enum:r,_value:t}:t,batchPlaySync([...selectionDance(this._parent.parent),(0,qr.setWarpStyle)(Qr.i.id(this._parent.parent.id),a)])}get style(){return this.getWarpPropertyValue("warpStyle")}set style(e){validateConstant(e,"Constants.WarpStyle",yt),this.getEditAndPutWarpDesc("warpStyle",e,"warpStyle")}get direction(){return this.getWarpPropertyValue("warpRotate")}set direction(e){validateConstant(e,"Constants.Direction",ge),this.getEditAndPutWarpDesc("warpRotate",e,"orientation")}get bend(){return this.getWarpPropertyValue("warpValue")}set bend(e){validateRange(e,"bend",-100,100),this.getEditAndPutWarpDesc("warpValue",e)}get horizontalDistortion(){return this.getWarpPropertyValue("warpPerspective")}set horizontalDistortion(e){validateRange(e,"horizontalDistortion",-100,100),this.getEditAndPutWarpDesc("warpPerspective",e)}get verticalDistortion(){return this.getWarpPropertyValue("warpPerspectiveOther")}set verticalDistortion(e){validateRange(e,"verticalDistortion",-100,100),this.getEditAndPutWarpDesc("warpPerspectiveOther",e)}async reset(){await batchPlay([...selectionDance(this._parent.parent),(0,qr.setWarpStyle)(Qr.i.id(this._parent.parent.id),(0,qr.defaultWarpDesc)())])}}function _directRef(e){return[xt.ref.id(e.parent.id),Ot.ref.id(e.parent._docId)]}function normalizePixels(e,t,r=2){const{resolution:a}=PSDocument(e);return parseInt((a/72*t).toFixed(r))}class TextItem{constructor(e,t){this.characterStyle=new CharacterStyle(this),this.paragraphStyle=new ParagraphStyle(this),this.warpStyle=new WarpStyle(this),this._parent=PSLayer(t,e)}get parent(){return this._parent}getTextItemProperty(e){return{[e]:batchPlaySync((0,xt.getProperties)(_directRef(this),["textKey"]))[0].textKey[e]}}get typename(){return"TextItem"}get contents(){return this.getTextItemProperty("textKey").textKey}set contents(e){batchPlaySync([...selectionDance(this.parent),(0,qr.setTextLayerContents)(Qr.i.id(this.parent.id),e)])}get textClickPoint(){let e=this.getTextItemProperty("textClickPoint");const{width:t,height:r}=PSDocument(this.parent._docId);return{x:e.textClickPoint.horizontal._value/100*t,y:e.textClickPoint.vertical._value/100*r}}set textClickPoint(e){const{width:t,height:r}=PSDocument(this.parent._docId);batchPlaySync([...selectionDance(this.parent),(0,qr.setTextLayerClickPoint)(Qr.i.id(this.parent.id),e.x/t*100,e.y/r*100)])}get orientation(){return this.getTextItemProperty("orientation").orientation._value}set orientation(e){validateConstant(e,"Constants.Direction",ge),batchPlaySync([...selectionDance(this.parent),(0,qr.setTextItemProperty)(Qr.i.id(this.parent.id),"orientation",e)])}get isPointText(){return"paint"===this.getTextItemProperty("textShape").textShape[0].char._value}get isParagraphText(){return"box"===this.getTextItemProperty("textShape").textShape[0].char._value}async convertToParagraphText(){return"paint"===this.getTextItemProperty("textShape").textShape[0].char._value&&await batchPlay([...selectionDance(this.parent),(0,qr.setTextItemProperty)(Qr.i.id(this.parent.id),"char","box")]),this}async convertToPointText(){return"box"===this.getTextItemProperty("textShape").textShape[0].char._value&&await batchPlay([...selectionDance(this.parent),(0,qr.setTextItemProperty)(Qr.i.id(this.parent.id),"char","paint")]),this}async convertToShape(){await batchPlay([...selectionDance(this.parent),(0,qr.convertToShape)(Qr.i.id(this.parent.id))])}async createWorkPath(){await batchPlay([...selectionDance(this.parent),(0,qr.makeWorkPathFromCurrentLayer)()])}}var Jr=__webpack_require__(419);const Zr={};function PSChannel(e,t){if(Zr.hasOwnProperty(e)||(Zr[e]={}),Zr[e].hasOwnProperty(t))return Zr[e][t];if("number"==typeof t)Zr[e][t]=new AlphaChannel(e,t);else if("string"==typeof t){const r=t;if(!function isOfTypeChannelEnumValue(e){return Jr.channelEnumValues.includes(e)}(r))throw new Error(a.translateUIString(f));Zr[e][t]=new ComponentChannel(e,r)}return Zr[e][t]}function PSChannelFromIndex(e,t){const r=getImageModeChannelEnums(PSDocument(e));if(t<=r.length&&t>0){return PSChannel(e,r[t-1])}const a=batchPlaySync((0,Jr.getProperties)([Jr.ref.index(t),Ot.ref.id(e)],["ID"]));if("ID"in a[0]){return PSChannel(e,a[0].ID)}throw new DOMError(_,[t.toString(),e.toString()])}function validateChannel(e){if(!validateReference(e.directRef)){const t=replaceAndTranslate(u,["$$$/Actions/Class/Channel=channel",String(e.directRef)]);throw new Error(t)}}class Channel{constructor(e){this._docId=e}get parent(){validateChannel(this);return PSDocument(this._docId)}get kind(){validateChannel(this);const e=batchPlaySync((0,Jr.getProperties)(this.directRef,["alphaChannelOptions"]))[0];return e.hasOwnProperty("alphaChannelOptions")?e.alphaChannelOptions.colorIndicates._value:be.COMPONENT}set kind(e){if(e===be.COMPONENT)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/CannotConvertToComponentChannel=You cannot convert a channel into a component channel."));if(validateChannel(this),this.kind===be.SPOTCOLOR)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/CannotConvertSpotChannel=You cannot convert a spot channel into another channel"));if(this.kind===be.COMPONENT)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/CannotConvertFromComponentChannel=You cannot convert a component channel into another channel"));let t={};t=e===be.SPOTCOLOR?(0,Jr.setProperty)(this.activeDocRef,{},!0):(0,Jr.setProperty)(this.activeDocRef,{colorIndicates:{_enum:"maskIndicator",_value:e}});const r=ja.activeDocument;batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),t,(0,Ot.select)(Ot.ref.id(r.id))])}get visible(){validateChannel(this);return batchPlaySync((0,Jr.getProperties)(this.directRef,["visible"]))[0].visible}set visible(e){validateChannel(this);const t=ja.activeDocument;batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),e?(0,Jr.show)([this.activeDocRef]):(0,Jr.hide)([this.activeDocRef]),(0,Ot.select)(Ot.ref.id(t.id))])}async duplicate(e){if(validateChannel(this),e&&(validateDocument(e),e.id===this._docId))throw new Error(a.translateUIString("$$$/PSUXP/Error/TargetDocumentShouldNotMatch=The target document should not be the same as this document."));const t=void 0!==e?Ot.ref.id(e.id):void 0,r=ja.activeDocument,n={to:t};batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),(0,Jr.duplicate)(this.activeDocRef,n),(0,Ot.select)(Ot.ref.id(r.id))])}}class ComponentChannel extends Channel{constructor(e,t){super(e),this._enumValue=t}get typename(){return"ComponentChannel"}get directRef(){return[Jr.ref.enum(this._enumValue),Ot.ref.id(this._docId)]}get activeDocRef(){return Jr.ref.enum(this._enumValue)}get name(){validateChannel(this);return batchPlaySync([(0,Jr.getProperties)(this.directRef,["channelName"])])[0].channelName}set name(e){throw new Error(a.translateUIString(l))}get histogram(){throw new Error(a.translateUIString(l))}get color(){throw new Error(a.translateUIString(l))}set color(e){throw new Error(a.translateUIString(l))}get opacity(){throw new Error(a.translateUIString(l))}set opacity(e){throw new Error(a.translateUIString(l))}async remove(){throw new Error(a.translateUIString(l))}async merge(){throw new Error(a.translateUIString(l))}}class AlphaChannel extends Channel{constructor(e,t){super(e),this._id=t}get typename(){return"AlphaChannel"}get directRef(){return[Jr.ref.id(this._id),Ot.ref.id(this._docId)]}get activeDocRef(){return Jr.ref.id(this._id)}get name(){validateChannel(this);return batchPlaySync([(0,Jr.getProperties)(this.directRef,["channelName"])])[0].channelName}set name(e){validateChannel(this);const t=this.kind===be.SPOTCOLOR,r=ja.activeDocument;batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),(0,Jr.setProperty)(this.activeDocRef,{name:e},t),(0,Ot.select)(Ot.ref.id(r.id))])}get histogram(){if(validateChannel(this),!this.visible)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/HistogramRequiresVisible=You can only get a histogram for visible channels."));return batchPlaySync([(0,Jr.getProperties)(this.directRef,["histogram"])])[0].histogram}get color(){validateChannel(this);const e=batchPlaySync([(0,Jr.getProperties)(this.directRef,["alphaChannelOptions"])])[0]?.alphaChannelOptions;return SolidColor.fromDesc(e.color)}set color(e){validateChannel(this);const t=this.kind===be.SPOTCOLOR,r=ja.activeDocument;batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),(0,Jr.setProperty)(this.activeDocRef,{color:e.hsb.desc},t),(0,Ot.select)(Ot.ref.id(r.id))])}get opacity(){validateChannel(this);const e=batchPlaySync([(0,Jr.getProperties)(this.directRef,["alphaChannelOptions"])])[0]?.alphaChannelOptions;return e.opacity}set opacity(e){validateChannel(this);const t=this.kind===be.SPOTCOLOR,r=ja.activeDocument;batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),(0,Jr.setProperty)(this.activeDocRef,{opacity:{_unit:"percentUnit",_value:e}},t),(0,Ot.select)(Ot.ref.id(r.id))])}async remove(){if(validateChannel(this),1===this.parent.channels.length)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/CannotDeleteLastChannel=You cannot delete the last channel in a document."));batchPlaySync([(0,Jr.remove)(this.directRef)])}async merge(){if(this.kind!==be.SPOTCOLOR)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/YouCanOnlyMergeSpotChannels=Only spot channels can be merged."));const e=ja.activeDocument;batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),(0,Jr.select)(this.activeDocRef),(0,Jr.mergeSpotChannel)(),(0,Ot.select)(Ot.ref.id(e.id))])}}function getImageModeChannelEnums(e){let t=[];const r=ie,a=e.mode;switch(a){case r.RGB:t=["red","green","blue"];break;case r.CMYK:t=["cyan","magenta","yellow","black"];break;case r.LAB:t=["lightness","a","b"];break;case r.GRAYSCALE:t=["gray"];break;case r.DUOTONE:{const r=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(e.id),["duotoneInk"]))[0]?.duotoneInk;switch(r){case 1:t=["monotone"];break;case 2:t=["duotone"];break;case 3:t=["tritone"];break;case 4:t=["quadtone"];break;default:throw new DOMError(N,[r.toString()])}break}case r.BITMAP:case r.INDEXEDCOLOR:t=["RGB"];break;case r.MULTICHANNEL:t=[];break;default:throw new Error("Can't solve color mode for component channels: "+a)}return t}function validateCalculationsSource(e,t=!1){try{validateDocument(e.document)}catch(e){throw new DOMError(S)}if(t){if("string"==typeof e.layer)validateConstant(e.layer,"Constants.ApplyImageLayer",ht);else try{validateLayer(e.layer)}catch(e){throw new DOMError(b)}if("string"==typeof e.channel)validateConstant(e.channel,"Constants.ApplyImageChannel",ut);else try{validateChannel(e.channel)}catch(e){throw new DOMError(I)}"invert"in e&&validateBasicType(e.invert,"invert","boolean")}else{if("string"==typeof e.layer)validateConstant(e.layer,"Constants.CalculationsLayer",dt);else try{validateLayer(e.layer)}catch(e){throw new DOMError(b)}if("string"==typeof e.channel)validateConstant(e.channel,"Constants.CalculationsChannel",ct);else try{validateChannel(e.channel)}catch(e){throw new DOMError(I)}"invert"in e&&validateBasicType(e.invert,"invert","boolean")}}function extractCalculationsSourceRefs(e){return[Ot.ref.id(e.document.id),"string"==typeof e.layer?xt.ref.mergedData():xt.ref.id(e.layer.id),function extractChannelRef(e){let t;return t="string"==typeof e?"selection"===e?Jr.ref.selection():Jr.ref.enum(e):e.activeDocRef,t}(e.channel),e?.invert??!1]}var ea;!function(e){e.all="protectAll",e.artboard="protectArtboardAutonest",e.pixels="protectComposite",e.position="protectPosition",e.transparency="protectTransparency"}(ea||(ea={}));const findCorrespondingGroupEnd=(e,t)=>{const r=batchPlaySync(allLayerInfo(null!==e.backgroundLayer,Ot.ref.id(e.id)))[0].list.reverse();let a=-1,n=0;for(const e of r)if(e.layerKind===ta.group)e.layerID===t&&(a=n),n++;else if(e.layerKind===ta.groupEnd&&(n--,n<=a))return e;return null},allLayerInfo=(e,t)=>{const r=void 0===t?Ot.ref.active():t;return(0,xt.getPropertiesRange)(r,["name","layerID","layerKind","itemIndex"],e?0:1,-1,{failOnMissingProperty:!0,failOnMissingElement:!1})};function _unit(e,t){return{_unit:e+"Unit",_value:t}}_unit.bind(null,"density"),_unit.bind(null,"pixels"),_unit.bind(null,"percent"),_unit.bind(null,"angle"),_unit.bind(null,"inches"),_unit.bind(null,"centimeters"),_unit.bind(null,"picas"),_unit.bind(null,"degrees"),_unit.bind(null,"number"),_unit.bind(null,"seconds"),_unit.bind(null,"points"),_unit.bind(null,"millimeters"),_unit.bind(null,"distance");function hasSameUnits(e){const t=e[0]?._unit||-1;return t&&e.every((e=>t===e._unit))}var ta,ra=__webpack_require__(966),aa=__webpack_require__(114),na=__webpack_require__(466);function validateLayer(e){if(!validateReference([xt.ref.id(e.id),Ot.ref.id(e._docId)])){const t=replaceAndTranslate(u,["$$$/Actions/Class/Layer=layer",String(e.id)]);throw new Error(t)}}function validateNotLayerGroup(e){if(e.kind===ue.GROUP)throw new Error(a.translateUIString(T))}!function(e){e[e.any=0]="any",e[e.pixel=1]="pixel",e[e.adjustment=2]="adjustment",e[e.text=3]="text",e[e.vector=4]="vector",e[e.smartObject=5]="smartObject",e[e.video=6]="video",e[e.group=7]="group",e[e.threeD=8]="threeD",e[e.gradient=9]="gradient",e[e.pattern=10]="pattern",e[e.solidColor=11]="solidColor",e[e.background=12]="background",e[e.groupEnd=13]="groupEnd"}(ta||(ta={}));const ia={};function PSLayer(e,t,r){ia.hasOwnProperty(t)||(ia[t]={});switch(r??batchPlaySync((0,xt.getProperties)([xt.ref.id(e),Ot.ref.id(t)],["layerKind"]))[0].layerKind){case ta.groupEnd:{const t=replaceAndTranslate(P,[String(e)]);throw new Error(t)}case ta.group:case ta.pixel:default:ia[t][e]=new Layer(e,t)}return ia[t][e]}function Layer_directRef(e){return[xt.ref.id(e.id),Ot.ref.id(e._docId)]}class Layer{constructor(e,t){this._id=e,this._docId=t}setLocking(e,t){if(validateLayer(this),this.isBackgroundLayer){if(!0===e)return;const t=batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),{_obj:"set",_target:xt.ref.id(this._id),to:{}}])[2].layerID;delete ia[this._docId][this._id],this._id=t}else{const r={_obj:"layerLocking"};r[t]=e,batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.set)(xt.ref.id(this._id),{_obj:"layer",layerLocking:r})])}}get typename(){return"Layer"}get locked(){validateLayer(this);const e=batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["layerLocking"]))[0].layerLocking;return(t=e).protectAll||t.protectArtboardAutonest||t.protectComposite||t.protectPosition||t.protectTransparency;var t}get allLocked(){validateLayer(this);return batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["layerLocking"]))[0].layerLocking.protectAll}set allLocked(e){this.setLocking(e,ea.all)}get pixelsLocked(){validateLayer(this);return batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["layerLocking"]))[0].layerLocking.protectComposite}set pixelsLocked(e){this.setLocking(e,ea.pixels)}get positionLocked(){validateLayer(this);return batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["layerLocking"]))[0].layerLocking.protectPosition}set positionLocked(e){this.setLocking(e,ea.position)}get transparentPixelsLocked(){validateLayer(this);return batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["layerLocking"]))[0].layerLocking.protectTransparency}set transparentPixelsLocked(e){this.setLocking(e,ea.transparency)}get isBackgroundLayer(){return validateLayer(this),1===this._id}get visible(){validateLayer(this);return batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["visible"]))[0].visible}set visible(e){validateLayer(this),batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),e?(0,xt.show)([xt.ref.id(this._id)]):(0,xt.hide)([xt.ref.id(this._id)])])}get kind(){if(validateLayer(this),this.isBackgroundLayer)return ue.NORMAL;const e=batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["adjustment"]))[0].adjustment;if(e){const t=e[0]._obj;switch(t){case"levels":return ue.LEVELS;case"curves":return ue.CURVES;case"colorBalance":return ue.COLORBALANCE;case"brightnessContrast":case"brightnessEvent":return ue.BRIGHTNESSCONTRAST;case"hueSaturation":return ue.HUESATURATION;case"selectiveColor":return ue.SELECTIVECOLOR;case"channelMixer":return ue.CHANNELMIXER;case"gradientMapClass":return ue.GRADIENTMAP;case"invert":return ue.INVERSION;case"thresholdClassEvent":return ue.THRESHOLD;case"posterize":case"posterization":return ue.POSTERIZE;case"exposure":return ue.EXPOSURE;case"blackAndWhite":return ue.BLACKANDWHITE;case"patternLayer":return ue.PATTERNFILL;case"gradientLayer":return ue.GRADIENTFILL;case"solidColorLayer":return ue.SOLIDFILL;case"photoFilter":return ue.PHOTOFILTER;case"vibrance":return ue.VIBRANCE;case"colorLookup":return ue.COLORLOOKUP;default:{const e=replaceAndTranslate(g,[t]);throw new Error(e)}}}else{const e=batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["layerKind"]))[0].layerKind;if(e===ta.text)return ue.TEXT;if(e===ta.smartObject)return ue.SMARTOBJECT;if(e===ta.threeD)return ue.LAYER3D;if(e===ta.video)return ue.VIDEO;if(e===ta.group)return ue.GROUP}return ue.NORMAL}get bounds(){if(validateLayer(this),this.kind!==ue.GROUP){const e=batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["bounds"]))[0].bounds;let t=new Bounds;return t.left=Kr.FromPixel(e.left),t.top=Kr.FromPixel(e.top),t.bottom=Kr.FromPixel(e.bottom),t.right=Kr.FromPixel(e.right),t}{let e=new Bounds;const t=this.layers.length;for(let r=0;r=0?PSLayer(e,this._docId,ta.group):null}get selected(){validateLayer(this);const e=PSDocument(this._docId);let t;try{t=e.activeLayers}catch(e){throw new Error(a.translateUIString(S))}return t.some((e=>e._id===this._id))}set selected(e){validateLayer(this);let t=batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.select)([xt.ref.id(this._id)],e?xt.SelectionModifier.add:xt.SelectionModifier.deselect)])[2];t?._obj||e||(t=batchPlaySync((0,xt.selectNoLayers)()),t.message&&console.warn(t.message))}get textItem(){return validateLayer(this),this.kind===ue.TEXT?new TextItem(this._docId,this._id):null}async applyAddNoise(e,t,r){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,er,"Add Noise filter"),validateBasicType(r,"monochromatic","boolean"),validateConstant(t,"Constants.NoiseDistribution",Ie),validateRange(e,"amount",.1,400),await batchPlay([...selectionDance(this),(0,aa.LE)(e,t,r)])}async applyAverage(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Nt,"Average filter"),await batchPlay([...selectionDance(this),(0,aa.gS)()])}async applyBlur(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,kt,"Blur filter"),await batchPlay([...selectionDance(this),(0,aa.x)()])}async applyBlurMore(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Bt,"More filter"),await batchPlay([...selectionDance(this),(0,aa.MM)()])}async applyClouds(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,nr,"Clouds filter"),await batchPlay([...selectionDance(this),(0,aa.qh)()])}async applyCustomFilter(e,t,r){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,pr,"Custom filter");if(validateBasicType(t,"scale","number"),validateBasicType(r,"offset","number"),25!==e.length)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/CustomFilterNotFiveSquared=Custom filter requires 25 elements"));for(let t=0;t<25;t++)validateBasicType(e[t],`characteristics[${t}]`,"number");await batchPlay([...selectionDance(this),(0,aa.Pf)(e,t,r)])}async applyDeInterlace(e,t){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,dr,"De-Interlace filter"),validateConstant(e,"Constants.EliminateFields",Ce),validateConstant(t,"Constants.CreateFields",Ee),await batchPlay([...selectionDance(this),(0,aa.PO)(e,t)])}async applyDespeckle(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,tr,"Despeckle filter"),await batchPlay([...selectionDance(this),(0,aa.jp)()])}async applyDifferenceClouds(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,ir,"Difference Clouds filter"),await batchPlay([...selectionDance(this),(0,aa.Xb)()])}async applyDiffuseGlow(e,t,r){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Ht,"Diffuse Glow filter"),validateRange(e,"graininess",0,10),validateRange(t,"glowAmount",0,20),validateRange(r,"clearAmount",0,20),await batchPlay([...selectionDance(this),(0,aa.og)(e,t,r)])}async applyDisplace(e,t,r,a,n){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,$t,"Displace filter"),validateConstant(r,"Constants.DisplacementMapType",ve),validateConstant(a,"Constants.UndefinedAreas",xe),validateRange(e,"horizontalScale",-999,999),validateRange(t,"verticalScale",-999,999);const i=retrieveUXPFileToken(n);await batchPlay([...selectionDance(this),(0,aa.Or)(e,t,r,a,i)])}async applyDustAndScratches(e,t){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,rr,"Dust & Scratches filter"),validateRange(e,"radius",1,100),validateRange(t,"threshold",0,255),await batchPlay([...selectionDance(this),(0,aa.wf)(e,t)])}async applyGaussianBlur(e){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Gt,"Gaussian Blur filter"),validateRange(e,"radius",.1,250),await batchPlay([...selectionDance(this),(0,aa.Ry)(e)])}async applyGlassEffect(e,t,r,a=!1,n=Oe.CANVAS,i){let o;validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Vt,"Glass filter"),validateBasicType(a,"invert","boolean"),void 0!==i&&(o=retrieveUXPFileToken(i)),validateConstant(n,"Constants.TextureType",Oe),validateRange(e,"distortion",0,20),validateRange(t,"smoothness",1,15),validateRange(r,"scaling",50,200),await batchPlay([...selectionDance(this),(0,aa._$)(e,t,r,a,n,o)])}async applyHighPass(e){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,yr,"High Pass filter"),validateRange(e,"radius",.1,1e3),await batchPlay([...selectionDance(this),(0,aa.Jj)(e)])}async applyLensBlur(e=V.NONE,t=0,r=!1,a=Le.HEXAGON,n=15,i=0,o=0,s=0,l=0,c=0,u=Ie.UNIFORM,d=!1){let p;switch(validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Ut,"Lens Blur filter"),validateBasicType(r,"invertDepthMask","boolean"),validateBasicType(d,"monochromatic","boolean"),validateRange(t,"focalDistance",0,255),validateRange(n,"radius",0,100),validateRange(i,"bladeCurvature",0,100),validateRange(o,"rotation",0,360),validateRange(s,"brightness",0,100),validateRange(l,"threshold",0,255),validateRange(c,"amount",0,100),validateConstant(e,"Constants.DepthMapSource",V),validateConstant(a,"Constants.Geometry",Le),validateConstant(u,"Constants.NoiseDistribution",Ie),a){case"triangle":p="$BeS3";break;case"square":p="$BeS4";break;case"pentagon":p="$BeS5";break;case"heptagon":p="$BeS7";break;case"octagon":p="$BeS8";break;default:p="$BeS6"}await batchPlay([...selectionDance(this),(0,aa.ne)(e,t,r,p,n,i,o,s,l,c,u,d)])}async applyLensFlare(e,t,r=$e.ZOOMLENS){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,or,"Lens Flare filter"),validateObjectProperties(t,"flareCenter",["x","y"]),validateRange(t.x,"flareCenter.x",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),validateRange(t.y,"flareCenter.y",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),validateConstant(r,"Constants.LensType",$e),validateRange(e,"brightness",10,300);let{width:a,height:n}=this.document,i=t.x/a,o=t.y/n;await batchPlay([...selectionDance(this),(0,aa.rQ)(e,i,o,r)])}async applyMaximum(e,t=Ve.SQUARENESS){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,mr,"Maximum filter"),validateConstant(t,"Constants.PreserveShape",Ve),t===Ve.SQUARENESS?validateRange(e,"radius",1,500):validateRange(e,"radius",.2,500),await batchPlay([...selectionDance(this),(0,aa.bc)(e,t)])}async applyMinimum(e,t=Ve.SQUARENESS){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,gr,"Minimum filter"),validateConstant(t,"Constants.PreserveShape",Ve),t===Ve.SQUARENESS?validateRange(e,"radius",1,500):validateRange(e,"radius",.2,500),await batchPlay([...selectionDance(this),(0,aa.jf)(e,t)])}async applyMedianNoise(e){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,ar,"Median filter"),validateRange(e,"radius",1,500),await batchPlay([...selectionDance(this),(0,aa.YB)(e)])}async applyMotionBlur(e,t){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,jt,"Motion Blur filter"),validateRange(e,"angle",-360,360),validateRange(t,"distance",1,2e3);let r=(e%180+180)%180;r>=90&&(r=180-r),await batchPlay([...selectionDance(this),(0,aa.WJ)(e,t)])}async applyNTSC(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,hr,"NTSC Colors filter"),await batchPlay([...selectionDance(this),(0,aa.eO)()])}async applyOceanRipple(e,t){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Wt,"Ocean Ripple filter"),validateRange(e,"size",1,15),validateRange(t,"magnitude",0,20),await batchPlay([...selectionDance(this),(0,aa.xZ)(e,t)])}async applyOffset(e,t,r=We.WRAPAROUND){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,fr,"Offset filter"),validateConstant(r,"Constants.OffsetUndefinedAreas",We);let{width:a,height:n,resolution:i}=this.document;a*=i/72,n*=i/72,validateRange(e,"horizontal",-2*a,2*a),validateRange(t,"vertical",-2*n,2*n),await batchPlay([...selectionDance(this),(0,aa.wQ)(e,t,r)])}async applyTwirl(e){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Qt,"Twirl filter"),validateRange(e,"angle",-999,999),await batchPlay([...selectionDance(this),(0,aa.Gj)(e)])}async applyPinch(e){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,zt,"Pinch filter"),validateRange(e,"amount",-100,100),await batchPlay([...selectionDance(this),(0,aa.iH)(e)])}async applyPolarCoordinates(e){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Kt,"Polar Coordinates filter"),validateConstant(e,"Constants.PolarConversionType",Me),await batchPlay([...selectionDance(this),(0,aa.tF)(e)])}async applyRipple(e,t){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Xt,"Ripple filter"),validateRange(e,"amount",-999,999),validateConstant(t,"Constants.RippleSize",Be);await batchPlay([...selectionDance(this),(0,aa.YL)(e,t)])}async applySharpen(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,sr,"Sharpen filter"),await batchPlay([...selectionDance(this),(0,aa.zs)()])}async applySharpenEdges(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,lr,"Sharpen Edges filter"),await batchPlay([...selectionDance(this),(0,aa.rC)()])}async applySharpenMore(){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,cr,"Sharpen More filter"),await batchPlay([...selectionDance(this),(0,aa.SE)()])}async applyShear(e,t){if(validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Yt,"Shear filter"),validateConstant(t,"Constants.UndefinedAreas",xe),!Array.isArray(e)||e.length<2||e.some((e=>"object"!=typeof e||!("x"in e)||!("y"in e))))throw new Error(a.translateUIString("$$$/PSUXP/Error/ApplyShearArgumentArray=Curve argument must be an array with at least 2 items, and each item must be an object with properties 'x' and 'y' as coordinates. E.g. [{x:-63, y:1}, {x:64, y:128}]"));await batchPlay([...selectionDance(this),(0,aa.sH)(e,t)])}async applySmartBlur(e,t,r,a){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Ft,"Smart Blur filter"),validateRange(e,"radius",.1,100),validateRange(t,"threshold",.1,100),validateConstant(r,"Constants.SmartBlurQuality",Ge),validateConstant(a,"Constants.SmartBlurMode",Ue),await batchPlay([...selectionDance(this),(0,aa.rG)(e,t,r,a)])}async applySpherize(e,t){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,qt,"Spherize filter"),validateRange(e=Math.trunc(e),"amount",-100,100),validateConstant(t,"Constants.SpherizeMode",je),await batchPlay([...selectionDance(this),(0,aa.$Y)(e,t)])}async applyUnSharpMask(e,t,r){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,ur,"Unsharp Mask filter"),e=Math.trunc(e),r=Math.trunc(r),validateRange(e,"amount",1,500),validateRange(t,"radius",.1,250),validateRange(r,"threshold",0,255),await batchPlay([...selectionDance(this),(0,aa.f0)(e,t,r)])}async applyWave(e,t,r,a,n,i,o,s=Fe.SINE,l=xe.WRAPAROUND,c=Date.now()){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Jt,"Wave filter"),e=Math.trunc(e),t=Math.trunc(t),r=Math.trunc(r),a=Math.trunc(a),n=Math.trunc(n),i=Math.trunc(i),o=Math.trunc(o),c=Math.trunc(c),validateRange(e,"generatorNumber",1,999),validateBasicType(t,"minimumWavelength","number"),validateBasicType(r,"maximumWavelength","number"),validateRange(t,"minimumWavelength",1,r,"closed","open"),validateRange(r,"maximumWavelength",t,999,"open","closed"),validateBasicType(a,"minimumAmplitude","number"),validateBasicType(n,"maximumAmplitude","number"),validateRange(a,"minimumAmplitude",1,n,"closed","open"),validateRange(n,"maximumAmplitude",a,999,"open","closed"),validateRange(i,"horizontalScale",1,100),validateRange(o,"verticalScale",1,100),validateConstant(s,"Constants.WaveType",Fe),validateConstant(l,"Constants.UndefinedAreas",xe),validateBasicType(c,"randomSeed","number"),await batchPlay([...selectionDance(this),(0,aa.ei)(e,t,r,a,n,i,o,s,l,c)])}async applyZigZag(e,t,r){validateLayer(this),validateNotLayerGroup(this),validateColorMode(this.document,Zt,"ZigZag filter"),e=Math.trunc(e),t=Math.trunc(t),validateRange(e,"amount",-100,100),validateRange(t,"ridges",0,20),validateConstant(r,"Constants.ZigZagType",He),await batchPlay([...selectionDance(this),(0,aa.$b)(e,t,r)])}async applyImage(e){validateColorMode(this.document,Mt,"Apply Image"),validateLayer(this),validateNotLayerGroup(this),function validateApplyImageOptions(e,t){validateObjectProperties(e,"applyImageOptions",["source"]),validateObjectProperties(e.source,"applyImageOptions.source",["document","layer","channel"]),validateCalculationsSource(e.source,!0),"mask"in e&&validateCalculationsSource(e.mask);const r=e.source.document;if(t.width!==r.width||t.height!==r.height)throw new Error(a.translateUIString(x));"opacity"in e&&validateRange(e.opacity,"applyImageOptions.opacity",0,100),"preserveTransparency"in e&&validateBasicType(e.preserveTransparency,"applyImageOptions.preserveTransparency","boolean"),"blending"in e&&validateConstant(e.blending,"Constants.ApplyImageBlendMode",ne)}(e,this.document);const[t,r,n,i]=extractCalculationsSourceRefs(e.source),o=e?.blending??ne.MULTIPLY,s=e?.opacity??100,l=e?.preserveTransparency??!1;var c,u,d,p;e?.mask&&([c,u,d,p]=extractCalculationsSourceRefs(e.mask));const y=(0,na.applyApplyImage)([n,r,t],i,o,s,l,e?.mask&&[d,u,c],p),m=await batchPlay([...selectionDance(this),y]);if("error"===m[4]?._obj)throw new Error(m[4].message)}delete(){validateLayer(this),batchPlaySync([...selectionDance(this),(0,xt.deleteLayer)([xt.ref.id(this._id)],!1)])}async duplicate(e,t,r){validateLayer(this),void 0===e&&(e=PSLayer(this.id,this._docId),t=de.PLACEBEFORE),void 0===t&&(t="Document"===e.typename?de.PLACEATBEGINNING:de.PLACEBEFORE);const n=this.visible;let i=!1;if("Document"===e.typename){if(i=!0,t===de.PLACEINSIDE&&(t=de.PLACEATBEGINNING),t!==de.PLACEATBEGINNING&&t!==de.PLACEATEND)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/DuplicateToDocumentPosWrong=When duplicating a layer to a document, you may only specify ElementPlacement.PLACEATBEGINNING or ElementPlacement.PLACEATEND."))}else if(e.kind===ue.GROUP){if(this.kind===ue.GROUP&&(t===de.PLACEATBEGINNING||t===de.PLACEATEND||t===de.PLACEINSIDE))throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/DuplicateLayerSetInsideLayerSet=You cannot duplicate a layer set to inside another layer set."))}else{if(t===de.PLACEINSIDE)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/DuplicateToInsideArtLayer=You cannot duplicate to inside an art layer."));if(t===de.PLACEATBEGINNING||t===de.PLACEATEND)throw new Error(a.translateUIString("$$$/CT/MultiScript/Error/IllegalArgumentForMoveLayer=You cannot specify ElementPlacement.PLACEATBEGINNING or ElementPlacement.PLACEATEND if target layer is an art layer."))}const o=PSDocument(i?e.id:this._docId);validateDocument(o);const s=await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.duplicate)([xt.ref.id(this._id)],Ot.ref.id(o.id),r),(0,Ot.getProperties)(Ot.ref.id(o.id),["targetLayersIDs"])]),l=s[2],c=ja.activeDocument.activeLayers[0];let u;if(t===de.PLACEAFTER||t===de.PLACEBEFORE||t===de.PLACEINSIDE?await c.move(e,t):t===de.PLACEATBEGINNING?i?await PSDocument(e.id).layers[0].bringToFront():await c.bringToFront():t===de.PLACEATEND&&(i?await PSDocument(e.id).layers[0].sendToBack():await c.sendToBack()),l?.ID&&Array.isArray(l.ID))u=1===l.ID.length?PSLayer(l.ID[0],o.id):PSLayer(s[3].targetLayersIDs[0]._id,o.id);else{if(1!==this._id&&"background"!==l?._target?.[0]?._property)return null;u=PSLayer(s[3].targetLayersIDs[0]._id,o.id)}return u.visible=n,u}link(e){if(validateLayer(this),validateLayer(e),this._docId!==e._docId)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/TryingToLinkLayersAcrossDocuments=You cannot link to a layer that is in a different document."));return batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.link)(xt.ref.id(this._id),[xt.ref.id(e.id)])]),[e.id,this._id].map((e=>PSLayer(e,this._docId)))}async unlink(){validateLayer(this),batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.unlink)(xt.ref.id(this._id))])}move(e,t){if(void 0===e)throw new Error(a.translateUIString("$$$/PSUXP/Error/TargetLayerCannotBe=Target layer cannot be undefined."));if(validateLayer(this),validateLayer(e),this._docId!==e._docId)throw new Error(a.translateUIString("$$$/PSUXP/Error/MoveLayersSameDocument=You can only move layers in the same document"));switch(t){case de.PLACEAFTER:this.moveBelow(e);break;case de.PLACEBEFORE:this.moveAbove(e);break;case de.PLACEINSIDE:this.moveInside(e);break;default:{const e=replaceAndTranslate(g,[t,"Constants.ElementPlacement"]);throw new Error(e)}}}moveAbove(e){let t,r,n=-1;const i=this.parent;if(void 0!==e){if(this.id===e.id)return;let a,o;a=i&&i.kind===ue.GROUP?i.layers:PSDocument(this._docId).layers,o=e.parent&&e.parent.kind===ue.GROUP?e.parent.layers:PSDocument(this._docId).layers;const s=a.findIndex((e=>e._id===this._id));if(r=o.findIndex((t=>t._id===e._id)),this.parent===e.parent&&r-s==1)return;n=batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["itemIndex"]))[0].itemIndexe._id===this._id));let n=a-e;if(n=Math.max(n,0),n===a)return;t=r[n]}else{const r=PSDocument(this._docId).layers,a=r.findIndex((e=>e._id===this._id));let n=a-e;if(n=Math.max(n,0),n===a)return;t=r[n]}}r=this.kind===ue.GROUP?batchPlaySync((0,xt.getProperties)(Layer_directRef(t),["itemIndex"]))[0].itemIndex:batchPlaySync((0,xt.getProperties)(Layer_directRef(t),["itemIndex"]))[0].itemIndex+n;if("error"===batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.move)([xt.ref.id(this._id)],r)])[2]._obj)throw new Error(a.translateUIString(C))}bringToFront(){let e,t;validateLayer(this);const r=this.parent;if(r&&r.kind===ue.GROUP){const t=r.layers;let a=0;if(a===t.findIndex((e=>e._id===this._id)))return;e=t[a]}else{const t=PSDocument(this._docId).layers;let r=0;if(r===t.findIndex((e=>e._id===this._id)))return;e=t[r]}t=this.kind===ue.GROUP?batchPlaySync((0,xt.getProperties)(Layer_directRef(e),["itemIndex"]))[0].itemIndex:batchPlaySync((0,xt.getProperties)(Layer_directRef(e),["itemIndex"]))[0].itemIndex+-1;if("error"===batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.move)([xt.ref.id(this._id)],t)])[2]._obj)throw new Error(a.translateUIString(C))}moveBelow(e){let t,r,n=-1;const i=this.parent;if(void 0!==e){if(this.id===e.id)return;if(e.isBackgroundLayer)throw new Error(a.translateUIString("$$$/PSUXP/Error/InvalidTargetForMoveBelow=Invalid target for move below. Cannot move below the Background layer."));let o,s;o=i&&i.kind===ue.GROUP?i.layers:PSDocument(this._docId).layers,s=e.parent&&e.parent.kind===ue.GROUP?e.parent.layers:PSDocument(this._docId).layers;const l=o.findIndex((e=>e._id===this._id));if(t=s.findIndex((t=>t._id===e._id)),this.parent===e.parent&&l-t==1)return;n=batchPlaySync((0,xt.getProperties)(Layer_directRef(this),["itemIndex"]))[0].itemIndexe._id===this._id));let n=a+e;if(n=Math.min(n,t.length-1),n===a)return;r=t[n]}else{const t=PSDocument(this._docId).layers,a=t.findIndex((e=>e._id===this._id));let n=a+e;if(n=Math.min(n,t.length-1),t[n].isBackgroundLayer&&(n-=1),n===a)return;r=t[n]}}r.kind===ue.GROUP?t=findCorrespondingGroupEnd(PSDocument(this._docId),r._id).itemIndex-1:(t=batchPlaySync((0,xt.getProperties)(Layer_directRef(r),["itemIndex"]))[0].itemIndex,t+=n);if("error"===batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.move)([xt.ref.id(this._id)],t)])[2]._obj)throw new Error(a.translateUIString(C))}sendToBack(){let e,t;validateLayer(this);const r=this.parent;if(r&&r.kind===ue.GROUP){const e=r.layers,a=e.findIndex((e=>e._id===this._id));let n=e.length-1;if(n===a)return;t=e[n]}else{const e=PSDocument(this._docId).layers,r=e.findIndex((e=>e._id===this._id));let a=e.length-1;if(e[a].isBackgroundLayer&&(a-=1),a===r)return;t=e[a]}e=t.kind===ue.GROUP?findCorrespondingGroupEnd(PSDocument(this._docId),t._id).itemIndex-1:batchPlaySync((0,xt.getProperties)(Layer_directRef(t),["itemIndex"]))[0].itemIndex+-1;if("error"===batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.move)([xt.ref.id(this._id)],e)])[2]._obj)throw new Error(a.translateUIString(C))}moveInside(e){let t;if(void 0===e)throw new Error(a.translateUIString("$$$/PSUXP/Error/LayerMustBeSpecified=Target layer must be specified if PLACEINSIDE is specified"));if(this.id===e.id)throw new Error(a.translateUIString("$$$/PSUXP/Error/GroupLayerCannotMoveHere=Group layer cannot be moved inside itself."));if(e.kind!==ue.GROUP)throw new Error(a.translateUIString("$$$/PSUXP/Error/LayerMustBeAGroup=Target layer must be a group layer"));const r=e.layers;if(0===r.length)t=batchPlaySync((0,xt.getProperties)(Layer_directRef(e),["itemIndex"]))[0].itemIndex-1;else{const e=r[0];t=batchPlaySync((0,xt.getProperties)(Layer_directRef(e),["itemIndex"]))[0].itemIndex}if("error"===batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.move)([xt.ref.id(this._id)],t,!1)])[2]._obj)throw new Error(a.translateUIString(C))}async translate(e,t){let r,n;if(validateLayer(this),"number"==typeof e&&"number"==typeof t)r=Kr.Pixel(e),n=Kr.Pixel(t);else{if(!hasSameUnits([e,t]))throw new Error(a.translateUIString("$$$/PSUXP/Error/HorizontalVerticalMustBeSame=horizontal and vertical must be of the same type (percent, pixel)."));if(!Kr.isPercentValue(e)&&!Kr.isPixelValue(e))throw new Error(a.translateUIString("$$$/PSUXP/Error/HorizontalVerticalMustBe=horizontal and vertical must be percent or pixel values."));r=e,n=t}await batchPlay((0,xt.transform)(xt.ref.id(this._id),{offset:{_obj:"offset",horizontal:r,vertical:n},freeTransformCenterState:{_enum:"quadCenterState",_value:"QCSAverage"}}))}async flip(e){if(!["horizontal","vertical","both"].includes(e))throw new Error(a.translateUIString("$$$/PSUXP/Error/AxisMustBe=axis must be ^{horizontal^}, ^{vertical^}, ^{both^}"));const flipDesc=e=>(0,xt.flip)(xt.ref.id(this._id),{_enum:"orientation",_value:e}),t="both"===e?[flipDesc("horizontal"),flipDesc("vertical")]:[flipDesc(e)];await batchPlay(t)}async scale(e,t,r,n){let i,o;if(validateLayer(this),"number"==typeof e&&"number"==typeof t)i=Kr.Percent(e),o=Kr.Percent(t);else{if(!hasSameUnits([e,t])||!Kr.isPercentValue(e))throw new Error(a.translateUIString("$$$/PSUXP/Error/WidthAndHeightMustBeSame=width and height must be of same type (percent)."));i=e,o=t}let s=Xr.sz.bilinear;if(void 0!==n&&"interpolation"in n){if(!(n.interpolation in Xr.sz)){const e=replaceAndTranslate(g,[n.interpolation,"PsCommon.InterpolationMethod"]);throw new Error(e)}s=n.interpolation}let l="QCSAverage";void 0!==r&&(l=getTransformCenterKeyFromAnchor(r)),await batchPlay((0,xt.transform)(xt.ref.id(this._id),{width:i,height:o,interpolation:{_enum:"interpolation",_value:s},freeTransformCenterState:{_enum:"quadCenterState",_value:l}}))}async rotate(e,t,r){if(validateLayer(this),"number"!=typeof e&&!Kr.isAngleValue(e))throw new Error(a.translateUIString("$$$/PSUXP/Error/AngleUnexpected=angle is of unexpected type."));let n=Xr.sz.bilinear;if(void 0!==r&&"interpolation"in r){if(!(r.interpolation in Xr.sz)){const e=replaceAndTranslate(g,[r.interpolation,"PsCommon.InterpolationMethod"]);throw new Error(e)}n=r.interpolation}let i="QCSAverage";void 0!==t&&(i=getTransformCenterKeyFromAnchor(t)),await batchPlay((0,xt.transform)(xt.ref.id(this._id),{angle:"number"==typeof e?Kr.Angle(e):e,interpolation:{_enum:"interpolation",_value:n},freeTransformCenterState:{_enum:"quadCenterState",_value:i}}))}async skew(e,t,r){let n,i;if(validateLayer(this),"number"==typeof e&&"number"==typeof t)n=Kr.Angle(e),i=Kr.Angle(t);else{if(!hasSameUnits([e,t])||!Kr.isAngleValue(e))throw new Error(a.translateUIString("$$$/PSUXP/Error/ParamsMustBeSameType=parameters must be of same type (angle)."));n=e,i=t}let o=Xr.sz.bilinear;if(void 0!==r&&"interpolation"in r){if(!(r.interpolation in Xr.sz)){const e=replaceAndTranslate(g,[r.interpolation,"PsCommon.InterpolationMethod"]);throw new Error(e)}o=r.interpolation}await batchPlay((0,xt.transform)(xt.ref.id(this._id),{skew:{_obj:"point",horizontal:n,vertical:i},interpolation:{_enum:"interpolation",_value:o},freeTransformCenterState:{_enum:"quadCenterState",_value:"QCSAverage"}}))}async clear(){validateLayer(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["selection"]))[0].selection;await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.saveLayerSelection)(),(0,xt.select)([xt.ref.id(this._id)]),e?(0,ra.idle)():(0,Ot.selectAll)(),(0,xt.clear)()])}async copy(e){validateLayer(this),await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.saveLayerSelection)(),(0,xt.select)([xt.ref.id(this._id)]),(0,xt.copy)(e)])}async cut(){validateLayer(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["selection"]))[0].selection;await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.saveLayerSelection)(),(0,xt.select)([xt.ref.id(this._id)]),e?(0,ra.idle)():(0,Ot.selectAll)(),(0,xt.cut)()])}async merge(){validateLayer(this);const e=ja.activeDocument;batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.select)([xt.ref.id(this._id)]),(0,xt.merge)()]);const t=ja.activeDocument.activeLayers[0].id;return batchPlaySync((0,Ot.select)(Ot.ref.id(e.id))),PSLayer(t,this._docId)}async rasterize(e){validateLayer(this),await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,xt.saveLayerSelection)(),(0,xt.select)([xt.ref.id(this._id)]),(0,xt.rasterize)(e,this._id)])}get layers(){validateLayer(this);PSDocument(this._docId).backgroundLayer;if(this.kind!==ue.GROUP)return null;let e=a.getLayerGroupContentsSync({documentID:this._docId,layerID:this._id}).list.map((e=>e.layerID));return new Layers(this._docId,e)}}function getTransformCenterKeyFromAnchor(e){switch(e){case J.BOTTOMCENTER:return"QCSSide2";case J.BOTTOMLEFT:return"QCSCorner3";case J.BOTTOMRIGHT:return"QCSCorner2";case J.MIDDLECENTER:return"QCSAverage";case J.MIDDLELEFT:return"QCSSide3";case J.MIDDLERIGHT:return"QCSSide1";case J.TOPCENTER:return"QCSSide0";case J.TOPLEFT:return"QCSCorner0";case J.TOPRIGHT:return"QCSCorner1";default:{const t=replaceAndTranslate(g,[e,"Constants.AnchorPosition"]);throw new Error(t)}}}class Layers extends Array{constructor(e,t){return super(),Object.setPrototypeOf(this,Layers.prototype),this.proxy=new Proxy([],this.handler()),this.parentDocID=e,this.layerIDs=t,this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"Layers";if("length"===t)return this.layerIDs?this.layerIDs.length:0;if("getByName"===t)return e=>{const t=this.layerIDs.find((t=>PSLayer(t,this.parentDocID).name===e));return t?PSLayer(t,this.parentDocID):null};if("add"===t)return Document.prototype.createLayer.bind(PSDocument(this.parentDocID));if("typename"===t)return"Layers";if("function"==typeof Array.prototype[t])return Array.prototype[t].bind(this.layerIDs.map((e=>PSLayer(e,this.parentDocID))));if(t===parseInt(t).toString()){const e=parseInt(t);return e>=0&&e{if(t===Symbol.toPrimitive)return()=>"Guides";if("length"===t)return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["numberOfGuides"]))[0].numberOfGuides;if("add"===t)return(e,t)=>{validateConstant(e,"direction",ge),validateBasicType(t,"coordinate","number");return PSGuide(batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,oa.newGuide)(e,t)])[2].ID,this._docId)};if("typename"===t)return"Guides";if("parent"===t)return PSDocument(this._docId);if("removeAll"===t)return()=>{batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,oa.clearAllGuides)(Ot.ref.id(this._docId))])};if("function"==typeof Array.prototype[t]){const e=batchPlaySync((0,oa.getPropertiesRange)(Ot.ref.id(this._docId),["ID"]))[0].list;return Array.prototype[t].bind(e.map((e=>PSGuide(e.ID,this._docId))))}if(t===parseInt(t).toString()){const e=batchPlaySync((0,oa.getProperties)([oa.ref.index(parseInt(t)+1),Ot.ref.id(this._docId)],["ID"]))[0].ID;return e?PSGuide(e,this._docId):void 0}}}}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}add(e,t){throw new Error(a.translateUIString(L))}removeAll(){throw new Error(a.translateUIString(L))}}var la=__webpack_require__(362);const ca={},ua={add:e=>(ca[e]=ua.getAll(e),ca[e][ca[e].length-1]),removeAll:e=>{ca[e]=[]},getByIndex:(e,t)=>(ca[e]=ua.getAll(e),ca[e][t]),getAll:e=>{const t=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(e),["colorSamplerList"]))[0]?.colorSamplerList;return(t||[]).map(((t,r)=>new ColorSampler(e,r,{x:t.position.horizontal._value,y:t.position.vertical._value},t.hasOwnProperty("color")?SolidColor.fromDesc(t.color):new NoColor)))},remove:(e,t)=>{ca.hasOwnProperty(e)&&(ca[e].splice(t,1),ca[e].forEach(((e,t)=>e._setIndex(t))))}};class ColorSampler{constructor(e,t,r,a){this._docId=e,this._position=r,this._index=t,this._color=a}_setIndex(e){this._index=e}_getIndex(){return this._index}_setPosition(e){this._position=e}get typename(){return"ColorSampler"}get docId(){return this._docId}get parent(){return PSDocument(this._docId)}get position(){return this._position}get color(){return this._color}remove(){batchPlaySync([...selectionDance(this.parent),(0,la.deleteColorSampler)(la.ref.index(this._index+1))]),ua.remove(this._docId,this._index)}move(e){let{width:t,height:r}=PSDocument(this._docId);validateRange(e.x,"position.x",0,t-1),validateRange(e.y,"position.y",0,r-1);let a=batchPlaySync([...selectionDance(this.parent),(0,la.setPosition)(la.ref.index(this._index+1),e)]);if("error"===a[2]?._obj)throw new Error(a[2].message);this._position={x:a[2].to.horizontal._value,y:a[2].to.vertical._value}}}class ColorSamplers{constructor(e){return this._docId=e,this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"ColorSamplers";if("length"===t)return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["colorSamplerList"]))[0]?.colorSamplerList?.length??0;if("add"===t)return e=>{validateBasicType(e.x,"position.x","number"),validateBasicType(e.y,"position.y","number");let{width:t,height:r}=PSDocument(this._docId);validateRange(e.x,"position.x",0,t-1),validateRange(e.y,"position.y",0,r-1);if("error"===batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,la.newColorSampler)(e)])[2]?._obj){const e=replaceAndTranslate("$$$/ColorTools/TooManyColorSamplers=Could not create a new sampler because the maximum number of samplers is ^0.",["10"]);throw new RangeError(e)}return ua.add(this._docId)};if("typename"===t)return"ColorSamplers";if("parent"===t)return PSDocument(this._docId);if("removeAll"===t)return()=>{batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,la.removeAllColorSamplers)()]),ua.removeAll(this._docId)};if("function"==typeof Array.prototype[t]){const e=ua.getAll(this._docId);return Array.prototype[t].bind(e)}return t===parseInt(t,10).toString()?ua.getByIndex(this._docId,parseInt(t,10)):void 0}}}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}add(e){throw new Error(a.translateUIString(L))}removeAll(){throw new Error(a.translateUIString(L))}}var da=__webpack_require__(44);function validateLayerComp(e){if(!validateReference([da.ref.id(e.id),Ot.ref.id(e.docId)])){const t=replaceAndTranslate(u,["LayerComp",String(e.id)]);throw new Error(t)}}const ha={};function PSLayerComp(e,t){return ha.hasOwnProperty(t)||(ha[t]={}),ha[t].hasOwnProperty(e)||(ha[t][e]=new LayerComp(e,t)),ha[t][e]}class LayerComp{constructor(e,t){this._id=e,this._docId=t}get _directRef(){return[da.ref.id(this._id),Ot.ref.id(this._docId)]}get typename(){return"LayerComp"}get id(){return this._id}get docId(){return this._docId}get parent(){return PSDocument(this._docId)}get name(){validateLayerComp(this);return getCompData(this._docId,this._id).title}set name(e){validateLayerComp(this),validateBasicType(e,"name","string"),batchPlaySync(setLayerCompWrapper(this._directRef,{title:e},this.parent))}get comment(){validateLayerComp(this);const e=getCompData(this._docId,this._id);return e.comment?e.comment:null}set comment(e){validateLayerComp(this),null===e&&(e=""),validateBasicType(e,"comment","string"),batchPlaySync(setLayerCompWrapper(this._directRef,{comment:e},this.parent))}get selected(){validateLayerComp(this);return getCompData(this._docId,this._id).selection}get appearance(){validateLayerComp(this);return getCompData(this._docId,this._id).useAppearance}set appearance(e){validateLayerComp(this),validateBasicType(e,"appearance","boolean"),batchPlaySync(setLayerCompWrapper(this._directRef,{useAppearance:e},this.parent))}get position(){validateLayerComp(this);return getCompData(this._docId,this._id).usePosition}set position(e){validateLayerComp(this),validateBasicType(e,"position","boolean"),batchPlaySync(setLayerCompWrapper(this._directRef,{usePosition:e},this.parent))}get visibility(){validateLayerComp(this);return getCompData(this._docId,this._id).useVisibility}set visibility(e){validateLayerComp(this),validateBasicType(e,"visibility","boolean"),batchPlaySync(setLayerCompWrapper(this._directRef,{useVisibility:e},this.parent))}get childComp(){validateLayerComp(this);return getCompData(this._docId,this._id).useChildLayerCompState}set childComp(e){validateLayerComp(this),validateBasicType(e,"childComp","boolean"),batchPlaySync(setLayerCompWrapper(this._directRef,{useChildLayerCompState:e},this.parent))}async apply(){validateLayerComp(this),await batchPlay([...selectionDance(this.parent),(0,da.applyLayerComp)(this._directRef)])}async recapture(e,t){if(validateLayerComp(this),e){const{appearance:r,childComp:a,position:n,visibility:i}=e;let o=[];if(0===t?.length)return;if(t?.length>0){if(!t.every((e=>e._docId===t[0]._docId)))throw new Error(replaceAndTranslate("$$$/PSUXP/Error/RecaptureLayersArg=All layers must be a part of the same document"));o=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(t[0]._docId)),(0,xt.saveLayerSelection)(),(0,xt.select)(t.map((e=>xt.ref.id(e.id))),xt.SelectionModifier.select,!1)]}await batchPlay([...o,(0,da.recaptureLayerComp)(this._directRef,i,n,r,a,Boolean(t))])}else await batchPlay([...selectionDance(this.parent),(0,da.recaptureLayerComp)(this._directRef)])}async remove(){validateLayerComp(this),await batchPlay([...selectionDance(this.parent),(0,da.deleteLayerComp)(this._directRef)])}async resetLayerComp(){await batchPlay([...selectionDance(this.parent),(0,da.resetLayerComp)()])}async duplicate(){validateLayerComp(this);const e=getCompData(this._docId).map((e=>e.ID));await batchPlay([...selectionDance(this.parent),(0,da.duplicateLayerComp)(this._directRef)]);const t=getCompData(this._docId).map((e=>e.ID)).find((t=>!e.includes(t)));if("number"==typeof t)return PSLayerComp(t,this._docId);throw new Error(replaceAndTranslate(O))}}function setLayerCompWrapper(e,t,r){return[...selectionDance(r),(0,da.setLayerCompProperty)(e,t)]}class LayerComps{constructor(e){return this._docId=e,this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"LayerComps";if("length"===t)return validateDocument(PSDocument(this._docId)),getCompData(this._docId).length;if("add"===t)return async(e={})=>{validateDocument(PSDocument(this._docId));const t=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["numberOfLayers","hasBackgroundLayer"])),{numberOfLayers:r,hasBackgroundLayer:a}=t[0];if(0===r&&a)throw new Error(replaceAndTranslate(O));const n=getCompData(this._docId).map((e=>e.ID));await batchPlay((0,da.addLayerComp)(Ot.ref.id(this._docId),e.name??"",e.comment??"",e.visibility??!0,e.position??!1,e.appearance??!1,e.childComp??!1));const i=getCompData(this._docId).map((e=>e.ID)).find((e=>!n.includes(e)));if("number"==typeof i)return PSLayerComp(i,this._docId);throw new Error(replaceAndTranslate(O))};if("typename"===t)return"LayerComps";if("parent"===t)return validateDocument(PSDocument(this._docId)),PSDocument(this._docId);if("removeAll"===t)return validateDocument(PSDocument(this._docId)),async()=>{const e=getCompData(this._docId).map((e=>(0,da.deleteLayerComp)([da.ref.id(e.ID),Ot.ref.id(this._docId)])));await batchPlay([...selectionDance(PSDocument(this._docId)),...e])};if("getAllByName"===t)return validateDocument(PSDocument(this._docId)),e=>{validateBasicType(e,"name","string");return getCompData(this._docId).filter((t=>t.title===e)).map((e=>PSLayerComp(e.ID,this._docId)))};if("function"==typeof Array.prototype[t]){validateDocument(PSDocument(this._docId));const e=getCompData(this._docId).map((e=>e.ID));return Array.prototype[t].bind(e.map((e=>PSLayerComp(e,this._docId))))}if(t===parseInt(t).toString()){validateDocument(PSDocument(this._docId));const e=getCompData(this._docId).find((e=>e.itemIndex-1===parseInt(t)));if(!e)return;return PSLayerComp(e.ID,this._docId)}}}}get typename(){throw new Error(replaceAndTranslate(L))}get length(){throw new Error(replaceAndTranslate(L))}get parent(){throw new Error(replaceAndTranslate(L))}async add(e={}){throw new Error(replaceAndTranslate(L))}async removeAll(){throw new Error(replaceAndTranslate(L))}getAllByName(e){throw new Error(replaceAndTranslate(L))}}function getCompData(e,t){const r=batchPlaySync((0,da.getAllDocumentLayerComps)(Ot.ref.id(e)))[0]?.compsList;if(!r)return"number"==typeof t?null:[];if("number"==typeof t){return r.find((e=>e.ID===t))||null}return r}var pa=__webpack_require__(202);class CountItem{constructor(e,t,r,a){this._docId=e,this.itemIndex=t,this.groupIndex=r,this._position=a,this._document=PSDocument(e)}get typename(){return"CountItem"}get parent(){return new CountItems(this._docId)}get position(){return{...this._position}}move(e){validateRange(e.x,"position.x",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),validateRange(e.y,"position.y",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);const t=batchPlaySync([...selectionDance(this._document),(0,pa.AJ)(this.itemIndex,this.groupIndex,e.x,e.y)]);if("error"===t[2]?._obj){const e=replaceAndTranslate(t[2].message);throw new Error(e)}this._position.x=t[2].x,this._position.y=t[2].y}remove(){const e=batchPlaySync([...selectionDance(this._document),(0,pa.Lq)(this.itemIndex,this.groupIndex)]);if("error"===e[2]?._obj){const t=replaceAndTranslate(e[2].message);throw new Error(t)}}}function getCountItemsList(e){return batchPlaySync([(0,pa.qD)(e)])[0]?.countClass}class CountItems{constructor(e){return this._docId=e,this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"CountItems";if("typename"===t)return"CountItems";if("length"===t)return getCountItemsList(Ot.ref.id(this._docId))?.length??0;if("parent"===t)return PSDocument(this._docId);if("add"===t)return e=>{if(getCountItemsList(Ot.ref.id(this._docId))?.length>=25e3){const e=replaceAndTranslate("$$$/Error/TooManyCountItems=Could not create a new Count Item because the maximum number allowed is ^0.",["25,000"]);throw new RangeError(e)}let{width:t,height:r}=PSDocument(this._docId);validateRange(e.x,"position.x",0,t-1),validateRange(e.y,"position.y",0,r-1);const a=batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.eO)(e.x,e.y),(0,pa.qD)(Ot.ref.id(this._docId))]);if("countAdd"===a[2]?._obj){const e=a[3].countClass[a[3].countClass.length-1];return new CountItem(this._docId,e.itemIndex,e.group,{x:e.x._value,y:e.y._value})}};if("removeAllFromActiveGroup"===t)return()=>{batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.S4)()]);return this};if("getAll"===t)return()=>{const e=batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.qD)(Ot.ref.id(this._docId))]);return void 0===e[2].countClass?null:e[2].countClass.map((e=>new CountItem(this._docId,e.itemIndex,e.group,{x:e.x._value,y:e.y._value})))};if("createGroup"===t)return e=>{validateBasicType(e,"groupName","string");batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.mz)(e)]);return this};if("renameActiveGroup"===t)return e=>{validateBasicType(e,"groupName","string");batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.Yy)(e)]);return this};if("removeGroupByIndex"===t)return e=>{validateBasicType(e,"index","number");batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.l_)(e)]);return this};if("toggleActiveGroupVisibility"===t)return e=>{validateBasicType(e,"isVisible","boolean");return batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.QP)(e)])[2]};if("activateGroupByIndex"===t)return e=>{validateBasicType(e,"index","number");batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.W2)(e)]);return this};if("removeGroupByIndex"===t)return e=>{validateBasicType(e,"index","number");batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.l_)(e)]);return this};if("setActiveMarkerSize"===t)return e=>{validateRange(e,"size",1,10);batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.RC)(e)]);return this};if("setActiveLabelSize"===t)return e=>{validateRange(e,"size",8,72);batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.iD)(e)]);return this};if("setActiveColor"===t)return e=>{validateSolidColor(e,"color");batchPlaySync([...selectionDance(PSDocument(this._docId)),(0,pa.Xd)(e.rgb.red,e.rgb.green,e.rgb.blue)]);return this};if("function"==typeof Array.prototype[t]){const e=getCountItemsList(Ot.ref.id(this._docId));return Array.prototype[t].bind(e.map((e=>new CountItem(this._docId,e.itemIndex,e.group,{x:e.x._value,y:e.y._value}))))}if(t===parseInt(t,10).toString()){const e=getCountItemsList(Ot.ref.id(this._docId))?.[parseInt(t,10)];return e?new CountItem(this._docId,e.itemIndex,e.group,{x:e.x._value,y:e.y._value}):this}}}}get typename(){throw new Error(a.translateUIString(L))}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}add(e){throw new Error(a.translateUIString(L))}removeAllFromActiveGroup(){throw new Error(a.translateUIString(L))}getAll(){throw new Error(a.translateUIString(L))}createGroup(e){throw new Error(a.translateUIString(L))}renameActiveGroup(e){throw new Error(a.translateUIString(L))}removeGroupByIndex(e){throw new Error(a.translateUIString(L))}toggleActiveGroupVisibility(e){throw new Error(a.translateUIString(L))}activateGroupByIndex(e){throw new Error(a.translateUIString(L))}setActiveMarkerSize(e){throw new Error(a.translateUIString(L))}setActiveLabelSize(e){throw new Error(a.translateUIString(L))}setActiveColor(e){throw new Error(a.translateUIString(L))}}var ya=__webpack_require__(388);const ma={};function PSHistoryState(e,t){return ma.hasOwnProperty(t)||(ma[t]={}),ma[t].hasOwnProperty(e)||(ma[t][e]=new HistoryState(e,t)),ma[t][e]}function HistoryState_directRef(e){return[ya.ref.id(e.id),Ot.ref.id(e.parent.id)]}function validateHistoryState(e){if(!validateReference([ya.ref.id(e.id),Ot.ref.id(e.docId)])){const t=replaceAndTranslate(u,["$$$/Actions/Class/HistoryState=history state",String(e.id)]);throw new Error(t)}}class HistoryState{constructor(e,t){this._id=e,this._docId=t}get typename(){return"HistoryState"}get id(){return this._id}get docId(){return this._docId}get name(){validateHistoryState(this);return batchPlaySync((0,ya.getProperties)(HistoryState_directRef(this),["name"]))[0].name}get parent(){validateHistoryState(this);return PSDocument(this._docId)}get snapshot(){validateHistoryState(this);return!batchPlaySync((0,ya.getProperties)(HistoryState_directRef(this),["auto"]))[0].auto}}class HistoryStates{constructor(e){return this._docId=e,this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"HistoryStates";if("length"===t)return batchPlaySync((0,ya.getProperties)([ya.ref.active(),Ot.ref.id(this._docId)],["count"]))[0].count;if("getByName"===t)return e=>{const t=batchPlaySync((0,ya.getProperties)([ya.ref.name(e),Ot.ref.id(this._docId)],["ID"]))[0].ID;return t?PSHistoryState(t,this._docId):null};if("parent"===t)return PSDocument(this._docId);if("function"==typeof Array.prototype[t]){const e=batchPlaySync((0,ya.getProperties)([ya.ref.active(),Ot.ref.id(this._docId)],["count"]))[0].count,r=Array.from({length:e},((e,t)=>PSHistoryState(batchPlaySync((0,ya.getProperties)([ya.ref.index(t+1),Ot.ref.id(this._docId)],["ID"]))[0].ID,this._docId)));return Array.prototype[t].bind(r)}if(t===parseInt(t).toString()){const e=batchPlaySync((0,ya.getProperties)([ya.ref.index(parseInt(t)+1),Ot.ref.id(this._docId)],["ID"]))[0].ID;return e?PSHistoryState(e,this._docId):void 0}}}}getByName(e){throw new Error(a.translateUIString(L))}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}}var ga=__webpack_require__(405);function PathPoint_directRef(e){return[ga.iH.id(e.id),Ot.ref.id(e.parent.id)]}class PathPoint{constructor(e,t,r,a){this._index=e,this._subPathIndex=t,this._pathId=r,this._docId=a}get typename(){return"PathPoint"}get parent(){return new SubPathItem(this._subPathIndex,this._pathId,this._docId)}get anchor(){const e=batchPlaySync([(0,ga.vw)(PathPoint_directRef(new PathItem(this._pathId,this._docId)),["pathContents"])])[0].pathContents.pathComponents[this._subPathIndex].subpathListKey[0].points[this._index].anchor;return[e.horizontal._value,e.vertical._value]}get kind(){const e=batchPlaySync([(0,ga.vw)(PathPoint_directRef(new PathItem(this._pathId,this._docId)),["pathContents"])])[0].pathContents.pathComponents[this._subPathIndex].subpathListKey[0].points[this._index];return e.hasOwnProperty("forward")||e.hasOwnProperty("backward")?Te.SMOOTHPOINT:Te.CORNERPOINT}get leftDirection(){const e=batchPlaySync([(0,ga.vw)(PathPoint_directRef(new PathItem(this._pathId,this._docId)),["pathContents"])])[0].pathContents.pathComponents[this._subPathIndex].subpathListKey[0].points[this._index],t=e.forward??e.anchor;return[t.horizontal._value,t.vertical._value]}get rightDirection(){const e=batchPlaySync([(0,ga.vw)(PathPoint_directRef(new PathItem(this._pathId,this._docId)),["pathContents"])])[0].pathContents.pathComponents[this._subPathIndex].subpathListKey[0].points[this._index],t=e.backward??e.anchor;return[t.horizontal._value,t.vertical._value]}}class PathPoints{constructor(e,t,r){return this._subPathIndex=e,this._pathId=t,this._docId=r,this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"PathPoints";if("length"===t){return batchPlaySync([(0,ga.vw)([ga.iH.id(this._pathId),Ot.ref.id(this._docId)],["pathContents"])])[0].pathContents.pathComponents[this._subPathIndex].subpathListKey[0].points.length}if("typename"===t)return"PathPoints";if("parent"===t)return new SubPathItem(this._subPathIndex,this._pathId,this._docId);if("function"==typeof Array.prototype[t]){const e=batchPlaySync([(0,ga.vw)([ga.iH.id(this._pathId),Ot.ref.id(this._docId)],["pathContents"])])[0].pathContents.pathComponents[this._subPathIndex].subpathListKey[0].points.map(((e,t)=>new PathPoint(t,this._subPathIndex,this._pathId,this._docId)));return Array.prototype[t].bind(e)}return t===parseInt(t).toString()?new PathPoint(parseInt(t),this._subPathIndex,this._pathId,this._docId):void 0}}}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}}function SubPathItem_directRef(e){return[ga.iH.id(e.id),Ot.ref.id(e.parent.id)]}class SubPathItem{constructor(e,t,r){this._index=e,this._pathId=t,this._docId=r}get typename(){return"SubPathItem"}get parent(){return PSPathItem(this._pathId,this._docId)}get operation(){const e=batchPlaySync([(0,ga.vw)(SubPathItem_directRef(this.parent),["pathContents"])])[0].pathContents.pathComponents[this._index];let t=e.shapeOperation._value;return"interfaceIconFrameDimmed"===t&&(t="intersect"),e.shapeOperation._value}get closed(){return batchPlaySync([(0,ga.vw)(SubPathItem_directRef(this.parent),["pathContents"])])[0].pathContents.pathComponents[this._index].subpathListKey[0].closedSubpath??!1}get pathPoints(){return new PathPoints(this._index,this._pathId,this._docId)}}class SubPathItems{constructor(e,t){return this._pathId=e,this._docId=t,this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"SubPathItems";if("length"===t){return batchPlaySync([(0,ga.vw)([ga.iH.id(this._pathId),Ot.ref.id(this._docId)],["pathContents"])])[0].pathContents.pathComponents.length}if("typename"===t)return"SubPathItems";if("parent"===t)return new PathItem(this._pathId,this._docId);if("function"==typeof Array.prototype[t]){const e=batchPlaySync([(0,ga.vw)([ga.iH.id(this._pathId),Ot.ref.id(this._docId)],["pathContents"])])[0].pathContents.pathComponents.map(((e,t)=>new SubPathItem(t,this._pathId,this._docId)));return Array.prototype[t].bind(e)}return t===parseInt(t).toString()?new SubPathItem(parseInt(t),this._pathId,this._docId):void 0}}}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}}function PathItem_directRef(e){return[ga.iH.id(e.id),Ot.ref.id(e.parent.id)]}const fa={};function validatePath(e){if(!validateReference([ga.iH.id(e.id),Ot.ref.id(e.docId)])){const t=replaceAndTranslate(u,["$$$/Actions/Class/Path=path",String(e.id)]);throw new Error(t)}}function PSPathItem(e,t){return fa.hasOwnProperty(t)||(fa[t]={}),fa[t].hasOwnProperty(e)||(fa[t][e]=new PathItem(e,t)),fa[t][e]}class PathItem{constructor(e,t){this._id=e,this._docId=t}get typename(){return"PathItem"}get id(){return this._id}get docId(){return this._docId}get parent(){validatePath(this);return PSDocument(this._docId)}get kind(){validatePath(this);return batchPlaySync((0,ga.vw)(PathItem_directRef(this),["kind"]))[0].kind._value}set kind(e){if([De.WORKPATH,De.VECTORMASK,De.TEXTMASK].includes(e))throw new Error(a.translateUIString(s));validatePath(this),e===De.CLIPPINGPATH?batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.aT)(ga.iH.id(this._id))]):batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.ZH)(ga.iH.id(this._id))])}get name(){validatePath(this);return batchPlaySync((0,ga.vw)(PathItem_directRef(this),["pathName"]))[0].pathName}set name(e){validatePath(this),batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.PQ)(PathItem_directRef(this),e)])}get subPathItems(){return validatePath(this),new SubPathItems(this._id,this._docId)}async deselect(){validatePath(this),await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga._H)(PathItem_directRef(this))])}async duplicate(e){validatePath(this);const t=(await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.OM)(PathItem_directRef(this),e),(0,Ot.getProperties)(Ot.ref.id(this.docId),["numberOfPaths"])]))[3].numberOfPaths-1;return PSPathItem((await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.vw)(ga.iH.index(t),["ID"])]))[2].ID,this._docId)}async fillPath(e,t,r=100,n=!1,i=0,o=!0,l=!0){if(validatePath(this),r<0||r>100||i<0||i>250)throw new Error(a.translateUIString(s));await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.Ys)(PathItem_directRef(this)),(0,ga.hl)(PathItem_directRef(this),o,e.base.desc,r,t,n,i,l)])}async makeClippingPath(e){if(validatePath(this),void 0!==e&&(e<0||e>100))throw new Error(a.translateUIString(s));await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.aT)(ga.iH.id(this._id),e)])}async makeSelection(e,t,r){if(validatePath(this),void 0!==e&&(e<0||e>250))throw new Error(a.translateUIString(s));await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.P_)(ga.iH.id(this._id),r??Ae.REPLACE,e,t)])}async remove(){validatePath(this),await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.Od)(PathItem_directRef(this))])}async select(){validatePath(this),await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.Ys)(PathItem_directRef(this))])}async strokePath(e=we.PENCIL,t=!1,r,n){validatePath(this);let i=!1;if([we.CLONESTAMP,we.HEALINGBRUSH].includes(e)&&(i=!0),i&&void 0===r)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/InvalidSourceArray=A number array of length two is needed for specifying source coordinates."));const o=this.parent.activeLayers;if(o.length>1)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/CannotHaveMoreThanOneSource=You cannot have more than one layer active for strokePath."));if(0===o.length)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/NoActiveLayersForSource=You must have one layer active for strokePath."));i&&void 0===n&&(n=o[0]),i&&validateLayer(n),await batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),i?(0,ga.uy)(r.x,r.y,xt.ref.id(n.id)):(0,ra.idle)(),(0,ga.Go)(PathItem_directRef(this),e,t)])}}class PathItems{constructor(e){return this._docId=e,this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"PathItems";if("length"===t)return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["numberOfPaths"]))[0].numberOfPaths;if("add"===t)return(e,t)=>batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),(0,ga.nc)(t),(0,ga.PQ)(ga.iH.selected(),e)]);if("typename"===t)return"PathItems";if("parent"===t)return PSDocument(this._docId);if("getByName"===t)return e=>{const t=batchPlaySync((0,ga.vw)([ga.iH.name(e),Ot.ref.id(this._docId)],["ID","pathName"]));if(t[0].pathName===e)return new PathItem(t[0].ID,this._docId);const r=batchPlaySync([(0,ga.cD)()]);if(r[0].pathName===e)return new PathItem(r[0].ID,this._docId);const a=batchPlaySync([(0,ga.OG)()]);if(a[0].pathName===e)return new PathItem(a[0].ID,this._docId);const n=batchPlaySync([(0,ga.ks)()]);return n[0].pathName===e?new PathItem(n[0].ID,this._docId):null};if("removeAll"===t)return()=>{const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["numberOfPaths"]))[0].numberOfPaths,t=Array.from({length:e},(()=>(0,ga.Od)([ga.iH.index(1)])));batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this._docId)),...t])};if("function"==typeof Array.prototype[t]){const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["numberOfPaths"]))[0].numberOfPaths,r=Array.from({length:e},((e,t)=>new PathItem(batchPlaySync((0,ga.vw)([ga.iH.index(t+1),Ot.ref.id(this._docId)],["ID"]))[0].ID,this._docId)));return Array.prototype[t].bind(r)}if(t===parseInt(t).toString()){const e=batchPlaySync((0,ga.vw)([ga.iH.index(parseInt(t)+1),Ot.ref.id(this._docId)],["ID"]))[0].ID;return e?new PathItem(e,this._docId):void 0}}}}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}add(e,t){throw new Error(a.translateUIString(L))}removeAll(){throw new Error(a.translateUIString(L))}getByName(e){throw new Error(a.translateUIString(L))}}class Channels extends Array{constructor(e){return super(),this._docId=e,Object.setPrototypeOf(this,Channels.prototype),this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"Channels";if("length"===t)return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this._docId),["numberOfChannels"]))[0].numberOfChannels;if("getByName"===t)return e=>{validateDocument(PSDocument(this._docId));const t=batchPlaySync((0,Jr.getPropertiesRange)(["itemIndex","channelName","ID"]))[0]?.list?.find((t=>t.channelName===e));if(!t)return null;return PSChannelFromIndex(this._docId,t.itemIndex)};if("add"===t)return()=>{const e=ja.activeDocument,t=batchPlaySync([(0,Ot.select)(Ot.ref.id(this._docId)),(0,Jr.createChannel)(),(0,Ot.select)(Ot.ref.id(e.id))])[1]?.new?.alphaChannelId;return t?PSChannel(this._docId,t):null};if("removeAll"===t)return()=>{const e=batchPlaySync((0,Jr.getPropertiesRange)(["itemIndex","ID"],Ot.ref.id(this._docId)))[0].list.filter((e=>"ID"in e)).reverse(),t=Ot.ref.id(this._docId);batchPlaySync(e.map((e=>(0,Jr.remove)([Jr.ref.id(e.ID),t]))))};if("parent"===t)return PSDocument(this._docId);if("typename"===t)return"Channels";if("function"==typeof Array.prototype[t]){const e=batchPlaySync((0,Jr.getPropertiesRange)(["itemIndex","ID"],Ot.ref.id(this._docId)))[0],r=Array.from(e.list,(e=>"ID"in e?PSChannel(this._docId,e.ID):PSChannelFromIndex(this._docId,e.itemIndex)));return Array.prototype[t].bind(r)}if(t===parseInt(t).toString()){const e=batchPlaySync((0,Jr.getPropertiesRange)(["itemIndex","ID"],Ot.ref.id(this._docId),parseInt(t)+1,1))[0]?.list?.[0];if(!e)return;if("ID"in e)return PSChannel(this._docId,e.ID);if("itemIndex"in e)return PSChannelFromIndex(this._docId,e.itemIndex)}}}}add(){throw new Error(a.translateUIString(L))}getByName(e){throw new Error(a.translateUIString(L))}removeAll(){throw new Error(a.translateUIString(L))}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}get typename(){throw new Error(a.translateUIString(L))}}var _a=__webpack_require__(182);function isNumber(e){return"number"==typeof e}function validateDocument(e){if(!validateReference(Ot.ref.id(e.id))){const t=replaceAndTranslate(u,["$$$/Actions/Class/Document=document",String(e.id)]);throw new Error(t)}}const Pa={};function PSDocument(e){return Pa.hasOwnProperty(e)||(Pa[e]=new Document(e)),Pa[e]}class Document{constructor(e){this.saveAs={async psd(e,t,r=!1){const a=retrieveUXPFileToken(e),n=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),Ot.saveAs.psd(this.id,a,{...t,annotType:t?.annotations,embedProfiles:t?.embedColorProfile,copy:r})];await batchPlay(n)},async psb(e,t,r=!1){const a=retrieveUXPFileToken(e),n=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),Ot.saveAs.psb(this.id,a,{...t,annotType:t?.annotations,embedProfiles:t?.embedColorProfile,copy:r})];await batchPlay(n)},async jpg(e,t,r=!1){const a=retrieveUXPFileToken(e);let n,i;switch(t?.formatOptions??z.STANDARDBASELINE){case z.OPTIMIZEDBASELINE:i=!0;break;case z.PROGRESSIVE:n=t?.scans??3;case z.STANDARDBASELINE:}const o=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),Ot.saveAs.jpg(this.id,a,{...t,...t.color&&{color:t.color.base.desc},...t.customMatte&&{customMatte:t.customMatte.base.desc},extendedQuality:t?.quality,embedProfiles:t?.embedColorProfile,scans:n,optimized:i,copy:r})];await batchPlay(o)},async gif(e,t,r=!1){const a=retrieveUXPFileToken(e),n=t?.palette??"selective",i=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),Ot.saveAs.gif(this.id,a,{...t,palette:n,copy:r})];await batchPlay(i)},async png(e,t,r=!1){const a=retrieveUXPFileToken(e),n=t?.interlaced?"PNGInterlaceAdam7":void 0,i=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),Ot.saveAs.png(this.id,a,{method:t?.method,PNGInterlaceType:n,compression:t?.compression,copy:r})];await batchPlay(i)},async bmp(e,t,r=!1){const a=retrieveUXPFileToken(e),n=t?.osType??"windows",i=t?.depth??"bitDepth24",o=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),Ot.saveAs.bmp(this.id,a,{platform:n,bitDepth:i,flipVertical:t?.flipRowOrder,compression:t?.rleCompression,alphaChannels:t?.alphaChannels,copy:r})];await batchPlay(o)}},this._id=e,this.saveAs.jpg=this.saveAs.jpg.bind(this),this.saveAs.gif=this.saveAs.gif.bind(this),this.saveAs.png=this.saveAs.png.bind(this),this.saveAs.bmp=this.saveAs.bmp.bind(this),this.saveAs.psd=this.saveAs.psd.bind(this),this.saveAs.psb=this.saveAs.psb.bind(this)}get typename(){return"Document"}get id(){return this._id}get saved(){validateDocument(this);return!batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["isDirty"]))[0].isDirty}get activeLayers(){validateDocument(this);let e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["targetLayersIDs"]))[0].targetLayersIDs;return e=e.map((e=>e._id)),new Layers(this.id,e)}get artboards(){validateDocument(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["artboards"]))[0].artboards.list.map((e=>e.layerID));return new Layers(this.id,e)}get name(){validateDocument(this);return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["title"]))[0].title}get histogram(){validateDocument(this);return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["histogram"]))[0].histogram}get quickMaskMode(){validateDocument(this);return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["quickMask"]))[0].quickMask}set quickMaskMode(e){if(validateDocument(this),this.quickMaskMode===e)return;batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.quickMaskModeEvent)(Ot.ref.active(),e)])}get guides(){return validateDocument(this),new Guides(this._id)}get countItems(){return validateDocument(this),new CountItems(this._id)}get colorSamplers(){return validateDocument(this),new ColorSamplers(this._id)}get mode(){validateDocument(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["mode"]))[0].mode._value;switch(e){case"grayScale":case"gray16":return ie.GRAYSCALE;case"RGBColor":case"RGB48":return ie.RGB;case"CMYKColorEnum":case"CMYK64":return ie.CMYK;case"labColor":case"lab48":return ie.LAB;case"bitmap":return ie.BITMAP;case"indexedColor":return ie.INDEXEDCOLOR;case"duotone":return ie.DUOTONE;case"multichannel":return ie.MULTICHANNEL;default:{const t=replaceAndTranslate(d,[e]);throw new Error(t)}}}get bitsPerChannel(){validateDocument(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["depth"]))[0].depth;let t;switch(e){case 1:t=$.ONE;break;case 8:t=$.EIGHT;break;case 16:t=$.SIXTEEN;break;case 32:t=$.THIRTYTWO;break;default:{const t=replaceAndTranslate("$$$/PSUXP/Error/UnknownBitDepth=^0 bits/channel is not a known bit depth.",[String(e)]);throw new Error(t)}}return t}set bitsPerChannel(e){let t;switch(validateDocument(this),e){case $.ONE:if(this.bitsPerChannel!==$.ONE)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/CannotSetDepthTo1Bit=You cannot set the bit depth property to one bit. To change a document to one bit, change the document mode to Bitmap."));t=1;break;case $.EIGHT:t=8;break;case $.SIXTEEN:t=16;break;case $.THIRTYTWO:const r=this.mode;if(r!==ie.GRAYSCALE&&r!==ie.RGB)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/CannotSetDepthTo32Bit=You cannot set the bit depth property to thirty two bit. To change a document to thirty two bit, change the document mode to Grayscale or RGB."));t=32;break;default:{const t=replaceAndTranslate("$$$/PSUXP/Error/UnsupportedBitDepth=A bit depth of ^0 is not supported.",[e]);throw new Error(t)}}if(1!==t){batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.convertBitDepth)(t)])}}get cloudDocument(){validateDocument(this);return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["isCloudDoc"]))[0].isCloudDoc}get cloudWorkAreaDirectory(){validateDocument(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["cloudDocument"]))[0].cloudDocument;if(void 0===e)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/NoWorkAreaForLocalDocumentError=Only cloud documents have the cloudWorkAreaDirectory property."));return e.cloudWorkareaDirectory._path}get layers(){validateDocument(this);const e=a.getLayerTreeSync({documentID:this.id}).list.map((e=>e.layerID));return new Layers(this.id,e)}get layerComps(){return validateDocument(this),new LayerComps(this._id)}get backgroundLayer(){validateDocument(this);return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["hasBackgroundLayer"]))[0].hasBackgroundLayer?PSLayer(1,this.id,ta.background):null}get path(){validateDocument(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["fileReference"]))[0];if(!e.fileReference)return"";if("local"===e.fileReference._kind)return e.fileReference._path;if("cloud"===e.fileReference._kind){return JSON.parse(e.fileReference._path).cloud_id}return""}get pathItems(){return validateDocument(this),new PathItems(this.id)}get historyStates(){return validateDocument(this),new HistoryStates(this.id)}get activeHistoryState(){validateDocument(this);const e=batchPlaySync((0,ya.getProperties)([ya.ref.active(),Ot.ref.id(this.id)],["ID"]));return new HistoryState(e[0].ID,this.id)}set activeHistoryState(e){validateDocument(this),validateHistoryState(e);batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,ya.select)([ya.ref.id(e.id)])])}get activeHistoryBrushSource(){return validateDocument(this),this.historyStates.find((e=>batchPlaySync((0,ya.getProperties)([ya.ref.id(e.id),Ot.ref.id(this.id)],["historyBrushSource"]))[0].historyBrushSource))}set activeHistoryBrushSource(e){validateDocument(this),validateHistoryState(e);batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,ya.setProperty)("historyBrushSource",ya.ref.id(e.id))])}get title(){validateDocument(this);return batchPlaySync([(0,Ot.getProperties)(Ot.ref.id(this.id),["title"])])[0].title}get resolution(){validateDocument(this);return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["resolution"]))[0].resolution._value}get width(){validateDocument(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["width","resolution"])),t=e[0].width._value*(e[0].resolution._value/72);return Number(t.toFixed(0))}get height(){validateDocument(this);const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["height","resolution"])),t=e[0].height._value*(e[0].resolution._value/72);return Number(t.toFixed(0))}get pixelAspectRatio(){validateDocument(this);return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["pixelScaleFactor"]))[0].pixelScaleFactor._value}set pixelAspectRatio(e){validateDocument(this),batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),{_obj:"set",_target:[{_property:"pixelScaleFactor",_ref:"property"},Ot.ref.id(this.id)],to:{value:e}}])}get colorProfileName(){validateDocument(this);if(this.colorProfileType===he.NONE)return"None";return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["profile"]))[0].profile}set colorProfileName(e){validateDocument(this),batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),{_obj:"assignProfile",_target:Ot.ref.id(this.id),profile:e}])}get colorProfileType(){validateDocument(this);return batchPlaySync((0,Ot.getProperties)(Ot.ref.id(this.id),["manage"]))[0].manage._value}set colorProfileType(e){if(validateDocument(this),e===he.CUSTOM)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/DontSetColorProfileCustom=To set the document to custom color management, assign the name of the desired color profile to the 'color profile name' property"));batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),{_obj:"assignProfile",_target:Ot.ref.id(this.id),manage:e===he.WORKING}])}async close(e=F.PROMPTTOSAVECHANGES){validateDocument(this);const t=ja.activeDocument,r=this.id===t.id;if(e===F.PROMPTTOSAVECHANGES){const e=(0,Ot.close)();e._options={dialogOptions:"display"};const t=[r?(0,ra.idle)():(0,Ot.saveDocumentSelection)(),r?(0,ra.idle)():(0,Ot.select)(Ot.ref.id(this.id)),e];await batchPlay(t,{dialogOptions:"display"})}else{const t=e===F.SAVECHANGES,a=[r?(0,ra.idle)():(0,Ot.saveDocumentSelection)(),r?(0,ra.idle)():(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.close)(t)];await batchPlay(a)}}closeWithoutSaving(){validateDocument(this);batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.close)(!1)],{dialogOptions:"dontDisplay",modalBehavior:"execute"})}async crop(e,t=0,r=0,a=0){validateDocument(this);const n=["left","right","bottom","top"];for(const t of n)if(!e.hasOwnProperty(t))throw Error(`Rectangle does not contain key: ${t}`);const i=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.crop)(e,t,r,a)];await batchPlay(i)}async flatten(){validateDocument(this);const e=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.flattenImage)()];await batchPlay(e)}async duplicate(e,t){validateDocument(this);const r=[(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.duplicate)(Ot.ref.id(this.id),e,!1,t)];return PSDocument((await batchPlay(r))[1].documentID)}async mergeVisibleLayers(){validateDocument(this);const e=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.mergeVisible)()];await batchPlay(e)}async splitChannels(){const e=ja.activeDocument,t=this.id===e.id,r=[t?(0,ra.idle)():(0,Ot.saveDocumentSelection)(),t?(0,ra.idle)():(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.splitChannels)()];return(await batchPlay(r))[2].documentIDs.map((e=>PSDocument(e)))}async revealAll(){validateDocument(this);const e=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.revealAll)()];await batchPlay(e)}async rasterizeAllLayers(){validateDocument(this);const e=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.rasterizeAll)()];await batchPlay(e)}async changeMode(e,t){validateDocument(this);let r={_obj:"convertMode",flatten:!1,to:{_class:e}},n={_obj:"idle"};if(e===le.GRAYSCALE)r.ratio=1;else if(e===le.BITMAP){if(!t)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/ConvertToBitmapRequiresOptions=The specified conversion to bitmap mode requires conversion options."));const e=function createBitmapConversionDescriptor(e){const t={resolution:{_unit:"densityUnit",_value:e.resolution},method:{_enum:"method",_value:e.method}};switch(e.method){case pe.CUSTOMPATTERN:Object.assign(t,{name:e.patternName});break;case pe.HALFTONESCREEN:Object.assign(t,{frequency:{_unit:"densityUnit",_value:e.frequency},angle:{_unit:"angleUnit",_value:e.angle},shape:{_enum:"shape",_value:e.shape}})}return t}(t);Object.assign(r,e)}else if(e===le.INDEXEDCOLOR){n=(0,Ot.flattenImage)();const e=this.mode;if(!t&&e!=ie.DUOTONE&&e!=ie.GRAYSCALE&&e!=ie.INDEXEDCOLOR)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/ConvertToIndexedRequiresOptions=The specified conversion to indexed color mode requires conversion options."));if(t){const e=function createIndexedConversionDescriptor(e){let t={};const r={palette:{_enum:"colorPalette",_value:e.palette}};if(Object.assign(t,r),e.colors&&Object.assign(t,{colors:e.colors}),e.forced&&Object.assign(t,{forcedColors:{_enum:"forcedColors",_value:e.forced}}),e.transparency&&Object.assign(t,{transparency:e.transparency}),e.matte&&Object.assign(t,{matteColor:{_enum:"matteColor",_value:e.matte}}),e.dither){switch(e.dither){case X.NONE:break;case X.PATTERN:case X.DIFFUSION:case X.NOISE:Object.assign(t,{dither:{_enum:"dither",_value:e.dither}});break;default:{const t=replaceAndTranslate(g,[e.dither,"Constants.Dither"]);throw new Error(t)}}e.dither===X.DIFFUSION&&Object.assign(t,{ditherAmount:e.ditherAmount})}return e.preserveExactColors&&Object.assign(t,{ditherPreserve:e.preserveExactColors}),t}(t);Object.assign(r,e)}}const i=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),n,r];await batchPlay(i)}async convertProfile(e,t,r,a){if(e===this.colorProfileName)return;void 0===a&&(a=!0);const n={_obj:"convertToProfile",_target:Ot.ref.id(this.id),flatten:!1,dither:a,intent:{_enum:"intent",_value:t}};switch(e){case"Working RGB":n.toMode={_class:"RGBColorMode"};break;case"Working CMYK":n.toMode={_class:"CMYKColorMode"};break;case"Working Gray":n.toMode={_class:"grayscaleMode"};break;case"Lab Color":n.toMode={_class:"labColorMode"};break;default:n.to=e}void 0!==r&&(n.mapBlack=r);const i=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),n];await batchPlay(i)}async trap(e){const t=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.flattenImage)(),{_obj:"trap",width:{_unit:"pixelsUnit",_value:e}}];await batchPlay(t)}async resizeCanvas(e,t,r){validateDocument(this);const a=isNumber(e)?Kr.Pixel(e):e,n=isNumber(t)?Kr.Pixel(t):t,i=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.resizeCanvas)({width:a,height:n},(e=>{const h=e=>({_enum:"horizontalLocation",_value:e}),v=e=>({_enum:"verticalLocation",_value:e});switch(e){case J.BOTTOMCENTER:return{horizontal:h("center"),vertical:v("bottomEnum")};case J.BOTTOMLEFT:return{horizontal:h("left"),vertical:v("bottomEnum")};case J.BOTTOMRIGHT:return{horizontal:h("right"),vertical:v("bottomEnum")};case J.MIDDLECENTER:return{horizontal:h("center"),vertical:v("center")};case J.MIDDLELEFT:return{horizontal:h("left"),vertical:v("center")};case J.MIDDLERIGHT:return{horizontal:h("right"),vertical:v("center")};case J.TOPCENTER:return{horizontal:h("center"),vertical:v("top")};case J.TOPLEFT:return{horizontal:h("left"),vertical:v("top")};case J.TOPRIGHT:return{horizontal:h("right"),vertical:v("top")};default:return{horizontal:h("center"),vertical:v("center")}}})(r))];await batchPlay(i)}async resizeImage(e,t,r,n,i){let o,s,l;validateDocument(this);const c=void 0!==n&&Object.values(U).includes(n)?n:U.AUTOMATIC;if(c===U.NONE)throw new Error(a.translateUIString("$$$/PSUXP/Error/UnsupportedSamplingMethod=Sampling method of type ^{none^} is currently unsupported."));void 0!==e&&(o={_unit:"pixelsUnit",_value:e}),void 0!==t&&(s={_unit:"pixelsUnit",_value:t}),void 0!==r&&(l={_unit:"densityUnit",_value:r});const u={_enum:"interpolationType",_value:c};let d=(0,Ot.resizeImage)(o,s,l,u);d.constrainProportions=void 0===e||void 0===t,c!==U.PRESERVEDETAILS&&c!==U.DEEPUPSCALE||void 0===i||(d.noise=i);const p=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),d];await batchPlay(p)}async trim(e,t=!0,r=!0,a=!0,n=!0){validateDocument(this);const i=function getTrimTypeKeyFromAnchor(e){switch(e){case Z.BOTTOMRIGHT:return"bottomRightPixelColor";case Z.TOPLEFT:return"topLeftPixelColor";case Z.TRANSPARENT:return"transparency";case void 0:return"topLeftPixelColor";default:{const t=replaceAndTranslate(g,[e,"Constants.TrimType"]);throw new Error(t)}}}(e),o=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.trim)(i,t,r,a,n)];await batchPlay(o)}async rotate(e){validateDocument(this);const t=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.rotate)(Ot.ref.active(),Kr.Angle(e))];await batchPlay(t)}async paste(e){validateDocument(this);const t=batchPlay([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.paste)(e)]);return t[2]?.layerID?PSLayer(t[2].layerID,this.id):null}async save(){validateDocument(this);const e=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,Ot.saveDocumentDialog)()];await batchPlay(e)}async duplicateLayers(e,t){if(!Array.isArray(e))throw new Error(a.translateUIString(p));validateDocument(this),t&&validateDocument(t),e.forEach(validateLayer);const r=void 0!==t?Ot.ref.id(t.id):void 0,n=e.map((e=>xt.ref.id(e.id))),i=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,xt.duplicate)(n,r),(0,Ot.getProperties)(Ot.ref.active(),["targetLayersIDs"])],o=(await batchPlay(i))[3]?.targetLayersIDs;return o.map((e=>PSLayer(e._id,this.id)))}linkLayers(e){if(validateDocument(this),e.forEach(validateLayer),e.length<2)return[];const t=xt.ref.id(e[0].id),r=e.map((e=>e.id)).slice(1).map((e=>xt.ref.id(e)));return batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,xt.link)(t,r)]),e[0].linkedLayers}async createLayer(e,t){switch(void 0===e&&(e=ue.NORMAL),"object"==typeof e&&(t=e,e=ue.NORMAL),validateConstant(e,"Constants.LayerKind",ue),e){case ue.NORMAL:return this.createPixelLayer(t);case ue.TEXT:return this.createTextLayer(t);case ue.GROUP:return this.createLayerGroup(t);default:throw new Error(`Unknown kind ${e} somehow passed validation.`)}}async createPixelLayer(e){validateDocument(this),e&&(e={...e}).blendMode&&(e.mode=e.blendMode,delete e.blendMode);const t=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,xt.select)([xt.ref.front()]),(0,xt.makeLayer)(e)],r=await batchPlay(t);return r[3]?.layerID?PSLayer(r[3].layerID,this.id):null}async createTextLayer(e){validateDocument(this);const t={...e};t?.blendMode&&(validateConstant(t.blendMode,"Constants.BlendMode",te),t.mode=t.blendMode,delete t.blendMode);const r=function validateTextLayerOptions(e,t,r){const a={position:{x:50,y:50},fontSize:12,contents:"Lorem Ipsum"};e.hasOwnProperty("name")&&validateBasicType(e.name,"name","string"),e.hasOwnProperty("group")&&validateBasicType(e.group,"group","boolean"),e.hasOwnProperty("color")&&validateConstant(e.color,"Constants.LabelColors",ee),e.hasOwnProperty("opacity")&&validateRange(e.opacity,"opacity",0,100),e?.position?(validateObjectProperties(e.position,"position",["x","y"]),validateBasicType(e.position.x,"position.x","number"),validateBasicType(e.position.y,"position.y","number"),e.position={...e.position},e.position.x=e.position.x/t*100,e.position.y=e.position.y/r*100):e.position={x:a.position.x,y:a.position.y};e.hasOwnProperty("contents")?validateBasicType(e.contents,"contents","string"):e.contents=a.contents;e.hasOwnProperty("textColor")&&validateSolidColor(e.textColor,"textColor");e.hasOwnProperty("fontSize")?validateBasicType(e.fontSize,"fontSize","number"):e.fontSize=a.fontSize;e.hasOwnProperty("fontName")&&validateBasicType(e.fontName,"fontName","string");return e}({...t},this.width,this.height),a=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,xt.makeTextLayer)(r)],n=await batchPlay(a);return n[2]?.layerID?PSLayer(n[2].layerID,this.id):null}async createLayerGroup(e){let t;validateDocument(this),e&&(e={...e}),e?.blendMode&&(e.mode=e.blendMode,delete e.blendMode);let r=(0,xt.select)([xt.ref.selected()]);e?.fromLayers&&(Array.isArray(e.fromLayers)?(e.fromLayers.forEach(validateLayer),r=(0,xt.select)(e.fromLayers.map((e=>xt.ref.id(e.id))))):(validateLayer(e.fromLayers),r=(0,xt.select)([xt.ref.id(e.fromLayers.id)])),t=xt.ref.selected(),delete e.fromLayers);const a=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),r,(0,xt.makeGroup)({...e,from:t})],n=await batchPlay(a);return n[3]?.layerSectionStart?PSLayer(n[3].layerSectionStart,this.id,ta.group):null}async groupLayers(e){validateDocument(this),e.forEach(validateLayer);const t=e.map((e=>xt.ref.id(e.id))),r=[(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),(0,xt.saveLayerSelection)(),(0,xt.select)(t),(0,xt.makeGroup)({from:xt.ref.selected()})],a=await batchPlay(r);return a[4]?.layerSectionStart?PSLayer(a[4].layerSectionStart,this.id,ta.group):null}async suspendHistory(e,t){return a.executeAsModal((async r=>{const a=await r.hostControl.suspendHistory({name:t,documentID:this._id}),n={...r,document:this};delete n.hostControl,await e(n),await r.hostControl.resumeHistory(a)}),{commandName:t})}async sampleColor(e){validateDocument(this),validateRange(e.x,"position.x",0,this.width-1),validateRange(e.y,"position.y",0,this.height-1);const t=(await batchPlay([(0,Ot.samplePoint)(Ot.ref.id(this.id),e)]))[0];return t.sampledData?SolidColor.fromDesc(t.colorSampler):new NoColor}async calculations(e){validateColorMode(this,Mt,"Document calculations"),validateDocument(this),function validateCalculationsOptions(e){validateObjectProperties(e,"calculationsOptions",["source1","source2","result"]),validateObjectProperties(e.source1,"calculationsOptions.source1",["document","layer","channel"]),validateObjectProperties(e.source2,"calculationsOptions.source2",["document","layer","channel"]),validateCalculationsSource(e.source1),validateCalculationsSource(e.source2),"mask"in e&&validateCalculationsSource(e.mask);const t=e.source1.document,r=e.source2.document;if(t.width!==r.width||t.height!==r.height)throw new DOMError(x);validateConstant(e.result,"Constants.CalculationsResult",lt),"opacity"in e&&validateRange(e.opacity,"calculationsOptions.opacity",0,100),"blending"in e&&validateConstant(e.blending,"Constants.CalculationsBlendMode",ae)}(e);const[t,r,a,n]=extractCalculationsSourceRefs(e.source1),[i,o,s,l]=extractCalculationsSourceRefs(e.source2),c=e?.blending??ae.MULTIPLY,u=e?.opacity??100;var d,p,y,m;e?.mask&&([d,p,y,m]=extractCalculationsSourceRefs(e.mask));const g=(0,_a.applyCalculations)([a,r,t],n,[s,o,i],l,c,u,e.result,e?.mask&&[y,p,d],m),f=await batchPlay([g]);if("error"===f[0]?._obj)throw new DOMError(f[0].message);switch(e.result){case lt.NEWDOCUMENT:return ja.documents[ja.documents.length-1];case lt.NEWCHANNEL:return this.channels[this.channels.length-1];case lt.SELECTION:return;default:{const t=e.result;throw new DOMError(t)}}}get channels(){return new Channels(this.id)}get componentChannels(){validateDocument(this);return getImageModeChannelEnums(this).map((e=>PSChannel(this.id,e)))}get compositeChannels(){return this.componentChannels}get activeChannels(){validateDocument(this);const e=getImageModeChannelEnums(this),t=[(0,xt.getProperties)(xt.ref.selected(),["targetChannels"]),(0,Jr.getPropertiesRange)(["ID"])],[r,n]=batchPlaySync(t);if(!Array.isArray(r.targetChannels)||!Array.isArray(n.list))throw new Error(a.translateUIString(p));return Array.from(r.targetChannels,(t=>{if(!t.hasOwnProperty("_index")||t._index>n.list.length)throw new Error(a.translateUIString("$$$/PSUXP/Error/UnknownActiveChannels=Unknown or unsupported active channels"));const r=n.list[t._index-1];if(r.hasOwnProperty("ID"))return PSChannel(this._id,r.ID);{const r=e[t._index-1];return PSChannel(this._id,r)}}))}set activeChannels(e){if(!Array.isArray(e)||e.length<1)throw new Error(a.translateUIString(p));validateDocument(this),e.forEach((e=>validateChannel(e)));const t=e.map(((e,t)=>(0,Jr.select)(e.activeDocRef,0!==t)));batchPlaySync([(0,Ot.saveDocumentSelection)(),(0,Ot.select)(Ot.ref.id(this.id)),...t])}}const Sa=2.54,va=25.4,ba=72;let Ia=[];function unitDescToPixelUnitValue(e,t){const r=PSDocument(t).resolution;if("pixelsUnit"===e._unit)return e._value;{let t={centimetersUnit:se.CM,millimetersUnit:se.MM,inchesUnit:se.INCHES,picasUnit:se.PICAS,pointsUnit:se.POINTS}[e._unit];return Ia[t][se.PIXELS](e._value,r)}}Ia[se.CM]=[],Ia[se.INCHES]=[],Ia[se.MM]=[],Ia[se.PICAS]=[],Ia[se.POINTS]=[],Ia[se.PIXELS]=[],Ia[se.INCHES][se.CM]=e=>e*Sa,Ia[se.INCHES][se.MM]=e=>e*va,Ia[se.INCHES][se.PICAS]=e=>6*e,Ia[se.INCHES][se.POINTS]=e=>e*ba,Ia[se.INCHES][se.PIXELS]=(e,t)=>e*t,Ia[se.MM][se.CM]=e=>e/10,Ia[se.MM][se.INCHES]=e=>e/va,Ia[se.MM][se.PICAS]=e=>e/va*6,Ia[se.MM][se.POINTS]=e=>e/va*ba,Ia[se.MM][se.PIXELS]=(e,t)=>e/va*t,Ia[se.CM][se.INCHES]=e=>e/Sa,Ia[se.CM][se.MM]=e=>10*e,Ia[se.CM][se.PICAS]=e=>6*e/Sa,Ia[se.CM][se.POINTS]=e=>e/Sa*ba,Ia[se.CM][se.PIXELS]=(e,t)=>e/Sa*t,Ia[se.PICAS][se.INCHES]=e=>e/6,Ia[se.PICAS][se.CM]=e=>e*Sa/6,Ia[se.PICAS][se.MM]=e=>e/6*va,Ia[se.PICAS][se.POINTS]=e=>12*e,Ia[se.PICAS][se.PIXELS]=(e,t)=>e*t/6,Ia[se.POINTS][se.INCHES]=e=>e/ba,Ia[se.POINTS][se.CM]=e=>e/ba*Sa,Ia[se.POINTS][se.MM]=e=>e/ba*va,Ia[se.POINTS][se.PICAS]=e=>e/12,Ia[se.POINTS][se.PIXELS]=(e,t)=>e/ba*t,Ia[se.PIXELS][se.INCHES]=(e,t)=>e/t,Ia[se.PIXELS][se.MM]=(e,t)=>e/t*va,Ia[se.PIXELS][se.CM]=(e,t)=>e/t*Sa,Ia[se.PIXELS][se.PICAS]=(e,t)=>e/t*6,Ia[se.PIXELS][se.POINTS]=(e,t)=>e/t*ba;var Ca=__webpack_require__(817),La=__webpack_require__(979);function validateActionSet(e){if(!validateReference(Ca.iH.id(e.id))){const e=replaceAndTranslate(c,["$$$/Actions/Class/Action=action","$$$/Actions/Class/ActionSet=set"]);throw new Error(e)}}const Ea={};function PSActionSet(e){return Ea.hasOwnProperty(e)||(Ea[e]=new ActionSet(e)),Ea[e]}const Da={};function PSAction(e){return Da.hasOwnProperty(e)||(Da[e]=new Action(e)),Da[e]}class ActionSet{constructor(e){this._id=e}get typename(){return"ActionSet"}get index(){return validateActionSet(this),batchPlaySync((0,Ca.$s)(["itemIndex"],Ca.iH.id(this._id)))[0].itemIndex-1}get id(){return this._id}get name(){validateActionSet(this);return batchPlaySync((0,Ca.$s)(["name"],Ca.iH.id(this._id)))[0].name}set name(e){validateActionSet(this),batchPlaySync((0,Ca.PQ)(Ca.iH.id(this._id),e))}get actions(){validateActionSet(this);return batchPlaySync([(0,La.zM)(["ID"],Ca.iH.id(this._id))])[0].list.map((e=>PSAction(e.ID)))}delete(){validateActionSet(this),batchPlaySync((0,Ca.Od)(Ca.iH.id(this._id)))}duplicate(){validateActionSet(this),batchPlaySync((0,Ca.OM)(Ca.iH.id(this._id)));const e=this.index+2;return PSActionSet(batchPlaySync((0,Ca.$s)(["ID"],Ca.iH.index(e)))[0].ID)}async play(){validateActionSet(this),await batchPlay((0,Ca.hY)(Ca.iH.index(this._id)))}}function validateAction(e){if(!validateReference(La.iH.id(e.id))){const t=replaceAndTranslate(u,["$$$/Actions/Class/Action=action",String(e.id)]);throw new Error(t)}}class Action{constructor(e){this._id=e}get typename(){return"Action"}get id(){return this._id}get index(){return validateAction(this),batchPlaySync((0,La.$s)(["itemIndex"],La.iH.id(this._id)))[0].itemIndex-1}get name(){validateAction(this);return batchPlaySync((0,La.$s)(["name"],La.iH.id(this._id)))[0].name}set name(e){validateAction(this),batchPlaySync((0,La.PQ)(La.iH.id(this._id),e))}get parent(){validateAction(this);const e=batchPlaySync((0,La.$s)(["parentIndex"],La.iH.id(this._id)))[0].parentIndex;return PSActionSet(batchPlaySync((0,Ca.$s)(["ID"],Ca.iH.index(e)))[0].ID)}delete(){validateAction(this),batchPlaySync((0,La.Od)(La.iH.id(this._id)))}async play(){validateAction(this),await batchPlay((0,La.hY)(La.iH.id(this._id)))}duplicate(){validateAction(this),batchPlaySync((0,La.OM)(La.iH.id(this._id)));return PSAction(batchPlaySync((0,La.$s)(["ID"],La.iH.selected()))[0].ID)}}class Documents extends Array{constructor(){return super(),Object.setPrototypeOf(this,Documents.prototype),this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"Documents";if("length"===t){const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.active(),["count"]))[0].count;return e||0}if("getByName"===t)return e=>{const t=batchPlaySync((0,Ot.getProperties)(Ot.ref.name(e),["documentID"]))[0].documentID;return t?PSDocument(t):null};if("add"===t)return ja.createDocument;if("parent"===t)return ja;if("typename"===t)return"Documents";if("function"==typeof Array.prototype[t]){const e=batchPlaySync([(0,Ot.getPropertiesRange)(["documentID"],1,-1)])[0].list;return Array.prototype[t].bind(e.map((e=>PSDocument(e.documentID))))}if(t===parseInt(t).toString()){const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.index(parseInt(t)+1),["documentID"]))[0].documentID;return e?PSDocument(e):void 0}}}}getByName(e){throw new Error(a.translateUIString(L))}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}get typename(){throw new Error(a.translateUIString(L))}async add(e){throw new Error(a.translateUIString(L))}}class TextFont{constructor(e,t,r,a){this._family=e,this._name=t,this._postScriptName=r,this._style=a,this._parent=ja}get family(){return this._family}get name(){return this._name}get parent(){return this._parent}get postScriptName(){return this._postScriptName}get style(){return this._style}get typename(){return"TextFont"}}class TextFonts extends Array{constructor(){return super(),Object.setPrototypeOf(this,TextFonts.prototype),this.proxy=new Proxy([],this.handler()),this.proxy}handler(){return{get:(e,t)=>{if(t===Symbol.toPrimitive)return()=>"TextFonts";if("length"===t){return batchPlaySync((0,ra.getPropertyWithOptions)("fontList"))[0].fontList?.fontName?.length??0}if("getByName"===t)return e=>{const t=batchPlaySync((0,ra.findFontByName)(e))[0];return t.fontPostScriptName?new TextFont(t.fontFamilyName,t.fontName,t.fontPostScriptName,t.fontStyleName):null};if("parent"===t)return ja;if("typename"===t)return"TextFonts";if("function"==typeof Array.prototype[t]){const e=batchPlaySync((0,ra.getPropertyWithOptions)("fontList"))[0].fontList;return Array.prototype[t].bind(e.fontPostScriptName.map(((t,r)=>new TextFont(e.fontFamilyName[r],e.fontName[r],t,e.fontStyleName[r]))))}if(t===parseInt(t).toString()){if(t<0)return null;const e=batchPlaySync((0,ra.getPropertyWithOptions)("fontList"))[0].fontList;return t>e.fontName.length?null:new TextFont(e.fontFamilyName[t],e.fontName[t],e.fontPostScriptName[t],e.fontStyleName[t])}}}}getByName(e){throw new Error(a.translateUIString(L))}get length(){throw new Error(a.translateUIString(L))}get parent(){throw new Error(a.translateUIString(L))}get typename(){throw new Error(a.translateUIString(L))}}class PreferencesBase{constructor(){}getProperty(e){const t=batchPlaySync((0,ra.getProperties)([e]));if("error"===t?.[0]._obj)throw new Error(t?.[0].message);if(!(e in t?.[0]??1))throw new Error(replaceAndTranslate("$$$/PSUXP/Error/MissingPropertyInApp=Property '^0' not found in application class",[e]));return t[0][e]}setProperty(e,t){const r=batchPlaySync((0,ra.setPreferences)(e,t));if("error"===r?.[0]._obj)throw new Error(r?.[0].message)}}const Aa=new class PreferencesGeneral extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesGeneral"}set colorPicker(e){const{type:t,pluginID:r}=e;validateConstant(t,"Constants.ColorPicker",Xe);const a={colorPickerPrefs:{_obj:"colorPickerPrefsClass",pickerKind:{_enum:"pickerKindType",_value:t}}};if(t===Xe.PLUGIN&&(validateBasicType(r,"colorPickerID","string"),a.colorPickerPrefs.pickerID=r),this.setProperty("generalPreferences",a),t===Xe.PLUGIN&&this.colorPicker.type!==Xe.PLUGIN){const e=replaceAndTranslate("$$$/PSUXP/Error/ColorPickerPlugin=Photoshop failed to set plugin color picker. Please make sure that color picker plugin is installed and provided colorPickerID:'^0' is correct.",[r]);throw new Error(e)}}get colorPicker(){const e=this.getProperty("colorPickerPrefs"),t=e.pickerKind._value,r=e.pickerID||null;let a={type:t};return r&&(a.pluginID=r),a}get imageInterpolation(){return this.getProperty("interpolationMethod")._value}set imageInterpolation(e){validateConstant(e,"Constants.InterpolationMethod",G),this.setProperty("generalPreferences",{interpolationMethod:{_enum:"interpolationType",_value:e}})}get exportClipboard(){return this.getProperty("generalPreferences").exportClipboard}set exportClipboard(e){validateBasicType(e,"exportClipboard","boolean"),this.setProperty("generalPreferences",{exportClipboard:e})}get autoUpdateOpenDocuments(){return this.getProperty("generalPreferences").autoUpdateFiles}set autoUpdateOpenDocuments(e){validateBasicType(e,"autoUpdateOpenDocuments","boolean"),this.setProperty("generalPreferences",{autoUpdateFiles:e})}get beepWhenDone(){return this.getProperty("generalPreferences").beepWhenDone}set beepWhenDone(e){validateBasicType(e,"beepWhenDone","boolean"),this.setProperty("generalPreferences",{beepWhenDone:e})}};const wa=new class PreferencesCursors extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesCursors"}get paintingCursors(){const e=this.getProperty("displayPrefs"),t=e.paintingCursors._value;return"fullSize"===e.cursorShape._value?tt.FULLSIZE:t}set paintingCursors(e){validateConstant(e,"Constants.PaintingCursors",tt),this.setProperty("displayPrefs",{paintingCursors:{_enum:"cursorKind",_value:e===tt.FULLSIZE?tt.BRUSHSIZE:e},cursorShape:{_enum:"cursorShape",_value:e===tt.FULLSIZE?"fullSize":"normal"}})}get otherCursors(){return this.getProperty("displayPrefs").otherCursors._value}set otherCursors(e){validateConstant(e,"Constants.OtherPaintingCursors",et),this.setProperty("displayPrefs",{otherCursors:{_enum:"cursorKind",_value:e}})}};const Ta=new class PreferencesFileHandling extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesFileHandling"}get imagePreviews(){return this.getProperty("fileSavePrefs").previewsQuery._value}set imagePreviews(e){validateConstant(e,"Constants.SavePreview",Ke),this.setProperty("fileSavePrefs",{previewsQuery:{_enum:"queryState",_value:e}})}get useLowerCaseExtension(){return this.getProperty("fileSavePrefs").lowerCase}set useLowerCaseExtension(e){validateBasicType(e,"useLowerCaseExtension","boolean"),this.setProperty("fileSavePrefs",{lowerCase:e})}get askBeforeSavingLayeredTIFF(){return this.getProperty("fileSavePrefs").askLayeredTIFF}set askBeforeSavingLayeredTIFF(e){validateBasicType(e,"askBeforeSavingLayeredTIFF","boolean"),this.setProperty("fileSavePrefs",{askLayeredTIFF:e})}get maximizeCompatibility(){return this.getProperty("fileSavePrefs").maximizeCompatibility._value}set maximizeCompatibility(e){validateConstant(e,"Constants.MaximizeCompatibility",Ze),this.setProperty("fileSavePrefs",{maximizeCompatibility:{_enum:"queryState",_value:e}})}get recentFileListMaximum(){return this.getProperty("fileSavePrefs").recentFiles}set recentFileListMaximum(e){validateRange(e=Math.trunc(e),"recentFileListLength",0,100),this.setProperty("fileSavePrefs",{recentFiles:e})}};const Ra=new class PreferencesGuidesGridsAndSlices extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesGuidesGridsAndSlices"}get guideStyle(){return this.getProperty("guidesPrefs").guidesStyle._value}set guideStyle(e){validateConstant(e,"Constants.GuideLineStyle",Je),this.setProperty("guidesPrefs",{guidesStyle:{_enum:"guideGridStyle",_value:e}})}get gridStyle(){return this.getProperty("guidesPrefs").gridStyle._value}set gridStyle(e){validateConstant(e,"Constants.GridLineStyle",Qe),this.setProperty("guidesPrefs",{gridStyle:{_enum:"guideGridStyle",_value:e}})}get gridSubDivisions(){return this.getProperty("guidesPrefs").gradientClassEvent}set gridSubDivisions(e){validateRange(e=Math.trunc(e),"gridSubDivisions",1,100),this.setProperty("guidesPrefs",{gradientClassEvent:e})}get showSliceNumber(){return this.getProperty("guidesPrefs").showSliceNumbers}set showSliceNumber(e){validateBasicType(e,"showSliceNumber","boolean"),this.setProperty("guidesPrefs",{showSliceNumbers:e})}};const Oa=new class PreferencesHistory extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesHistory"}get createFirstSnapshot(){return this.getProperty("historyPreferences").snapshotInitial}set createFirstSnapshot(e){validateBasicType(e,"createFirstSnapshot","boolean"),this.setProperty("historyPreferences",{snapshotInitial:e})}get nonLinearHistory(){return this.getProperty("historyPreferences").nonLinear}set nonLinearHistory(e){validateBasicType(e,"nonLinearHistory","boolean"),this.setProperty("historyPreferences",{nonLinear:e})}get numberOfHistoryStates(){return this.getProperty("historyPreferences").maximumStates}set numberOfHistoryStates(e){validateRange(e=Math.trunc(e),"numberOfHistoryStates",1,1e3),this.setProperty("historyPreferences",{maximumStates:e})}get useHistoryLog(){return this.getProperty("generalPreferences").historyLog}set useHistoryLog(e){validateBasicType(e,"useHistoryLog","boolean"),this.setProperty("generalPreferences",{historyLog:e})}get editLogItems(){return this.getProperty("generalPreferences").editLogItems._value}set editLogItems(e){validateConstant(e,"Constants.EditLogItemsType",Ye),this.setProperty("generalPreferences",{historyLog:!0,editLogItems:{_enum:"saveHistoryToType",_value:e}})}get saveLogItems(){return this.getProperty("generalPreferences").saveHistoryTo._value}set saveLogItems(e){validateConstant(e,"Constants.SaveLogItemsType",at),this.setProperty("historyLogPreferences",{historyLog:!0,saveHistoryTo:{_enum:"saveHistoryToType",_value:e}})}};const xa=new class PreferencesInterface extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesInterface"}get dynamicColorSliders(){return this.getProperty("interfacePrefs").dynamicColorSliders}set dynamicColorSliders(e){validateBasicType(e,"dynamicColorSliders","boolean"),this.setProperty("interfacePrefs",{dynamicColorSliders:e})}get textFontSize(){return this.getProperty("interfacePrefs").paletteEnhancedFontTypeKey._value}set textFontSize(e){validateConstant(e,"Constants.FontSize",nt),this.setProperty("interfacePrefs",{paletteEnhancedFontTypeKey:{_enum:"paletteFontType",_value:e}})}get colorChannelsInColor(){return this.getProperty("interfacePrefs").colorChannels}set colorChannelsInColor(e){validateBasicType(e,"colorChannelsInColor","boolean"),this.setProperty("interfacePrefs",{colorChannels:e})}};const Ma=new class PreferencesPerformance extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesPerformance"}get imageCacheLevels(){return this.getProperty("cachePrefs").numberOfCacheLevels64}set imageCacheLevels(e){validateRange(e=Math.trunc(e),"imageCacheLevels",1,8),this.setProperty("cachePrefs",{numberOfCacheLevels64:e})}get maxRAMuse(){return this.getProperty("cachePrefs").memoryUsagePercent._value}set maxRAMuse(e){validateRange(e=Math.trunc(e),"maxRAMuse",2,99),this.setProperty("cachePrefs",{memoryUsagePercent:{_unit:"percentUnit",_value:e}})}};const Na=new class PreferencesTools extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesTools"}get showToolTips(){return this.getProperty("showToolTips")}set showToolTips(e){validateBasicType(e,"showToolTips","boolean"),this.setProperty("toolsPreferences",{showToolTips:e})}get useShiftKeyForToolSwitch(){return this.getProperty("toolsPreferences").shiftKeyToolSwitch}set useShiftKeyForToolSwitch(e){validateBasicType(e,"useShiftKeyForToolSwitch","boolean"),this.setProperty("toolsPreferences",{shiftKeyToolSwitch:e})}get keyboardZoomResizesWindows(){return this.getProperty("toolsPreferences").resizeWindowsOnZoom}set keyboardZoomResizesWindows(e){validateBasicType(e,"keyboardZoomResizesWindows","boolean"),this.setProperty("toolsPreferences",{resizeWindowsOnZoom:e})}};const ka=new class PreferencesTransparencyAndGamut extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesTransparencyAndGamut"}get gridSize(){return this.getProperty("transparencyPrefs").transparencyGamutPreferences._value}set gridSize(e){validateConstant(e,"Constants.GridSize",qe),this.setProperty("transparencyPrefs",{transparencyGamutPreferences:{_enum:"transparencyGamutPreferences",_value:e}})}get gamutWarningOpacity(){return this.getProperty("transparencyPrefs").opacity._value}set gamutWarningOpacity(e){validateRange(e,"gamutWarningOpacity",1,100),this.setProperty("transparencyPrefs",{opacity:{_unit:"percentUnit",_value:e}})}};const Ba=new class PreferencesType extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesType"}get showTextFeatures(){return this.getProperty("typePreferences").textComposerChoice._value}set showTextFeatures(e){validateConstant(e,"showTextFeatures",st),this.setProperty("generalPreferences",{textComposerChoice:{_enum:"textCompMode",_value:e}})}get showEnglishFontNames(){return this.getProperty("typePreferences").showEnglishFontNames}set showEnglishFontNames(e){validateBasicType(e,"showEnglishFontNames","boolean"),this.setProperty("typePreferences",{showEnglishFontNames:e})}get smartQuotes(){return this.getProperty("typePreferences").smartQuotes}set smartQuotes(e){validateBasicType(e,"smartQuotes","boolean"),this.setProperty("typePreferences",{smartQuotes:e})}};const Ga=new class PreferencesUnitsAndRulers extends PreferencesBase{constructor(){super()}get typename(){return"PreferencesUnitsAndRulers"}get rulerUnits(){return this.getProperty("rulerUnits")._value}set rulerUnits(e){validateConstant(e,"Constants.RulerUnits",ot),this.setProperty("unitsPrefs",{rulerUnits:{_enum:"rulerUnits",_value:e}})}get typeUnits(){return this.getProperty("unitsPrefs").typeUnits._value}set typeUnits(e){validateConstant(e,"Constants.TypeUnits",it),this.setProperty("unitsPrefs",{typeUnits:{_enum:"rulerUnits",_value:e}})}get pointSize(){return!0===this.getProperty("exactPoints")?rt.TRADITIONAL:rt.POSTSCRIPT}set pointSize(e){validateConstant(e,"Constants.PointType",rt),this.setProperty("unitsPrefs",{exactPoints:e===rt.TRADITIONAL})}};const Ua=new class Preferences{constructor(){}get typename(){return"Preferences"}get general(){return Aa}get interface(){return xa}get tools(){return Na}get history(){return Oa}get fileHandling(){return Ta}get performance(){return Ma}get cursors(){return wa}get transparencyAndGamut(){return ka}get unitsAndRulers(){return Ga}get guidesGridsAndSlices(){return Ra}get type(){return Ba}};class Tool{constructor(){}get id(){return this._id}set id(e){this._id=e}get typename(){return"Tool"}}class PathPointInfo{constructor(){this._anchor=void 0,this._kind=void 0,this._leftDirection=void 0,this._rightDirection=void 0}get anchor(){return this._anchor}set anchor(e){this._anchor=e}get kind(){return this._kind}set kind(e){this._kind=e}get leftDirection(){return this._leftDirection}set leftDirection(e){this._leftDirection=e}get rightDirection(){return this._rightDirection}set rightDirection(e){this._rightDirection=e}get typename(){return"PathPointInfo"}}class SubPathInfo{constructor(){this._closed=void 0,this._operation=void 0,this._entireSubPath=void 0}get closed(){return this._closed}set closed(e){this._closed=e}get entireSubPath(){return this._entireSubPath}set entireSubPath(e){this._entireSubPath=e}get operation(){return this._operation}set operation(e){this._operation=e}get typename(){return"SubPathInfo"}}class Photoshop{constructor(){this.currentDialogMode=Se.ERROR,this.Document=Document,this.Layer=Layer,this.ActionSet=ActionSet,this.Action=Action,this.Guide=Guide,this.Photoshop=Photoshop,this.LayerComp=LayerComp,this.PathPointInfo=PathPointInfo,this.SubPathInfo=SubPathInfo,this.ColorSampler=ColorSampler,this.SolidColor=SolidColor}get typename(){return"Photoshop"}set validation(e){!function setValidation(e){B=e}(e)}get preferences(){return Ua}get displayDialogs(){return this.currentDialogMode}set displayDialogs(e){if(e!==Se.ERROR&&e!==Se.ALL&&e!==Se.NONE)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/InvalidDialogMode=Invalid Dialog Mode used."));this.currentDialogMode=e}get activeDocument(){const e=batchPlaySync((0,Ot.getProperties)(Ot.ref.active(),["documentID"]))[0].documentID;return void 0===e?null:PSDocument(e)}set activeDocument(e){validateDocument(e),batchPlaySync((0,Ot.select)(Ot.ref.id(e.id)))}getColorProfiles(e="RGB"){let r;if("Gray"==e?r=[t.getIDFromString("$gStd"),t.getIDFromString("$gOut")]:"RGB"==e&&(r=[t.getIDFromString("$rStd"),t.getIDFromString("$rOut")]),!r)throw new Error(`Invalid color mode: ${e}. Valid options are "RGB" and "Gray".`);return batchPlaySync((0,ra.getPropertyWithOptions)("colorProfileList",{profile:r}))[0].colorProfileList}get currentTool(){const e=batchPlaySync((0,ra.getProperties)(["tool"]))[0].tool._enum;let t=new Tool;return t.id=e,t}get actionTree(){const e=batchPlaySync((0,ra.getProperties)(["numberOfActionSets"]))[0].numberOfActionSets;return batchPlaySync(Array.apply(null,Array(e)).map(((e,t)=>t+1)).map((e=>(0,Ca.$s)(["ID"],Ca.iH.index(e))))).map((e=>PSActionSet(e.ID)))}get documents(){return new Documents}get foregroundColor(){const e=batchPlaySync((0,ra.getProperties)(["foregroundColor"]))[0].foregroundColor;return SolidColor.fromDesc(e)}set foregroundColor(e){batchPlaySync((0,ra.setForegroundColor)(e.base.desc))}convertUnits(e,t,r,n){let i=e;function CheckUnits(e,t){if(!Object.values(se).includes(e))throw new Error(a.translateUIString(t))}if(CheckUnits(t,"$$$/ScriptingSupport/Error/InvalidFromUnits=Invalid from units used."),CheckUnits(r,"$$$/ScriptingSupport/Error/InvalidToUnits=Invalid to units used."),(t==se.PIXELS||r==se.PIXELS)&&null==n)throw new Error(a.translateUIString("$$$/ScriptingSupport/Error/NoResolutionProvided=Resolution needed when converting with pixels."));return t!=r&&(i=Ia[t][r](i,n)),i}get backgroundColor(){const e=batchPlaySync((0,ra.getProperties)(["backgroundColor"]))[0].backgroundColor;return SolidColor.fromDesc(e)}set backgroundColor(e){batchPlaySync((0,ra.setBackgroundColor)(e.base.desc))}get fonts(){return new TextFonts}async showAlert(e){return a.showAlert({message:e})}async batchPlay(e,r){return r?r.skipAnalytics=!1:r={skipAnalytics:!1},t.batchPlay(e,r)}bringToFront(){batchPlaySync([{_obj:"bringToFront"}])}async open(e){const t=e?getCoreModules().UXP.storage.localFileSystem.createSessionToken(e):void 0;return PSDocument((await batchPlay((0,Ot.open)(t)))[0].documentID)}async createDocument(e){let t={};if(void 0===e)t={mode:oe.RGB,width:504,height:360,resolution:300,fill:ce.WHITE};else if(void 0===e.preset){let r;void 0===e.mode&&(e.mode=oe.RGB),void 0===e.resolution&&(e.resolution=300),void 0===e.width&&(e.width=2100),void 0===e.height&&(e.height=1500),e.fill===ce.COLOR&&(void 0===e.fillColor?r={_obj:"RGBColor",red:255,green:255,blue:255}:e.fillColor.hasOwnProperty("_obj")||(r=e.fillColor.base.desc)),void 0===e.fillColor&&void 0===e.fill&&(e.fill=ce.WHITE),t={...e,...r&&{fillColor:r},width:e.width*(72/e.resolution),height:e.height*(72/e.resolution)}}else{let r;e.fillColor&&(r=e.fillColor.hasOwnProperty("_obj")?e.fillColor:e.fillColor.base.desc),t={...e,...r&&{fillColor:r},width:e.width*(72/e.resolution),height:e.height*(72/e.resolution)}}const r=await batchPlay((0,ra.makeDocument)(t));return r?.[0]?.documentID?PSDocument(r[0].documentID):null}}const ja=new Photoshop})();return r.default})(); ^ [2024-06-05_18-14-55][80384][Error] [general] Uncaught JS Exception: uxp://uxp-internal/ps-app.js:1:63669 Error: host terminated at Object.batchPlaySync (uxp://uxp-internal/ps-app.js:1:63670) at batchPlaySync (uxp://uxp-internal/ps-app.js:1:69925) at Photoshop.get activeDocument [as activeDocument] (uxp://uxp-internal/ps-app.js:1:258306) at Object.get $ [as $] (C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:20:24) at Object.get $$ [as $$] (C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:23:24) at Object.layerSelection (C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:469:53) at C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps-presets.js:388:7 at uxp://uxp-internal/domjs_scripts.js:2:137887 at Object._flushPendingAnimationFrameCallbacks (uxp://uxp-internal/domjs_scripts.js:2:137708) at uxp://uxp-internal/runtime_scripts_loader.js:2:28741 [2024-06-05_18-14-55][80384][Debug] [general] return photoshop.app.activeDocument; ^ [2024-06-05_18-14-55][80384][Error] [general] Uncaught JS Exception: C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:20:23 TypeError: Cannot read properties of undefined (reading 'activeDocument') at Object.get $ [as $] (C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:20:24) at Object.get $$ [as $$] (C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:23:24) at Object.layerSelection (C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:469:53) at C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps-presets.js:388:7 at uxp://uxp-internal/domjs_scripts.js:2:137887 at Object._flushPendingAnimationFrameCallbacks (uxp://uxp-internal/domjs_scripts.js:2:137708) at uxp://uxp-internal/runtime_scripts_loader.js:2:28741 [2024-06-05_18-14-55][80384][Debug] [general] return (photoshop.core.translateUIString(str) ?? str).replace(/^\${3}.*\/[^\/=]+=/, ''); ^ [2024-06-05_18-14-55][80384][Error] [general] Uncaught JS Exception: C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:6:25 TypeError: Cannot read properties of undefined (reading 'translateUIString') at Object.translate (C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps.js:6:26) at msg (C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\adjustments.js:18:21) at C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps-adjustments.js:291:13 at Proxy.forEach (uxp://uxp-internal/domjs_scripts.js:2:57777) at C:\Program Files\Adobe\Adobe Photoshop 2023\Required\UXP/\com.adobe.photoshop.adjustments-panel\\ps-adjustments.js:279:52 at uxp://uxp-internal/domjs_scripts.js:2:137887 at Object._flushPendingAnimationFrameCallbacks (uxp://uxp-internal/domjs_scripts.js:2:137708) at uxp://uxp-internal/runtime_scripts_loader.js:2:28741 [2024-06-05_18-14-56][80384][Info] [general] featureTracker_ is being accessed without setting [2024-06-05_18-14-56][153736][Debug] upic::PluginSourceManager Termination started