@goodgamestudios/cxf-webshop 6.16.0-qa.15 → 6.16.0-qa.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +102 -68
- package/dist/webshop-cxf.js +3 -3
- package/dist/webshop-cxf.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,129 +1,163 @@
|
|
|
1
|
-
# [6.16.0-qa.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* refetch unread offer notifications count on close IGS ([f74f0dc](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/f74f0dc8051c141aa3bf67985e341dfcd83ecf30))
|
|
7
|
-
|
|
8
|
-
# [6.16.0-qa.14](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.16.0-qa.13...v6.16.0-qa.14) (2022-03-11)
|
|
1
|
+
# [6.16.0-qa.1](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.15.1...v6.16.0-qa.1) (2022-03-17)
|
|
9
2
|
|
|
10
3
|
|
|
11
4
|
### Bug Fixes
|
|
12
5
|
|
|
6
|
+
* add real-time update when new offer notifications appear ([60b59c0](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/60b59c0b1911f19bcaa6562c8fbe364293c296a2))
|
|
7
|
+
* adopt to a new config structure ([475bf96](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/475bf96945d8415c21346f88618c088da74d250b))
|
|
8
|
+
* criteria encoding ([07c348c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/07c348ce3ac70f0e2bbcf9b3fc2e9d1dd75aa102))
|
|
9
|
+
* fix automated tests ([a7431d2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/a7431d2558e7f952275dad0aadccef5045080d2a))
|
|
13
10
|
* in progress ([2f76f61](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2f76f6105dc7fe3f96161a54cd472f2538d3d968))
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
* integrate debug logging lib ([9912a7a](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/9912a7a50f37c4295e1c4a96363806a0f835c86a))
|
|
12
|
+
* make automations work for gitflow ([c22a0cf](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/c22a0cfd4aa1806ad6c96c9f44b030a525805be1))
|
|
13
|
+
* minor change [no-ci] ([1425f2b](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/1425f2b726053f24b5c6c32fe0f9bd10018f6d7d))
|
|
14
|
+
* refactoring ([34e7338](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/34e7338b4e89f4d280e49aa62fb6a8bee482be28))
|
|
15
|
+
* refactoring ([bbccfa2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/bbccfa2eacb8854f3020e0cfc6633370cc06689f))
|
|
16
|
+
* refactoring & polishing ([405ad02](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/405ad029055124588c4a0cf99f3e99e415bfc5ae))
|
|
17
|
+
* refactoring & polishing ([6cca66f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6cca66f31fc73c2bc7bb7b5553ea7052d8bdb7db))
|
|
18
|
+
* refetch unread offer notifications count on close IGS ([88ad33f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/88ad33fc64bf67a3bdbc9066429b28dc7f6e9785))
|
|
19
|
+
* refetch unread offer notifications count on close IGS ([f74f0dc](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/f74f0dc8051c141aa3bf67985e341dfcd83ecf30))
|
|
20
|
+
* remove stub for urls ([e8ac08c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/e8ac08cb85d05f253aa90cb248756dbc5e8d42fe))
|
|
21
|
+
* update typescript ([6aa3723](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6aa3723819b5c9f7ad5af7058d3ae0a30b7ea128))
|
|
22
|
+
* wip ([7414eee](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/7414eee1af12dc72964cc00eabda0af97fb1207a))
|
|
23
|
+
* wip offer notifications counter ([9550885](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/955088512bea68b3041151446913fe9541a6b64a))
|
|
24
|
+
* wip offer notifications counter ([2cdf54f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2cdf54f4b948d07103b46c938021954554aeee36))
|
|
25
|
+
* wip offer notifications counter ([ed87def](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ed87deff2579d4cd125f80af3b2bbbd50b4a4a1e))
|
|
26
|
+
* wip offer notifications counter ([ac62f9b](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ac62f9b5480dc8ba122e34456b303dd8e6551c9e))
|
|
27
|
+
* wip offer notifications counter ([fb9c320](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/fb9c320b34393325e086e5f3dad8624eee78315e))
|
|
16
28
|
|
|
17
29
|
|
|
18
|
-
###
|
|
30
|
+
### Features
|
|
19
31
|
|
|
20
|
-
*
|
|
32
|
+
* offer notifications counter integration ([591052d](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/591052d213e715aa41f623a53c3a58525134bba8))
|
|
21
33
|
|
|
22
|
-
# [6.16.0-qa.
|
|
34
|
+
# [6.16.0-qa.1](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.15.1...v6.16.0-qa.1) (2022-03-17)
|
|
23
35
|
|
|
24
36
|
|
|
25
37
|
### Bug Fixes
|
|
26
38
|
|
|
39
|
+
* add real-time update when new offer notifications appear ([60b59c0](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/60b59c0b1911f19bcaa6562c8fbe364293c296a2))
|
|
40
|
+
* adopt to a new config structure ([475bf96](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/475bf96945d8415c21346f88618c088da74d250b))
|
|
41
|
+
* criteria encoding ([07c348c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/07c348ce3ac70f0e2bbcf9b3fc2e9d1dd75aa102))
|
|
42
|
+
* fix automated tests ([a7431d2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/a7431d2558e7f952275dad0aadccef5045080d2a))
|
|
43
|
+
* in progress ([2f76f61](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2f76f6105dc7fe3f96161a54cd472f2538d3d968))
|
|
27
44
|
* integrate debug logging lib ([9912a7a](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/9912a7a50f37c4295e1c4a96363806a0f835c86a))
|
|
45
|
+
* make automations work for gitflow ([c22a0cf](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/c22a0cfd4aa1806ad6c96c9f44b030a525805be1))
|
|
28
46
|
* refactoring ([34e7338](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/34e7338b4e89f4d280e49aa62fb6a8bee482be28))
|
|
29
47
|
* refactoring ([bbccfa2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/bbccfa2eacb8854f3020e0cfc6633370cc06689f))
|
|
48
|
+
* refactoring & polishing ([405ad02](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/405ad029055124588c4a0cf99f3e99e415bfc5ae))
|
|
49
|
+
* refactoring & polishing ([6cca66f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6cca66f31fc73c2bc7bb7b5553ea7052d8bdb7db))
|
|
50
|
+
* refetch unread offer notifications count on close IGS ([88ad33f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/88ad33fc64bf67a3bdbc9066429b28dc7f6e9785))
|
|
51
|
+
* refetch unread offer notifications count on close IGS ([f74f0dc](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/f74f0dc8051c141aa3bf67985e341dfcd83ecf30))
|
|
30
52
|
* remove stub for urls ([e8ac08c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/e8ac08cb85d05f253aa90cb248756dbc5e8d42fe))
|
|
31
|
-
|
|
32
|
-
|
|
53
|
+
* update typescript ([6aa3723](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6aa3723819b5c9f7ad5af7058d3ae0a30b7ea128))
|
|
54
|
+
* wip ([7414eee](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/7414eee1af12dc72964cc00eabda0af97fb1207a))
|
|
55
|
+
* wip offer notifications counter ([9550885](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/955088512bea68b3041151446913fe9541a6b64a))
|
|
56
|
+
* wip offer notifications counter ([2cdf54f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2cdf54f4b948d07103b46c938021954554aeee36))
|
|
57
|
+
* wip offer notifications counter ([ed87def](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ed87deff2579d4cd125f80af3b2bbbd50b4a4a1e))
|
|
58
|
+
* wip offer notifications counter ([ac62f9b](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ac62f9b5480dc8ba122e34456b303dd8e6551c9e))
|
|
59
|
+
* wip offer notifications counter ([fb9c320](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/fb9c320b34393325e086e5f3dad8624eee78315e))
|
|
33
60
|
|
|
34
61
|
|
|
35
|
-
###
|
|
62
|
+
### Features
|
|
36
63
|
|
|
37
|
-
*
|
|
64
|
+
* offer notifications counter integration ([591052d](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/591052d213e715aa41f623a53c3a58525134bba8))
|
|
38
65
|
|
|
39
|
-
# [6.16.0-qa.
|
|
66
|
+
# [6.16.0-qa.1](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.15.1...v6.16.0-qa.1) (2022-03-17)
|
|
40
67
|
|
|
41
68
|
|
|
42
69
|
### Bug Fixes
|
|
43
70
|
|
|
71
|
+
* add real-time update when new offer notifications appear ([60b59c0](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/60b59c0b1911f19bcaa6562c8fbe364293c296a2))
|
|
44
72
|
* adopt to a new config structure ([475bf96](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/475bf96945d8415c21346f88618c088da74d250b))
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
73
|
+
* criteria encoding ([07c348c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/07c348ce3ac70f0e2bbcf9b3fc2e9d1dd75aa102))
|
|
74
|
+
* fix automated tests ([a7431d2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/a7431d2558e7f952275dad0aadccef5045080d2a))
|
|
75
|
+
* in progress ([2f76f61](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2f76f6105dc7fe3f96161a54cd472f2538d3d968))
|
|
76
|
+
* integrate debug logging lib ([9912a7a](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/9912a7a50f37c4295e1c4a96363806a0f835c86a))
|
|
77
|
+
* make automations work for gitflow ([c22a0cf](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/c22a0cfd4aa1806ad6c96c9f44b030a525805be1))
|
|
78
|
+
* refactoring ([34e7338](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/34e7338b4e89f4d280e49aa62fb6a8bee482be28))
|
|
79
|
+
* refactoring ([bbccfa2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/bbccfa2eacb8854f3020e0cfc6633370cc06689f))
|
|
80
|
+
* refactoring & polishing ([405ad02](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/405ad029055124588c4a0cf99f3e99e415bfc5ae))
|
|
81
|
+
* refactoring & polishing ([6cca66f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6cca66f31fc73c2bc7bb7b5553ea7052d8bdb7db))
|
|
82
|
+
* refetch unread offer notifications count on close IGS ([88ad33f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/88ad33fc64bf67a3bdbc9066429b28dc7f6e9785))
|
|
83
|
+
* refetch unread offer notifications count on close IGS ([f74f0dc](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/f74f0dc8051c141aa3bf67985e341dfcd83ecf30))
|
|
84
|
+
* remove stub for urls ([e8ac08c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/e8ac08cb85d05f253aa90cb248756dbc5e8d42fe))
|
|
51
85
|
* update typescript ([6aa3723](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6aa3723819b5c9f7ad5af7058d3ae0a30b7ea128))
|
|
52
86
|
* wip ([7414eee](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/7414eee1af12dc72964cc00eabda0af97fb1207a))
|
|
53
|
-
|
|
54
|
-
# [6.16.0-qa.8](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.16.0-qa.7...v6.16.0-qa.8) (2022-03-10)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Bug Fixes
|
|
58
|
-
|
|
59
87
|
* wip offer notifications counter ([9550885](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/955088512bea68b3041151446913fe9541a6b64a))
|
|
60
|
-
|
|
61
|
-
# [6.16.0-qa.7](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.16.0-qa.6...v6.16.0-qa.7) (2022-03-09)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### Bug Fixes
|
|
65
|
-
|
|
66
88
|
* wip offer notifications counter ([2cdf54f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2cdf54f4b948d07103b46c938021954554aeee36))
|
|
67
|
-
|
|
68
|
-
# [6.16.0-qa.6](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.16.0-qa.5...v6.16.0-qa.6) (2022-03-09)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Bug Fixes
|
|
72
|
-
|
|
73
89
|
* wip offer notifications counter ([ed87def](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ed87deff2579d4cd125f80af3b2bbbd50b4a4a1e))
|
|
74
|
-
|
|
75
|
-
# [6.16.0-qa.5](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.16.0-qa.4...v6.16.0-qa.5) (2022-03-09)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### Bug Fixes
|
|
79
|
-
|
|
80
90
|
* wip offer notifications counter ([ac62f9b](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ac62f9b5480dc8ba122e34456b303dd8e6551c9e))
|
|
81
|
-
|
|
82
|
-
# [6.16.0-qa.4](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.16.0-qa.3...v6.16.0-qa.4) (2022-03-09)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
### Bug Fixes
|
|
86
|
-
|
|
87
91
|
* wip offer notifications counter ([fb9c320](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/fb9c320b34393325e086e5f3dad8624eee78315e))
|
|
88
92
|
|
|
89
|
-
# [6.16.0-qa.3](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.16.0-qa.2...v6.16.0-qa.3) (2022-03-09)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
### Bug Fixes
|
|
93
|
-
|
|
94
|
-
* wip offer notifications counter ([8b28b6c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/8b28b6c4f731389fa6a26949c5a68f2c45c04352))
|
|
95
|
-
|
|
96
|
-
# [6.16.0-qa.2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.16.0-qa.1...v6.16.0-qa.2) (2022-03-08)
|
|
97
|
-
|
|
98
93
|
|
|
99
94
|
### Features
|
|
100
95
|
|
|
101
96
|
* offer notifications counter integration ([591052d](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/591052d213e715aa41f623a53c3a58525134bba8))
|
|
102
97
|
|
|
103
|
-
# [6.16.0-qa.1](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.15.1...v6.16.0-qa.1) (2022-03-
|
|
98
|
+
# [6.16.0-qa.1](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.15.1...v6.16.0-qa.1) (2022-03-17)
|
|
104
99
|
|
|
105
100
|
|
|
106
101
|
### Bug Fixes
|
|
107
102
|
|
|
103
|
+
* add real-time update when new offer notifications appear ([60b59c0](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/60b59c0b1911f19bcaa6562c8fbe364293c296a2))
|
|
104
|
+
* adopt to a new config structure ([475bf96](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/475bf96945d8415c21346f88618c088da74d250b))
|
|
105
|
+
* criteria encoding ([07c348c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/07c348ce3ac70f0e2bbcf9b3fc2e9d1dd75aa102))
|
|
106
|
+
* fix automated tests ([a7431d2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/a7431d2558e7f952275dad0aadccef5045080d2a))
|
|
107
|
+
* in progress ([2f76f61](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2f76f6105dc7fe3f96161a54cd472f2538d3d968))
|
|
108
|
+
* integrate debug logging lib ([9912a7a](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/9912a7a50f37c4295e1c4a96363806a0f835c86a))
|
|
108
109
|
* make automations work for gitflow ([c22a0cf](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/c22a0cfd4aa1806ad6c96c9f44b030a525805be1))
|
|
110
|
+
* refactoring ([34e7338](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/34e7338b4e89f4d280e49aa62fb6a8bee482be28))
|
|
111
|
+
* refactoring ([bbccfa2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/bbccfa2eacb8854f3020e0cfc6633370cc06689f))
|
|
112
|
+
* refactoring & polishing ([405ad02](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/405ad029055124588c4a0cf99f3e99e415bfc5ae))
|
|
113
|
+
* refactoring & polishing ([6cca66f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6cca66f31fc73c2bc7bb7b5553ea7052d8bdb7db))
|
|
114
|
+
* refetch unread offer notifications count on close IGS ([88ad33f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/88ad33fc64bf67a3bdbc9066429b28dc7f6e9785))
|
|
115
|
+
* refetch unread offer notifications count on close IGS ([f74f0dc](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/f74f0dc8051c141aa3bf67985e341dfcd83ecf30))
|
|
116
|
+
* remove stub for urls ([e8ac08c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/e8ac08cb85d05f253aa90cb248756dbc5e8d42fe))
|
|
117
|
+
* update typescript ([6aa3723](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6aa3723819b5c9f7ad5af7058d3ae0a30b7ea128))
|
|
118
|
+
* wip ([7414eee](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/7414eee1af12dc72964cc00eabda0af97fb1207a))
|
|
119
|
+
* wip offer notifications counter ([9550885](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/955088512bea68b3041151446913fe9541a6b64a))
|
|
120
|
+
* wip offer notifications counter ([2cdf54f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2cdf54f4b948d07103b46c938021954554aeee36))
|
|
121
|
+
* wip offer notifications counter ([ed87def](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ed87deff2579d4cd125f80af3b2bbbd50b4a4a1e))
|
|
122
|
+
* wip offer notifications counter ([ac62f9b](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ac62f9b5480dc8ba122e34456b303dd8e6551c9e))
|
|
123
|
+
* wip offer notifications counter ([fb9c320](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/fb9c320b34393325e086e5f3dad8624eee78315e))
|
|
109
124
|
|
|
110
125
|
|
|
111
126
|
### Features
|
|
112
127
|
|
|
113
|
-
* offer notifications counter integration ([
|
|
114
|
-
* offer notifications counter integration ([380ac8d](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/380ac8d52b8443302609b7c78744b2efdf1166bb))
|
|
128
|
+
* offer notifications counter integration ([591052d](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/591052d213e715aa41f623a53c3a58525134bba8))
|
|
115
129
|
|
|
116
|
-
# [6.16.0-qa.1](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.15.1...v6.16.0-qa.1) (2022-03-
|
|
130
|
+
# [6.16.0-qa.1](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.15.1...v6.16.0-qa.1) (2022-03-17)
|
|
117
131
|
|
|
118
132
|
|
|
119
133
|
### Bug Fixes
|
|
120
134
|
|
|
135
|
+
* add real-time update when new offer notifications appear ([60b59c0](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/60b59c0b1911f19bcaa6562c8fbe364293c296a2))
|
|
136
|
+
* adopt to a new config structure ([475bf96](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/475bf96945d8415c21346f88618c088da74d250b))
|
|
137
|
+
* criteria encoding ([07c348c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/07c348ce3ac70f0e2bbcf9b3fc2e9d1dd75aa102))
|
|
138
|
+
* fix automated tests ([a7431d2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/a7431d2558e7f952275dad0aadccef5045080d2a))
|
|
139
|
+
* in progress ([2f76f61](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2f76f6105dc7fe3f96161a54cd472f2538d3d968))
|
|
140
|
+
* integrate debug logging lib ([9912a7a](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/9912a7a50f37c4295e1c4a96363806a0f835c86a))
|
|
121
141
|
* make automations work for gitflow ([c22a0cf](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/c22a0cfd4aa1806ad6c96c9f44b030a525805be1))
|
|
142
|
+
* refactoring ([34e7338](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/34e7338b4e89f4d280e49aa62fb6a8bee482be28))
|
|
143
|
+
* refactoring ([bbccfa2](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/bbccfa2eacb8854f3020e0cfc6633370cc06689f))
|
|
144
|
+
* refactoring & polishing ([405ad02](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/405ad029055124588c4a0cf99f3e99e415bfc5ae))
|
|
145
|
+
* refactoring & polishing ([6cca66f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6cca66f31fc73c2bc7bb7b5553ea7052d8bdb7db))
|
|
146
|
+
* refetch unread offer notifications count on close IGS ([88ad33f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/88ad33fc64bf67a3bdbc9066429b28dc7f6e9785))
|
|
147
|
+
* refetch unread offer notifications count on close IGS ([f74f0dc](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/f74f0dc8051c141aa3bf67985e341dfcd83ecf30))
|
|
148
|
+
* remove stub for urls ([e8ac08c](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/e8ac08cb85d05f253aa90cb248756dbc5e8d42fe))
|
|
149
|
+
* update typescript ([6aa3723](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/6aa3723819b5c9f7ad5af7058d3ae0a30b7ea128))
|
|
150
|
+
* wip ([7414eee](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/7414eee1af12dc72964cc00eabda0af97fb1207a))
|
|
151
|
+
* wip offer notifications counter ([9550885](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/955088512bea68b3041151446913fe9541a6b64a))
|
|
152
|
+
* wip offer notifications counter ([2cdf54f](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/2cdf54f4b948d07103b46c938021954554aeee36))
|
|
153
|
+
* wip offer notifications counter ([ed87def](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ed87deff2579d4cd125f80af3b2bbbd50b4a4a1e))
|
|
154
|
+
* wip offer notifications counter ([ac62f9b](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/ac62f9b5480dc8ba122e34456b303dd8e6551c9e))
|
|
155
|
+
* wip offer notifications counter ([fb9c320](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/fb9c320b34393325e086e5f3dad8624eee78315e))
|
|
122
156
|
|
|
123
157
|
|
|
124
158
|
### Features
|
|
125
159
|
|
|
126
|
-
* offer notifications counter integration ([
|
|
160
|
+
* offer notifications counter integration ([591052d](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/commit/591052d213e715aa41f623a53c3a58525134bba8))
|
|
127
161
|
|
|
128
162
|
## [6.15.1](https://gitlab.goodgamestudios.com/cxf/webshop-cxf/compare/v6.15.0...v6.15.1) (2022-01-31)
|
|
129
163
|
|
package/dist/webshop-cxf.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t,n){"use strict";n.r(t),n.d(t,"just",(function(){return r})),n.d(t,"inject",(function(){return u})),n.d(t,"combineReaders",(function(){return f}));var r=function(e){return function(){return e}};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.slice(0,-1),u=t.slice(-1),a=i(u,1),c=a[0];return function(e){return c.apply(void 0,o(r.map((function(t){return t(e)(e)}))))}};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=function(e){return function(t){return Object.entries(e).reduce((function(e,n){var r=s(n,2),o=r[0];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,c({},o,(0,r[1])(t[o])))}),{})}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ggsGetReferrerValue=t.ggsGetQueryParams=t.getDomain=t.createSessionId=t.logError=t.log=t.loadCxf=t.isArgumentNullError=t.throwCxfError=t.tryCatch=t.entityProvider=t.getPing=t.getCxf=t.getTokenAndLanguage=t.formatQueryString=void 0;var u=i(n(14)),a=n(0),c=n(32),s=n(5),f=n(7),l=n(18);t.formatQueryString=function(e){return Object.entries(e).filter((function(e){e[0];var t=e[1];return null!=t})).map((function(e){var t=e[0],n=e[1];return t+"="+encodeURIComponent(n)})).join("&")},t.getTokenAndLanguage=function(e){var t=e.playerId;if(!t)throw new f.ArgumentNullError("playerId",e.playerId);return{token:e.token,zoneId:e.zoneId,locale:e.language,ping:l.encodePing(r(r({},e),{playerId:t}))}},t.getCxf=function(e){var t=e.get();if(!t)throw new f.ArgumentNullError("cxf",t);return t},t.getPing=a.inject((function(e){return e.getStore}),(function(e){return function(){var t=e(),n=t.playerId;if(!n)throw new f.ArgumentNullError("playerId",t.playerId);return l.encodePing(r(r({},t),{playerId:n}))}})),t.entityProvider=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},t.tryCatch=a.inject((function(e){return e.logError}),(function(e){return e.throwCxfError}),(function(e,t){return function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];try{n.apply(void 0,r)}catch(n){e(n),t(n)}}}})),t.throwCxfError=a.inject((function(e){return e.config}),(function(e){return e.cxfProvider}),(function(e,n){var r=e.CXF_ERROR;return function(e){t.getCxf(n).emit(r,e)}})),t.isArgumentNullError=function(e){return"ArgumentNullError"===e.name},t.loadCxf=s.timeout((function(){return n(8)}),1e4);var d=u.default("CXF-WEBSHOP");t.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return d.apply(void 0,o([e],t))},t.logError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.error.apply(console,o(["%c CXF-WEBSHOP: ","background: #ff0000; color: #fff"],e))},t.createSessionId=function(e,t){return e+"-"+t+"-"+c.v4()},t.getDomain=a.inject((function(e){return e.log}),(function(){return function(e){return s.parentDomain(e)}})),t.ggsGetQueryParams=a.inject((function(e){return e.log}),(function(e){return function(){return ggsGetQueryParameters()}})),t.ggsGetReferrerValue=a.inject((function(e){return e.log}),(function(e){return function(){return ggsGetReferrer()}}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.criteriaSelector=t.setStore=t.getStore=t.defaultStore=void 0;var o=n(0);t.defaultStore=function(e){return{playerId:e.playerId,instanceId:e.instanceId,networkId:e.networkId,gameId:e.gameId,gameApi:e.gameApi,language:e.language,token:e.token,gameEvents:[],xp:0,level:0,countryCode:"",lastPurchaseTab:"",subscriptionDisabled:!1,customizationSurfix:"",resolvedCustomizationUrl:"",languageServerBaseUrl:"",webshopLocalePatterns:"",webshopWarmupUrl:"",sourceId:"unknown",unreadOfferNotifsCountUrls:[],unreadOfferNotifsCounter:0}},t.getStore=o.inject((function(e){return e.log}),(function(e){return e.store}),(function(e,t){return function(){return t.get()}})),t.setStore=o.inject((function(e){return e.log}),(function(e){return e.store}),(function(e,t){return function(e){var n=t.get();t.set(r(r({},n),e))}})),t.criteriaSelector=function(e){return{legendLevel:e.legendLevel,level:e.level}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.setCustomizationSurfixReducer=t.CXF_EVENT_SET_CUSTOMIZATION_SURFIX=t.nativeSubscriptionEnableReducer=t.CXF_EVENT_NATIVE_SUBSCRIPTION_ENABLE=t.subscribeToGameEvents=t.createCxfReducers=void 0;var i=n(0),u=n(12),a=n(4),c=i.inject((function(e){return e.getCxf}),(function(e){return e.onOpen}),(function(e){return e.tryCatch}),(function(e){return e.pushHandlers}),(function(e,t,n,r){return function(){var o=e();o.on("cxf.igs.open",n(t)),o.on("cxf.push",n((function(e){var t=e.id,n=e.payload,o=r[t];o&&o(n)})))}}));t.createCxfReducers=function(e){return a.combineReaders(r({common:c,gameEvents:t.subscribeToGameEvents},e))},t.subscribeToGameEvents=i.inject((function(e){return e.log}),(function(e){return e.logError}),(function(e){return e.getCxf}),(function(e){return e.getStore}),(function(e){return e.setStore}),(function(e){return e.preFetchWebshopLocale}),(function(e){return e.fetchUnreadOfferNotificationsCount}),(function(e,t,n,i,a,c,s){return function(){var t=n();t.on(u.CxfEvents.Login,(function(t){var n,s=i().gameEvents,f=t.gameEvents;a(r(r({},t),{gameEvents:o(s.filter((n=f,function(e){return!n.map((function(e){return e.type})).includes(e.type)})),f)})),e(u.CxfEvents.Login,"reducer",i()),c()})),t.on(u.CxfEvents.GameEventUpdate,(function(t){e(u.CxfEvents.GameEventUpdate,t);var n=i(),r=t.map((function(e){return e.type}));a({gameEvents:o(n.gameEvents.filter((function(e){return!r.includes(e.type)})),t)}),e(u.CxfEvents.GameEventUpdate,"reducer",i())})),t.on(u.CxfEvents.GameEventAdd,(function(t){e(u.CxfEvents.GameEventAdd,t);var n=i();a({gameEvents:o(n.gameEvents,[t])}),e(u.CxfEvents.GameEventAdd,"reducer",i())})),t.on(u.CxfEvents.GameEventRemove,(function(t){e(u.CxfEvents.GameEventRemove,t);var n=i();a({gameEvents:n.gameEvents.filter((function(e){return e.type!==t}))}),e(u.CxfEvents.GameEventRemove,"reducer",i())})),t.on(u.CxfEvents.LevelChanged,(function(t){e(u.CxfEvents.LevelChanged,t),a({level:t}),e(u.CxfEvents.LevelChanged,"reducer",i()),s()})),t.on(u.CxfEvents.LegendLevelChanged,(function(t){e(u.CxfEvents.LegendLevelChanged,"legendLevel: "+t),a({legendLevel:t});var n=i();e(u.CxfEvents.LegendLevelChanged,"reducer",n),s()}))}})),t.CXF_EVENT_NATIVE_SUBSCRIPTION_ENABLE="cxf.native.subscription.enable",t.nativeSubscriptionEnableReducer=i.inject((function(e){return e.getCxf}),(function(e){return e.setStore}),(function(e){return e.preResolveConfig}),(function(e,n,r){return function(){e().on(t.CXF_EVENT_NATIVE_SUBSCRIPTION_ENABLE,(function(e){n({subscriptionDisabled:0===e,customizationSurfix:0===e?"no-subscription":""}),r()}))}})),t.CXF_EVENT_SET_CUSTOMIZATION_SURFIX="cxf.set.customization.surfix",t.setCustomizationSurfixReducer=i.inject((function(e){return e.getCxf}),(function(e){return e.getStore}),(function(e){return e.setStore}),(function(e){return e.preResolveConfig}),(function(e,n,r,o){return function(){e().on(t.CXF_EVENT_SET_CUSTOMIZATION_SURFIX,(function(e){e!==n().customizationSurfix&&(r({customizationSurfix:e||""}),o())}))}}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.combineReaders=void 0,t.combineReaders=function(e){return function(t){return Object.entries(e).reduce((function(e,n){var o,i=n[0],u=n[1];return r(r({},e),((o={})[i]=u(t),o))}),{})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parentDomain=t.timestampToHours=t.diffHours=t.decodePayload=t.msToSec=t.validateForNull=t.timeout=void 0;var r=n(7);t.timeout=function(e,t){return function(n){return new Promise((function(r,o){var i=function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}}((function(){o(new Error("Timeout has exceeded "+t))}),t);e(n).then((function(e){r(e),i()})).catch(o)}))}},t.validateForNull=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var o=n[t],i=e[o];if(null==i||Number.isNaN(i))throw new r.ArgumentNullError(o,i)}},t.msToSec=function(e){return Math.floor(e/1e3)},t.decodePayload=function(e){return JSON.parse(atob(e))},t.diffHours=function(e,t){var n=(e.getTime()-t.getTime())/1e3;return Math.abs(Math.round(n/3600))},t.timestampToHours=function(e){return Math.abs(Math.round(e/1e3/3600))},t.parentDomain=function(e){var t=e.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);if(t&&t[1]){var n=t[1].match(/[^.]+\.[^.]+$/);if(n)return n[0]}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createConfig=void 0;var o={CUSTOMIZATION_URL:"https://hotpkg.com/@lemonstand.org/config-goodgamestudios@qa/dist/goodgamestudios-{0}.json",BASE_URL:"https://lemonstand-fe-navigation-dev.public.ggs-ep.com",CXF_DIALOG_OPEN:"cxf.dialog.open",CXF_DIALOG_CLOSE:"cxf.dialog.close",CXF_TRACK_MSG:"cxf.tracking.message",CXF_BTN_CLICK_MSG:"cxf.igs.open",CXF_OPEN_SALES_MSG:"cxf.webshop.sales.open",WEB_SHOP_CALL_TRACK_ID:1181,CXF_ERROR:"cxf.error",CXF_PUSH:"cxf.push"},i={12:{WEBSHOP_EVENT_ID:114},15:{WEBSHOP_EVENT_ID:256},16:{WEBSHOP_EVENT_ID:114}};t.createConfig=function(e){return r(r({},o),i[e])}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentNullError=void 0;var i=function(e){function t(t,n){var r=e.call(this,t+" has null value: "+n)||this;return r.name="ArgumentNullError",r}return o(t,e),t}(Error);t.ArgumentNullError=i},function(e,t,n){"use strict";var r=window&&window.CXF;e.exports=new Promise((function(e,t){if(window||t(),r)return e(r);window.addEventListener("cxf.initialized",(function(t){r=t.cxf,e(r)}),{capture:!0,once:!0,passive:!0})}))},function(e,t,n){!function(){var t;function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r={1:["poker","poker2","poker"],12:["empire","castle","em"],15:["bigfarm","ranch","bf"],16:["empirefourkingdoms","fourkingdoms","e4k"],23:["legendsofhonor",void 0,"loh"],41:["empiremillenniumwars",void 0,"emmw"]},o=Object.entries(r).reduce((function(e,t){var r=n(t,2),o=r[0],i=r[1];return o=parseInt(o,10),e[o]=o,i.forEach((function(t){e[t]=o})),e}),{}),i=function(e,t){return(t=o[t])&&r[t][e]};t={id:function(e){e=e.toString().toLowerCase();var t=o[e];return t&&0|t},name:i.bind(null,0),codename:i.bind(null,1),acronym:i.bind(null,2)},e.exports=t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=n(31),i=n(0),u=n(1),a=n(2),c=n(6),s=n(3);n(8).then((function(e){o.app(r.createEnv({config:i.just(c.createConfig(e.gameId)),cxfProvider:i.just(u.entityProvider(e)),store:i.just(u.entityProvider(a.defaultStore(e))),subscribeToCxf:s.createCxfReducers({nativeSubscription:s.nativeSubscriptionEnableReducer,setCustomizationSurfix:s.setCustomizationSurfixReducer})}))}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createEnv=void 0;var o=n(0),i=n(3),u=n(6),a=n(13),c=n(19),s=n(1),f=n(20),l=n(21),d=n(22),p=n(23),g=n(24),v=n(2),h=n(25),m=n(3),y=n(28),b=n(29),C=n(30);t.createEnv=function(e){return r({config:o.just(u.createConfig("15")),cxfProvider:o.just(s.entityProvider()),getCxf:h.getCxf,subscribeToGameEvents:m.subscribeToGameEvents,isWebshopEnabled:c.isWebshopEnabled,dialogProvider:o.just(s.entityProvider()),store:o.just(s.entityProvider(v.defaultStore({}))),getStore:v.getStore,setStore:v.setStore,log:o.just(s.log),logError:o.just(s.logError),throwCxfError:s.throwCxfError,createDialog:a.createDialog,removeDialog:a.removeDialog,pushHandlers:d.createPushHandlers({}),postMessageHandlers:p.createPostMessageHandlers({}),subscribeToCxf:i.createCxfReducers({}),onOpen:c.onOpen,createIframeUrl:l.createIframeUrl,createCustomizationUrl:l.createCustomizationUrl,trackOpenAction:f.trackOpenAction,trackAction:f.trackAction,loadCxf:o.just(s.loadCxf),tryCatch:s.tryCatch,getStorageData:o.just(g.getStorageData),setStorageData:o.just(g.setStorageData),getPing:s.getPing,getDomain:s.getDomain,ggsGetQueryParams:s.ggsGetQueryParams,ggsGetReferrerValue:s.ggsGetReferrerValue,shopMessageBus:o.just(new y.ShopMessageBus),preResolveConfig:b.preResolveConfig,preFetchWebshopLocale:b.preFetchWebshopLocale,preWarmup:b.preWarmup,fetchUnreadOfferNotificationsCount:C.fetchUnreadOfferNotificationsCount},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CxfEvents=void 0,function(e){e.Token="cxf.token",e.Login="cxf.login",e.Signup="cxf.signup",e.GameEventUpdate="cxf.gameEvent.update",e.GameEventAdd="cxf.gameEvent.add",e.GameEventRemove="cxf.gameEvent.remove",e.XpChanged="cxf.xp.changed",e.LevelChanged="cxf.level.changed",e.LegendLevelChanged="cxf.legendLevel.changed",e.Push="cxf.push"}(t.CxfEvents||(t.CxfEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDialog=t.removeDialog=void 0;var r=n(0),o=n(1);t.removeDialog=r.inject((function(e){return e.config}),(function(e){return e.cxfProvider}),(function(e){return e.fetchUnreadOfferNotificationsCount}),(function(e,t,n){var r=e.CXF_DIALOG_CLOSE;return function(){var e=o.getCxf(t);e.emit(r),e.gameApi.invokeFn("setUnseenOffersCounter",0),n()}})),t.createDialog=r.inject((function(e){return e.config}),(function(e){return e.cxfProvider}),(function(e,t){var n=e.CXF_DIALOG_OPEN;return function(e){o.getCxf(t).emit(n,e)}}))},function(e,t,n){(function(r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(16)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(15))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var c,s=[],f=!1,l=-1;function d(){f&&c&&(f=!1,c.length?s=c.concat(s):l=-1,s.length&&p())}function p(){if(!f){var e=a(d);f=!0;for(var t=s.length;t;){for(c=s,s=[];++l<t;)c&&c[l].run();l=-1,t=s.length}c=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new g(e,t)),1!==s.length||f||a(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){e.exports=function(e){function t(e){let n,o,i,u=null;function a(...e){if(!a.enabled)return;const r=a,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return"%";u++;const i=t.formatters[o];if("function"==typeof i){const t=e[u];n=i.call(r,t),e.splice(u,1),u--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==u?u:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{u=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(17),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,o=60*r,i=24*o;function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePing=t.decodePing=void 0,t.decodePing=function(e){var t=e.split("-");return{gameId:t[0],networkId:t[1],instanceId:t[2],playerId:t[3]}},t.encodePing=function(e){return[e.gameId,e.networkId,e.instanceId,e.playerId].join("-")}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.isWebshopEnabled=t.onOpen=void 0;var o=n(0),i=n(1);t.onOpen=o.inject((function(e){return e.createIframeUrl}),(function(e){return e.createDialog}),(function(e){return e.log}),(function(e){return e.trackOpenAction}),(function(e){return e.getStore}),(function(e){return e.isWebshopEnabled}),(function(e){return e.preWarmup}),(function(e,t,n,o,u,a,c){return function(s){if(void 0===s&&(s={}),n("OnOpen"),a()){var f=u(),l=i.createSessionId(f.gameId,f.playerId||"");o(l);var d=e(r({sid:l,page:f.lastPurchaseTab},s));t(d),c(l)}else n("Webshop is disabled")}})),t.isWebshopEnabled=o.inject((function(e){return e.getStore}),(function(e){return e.config}),(function(e,t){var n=t.WEBSHOP_EVENT_ID;return function(){var t=e().gameEvents.find((function(e){return e.type===n}));return!!t&&t.stopDate>=Date.now()}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trackAction=t.trackOpenAction=void 0;var r=n(0),o=n(5),i=n(1);t.trackOpenAction=r.inject((function(e){return e.config}),(function(e){return e.trackAction}),(function(e){return e.getStore}),(function(e,t,n){var r=e.WEB_SHOP_CALL_TRACK_ID;return function(e){var u=Date.now(),a=i.getTokenAndLanguage(n()).zoneId,c=e;o.validateForNull({sessionId:c});var s=n(),f=s.playerId,l=s.gameId,d=s.networkId,p=s.instanceId,g=s.sourceId;t({eventId:r,date:o.msToSec(u),unixtimeMS:u,sessionId:c,zoneId:a?parseInt(a,10):void 0,playerId:parseInt(f,10),gameId:parseInt(l,10),networkId:parseInt(d,10),instanceId:parseInt(p,10),sourceId:g})}})),t.trackAction=r.inject((function(e){return e.config}),(function(e){return e.cxfProvider}),(function(e,t){var n=e.CXF_TRACK_MSG;return function(e){i.getCxf(t).emit(n,e)}}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createCustomizationUrl=t.createIframeUrl=void 0;var o=n(0),i=n(1),u=n(5),a=n(2),c=n(9);t.createIframeUrl=o.inject((function(e){return e.config}),(function(e){return e.getStore}),(function(e){return e.getDomain}),(function(e){return e.ggsGetQueryParams}),(function(e){return e.ggsGetReferrerValue}),(function(e){return e.createCustomizationUrl}),(function(e,t,n,o,c,s){return function(f){var l=f.page,d=f.route,p=f.sid,g=t(),v=i.getTokenAndLanguage(g),h={token:v.token,zoneId:v.zoneId,locale:v.locale,sid:p||i.createSessionId(g.gameId,g.playerId||"")};u.validateForNull(h);var m=new URLSearchParams(o()),y=i.formatQueryString(r(r({},h),{"lemonstand.customization.url":g.resolvedCustomizationUrl||s(),domain:n(c()),websiteId:m.get("w"),criteria:JSON.stringify(a.criteriaSelector(g)),level:g.level}));return e.BASE_URL+"/?"+y+(l?"#"+l:"")+(d?"--"+d+"--"+Date.now():"")}})),t.createCustomizationUrl=o.inject((function(e){return e.config}),(function(e){return e.getStore}),(function(e,t){return function(){var n=t(),r=""+c.acronym(n.gameId)+(n.customizationSurfix?"-"+n.customizationSurfix:"");return e.CUSTOMIZATION_URL.replace("{0}",r)}}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPushHandlers=t.onWebshopCategoryUpdate=t.LEMONSTAND_CATEGORY_UPDATE=t.onReward=void 0;var o=n(4),i=n(0);t.onReward=i.inject((function(e){return e.log}),(function(e){return e.createDialog}),(function(e){return e.createIframeUrl}),(function(e){return e.setStore}),(function(e,t,n,r){return function(o){var i=o.offerId,u=o.sid,a=o.successUrl,c=o.page;e("OnReward: offerId",i,"Page",c);var s=n({sid:u,route:encodeURIComponent(a),page:c});r({lastPurchaseTab:c}),t(s)}})),t.LEMONSTAND_CATEGORY_UPDATE="lemonstand.category.update",t.onWebshopCategoryUpdate=i.inject((function(e){return e.shopMessageBus}),(function(e){return function(n){var r=n.target,o=n.action,i=n.data;e.post({eventName:t.LEMONSTAND_CATEGORY_UPDATE,target:r,data:{action:o,data:i}})}})),t.createPushHandlers=function(e){var n;return o.combineReaders(r(((n={reward:t.onReward})[t.LEMONSTAND_CATEGORY_UPDATE]=t.onWebshopCategoryUpdate,n),e))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPostMessageHandlers=t.CXF_OPEN_SALES_MSG=t.openSalesPage=void 0;var o=n(4),i=n(0),u=n(1);t.openSalesPage=i.inject((function(e){return e.log}),(function(e){return e.createDialog}),(function(e){return e.createIframeUrl}),(function(e){return e.getStore}),(function(e,t,n,r){return function(){e("OnOpenSalesOffersPage");var o=r(),i=u.createSessionId(o.gameId,o.playerId||""),a=n({page:"sale-offers",sid:i});t(a)}})),t.CXF_OPEN_SALES_MSG="cxf.webshop.sales.open",t.createPostMessageHandlers=function(e){var n;return o.combineReaders(r(((n={})[t.CXF_OPEN_SALES_MSG]=t.openSalesPage,n),e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageData=t.getStorageData=void 0,t.getStorageData=function(){var e=function(){return JSON.parse(localStorage.getItem("webshop"))};return localStorage.getItem("webshop")||localStorage.setItem("webshop",JSON.stringify({growthFund:{lastPopup:{}}})),e()},t.setStorageData=function(e){localStorage.setItem("webshop",JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCxf=t.getCxf=void 0;var r=n(0),o=n(26);t.getCxf=r.inject((function(e){return e.cxfProvider}),(function(e){return function(){var t=e.get();if(t)return t;throw new o.Error("CXF is not loaded")}})),t.setCxf=r.inject((function(e){return e.cxfProvider}),(function(e){return function(t){e.set(t)}}))},function(e,t,n){"use strict";
|
|
1
|
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";n.r(t),n.d(t,"just",(function(){return r})),n.d(t,"inject",(function(){return u})),n.d(t,"combineReaders",(function(){return f}));var r=function(e){return function(){return e}};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.slice(0,-1),u=t.slice(-1),a=i(u,1),c=a[0];return function(e){return c.apply(void 0,o(r.map((function(t){return t(e)(e)}))))}};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=function(e){return function(t){return Object.entries(e).reduce((function(e,n){var r=s(n,2),o=r[0];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,c({},o,(0,r[1])(t[o])))}),{})}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ggsGetReferrerValue=t.ggsGetQueryParams=t.getDomain=t.createSessionId=t.logError=t.log=t.loadCxf=t.isArgumentNullError=t.throwCxfError=t.tryCatch=t.entityProvider=t.getPing=t.getCxf=t.getTokenAndLanguage=t.formatQueryString=void 0;var u=i(n(15)),a=n(0),c=n(33),s=n(6),f=n(8),l=n(19);t.formatQueryString=function(e){return Object.entries(e).filter((function(e){e[0];var t=e[1];return null!=t})).map((function(e){var t=e[0],n=e[1];return t+"="+encodeURIComponent(n)})).join("&")},t.getTokenAndLanguage=function(e){var t=e.playerId;if(!t)throw new f.ArgumentNullError("playerId",e.playerId);return{token:e.token,zoneId:e.zoneId,locale:e.language,ping:l.encodePing(r(r({},e),{playerId:t}))}},t.getCxf=function(e){var t=e.get();if(!t)throw new f.ArgumentNullError("cxf",t);return t},t.getPing=a.inject((function(e){return e.getStore}),(function(e){return function(){var t=e(),n=t.playerId;if(!n)throw new f.ArgumentNullError("playerId",t.playerId);return l.encodePing(r(r({},t),{playerId:n}))}})),t.entityProvider=function(e){var t=e;return{get:function(){return t},set:function(e){t=e}}},t.tryCatch=a.inject((function(e){return e.logError}),(function(e){return e.throwCxfError}),(function(e,t){return function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];try{n.apply(void 0,r)}catch(n){e(n),t(n)}}}})),t.throwCxfError=a.inject((function(e){return e.config}),(function(e){return e.cxfProvider}),(function(e,n){var r=e.CXF_ERROR;return function(e){t.getCxf(n).emit(r,e)}})),t.isArgumentNullError=function(e){return"ArgumentNullError"===e.name},t.loadCxf=s.timeout((function(){return n(9)}),1e4);var d=u.default("CXF-WEBSHOP");t.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return d.apply(void 0,o([e],t))},t.logError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.error.apply(console,o(["%c CXF-WEBSHOP: ","background: #ff0000; color: #fff"],e))},t.createSessionId=function(e,t){return e+"-"+t+"-"+c.v4()},t.getDomain=a.inject((function(e){return e.log}),(function(){return function(e){return s.parentDomain(e)}})),t.ggsGetQueryParams=a.inject((function(e){return e.log}),(function(e){return function(){return ggsGetQueryParameters()}})),t.ggsGetReferrerValue=a.inject((function(e){return e.log}),(function(e){return function(){return ggsGetReferrer()}}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.criteriaSelector=t.setStore=t.getStore=t.defaultStore=void 0;var o=n(0);t.defaultStore=function(e){return{playerId:e.playerId,instanceId:e.instanceId,networkId:e.networkId,gameId:e.gameId,gameApi:e.gameApi,language:e.language,token:e.token,gameEvents:[],xp:0,level:0,countryCode:"",lastPurchaseTab:"",subscriptionDisabled:!1,customizationSurfix:"",resolvedCustomizationUrl:"",languageServerBaseUrl:"",webshopLocalePatterns:"",webshopWarmupUrl:"",sourceId:"unknown",unreadOfferNotifsCountUrls:[],unreadOfferNotifsCounter:0}},t.getStore=o.inject((function(e){return e.log}),(function(e){return e.store}),(function(e,t){return function(){return t.get()}})),t.setStore=o.inject((function(e){return e.log}),(function(e){return e.store}),(function(e,t){return function(e){var n=t.get();t.set(r(r({},n),e))}})),t.criteriaSelector=function(e){return{legendLevel:e.legendLevel,level:e.level}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.setCustomizationSurfixReducer=t.nativeSubscriptionEnableReducer=t.subscribeToGameEvents=t.createCxfReducers=void 0;var i=n(0),u=n(13),a=n(4),c=n(5),s=i.inject((function(e){return e.getCxf}),(function(e){return e.onOpen}),(function(e){return e.tryCatch}),(function(e){return e.pushHandlers}),(function(e,t,n,r){return function(){var o=e();o.on(a.Events.CXF_IGS_BUTTON_CLICK,n(t)),o.on(u.CxfEvents.Push,n((function(e){var t=e.id,n=e.payload,o=r[t];o&&o(n)})))}}));t.createCxfReducers=function(e){return c.combineReaders(r({common:s,gameEvents:t.subscribeToGameEvents},e))},t.subscribeToGameEvents=i.inject((function(e){return e.log}),(function(e){return e.logError}),(function(e){return e.getCxf}),(function(e){return e.getStore}),(function(e){return e.setStore}),(function(e){return e.preFetchWebshopLocale}),(function(e){return e.fetchUnreadOfferNotificationsCount}),(function(e,t,n,i,a,c,s){return function(){var t=n();t.on(u.CxfEvents.Login,(function(t){var n,s=i().gameEvents,f=t.gameEvents;a(r(r({},t),{gameEvents:o(s.filter((n=f,function(e){return!n.map((function(e){return e.type})).includes(e.type)})),f)})),e(u.CxfEvents.Login,"reducer",i()),c()})),t.on(u.CxfEvents.GameEventUpdate,(function(t){e(u.CxfEvents.GameEventUpdate,t);var n=i(),r=t.map((function(e){return e.type}));a({gameEvents:o(n.gameEvents.filter((function(e){return!r.includes(e.type)})),t)}),e(u.CxfEvents.GameEventUpdate,"reducer",i())})),t.on(u.CxfEvents.GameEventAdd,(function(t){e(u.CxfEvents.GameEventAdd,t);var n=i();a({gameEvents:o(n.gameEvents,[t])}),e(u.CxfEvents.GameEventAdd,"reducer",i())})),t.on(u.CxfEvents.GameEventRemove,(function(t){e(u.CxfEvents.GameEventRemove,t);var n=i();a({gameEvents:n.gameEvents.filter((function(e){return e.type!==t}))}),e(u.CxfEvents.GameEventRemove,"reducer",i())})),t.on(u.CxfEvents.LevelChanged,(function(t){e(u.CxfEvents.LevelChanged,t),a({level:t}),e(u.CxfEvents.LevelChanged,"reducer",i()),s()})),t.on(u.CxfEvents.LegendLevelChanged,(function(t){e(u.CxfEvents.LegendLevelChanged,"legendLevel: "+t),a({legendLevel:t});var n=i();e(u.CxfEvents.LegendLevelChanged,"reducer",n),s()}))}})),t.nativeSubscriptionEnableReducer=i.inject((function(e){return e.getCxf}),(function(e){return e.setStore}),(function(e){return e.preResolveConfig}),(function(e,t,n){return function(){e().on(a.Events.CXF_NATIVE_SUBSCRIPTION_ENABLE,(function(e){t({subscriptionDisabled:0===e,customizationSurfix:0===e?"no-subscription":""}),n()}))}})),t.setCustomizationSurfixReducer=i.inject((function(e){return e.getCxf}),(function(e){return e.getStore}),(function(e){return e.setStore}),(function(e){return e.preResolveConfig}),(function(e,t,n,r){return function(){e().on(a.Events.CXF_SET_CUSTOMIZATION_SURFIX,(function(e){e!==t().customizationSurfix&&(n({customizationSurfix:e||""}),r())}))}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Events=void 0,function(e){e.CXF_DIALOG_CLOSE="cxf.dialog.close",e.CXF_IGS_BUTTON_CLICK="cxf.igs.open",e.CXF_NATIVE_SUBSCRIPTION_ENABLE="cxf.native.subscription.enable",e.CXF_OPEN_SALES_MSG="cxf.webshop.sales.open",e.CXF_SET_CUSTOMIZATION_SURFIX="cxf.set.customization.surfix",e.LEMONSTAND_CATEGORY_UPDATE="lemonstand.category.update",e.LEMONSTAND_NOTIFICATIONS_CREATED="lemonstand.notifs.created"}(t.Events||(t.Events={}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.combineReaders=void 0,t.combineReaders=function(e){return function(t){return Object.entries(e).reduce((function(e,n){var o,i=n[0],u=n[1];return r(r({},e),((o={})[i]=u(t),o))}),{})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parentDomain=t.timestampToHours=t.diffHours=t.decodePayload=t.msToSec=t.validateForNull=t.timeout=void 0;var r=n(8);t.timeout=function(e,t){return function(n){return new Promise((function(r,o){var i=function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}}((function(){o(new Error("Timeout has exceeded "+t))}),t);e(n).then((function(e){r(e),i()})).catch(o)}))}},t.validateForNull=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var o=n[t],i=e[o];if(null==i||Number.isNaN(i))throw new r.ArgumentNullError(o,i)}},t.msToSec=function(e){return Math.floor(e/1e3)},t.decodePayload=function(e){return JSON.parse(atob(e))},t.diffHours=function(e,t){var n=(e.getTime()-t.getTime())/1e3;return Math.abs(Math.round(n/3600))},t.timestampToHours=function(e){return Math.abs(Math.round(e/1e3/3600))},t.parentDomain=function(e){var t=e.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);if(t&&t[1]){var n=t[1].match(/[^.]+\.[^.]+$/);if(n)return n[0]}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createConfig=void 0;var o={CUSTOMIZATION_URL:"https://hotpkg.com/@lemonstand.org/config-goodgamestudios@qa/dist/goodgamestudios-{0}.json",BASE_URL:"https://lemonstand-fe-navigation-dev.public.ggs-ep.com",CXF_DIALOG_OPEN:"cxf.dialog.open",CXF_DIALOG_CLOSE:"cxf.dialog.close",CXF_TRACK_MSG:"cxf.tracking.message",CXF_BTN_CLICK_MSG:"cxf.igs.open",CXF_OPEN_SALES_MSG:"cxf.webshop.sales.open",WEB_SHOP_CALL_TRACK_ID:1181,CXF_ERROR:"cxf.error",CXF_PUSH:"cxf.push"},i={12:{WEBSHOP_EVENT_ID:114},15:{WEBSHOP_EVENT_ID:256},16:{WEBSHOP_EVENT_ID:114}};t.createConfig=function(e){return r(r({},o),i[e])}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentNullError=void 0;var i=function(e){function t(t,n){var r=e.call(this,t+" has null value: "+n)||this;return r.name="ArgumentNullError",r}return o(t,e),t}(Error);t.ArgumentNullError=i},function(e,t,n){"use strict";var r=window&&window.CXF;e.exports=new Promise((function(e,t){if(window||t(),r)return e(r);window.addEventListener("cxf.initialized",(function(t){r=t.cxf,e(r)}),{capture:!0,once:!0,passive:!0})}))},function(e,t,n){!function(){var t;function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var r={1:["poker","poker2","poker"],12:["empire","castle","em"],15:["bigfarm","ranch","bf"],16:["empirefourkingdoms","fourkingdoms","e4k"],23:["legendsofhonor",void 0,"loh"],41:["empiremillenniumwars",void 0,"emmw"]},o=Object.entries(r).reduce((function(e,t){var r=n(t,2),o=r[0],i=r[1];return o=parseInt(o,10),e[o]=o,i.forEach((function(t){e[t]=o})),e}),{}),i=function(e,t){return(t=o[t])&&r[t][e]};t={id:function(e){e=e.toString().toLowerCase();var t=o[e];return t&&0|t},name:i.bind(null,0),codename:i.bind(null,1),acronym:i.bind(null,2)},e.exports=t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(0),u=n(1),a=n(2),c=n(7),s=n(3);n(9).then((function(e){o.app(r.createEnv({config:i.just(c.createConfig(e.gameId)),cxfProvider:i.just(u.entityProvider(e)),store:i.just(u.entityProvider(a.defaultStore(e))),subscribeToCxf:s.createCxfReducers({nativeSubscription:s.nativeSubscriptionEnableReducer,setCustomizationSurfix:s.setCustomizationSurfixReducer})}))}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createEnv=void 0;var o=n(0),i=n(3),u=n(7),a=n(14),c=n(20),s=n(1),f=n(21),l=n(22),d=n(23),p=n(24),g=n(25),v=n(2),h=n(26),m=n(3),y=n(29),C=n(30),b=n(31);t.createEnv=function(e){return r({config:o.just(u.createConfig("15")),cxfProvider:o.just(s.entityProvider()),getCxf:h.getCxf,subscribeToGameEvents:m.subscribeToGameEvents,isWebshopEnabled:c.isWebshopEnabled,dialogProvider:o.just(s.entityProvider()),store:o.just(s.entityProvider(v.defaultStore({}))),getStore:v.getStore,setStore:v.setStore,log:o.just(s.log),logError:o.just(s.logError),throwCxfError:s.throwCxfError,createDialog:a.createDialog,removeDialog:a.removeDialog,pushHandlers:d.createPushHandlers({}),postMessageHandlers:p.createPostMessageHandlers({}),subscribeToCxf:i.createCxfReducers({}),onOpen:c.onOpen,createIframeUrl:l.createIframeUrl,createCustomizationUrl:l.createCustomizationUrl,trackOpenAction:f.trackOpenAction,trackAction:f.trackAction,loadCxf:o.just(s.loadCxf),tryCatch:s.tryCatch,getStorageData:o.just(g.getStorageData),setStorageData:o.just(g.setStorageData),getPing:s.getPing,getDomain:s.getDomain,ggsGetQueryParams:s.ggsGetQueryParams,ggsGetReferrerValue:s.ggsGetReferrerValue,shopMessageBus:o.just(new y.ShopMessageBus),preResolveConfig:C.preResolveConfig,preFetchWebshopLocale:C.preFetchWebshopLocale,preWarmup:C.preWarmup,fetchUnreadOfferNotificationsCount:b.fetchUnreadOfferNotificationsCount},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CxfEvents=void 0,function(e){e.Token="cxf.token",e.Login="cxf.login",e.Signup="cxf.signup",e.GameEventUpdate="cxf.gameEvent.update",e.GameEventAdd="cxf.gameEvent.add",e.GameEventRemove="cxf.gameEvent.remove",e.XpChanged="cxf.xp.changed",e.LevelChanged="cxf.level.changed",e.LegendLevelChanged="cxf.legendLevel.changed",e.Push="cxf.push"}(t.CxfEvents||(t.CxfEvents={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDialog=t.removeDialog=void 0;var r=n(0),o=n(1);t.removeDialog=r.inject((function(e){return e.config}),(function(e){return e.cxfProvider}),(function(e,t){var n=e.CXF_DIALOG_CLOSE;return function(){o.getCxf(t).emit(n)}})),t.createDialog=r.inject((function(e){return e.config}),(function(e){return e.cxfProvider}),(function(e,t){var n=e.CXF_DIALOG_OPEN;return function(e){o.getCxf(t).emit(n,e)}}))},function(e,t,n){(function(r){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(17)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n(16))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var c,s=[],f=!1,l=-1;function d(){f&&c&&(f=!1,c.length?s=c.concat(s):l=-1,s.length&&p())}function p(){if(!f){var e=a(d);f=!0;for(var t=s.length;t;){for(c=s,s=[];++l<t;)c&&c[l].run();l=-1,t=s.length}c=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new g(e,t)),1!==s.length||f||a(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){e.exports=function(e){function t(e){let n,o,i,u=null;function a(...e){if(!a.enabled)return;const r=a,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return"%";u++;const i=t.formatters[o];if("function"==typeof i){const t=e[u];n=i.call(r,t),e.splice(u,1),u--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==u?u:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{u=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(18),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,o=60*r,i=24*o;function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodePing=t.decodePing=void 0,t.decodePing=function(e){var t=e.split("-");return{gameId:t[0],networkId:t[1],instanceId:t[2],playerId:t[3]}},t.encodePing=function(e){return[e.gameId,e.networkId,e.instanceId,e.playerId].join("-")}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.isWebshopEnabled=t.onOpen=void 0;var o=n(0),i=n(1);t.onOpen=o.inject((function(e){return e.createIframeUrl}),(function(e){return e.createDialog}),(function(e){return e.log}),(function(e){return e.trackOpenAction}),(function(e){return e.getStore}),(function(e){return e.isWebshopEnabled}),(function(e){return e.preWarmup}),(function(e,t,n,o,u,a,c){return function(s){if(void 0===s&&(s={}),n("OnOpen"),a()){var f=u(),l=i.createSessionId(f.gameId,f.playerId||"");o(l);var d=e(r({sid:l,page:f.lastPurchaseTab},s));t(d),setTimeout((function(){f.gameApi.invokeFn("setUnseenOffersCounter",0)}),500),c(l)}else n("Webshop is disabled")}})),t.isWebshopEnabled=o.inject((function(e){return e.getStore}),(function(e){return e.config}),(function(e,t){var n=t.WEBSHOP_EVENT_ID;return function(){var t=e().gameEvents.find((function(e){return e.type===n}));return!!t&&t.stopDate>=Date.now()}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trackAction=t.trackOpenAction=void 0;var r=n(0),o=n(6),i=n(1);t.trackOpenAction=r.inject((function(e){return e.config}),(function(e){return e.trackAction}),(function(e){return e.getStore}),(function(e,t,n){var r=e.WEB_SHOP_CALL_TRACK_ID;return function(e){var u=Date.now(),a=i.getTokenAndLanguage(n()).zoneId,c=e;o.validateForNull({sessionId:c});var s=n(),f=s.playerId,l=s.gameId,d=s.networkId,p=s.instanceId,g=s.sourceId;t({eventId:r,date:o.msToSec(u),unixtimeMS:u,sessionId:c,zoneId:a?parseInt(a,10):void 0,playerId:parseInt(f,10),gameId:parseInt(l,10),networkId:parseInt(d,10),instanceId:parseInt(p,10),sourceId:g})}})),t.trackAction=r.inject((function(e){return e.config}),(function(e){return e.cxfProvider}),(function(e,t){var n=e.CXF_TRACK_MSG;return function(e){i.getCxf(t).emit(n,e)}}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createCustomizationUrl=t.createIframeUrl=void 0;var o=n(0),i=n(1),u=n(6),a=n(2),c=n(10);t.createIframeUrl=o.inject((function(e){return e.config}),(function(e){return e.getStore}),(function(e){return e.getDomain}),(function(e){return e.ggsGetQueryParams}),(function(e){return e.ggsGetReferrerValue}),(function(e){return e.createCustomizationUrl}),(function(e,t,n,o,c,s){return function(f){var l=f.page,d=f.route,p=f.sid,g=t(),v=i.getTokenAndLanguage(g),h={token:v.token,zoneId:v.zoneId,locale:v.locale,sid:p||i.createSessionId(g.gameId,g.playerId||"")};u.validateForNull(h);var m=new URLSearchParams(o()),y=i.formatQueryString(r(r({},h),{"lemonstand.customization.url":g.resolvedCustomizationUrl||s(),domain:n(c()),websiteId:m.get("w"),criteria:JSON.stringify(a.criteriaSelector(g)),level:g.level}));return e.BASE_URL+"/?"+y+(l?"#"+l:"")+(d?"--"+d+"--"+Date.now():"")}})),t.createCustomizationUrl=o.inject((function(e){return e.config}),(function(e){return e.getStore}),(function(e,t){return function(){var n=t(),r=""+c.acronym(n.gameId)+(n.customizationSurfix?"-"+n.customizationSurfix:"");return e.CUSTOMIZATION_URL.replace("{0}",r)}}))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPushHandlers=t.onLemonstandNotificationsCreated=t.onLemonstandCategoryUpdate=t.onReward=void 0;var o=n(4),i=n(5),u=n(0);t.onReward=u.inject((function(e){return e.log}),(function(e){return e.createDialog}),(function(e){return e.createIframeUrl}),(function(e){return e.setStore}),(function(e,t,n,r){return function(o){var i=o.offerId,u=o.sid,a=o.successUrl,c=o.page;e("OnReward: offerId",i,"Page",c);var s=n({sid:u,route:encodeURIComponent(a),page:c});r({lastPurchaseTab:c}),t(s)}})),t.onLemonstandCategoryUpdate=u.inject((function(e){return e.shopMessageBus}),(function(e){return function(t){var n=t.target,r=t.action,i=t.data;e.post({eventName:o.Events.LEMONSTAND_CATEGORY_UPDATE,target:n,data:{action:r,data:i}})}})),t.onLemonstandNotificationsCreated=u.inject((function(e){return e.log}),(function(e){return e.fetchUnreadOfferNotificationsCount}),(function(e,t){return function(n){var r=n.notifCount;e("onLemonstandNotificationsCreated -> notifCount:",r),r>0&&t()}})),t.createPushHandlers=function(e){var n;return i.combineReaders(r(((n={reward:t.onReward})[o.Events.LEMONSTAND_CATEGORY_UPDATE]=t.onLemonstandCategoryUpdate,n[o.Events.LEMONSTAND_NOTIFICATIONS_CREATED]=t.onLemonstandNotificationsCreated,n),e))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createPostMessageHandlers=t.onLemonstandClose=t.onSalesPageOpen=void 0;var o=n(0),i=n(4),u=n(5),a=n(1);t.onSalesPageOpen=o.inject((function(e){return e.log}),(function(e){return e.createDialog}),(function(e){return e.createIframeUrl}),(function(e){return e.getStore}),(function(e,t,n,r){return function(){e("OnOpenSalesOffersPage");var o=r(),i=a.createSessionId(o.gameId,o.playerId||""),u=n({page:"sale-offers",sid:i});t(u)}})),t.onLemonstandClose=o.inject((function(e){return e.log}),(function(e){return e.getStore}),(function(e){return e.fetchUnreadOfferNotificationsCount}),(function(e,t,n){return function(){var r=t();e("onLemonstandClose",r),r.gameApi.invokeFn("setUnseenOffersCounter",0),n()}})),t.createPostMessageHandlers=function(e){var n;return u.combineReaders(r(((n={})[i.Events.CXF_OPEN_SALES_MSG]=t.onSalesPageOpen,n[i.Events.CXF_DIALOG_CLOSE]=t.onLemonstandClose,n),e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageData=t.getStorageData=void 0,t.getStorageData=function(){var e=function(){return JSON.parse(localStorage.getItem("webshop"))};return localStorage.getItem("webshop")||localStorage.setItem("webshop",JSON.stringify({growthFund:{lastPopup:{}}})),e()},t.setStorageData=function(e){localStorage.setItem("webshop",JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCxf=t.getCxf=void 0;var r=n(0),o=n(27);t.getCxf=r.inject((function(e){return e.cxfProvider}),(function(e){return function(){var t=e.get();if(t)return t;throw new o.Error("CXF is not loaded")}})),t.setCxf=r.inject((function(e){return e.cxfProvider}),(function(e){return function(t){e.set(t)}}))},function(e,t,n){"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2018 Palantir Technologies, Inc.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/Object.defineProperty(t,"__esModule",{value:!0});var r=n(
|
|
17
|
+
*/Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=new Set,i=function(e){function t(n,r){var o=e.call(this,n)||this;return o.message=n,o.innerError=r,o.name=t.NAME,Object.setPrototypeOf(o,t.prototype),o}return r.__extends(t,e),t.NAME="FatalError",t}(Error);t.FatalError=i,t.isError=function(e){return null!=e&&void 0!==e.message},t.showWarningOnce=function(e){o.has(e)||(console.warn(e),o.add(e))},t.showRuleCrashWarning=function(e,t,n){console.warn("The '"+t+"' rule threw an error in '"+n+"':\n"+e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return u})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return s})),n.d(t,"__awaiter",(function(){return f})),n.d(t,"__generator",(function(){return l})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return g})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return h})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return C})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return O})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return S})),n.d(t,"__classPrivateFieldSet",(function(){return I}));
|
|
18
18
|
/*! *****************************************************************************
|
|
19
19
|
Copyright (c) Microsoft Corporation.
|
|
20
20
|
|
|
@@ -29,5 +29,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
29
29
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30
30
|
PERFORMANCE OF THIS SOFTWARE.
|
|
31
31
|
***************************************************************************** */
|
|
32
|
-
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function d(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function p(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,s):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){a("next",e)}function s(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function C(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShopMessageBus=void 0;var r=function(){function e(){}return e.prototype.post=function(e){var t,n=document.getElementById("dialog");n&&"iframe"===n.tagName.toLocaleLowerCase()&&(null===(t=n.contentWindow)||void 0===t||t.postMessage(e,"*"))},e}();t.ShopMessageBus=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preWarmup=t.preFetchWebshopLocale=t.preResolveConfig=void 0;var r=n(0),o=n(9);t.preResolveConfig=r.inject((function(e){return e.log}),(function(e){return e.setStore}),(function(e){return e.createCustomizationUrl}),(function(e,t,n){return function(){if("function"==typeof fetch){var r=n(),o="";fetch(r).then((function(i){if(n()===r)return o=i.url,e("parsed customization url is "+o),t({resolvedCustomizationUrl:o}),i.json()})).then((function(e){e&&t({languageServerBaseUrl:e.langServerBaseUrl||"",webshopLocalePatterns:e.webshopLocalePatterns||"",unreadOfferNotifsCountUrls:e.unreadOfferNotifsCountUrls||[],webshopWarmupUrl:e.webshopWarmupUrl||""})}))}}})),t.preFetchWebshopLocale=r.inject((function(e){return e.log}),(function(e){return e.getStore}),(function(e,t){return function(){if("function"==typeof fetch){var e=t();if(e.language&&e.gameId&&e.languageServerBaseUrl&&e.webshopLocalePatterns){var n=o.name(e.gameId);fetch(e.languageServerBaseUrl+"/"+n+"/"+e.language+"/"+e.webshopLocalePatterns)}}}})),t.preWarmup=r.inject((function(e){return e.log}),(function(e){return e.getStore}),(function(e,t){return function(e){if("function"==typeof fetch){var n=t();if(n.token&&n.webshopWarmupUrl){var r=n.webshopWarmupUrl.replace("{locale}",n.language).replace("{zoneId}",n.zoneId).replace("{sessionId}",e);fetch(r,{headers:{Authorization:"Bearer "+n.token}})}}}}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchUnreadOfferNotificationsCount=void 0;var i=n(0),u=n(2);t.fetchUnreadOfferNotificationsCount=i.inject((function(e){return e.log}),(function(e){return e.logError}),(function(e){return e.getStore}),(function(e){return e.setStore}),(function(e,t,n,i){return function(){var a=n();e("fetchUnreadOfferNotificationsCount"),a.token&&a.unreadOfferNotifsCountUrls.length&&Promise.all(a.unreadOfferNotifsCountUrls.map((function(n){return r(void 0,void 0,void 0,(function(){var r,i,c,s;return o(this,(function(o){switch(o.label){case 0:r=n.replace("{locale}",a.language||"").replace("{sessionId}","_").replace("{zoneId}",a.zoneId||"").replace("{criteria}",encodeURIComponent(JSON.stringify(u.criteriaSelector(a)))),o.label=1;case 1:return o.trys.push([1,5,,6]),e("fetch",r),[4,fetch(r,{headers:{Authorization:"Bearer "+a.token}})];case 2:return(i=o.sent()).ok?[4,i.json()]:[3,4];case 3:return c=o.sent(),[2,Number(null==c?void 0:c.notifCount)];case 4:return[3,6];case 5:return s=o.sent(),t("cannot fetch "+r,s),[3,6];case 6:return[2,0]}}))}))}))).then((function(e){var n=e.reduce((function(e,t){return e+t}),0);i({unreadOfferNotifsCounter:n}),n>0&&a.gameApi.invokeFn("setUnseenOffersCounter",n).catch((function(e){t("setUnseenOffersCounter error:",e)}))}))}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.app=void 0;var r=n(0);t.app=r.inject((function(e){return e.postMessageHandlers}),(function(e){return e.subscribeToCxf}),(function(e){return e.log}),(function(e){return e.tryCatch}),(function(e){return e.preResolveConfig}),(function(e,t,n,r,o){n("App has started"),window.addEventListener("message",r((function(t){var r=t.data;if(r){var o=e[r.name];o&&(n("POST MESSAGE",r),o(r.payload))}}))),Object.entries(t).map((function(e){e[0];(0,e[1])()})),o()}))},function(e,t,n){"use strict";n.r(t),n.d(t,"v1",(function(){return v})),n.d(t,"v3",(function(){return S})),n.d(t,"v4",(function(){return I})),n.d(t,"v5",(function(){return x})),n.d(t,"NIL",(function(){return A})),n.d(t,"version",(function(){return F})),n.d(t,"validate",(function(){return a})),n.d(t,"stringify",(function(){return d})),n.d(t,"parse",(function(){return h}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function i(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=function(e){return"string"==typeof e&&u.test(e)},c=[],s=0;s<256;++s)c.push((s+256).toString(16).substr(1));var f,l,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n},p=0,g=0;var v=function(e,t,n){var r=t&&n||0,o=t||new Array(16),u=(e=e||{}).node||f,a=void 0!==e.clockseq?e.clockseq:l;if(null==u||null==a){var c=e.random||(e.rng||i)();null==u&&(u=f=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=l=16383&(c[6]<<8|c[7]))}var s=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:g+1,h=s-p+(v-g)/1e4;if(h<0&&void 0===e.clockseq&&(a=a+1&16383),(h<0||s>p)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=s,g=v,l=a;var m=(1e4*(268435455&(s+=122192928e5))+v)%4294967296;o[r++]=m>>>24&255,o[r++]=m>>>16&255,o[r++]=m>>>8&255,o[r++]=255&m;var y=s/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var b=0;b<6;++b)o[r+b]=u[b];return t||d(o)};var h=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var m=function(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=h(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(r),u.set(e,r.length),(u=n(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,o){i=i||0;for(var a=0;a<16;++a)o[i+a]=u[a];return o}return d(u)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function C(e,t,n,r,o,i){return b((u=b(b(t,e),b(r,i)))<<(a=o)|u>>>32-a,n);var u,a}function _(e,t,n,r,o,i,u){return C(t&n|~t&r,e,t,o,i,u)}function w(e,t,n,r,o,i,u){return C(t&r|n&~r,e,t,o,i,u)}function O(e,t,n,r,o,i,u){return C(t^n^r,e,t,o,i,u)}function E(e,t,n,r,o,i,u){return C(n^(t|~r),e,t,o,i,u)}var S=m("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var a=n,c=r,s=o,f=i;n=_(n,r,o,i,e[u],7,-680876936),i=_(i,n,r,o,e[u+1],12,-389564586),o=_(o,i,n,r,e[u+2],17,606105819),r=_(r,o,i,n,e[u+3],22,-1044525330),n=_(n,r,o,i,e[u+4],7,-176418897),i=_(i,n,r,o,e[u+5],12,1200080426),o=_(o,i,n,r,e[u+6],17,-1473231341),r=_(r,o,i,n,e[u+7],22,-45705983),n=_(n,r,o,i,e[u+8],7,1770035416),i=_(i,n,r,o,e[u+9],12,-1958414417),o=_(o,i,n,r,e[u+10],17,-42063),r=_(r,o,i,n,e[u+11],22,-1990404162),n=_(n,r,o,i,e[u+12],7,1804603682),i=_(i,n,r,o,e[u+13],12,-40341101),o=_(o,i,n,r,e[u+14],17,-1502002290),r=_(r,o,i,n,e[u+15],22,1236535329),n=w(n,r,o,i,e[u+1],5,-165796510),i=w(i,n,r,o,e[u+6],9,-1069501632),o=w(o,i,n,r,e[u+11],14,643717713),r=w(r,o,i,n,e[u],20,-373897302),n=w(n,r,o,i,e[u+5],5,-701558691),i=w(i,n,r,o,e[u+10],9,38016083),o=w(o,i,n,r,e[u+15],14,-660478335),r=w(r,o,i,n,e[u+4],20,-405537848),n=w(n,r,o,i,e[u+9],5,568446438),i=w(i,n,r,o,e[u+14],9,-1019803690),o=w(o,i,n,r,e[u+3],14,-187363961),r=w(r,o,i,n,e[u+8],20,1163531501),n=w(n,r,o,i,e[u+13],5,-1444681467),i=w(i,n,r,o,e[u+2],9,-51403784),o=w(o,i,n,r,e[u+7],14,1735328473),r=w(r,o,i,n,e[u+12],20,-1926607734),n=O(n,r,o,i,e[u+5],4,-378558),i=O(i,n,r,o,e[u+8],11,-2022574463),o=O(o,i,n,r,e[u+11],16,1839030562),r=O(r,o,i,n,e[u+14],23,-35309556),n=O(n,r,o,i,e[u+1],4,-1530992060),i=O(i,n,r,o,e[u+4],11,1272893353),o=O(o,i,n,r,e[u+7],16,-155497632),r=O(r,o,i,n,e[u+10],23,-1094730640),n=O(n,r,o,i,e[u+13],4,681279174),i=O(i,n,r,o,e[u],11,-358537222),o=O(o,i,n,r,e[u+3],16,-722521979),r=O(r,o,i,n,e[u+6],23,76029189),n=O(n,r,o,i,e[u+9],4,-640364487),i=O(i,n,r,o,e[u+12],11,-421815835),o=O(o,i,n,r,e[u+15],16,530742520),r=O(r,o,i,n,e[u+2],23,-995338651),n=E(n,r,o,i,e[u],6,-198630844),i=E(i,n,r,o,e[u+7],10,1126891415),o=E(o,i,n,r,e[u+14],15,-1416354905),r=E(r,o,i,n,e[u+5],21,-57434055),n=E(n,r,o,i,e[u+12],6,1700485571),i=E(i,n,r,o,e[u+3],10,-1894986606),o=E(o,i,n,r,e[u+10],15,-1051523),r=E(r,o,i,n,e[u+1],21,-2054922799),n=E(n,r,o,i,e[u+8],6,1873313359),i=E(i,n,r,o,e[u+15],10,-30611744),o=E(o,i,n,r,e[u+6],15,-1560198380),r=E(r,o,i,n,e[u+13],21,1309151649),n=E(n,r,o,i,e[u+4],6,-145523070),i=E(i,n,r,o,e[u+11],10,-1120210379),o=E(o,i,n,r,e[u+2],15,718787259),r=E(r,o,i,n,e[u+9],21,-343485551),n=b(n,a),r=b(r,c),o=b(o,s),i=b(i,f)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var I=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return d(r)};function j(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function P(e,t){return e<<t|e>>>32-t}var x=m("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,u=Math.ceil(i/16),a=new Array(u),c=0;c<u;++c){for(var s=new Uint32Array(16),f=0;f<16;++f)s[f]=e[64*c+4*f]<<24|e[64*c+4*f+1]<<16|e[64*c+4*f+2]<<8|e[64*c+4*f+3];a[c]=s}a[u-1][14]=8*(e.length-1)/Math.pow(2,32),a[u-1][14]=Math.floor(a[u-1][14]),a[u-1][15]=8*(e.length-1)&4294967295;for(var l=0;l<u;++l){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=a[l][p];for(var g=16;g<80;++g)d[g]=P(d[g-3]^d[g-8]^d[g-14]^d[g-16],1);for(var v=n[0],h=n[1],m=n[2],y=n[3],b=n[4],C=0;C<80;++C){var _=Math.floor(C/20),w=P(v,5)+j(_,h,m,y)+b+t[_]+d[C]>>>0;b=y,y=m,m=P(h,30)>>>0,h=v,v=w}n[0]=n[0]+v>>>0,n[1]=n[1]+h>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),A="00000000-0000-0000-0000-000000000000";var F=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}]);
|
|
32
|
+
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function d(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function p(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function C(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,s):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){a("next",e)}function s(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShopMessageBus=void 0;var r=function(){function e(){}return e.prototype.post=function(e){var t,n=document.getElementById("dialog");n&&"iframe"===n.tagName.toLocaleLowerCase()&&(null===(t=n.contentWindow)||void 0===t||t.postMessage(e,"*"))},e}();t.ShopMessageBus=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preWarmup=t.preFetchWebshopLocale=t.preResolveConfig=void 0;var r=n(0),o=n(10);t.preResolveConfig=r.inject((function(e){return e.log}),(function(e){return e.setStore}),(function(e){return e.createCustomizationUrl}),(function(e,t,n){return function(){if("function"==typeof fetch){var r=n(),o="";fetch(r).then((function(i){if(n()===r)return o=i.url,e("parsed customization url is "+o),t({resolvedCustomizationUrl:o}),i.json()})).then((function(e){e&&t({languageServerBaseUrl:e.langServerBaseUrl||"",webshopLocalePatterns:e.webshopLocalePatterns||"",unreadOfferNotifsCountUrls:e.unreadOfferNotifsCountUrls||[],webshopWarmupUrl:e.webshopWarmupUrl||""})}))}}})),t.preFetchWebshopLocale=r.inject((function(e){return e.log}),(function(e){return e.getStore}),(function(e,t){return function(){if("function"==typeof fetch){var e=t();if(e.language&&e.gameId&&e.languageServerBaseUrl&&e.webshopLocalePatterns){var n=o.name(e.gameId);fetch(e.languageServerBaseUrl+"/"+n+"/"+e.language+"/"+e.webshopLocalePatterns)}}}})),t.preWarmup=r.inject((function(e){return e.log}),(function(e){return e.getStore}),(function(e,t){return function(e){if("function"==typeof fetch){var n=t();if(n.token&&n.webshopWarmupUrl){var r=n.webshopWarmupUrl.replace("{locale}",n.language).replace("{zoneId}",n.zoneId).replace("{sessionId}",e);fetch(r,{headers:{Authorization:"Bearer "+n.token}})}}}}))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchUnreadOfferNotificationsCount=void 0;var i=n(0),u=n(2);t.fetchUnreadOfferNotificationsCount=i.inject((function(e){return e.log}),(function(e){return e.logError}),(function(e){return e.getStore}),(function(e){return e.setStore}),(function(e,t,n,i){return function(){var a=n();e("fetchUnreadOfferNotificationsCount"),a.token&&a.unreadOfferNotifsCountUrls.length&&Promise.all(a.unreadOfferNotifsCountUrls.map((function(n){return r(void 0,void 0,void 0,(function(){var r,i,c,s;return o(this,(function(o){switch(o.label){case 0:r=n.replace("{locale}",a.language||"").replace("{sessionId}","_").replace("{zoneId}",a.zoneId||"").replace("{criteria}",encodeURIComponent(JSON.stringify(u.criteriaSelector(a)))),o.label=1;case 1:return o.trys.push([1,5,,6]),e("fetch",r),[4,fetch(r,{headers:{Authorization:"Bearer "+a.token}})];case 2:return(i=o.sent()).ok?[4,i.json()]:[3,4];case 3:return c=o.sent(),[2,Number(null==c?void 0:c.notifCount)];case 4:return[3,6];case 5:return s=o.sent(),t("cannot fetch "+r,s),[3,6];case 6:return[2,0]}}))}))}))).then((function(e){var n=e.reduce((function(e,t){return e+t}),0);i({unreadOfferNotifsCounter:n}),n>0&&a.gameApi.invokeFn("setUnseenOffersCounter",n).catch((function(e){t("setUnseenOffersCounter error:",e)}))}))}}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.app=void 0;var r=n(0);t.app=r.inject((function(e){return e.postMessageHandlers}),(function(e){return e.subscribeToCxf}),(function(e){return e.log}),(function(e){return e.tryCatch}),(function(e){return e.preResolveConfig}),(function(e,t,n,r,o){n("App has started"),window.addEventListener("message",r((function(t){var r=t.data;if(r){var o=e[r.name];o&&(n("POST MESSAGE",r),o(r.payload))}}))),Object.entries(t).map((function(e){e[0];(0,e[1])()})),o()}))},function(e,t,n){"use strict";n.r(t),n.d(t,"v1",(function(){return v})),n.d(t,"v3",(function(){return S})),n.d(t,"v4",(function(){return I})),n.d(t,"v5",(function(){return x})),n.d(t,"NIL",(function(){return A})),n.d(t,"version",(function(){return F})),n.d(t,"validate",(function(){return a})),n.d(t,"stringify",(function(){return d})),n.d(t,"parse",(function(){return h}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function i(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=function(e){return"string"==typeof e&&u.test(e)},c=[],s=0;s<256;++s)c.push((s+256).toString(16).substr(1));var f,l,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n},p=0,g=0;var v=function(e,t,n){var r=t&&n||0,o=t||new Array(16),u=(e=e||{}).node||f,a=void 0!==e.clockseq?e.clockseq:l;if(null==u||null==a){var c=e.random||(e.rng||i)();null==u&&(u=f=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=l=16383&(c[6]<<8|c[7]))}var s=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:g+1,h=s-p+(v-g)/1e4;if(h<0&&void 0===e.clockseq&&(a=a+1&16383),(h<0||s>p)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=s,g=v,l=a;var m=(1e4*(268435455&(s+=122192928e5))+v)%4294967296;o[r++]=m>>>24&255,o[r++]=m>>>16&255,o[r++]=m>>>8&255,o[r++]=255&m;var y=s/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var C=0;C<6;++C)o[r+C]=u[C];return t||d(o)};var h=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};var m=function(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=h(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+e.length);if(u.set(r),u.set(e,r.length),(u=n(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,o){i=i||0;for(var a=0;a<16;++a)o[i+a]=u[a];return o}return d(u)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function y(e){return 14+(e+64>>>9<<4)+1}function C(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function b(e,t,n,r,o,i){return C((u=C(C(t,e),C(r,i)))<<(a=o)|u>>>32-a,n);var u,a}function _(e,t,n,r,o,i,u){return b(t&n|~t&r,e,t,o,i,u)}function w(e,t,n,r,o,i,u){return b(t&r|n&~r,e,t,o,i,u)}function O(e,t,n,r,o,i,u){return b(t^n^r,e,t,o,i,u)}function E(e,t,n,r,o,i,u){return b(n^(t|~r),e,t,o,i,u)}var S=m("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var a=n,c=r,s=o,f=i;n=_(n,r,o,i,e[u],7,-680876936),i=_(i,n,r,o,e[u+1],12,-389564586),o=_(o,i,n,r,e[u+2],17,606105819),r=_(r,o,i,n,e[u+3],22,-1044525330),n=_(n,r,o,i,e[u+4],7,-176418897),i=_(i,n,r,o,e[u+5],12,1200080426),o=_(o,i,n,r,e[u+6],17,-1473231341),r=_(r,o,i,n,e[u+7],22,-45705983),n=_(n,r,o,i,e[u+8],7,1770035416),i=_(i,n,r,o,e[u+9],12,-1958414417),o=_(o,i,n,r,e[u+10],17,-42063),r=_(r,o,i,n,e[u+11],22,-1990404162),n=_(n,r,o,i,e[u+12],7,1804603682),i=_(i,n,r,o,e[u+13],12,-40341101),o=_(o,i,n,r,e[u+14],17,-1502002290),r=_(r,o,i,n,e[u+15],22,1236535329),n=w(n,r,o,i,e[u+1],5,-165796510),i=w(i,n,r,o,e[u+6],9,-1069501632),o=w(o,i,n,r,e[u+11],14,643717713),r=w(r,o,i,n,e[u],20,-373897302),n=w(n,r,o,i,e[u+5],5,-701558691),i=w(i,n,r,o,e[u+10],9,38016083),o=w(o,i,n,r,e[u+15],14,-660478335),r=w(r,o,i,n,e[u+4],20,-405537848),n=w(n,r,o,i,e[u+9],5,568446438),i=w(i,n,r,o,e[u+14],9,-1019803690),o=w(o,i,n,r,e[u+3],14,-187363961),r=w(r,o,i,n,e[u+8],20,1163531501),n=w(n,r,o,i,e[u+13],5,-1444681467),i=w(i,n,r,o,e[u+2],9,-51403784),o=w(o,i,n,r,e[u+7],14,1735328473),r=w(r,o,i,n,e[u+12],20,-1926607734),n=O(n,r,o,i,e[u+5],4,-378558),i=O(i,n,r,o,e[u+8],11,-2022574463),o=O(o,i,n,r,e[u+11],16,1839030562),r=O(r,o,i,n,e[u+14],23,-35309556),n=O(n,r,o,i,e[u+1],4,-1530992060),i=O(i,n,r,o,e[u+4],11,1272893353),o=O(o,i,n,r,e[u+7],16,-155497632),r=O(r,o,i,n,e[u+10],23,-1094730640),n=O(n,r,o,i,e[u+13],4,681279174),i=O(i,n,r,o,e[u],11,-358537222),o=O(o,i,n,r,e[u+3],16,-722521979),r=O(r,o,i,n,e[u+6],23,76029189),n=O(n,r,o,i,e[u+9],4,-640364487),i=O(i,n,r,o,e[u+12],11,-421815835),o=O(o,i,n,r,e[u+15],16,530742520),r=O(r,o,i,n,e[u+2],23,-995338651),n=E(n,r,o,i,e[u],6,-198630844),i=E(i,n,r,o,e[u+7],10,1126891415),o=E(o,i,n,r,e[u+14],15,-1416354905),r=E(r,o,i,n,e[u+5],21,-57434055),n=E(n,r,o,i,e[u+12],6,1700485571),i=E(i,n,r,o,e[u+3],10,-1894986606),o=E(o,i,n,r,e[u+10],15,-1051523),r=E(r,o,i,n,e[u+1],21,-2054922799),n=E(n,r,o,i,e[u+8],6,1873313359),i=E(i,n,r,o,e[u+15],10,-30611744),o=E(o,i,n,r,e[u+6],15,-1560198380),r=E(r,o,i,n,e[u+13],21,1309151649),n=E(n,r,o,i,e[u+4],6,-145523070),i=E(i,n,r,o,e[u+11],10,-1120210379),o=E(o,i,n,r,e[u+2],15,718787259),r=E(r,o,i,n,e[u+9],21,-343485551),n=C(n,a),r=C(r,c),o=C(o,s),i=C(i,f)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var I=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return d(r)};function j(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function P(e,t){return e<<t|e>>>32-t}var x=m("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,u=Math.ceil(i/16),a=new Array(u),c=0;c<u;++c){for(var s=new Uint32Array(16),f=0;f<16;++f)s[f]=e[64*c+4*f]<<24|e[64*c+4*f+1]<<16|e[64*c+4*f+2]<<8|e[64*c+4*f+3];a[c]=s}a[u-1][14]=8*(e.length-1)/Math.pow(2,32),a[u-1][14]=Math.floor(a[u-1][14]),a[u-1][15]=8*(e.length-1)&4294967295;for(var l=0;l<u;++l){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=a[l][p];for(var g=16;g<80;++g)d[g]=P(d[g-3]^d[g-8]^d[g-14]^d[g-16],1);for(var v=n[0],h=n[1],m=n[2],y=n[3],C=n[4],b=0;b<80;++b){var _=Math.floor(b/20),w=P(v,5)+j(_,h,m,y)+C+t[_]+d[b]>>>0;C=y,y=m,m=P(h,30)>>>0,h=v,v=w}n[0]=n[0]+v>>>0,n[1]=n[1]+h>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+C>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),A="00000000-0000-0000-0000-000000000000";var F=function(e){if(!a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}]);
|
|
33
33
|
//# sourceMappingURL=webshop-cxf.js.map
|