@everymatrix/casino-integrated-game-page 0.0.290 → 0.0.293

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.
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('fs')) :
3
3
  typeof define === 'function' && define.amd ? define(['fs'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.app = factory(global.require$$0));
5
- }(this, (function (require$$0) { 'use strict';
5
+ })(this, (function (require$$0) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -29,6 +29,14 @@
29
29
  function safe_not_equal(a, b) {
30
30
  return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
31
31
  }
32
+ let src_url_equal_anchor;
33
+ function src_url_equal(element_src, url) {
34
+ if (!src_url_equal_anchor) {
35
+ src_url_equal_anchor = document.createElement('a');
36
+ }
37
+ src_url_equal_anchor.href = url;
38
+ return element_src === src_url_equal_anchor.href;
39
+ }
32
40
  function is_empty(obj) {
33
41
  return Object.keys(obj).length === 0;
34
42
  }
@@ -47,7 +55,6 @@
47
55
  function component_subscribe(component, store, callback) {
48
56
  component.$$.on_destroy.push(subscribe(store, callback));
49
57
  }
50
-
51
58
  function append(target, node) {
52
59
  target.appendChild(node);
53
60
  }
@@ -86,14 +93,19 @@
86
93
  return Array.from(element.childNodes);
87
94
  }
88
95
  function set_style(node, key, value, important) {
89
- node.style.setProperty(key, value, important ? 'important' : '');
96
+ if (value === null) {
97
+ node.style.removeProperty(key);
98
+ }
99
+ else {
100
+ node.style.setProperty(key, value, important ? 'important' : '');
101
+ }
90
102
  }
91
103
  function toggle_class(element, name, toggle) {
92
104
  element.classList[toggle ? 'add' : 'remove'](name);
93
105
  }
94
- function custom_event(type, detail) {
106
+ function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
95
107
  const e = document.createEvent('CustomEvent');
96
- e.initCustomEvent(type, false, false, detail);
108
+ e.initCustomEvent(type, bubbles, cancelable, detail);
97
109
  return e;
98
110
  }
99
111
  function attribute_to_object(attributes) {
@@ -132,22 +144,40 @@
132
144
  function add_render_callback(fn) {
133
145
  render_callbacks.push(fn);
134
146
  }
135
- let flushing = false;
147
+ // flush() calls callbacks in this order:
148
+ // 1. All beforeUpdate callbacks, in order: parents before children
149
+ // 2. All bind:this callbacks, in reverse order: children before parents.
150
+ // 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
151
+ // for afterUpdates called during the initial onMount, which are called in
152
+ // reverse order: children before parents.
153
+ // Since callbacks might update component values, which could trigger another
154
+ // call to flush(), the following steps guard against this:
155
+ // 1. During beforeUpdate, any updated components will be added to the
156
+ // dirty_components array and will cause a reentrant call to flush(). Because
157
+ // the flush index is kept outside the function, the reentrant call will pick
158
+ // up where the earlier call left off and go through all dirty components. The
159
+ // current_component value is saved and restored so that the reentrant call will
160
+ // not interfere with the "parent" flush() call.
161
+ // 2. bind:this callbacks cannot trigger new flush() calls.
162
+ // 3. During afterUpdate, any updated components will NOT have their afterUpdate
163
+ // callback called a second time; the seen_callbacks set, outside the flush()
164
+ // function, guarantees this behavior.
136
165
  const seen_callbacks = new Set();
166
+ let flushidx = 0; // Do *not* move this inside the flush() function
137
167
  function flush() {
138
- if (flushing)
139
- return;
140
- flushing = true;
168
+ const saved_component = current_component;
141
169
  do {
142
170
  // first, call beforeUpdate functions
143
171
  // and update components
144
- for (let i = 0; i < dirty_components.length; i += 1) {
145
- const component = dirty_components[i];
172
+ while (flushidx < dirty_components.length) {
173
+ const component = dirty_components[flushidx];
174
+ flushidx++;
146
175
  set_current_component(component);
147
176
  update(component.$$);
148
177
  }
149
178
  set_current_component(null);
150
179
  dirty_components.length = 0;
180
+ flushidx = 0;
151
181
  while (binding_callbacks.length)
152
182
  binding_callbacks.pop()();
153
183
  // then, once components are updated, call
@@ -167,8 +197,8 @@
167
197
  flush_callbacks.pop()();
168
198
  }
169
199
  update_scheduled = false;
170
- flushing = false;
171
200
  seen_callbacks.clear();
201
+ set_current_component(saved_component);
172
202
  }
173
203
  function update($$) {
174
204
  if ($$.fragment !== null) {
@@ -232,7 +262,7 @@
232
262
  }
233
263
  component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
234
264
  }
235
- function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {
265
+ function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
236
266
  const parent_component = current_component;
237
267
  set_current_component(component);
238
268
  const $$ = component.$$ = {
@@ -249,12 +279,14 @@
249
279
  on_disconnect: [],
250
280
  before_update: [],
251
281
  after_update: [],
252
- context: new Map(parent_component ? parent_component.$$.context : options.context || []),
282
+ context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
253
283
  // everything else
254
284
  callbacks: blank_object(),
255
285
  dirty,
256
- skip_bound: false
286
+ skip_bound: false,
287
+ root: options.target || parent_component.$$.root
257
288
  };
289
+ append_styles && append_styles($$.root);
258
290
  let ready = false;
259
291
  $$.ctx = instance
260
292
  ? instance(component, options.props || {}, (i, ret, ...rest) => {
@@ -338,7 +370,7 @@
338
370
  }
339
371
 
340
372
  function dispatch_dev(type, detail) {
341
- document.dispatchEvent(custom_event(type, Object.assign({ version: '3.37.0' }, detail)));
373
+ document.dispatchEvent(custom_event(type, Object.assign({ version: '3.48.0' }, detail), { bubbles: true }));
342
374
  }
343
375
  function append_dev(target, node) {
344
376
  dispatch_dev('SvelteDOMInsert', { target, node });
@@ -1016,7 +1048,7 @@
1016
1048
 
1017
1049
  var fetchNpmBrowserify = self.fetch.bind(self);
1018
1050
 
1019
- /*! *****************************************************************************
1051
+ /******************************************************************************
1020
1052
  Copyright (c) Microsoft Corporation.
1021
1053
 
1022
1054
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1076,10 +1108,14 @@
1076
1108
  return ar;
1077
1109
  }
1078
1110
 
1079
- function __spreadArray$1(to, from) {
1080
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
1081
- to[j] = from[i];
1082
- return to;
1111
+ function __spreadArray$1(to, from, pack) {
1112
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1113
+ if (ar || !(i in from)) {
1114
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1115
+ ar[i] = from[i];
1116
+ }
1117
+ }
1118
+ return to.concat(ar || Array.prototype.slice.call(from));
1083
1119
  }
1084
1120
 
1085
1121
  function isFunction(value) {
@@ -1120,7 +1156,7 @@
1120
1156
  this.initialTeardown = initialTeardown;
1121
1157
  this.closed = false;
1122
1158
  this._parentage = null;
1123
- this._teardowns = null;
1159
+ this._finalizers = null;
1124
1160
  }
1125
1161
  Subscription.prototype.unsubscribe = function () {
1126
1162
  var e_1, _a, e_2, _b;
@@ -1149,23 +1185,23 @@
1149
1185
  _parentage.remove(this);
1150
1186
  }
1151
1187
  }
1152
- var initialTeardown = this.initialTeardown;
1153
- if (isFunction(initialTeardown)) {
1188
+ var initialFinalizer = this.initialTeardown;
1189
+ if (isFunction(initialFinalizer)) {
1154
1190
  try {
1155
- initialTeardown();
1191
+ initialFinalizer();
1156
1192
  }
1157
1193
  catch (e) {
1158
1194
  errors = e instanceof UnsubscriptionError ? e.errors : [e];
1159
1195
  }
1160
1196
  }
1161
- var _teardowns = this._teardowns;
1162
- if (_teardowns) {
1163
- this._teardowns = null;
1197
+ var _finalizers = this._finalizers;
1198
+ if (_finalizers) {
1199
+ this._finalizers = null;
1164
1200
  try {
1165
- for (var _teardowns_1 = __values(_teardowns), _teardowns_1_1 = _teardowns_1.next(); !_teardowns_1_1.done; _teardowns_1_1 = _teardowns_1.next()) {
1166
- var teardown_1 = _teardowns_1_1.value;
1201
+ for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
1202
+ var finalizer = _finalizers_1_1.value;
1167
1203
  try {
1168
- execTeardown(teardown_1);
1204
+ execFinalizer(finalizer);
1169
1205
  }
1170
1206
  catch (err) {
1171
1207
  errors = errors !== null && errors !== void 0 ? errors : [];
@@ -1181,7 +1217,7 @@
1181
1217
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
1182
1218
  finally {
1183
1219
  try {
1184
- if (_teardowns_1_1 && !_teardowns_1_1.done && (_b = _teardowns_1.return)) _b.call(_teardowns_1);
1220
+ if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);
1185
1221
  }
1186
1222
  finally { if (e_2) throw e_2.error; }
1187
1223
  }
@@ -1195,7 +1231,7 @@
1195
1231
  var _a;
1196
1232
  if (teardown && teardown !== this) {
1197
1233
  if (this.closed) {
1198
- execTeardown(teardown);
1234
+ execFinalizer(teardown);
1199
1235
  }
1200
1236
  else {
1201
1237
  if (teardown instanceof Subscription) {
@@ -1204,7 +1240,7 @@
1204
1240
  }
1205
1241
  teardown._addParent(this);
1206
1242
  }
1207
- (this._teardowns = (_a = this._teardowns) !== null && _a !== void 0 ? _a : []).push(teardown);
1243
+ (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
1208
1244
  }
1209
1245
  }
1210
1246
  };
@@ -1226,8 +1262,8 @@
1226
1262
  }
1227
1263
  };
1228
1264
  Subscription.prototype.remove = function (teardown) {
1229
- var _teardowns = this._teardowns;
1230
- _teardowns && arrRemove(_teardowns, teardown);
1265
+ var _finalizers = this._finalizers;
1266
+ _finalizers && arrRemove(_finalizers, teardown);
1231
1267
  if (teardown instanceof Subscription) {
1232
1268
  teardown._removeParent(this);
1233
1269
  }
@@ -1244,12 +1280,12 @@
1244
1280
  return (value instanceof Subscription ||
1245
1281
  (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
1246
1282
  }
1247
- function execTeardown(teardown) {
1248
- if (isFunction(teardown)) {
1249
- teardown();
1283
+ function execFinalizer(finalizer) {
1284
+ if (isFunction(finalizer)) {
1285
+ finalizer();
1250
1286
  }
1251
1287
  else {
1252
- teardown.unsubscribe();
1288
+ finalizer.unsubscribe();
1253
1289
  }
1254
1290
  }
1255
1291
 
@@ -1262,15 +1298,20 @@
1262
1298
  };
1263
1299
 
1264
1300
  var timeoutProvider = {
1265
- setTimeout: function () {
1301
+ setTimeout: function (handler, timeout) {
1266
1302
  var args = [];
1267
- for (var _i = 0; _i < arguments.length; _i++) {
1268
- args[_i] = arguments[_i];
1303
+ for (var _i = 2; _i < arguments.length; _i++) {
1304
+ args[_i - 2] = arguments[_i];
1305
+ }
1306
+ var delegate = timeoutProvider.delegate;
1307
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
1308
+ return delegate.setTimeout.apply(delegate, __spreadArray$1([handler, timeout], __read(args)));
1269
1309
  }
1270
- return (setTimeout).apply(void 0, __spreadArray$1([], __read(args)));
1310
+ return setTimeout.apply(void 0, __spreadArray$1([handler, timeout], __read(args)));
1271
1311
  },
1272
1312
  clearTimeout: function (handle) {
1273
- return (clearTimeout)(handle);
1313
+ var delegate = timeoutProvider.delegate;
1314
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
1274
1315
  },
1275
1316
  delegate: undefined,
1276
1317
  };
@@ -1285,8 +1326,23 @@
1285
1326
 
1286
1327
  function noop() { }
1287
1328
 
1329
+ var context = null;
1288
1330
  function errorContext(cb) {
1289
- {
1331
+ if (config.useDeprecatedSynchronousErrorHandling) {
1332
+ var isRoot = !context;
1333
+ if (isRoot) {
1334
+ context = { errorThrown: false, error: null };
1335
+ }
1336
+ cb();
1337
+ if (isRoot) {
1338
+ var _a = context, errorThrown = _a.errorThrown, error = _a.error;
1339
+ context = null;
1340
+ if (errorThrown) {
1341
+ throw error;
1342
+ }
1343
+ }
1344
+ }
1345
+ else {
1290
1346
  cb();
1291
1347
  }
1292
1348
  }
@@ -1358,52 +1414,88 @@
1358
1414
  };
1359
1415
  return Subscriber;
1360
1416
  }(Subscription));
1417
+ var _bind = Function.prototype.bind;
1418
+ function bind(fn, thisArg) {
1419
+ return _bind.call(fn, thisArg);
1420
+ }
1421
+ var ConsumerObserver = (function () {
1422
+ function ConsumerObserver(partialObserver) {
1423
+ this.partialObserver = partialObserver;
1424
+ }
1425
+ ConsumerObserver.prototype.next = function (value) {
1426
+ var partialObserver = this.partialObserver;
1427
+ if (partialObserver.next) {
1428
+ try {
1429
+ partialObserver.next(value);
1430
+ }
1431
+ catch (error) {
1432
+ handleUnhandledError(error);
1433
+ }
1434
+ }
1435
+ };
1436
+ ConsumerObserver.prototype.error = function (err) {
1437
+ var partialObserver = this.partialObserver;
1438
+ if (partialObserver.error) {
1439
+ try {
1440
+ partialObserver.error(err);
1441
+ }
1442
+ catch (error) {
1443
+ handleUnhandledError(error);
1444
+ }
1445
+ }
1446
+ else {
1447
+ handleUnhandledError(err);
1448
+ }
1449
+ };
1450
+ ConsumerObserver.prototype.complete = function () {
1451
+ var partialObserver = this.partialObserver;
1452
+ if (partialObserver.complete) {
1453
+ try {
1454
+ partialObserver.complete();
1455
+ }
1456
+ catch (error) {
1457
+ handleUnhandledError(error);
1458
+ }
1459
+ }
1460
+ };
1461
+ return ConsumerObserver;
1462
+ }());
1361
1463
  var SafeSubscriber = (function (_super) {
1362
1464
  __extends$1(SafeSubscriber, _super);
1363
1465
  function SafeSubscriber(observerOrNext, error, complete) {
1364
1466
  var _this = _super.call(this) || this;
1365
- var next;
1366
- if (isFunction(observerOrNext)) {
1367
- next = observerOrNext;
1467
+ var partialObserver;
1468
+ if (isFunction(observerOrNext) || !observerOrNext) {
1469
+ partialObserver = {
1470
+ next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,
1471
+ error: error !== null && error !== void 0 ? error : undefined,
1472
+ complete: complete !== null && complete !== void 0 ? complete : undefined,
1473
+ };
1368
1474
  }
1369
- else if (observerOrNext) {
1370
- (next = observerOrNext.next, error = observerOrNext.error, complete = observerOrNext.complete);
1475
+ else {
1371
1476
  var context_1;
1372
1477
  if (_this && config.useDeprecatedNextContext) {
1373
1478
  context_1 = Object.create(observerOrNext);
1374
1479
  context_1.unsubscribe = function () { return _this.unsubscribe(); };
1480
+ partialObserver = {
1481
+ next: observerOrNext.next && bind(observerOrNext.next, context_1),
1482
+ error: observerOrNext.error && bind(observerOrNext.error, context_1),
1483
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
1484
+ };
1375
1485
  }
1376
1486
  else {
1377
- context_1 = observerOrNext;
1487
+ partialObserver = observerOrNext;
1378
1488
  }
1379
- next = next === null || next === void 0 ? void 0 : next.bind(context_1);
1380
- error = error === null || error === void 0 ? void 0 : error.bind(context_1);
1381
- complete = complete === null || complete === void 0 ? void 0 : complete.bind(context_1);
1382
1489
  }
1383
- _this.destination = {
1384
- next: next ? wrapForErrorHandling(next) : noop,
1385
- error: wrapForErrorHandling(error !== null && error !== void 0 ? error : defaultErrorHandler),
1386
- complete: complete ? wrapForErrorHandling(complete) : noop,
1387
- };
1490
+ _this.destination = new ConsumerObserver(partialObserver);
1388
1491
  return _this;
1389
1492
  }
1390
1493
  return SafeSubscriber;
1391
1494
  }(Subscriber));
1392
- function wrapForErrorHandling(handler, instance) {
1393
- return function () {
1394
- var args = [];
1395
- for (var _i = 0; _i < arguments.length; _i++) {
1396
- args[_i] = arguments[_i];
1397
- }
1398
- try {
1399
- handler.apply(void 0, __spreadArray$1([], __read(args)));
1400
- }
1401
- catch (err) {
1402
- {
1403
- reportUnhandledError(err);
1404
- }
1405
- }
1406
- };
1495
+ function handleUnhandledError(error) {
1496
+ {
1497
+ reportUnhandledError(error);
1498
+ }
1407
1499
  }
1408
1500
  function defaultErrorHandler(err) {
1409
1501
  throw err;
@@ -1473,16 +1565,20 @@
1473
1565
  var _this = this;
1474
1566
  promiseCtor = getPromiseCtor(promiseCtor);
1475
1567
  return new promiseCtor(function (resolve, reject) {
1476
- var subscription;
1477
- subscription = _this.subscribe(function (value) {
1478
- try {
1479
- next(value);
1480
- }
1481
- catch (err) {
1482
- reject(err);
1483
- subscription === null || subscription === void 0 ? void 0 : subscription.unsubscribe();
1484
- }
1485
- }, reject, resolve);
1568
+ var subscriber = new SafeSubscriber({
1569
+ next: function (value) {
1570
+ try {
1571
+ next(value);
1572
+ }
1573
+ catch (err) {
1574
+ reject(err);
1575
+ subscriber.unsubscribe();
1576
+ }
1577
+ },
1578
+ error: reject,
1579
+ complete: resolve,
1580
+ });
1581
+ _this.subscribe(subscriber);
1486
1582
  });
1487
1583
  };
1488
1584
  Observable.prototype._subscribe = function (subscriber) {
@@ -1536,6 +1632,7 @@
1536
1632
  function Subject() {
1537
1633
  var _this = _super.call(this) || this;
1538
1634
  _this.closed = false;
1635
+ _this.currentObservers = null;
1539
1636
  _this.observers = [];
1540
1637
  _this.isStopped = false;
1541
1638
  _this.hasError = false;
@@ -1558,17 +1655,19 @@
1558
1655
  var e_1, _a;
1559
1656
  _this._throwIfClosed();
1560
1657
  if (!_this.isStopped) {
1561
- var copy = _this.observers.slice();
1658
+ if (!_this.currentObservers) {
1659
+ _this.currentObservers = Array.from(_this.observers);
1660
+ }
1562
1661
  try {
1563
- for (var copy_1 = __values(copy), copy_1_1 = copy_1.next(); !copy_1_1.done; copy_1_1 = copy_1.next()) {
1564
- var observer = copy_1_1.value;
1662
+ for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
1663
+ var observer = _c.value;
1565
1664
  observer.next(value);
1566
1665
  }
1567
1666
  }
1568
1667
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
1569
1668
  finally {
1570
1669
  try {
1571
- if (copy_1_1 && !copy_1_1.done && (_a = copy_1.return)) _a.call(copy_1);
1670
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1572
1671
  }
1573
1672
  finally { if (e_1) throw e_1.error; }
1574
1673
  }
@@ -1604,7 +1703,7 @@
1604
1703
  };
1605
1704
  Subject.prototype.unsubscribe = function () {
1606
1705
  this.isStopped = this.closed = true;
1607
- this.observers = null;
1706
+ this.observers = this.currentObservers = null;
1608
1707
  };
1609
1708
  Object.defineProperty(Subject.prototype, "observed", {
1610
1709
  get: function () {
@@ -1624,10 +1723,17 @@
1624
1723
  return this._innerSubscribe(subscriber);
1625
1724
  };
1626
1725
  Subject.prototype._innerSubscribe = function (subscriber) {
1726
+ var _this = this;
1627
1727
  var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
1628
- return hasError || isStopped
1629
- ? EMPTY_SUBSCRIPTION
1630
- : (observers.push(subscriber), new Subscription(function () { return arrRemove(observers, subscriber); }));
1728
+ if (hasError || isStopped) {
1729
+ return EMPTY_SUBSCRIPTION;
1730
+ }
1731
+ this.currentObservers = null;
1732
+ observers.push(subscriber);
1733
+ return new Subscription(function () {
1734
+ _this.currentObservers = null;
1735
+ arrRemove(observers, subscriber);
1736
+ });
1631
1737
  };
1632
1738
  Subject.prototype._checkFinalizedStatuses = function (subscriber) {
1633
1739
  var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
@@ -1777,16 +1883,15 @@
1777
1883
  */
1778
1884
  function writable(value, start = noop$1) {
1779
1885
  let stop;
1780
- const subscribers = [];
1886
+ const subscribers = new Set();
1781
1887
  function set(new_value) {
1782
1888
  if (safe_not_equal(value, new_value)) {
1783
1889
  value = new_value;
1784
1890
  if (stop) { // store is ready
1785
1891
  const run_queue = !subscriber_queue.length;
1786
- for (let i = 0; i < subscribers.length; i += 1) {
1787
- const s = subscribers[i];
1788
- s[1]();
1789
- subscriber_queue.push(s, value);
1892
+ for (const subscriber of subscribers) {
1893
+ subscriber[1]();
1894
+ subscriber_queue.push(subscriber, value);
1790
1895
  }
1791
1896
  if (run_queue) {
1792
1897
  for (let i = 0; i < subscriber_queue.length; i += 2) {
@@ -1802,17 +1907,14 @@
1802
1907
  }
1803
1908
  function subscribe(run, invalidate = noop$1) {
1804
1909
  const subscriber = [run, invalidate];
1805
- subscribers.push(subscriber);
1806
- if (subscribers.length === 1) {
1910
+ subscribers.add(subscriber);
1911
+ if (subscribers.size === 1) {
1807
1912
  stop = start(set) || noop$1;
1808
1913
  }
1809
1914
  run(value);
1810
1915
  return () => {
1811
- const index = subscribers.indexOf(subscriber);
1812
- if (index !== -1) {
1813
- subscribers.splice(index, 1);
1814
- }
1815
- if (subscribers.length === 0) {
1916
+ subscribers.delete(subscriber);
1917
+ if (subscribers.size === 0) {
1816
1918
  stop();
1817
1919
  stop = null;
1818
1920
  }
@@ -1994,7 +2096,7 @@
1994
2096
 
1995
2097
  var cjs = deepmerge_1;
1996
2098
 
1997
- /*! *****************************************************************************
2099
+ /******************************************************************************
1998
2100
  Copyright (c) Microsoft Corporation.
1999
2101
 
2000
2102
  Permission to use, copy, modify, and/or distribute this software for any
@@ -2036,10 +2138,14 @@
2036
2138
  return __assign.apply(this, arguments);
2037
2139
  };
2038
2140
 
2039
- function __spreadArray(to, from) {
2040
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
2041
- to[j] = from[i];
2042
- return to;
2141
+ function __spreadArray(to, from, pack) {
2142
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2143
+ if (ar || !(i in from)) {
2144
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2145
+ ar[i] = from[i];
2146
+ }
2147
+ }
2148
+ return to.concat(ar || Array.prototype.slice.call(from));
2043
2149
  }
2044
2150
 
2045
2151
  var ErrorKind;
@@ -2346,11 +2452,17 @@
2346
2452
  return unit.replace(/^(.*?)-/, '');
2347
2453
  }
2348
2454
  var FRACTION_PRECISION_REGEX = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2349
- var SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\+|#+)?$/g;
2455
+ var SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\+|#+)?[rs]?$/g;
2350
2456
  var INTEGER_WIDTH_REGEX = /(\*)(0+)|(#+)(0+)|(0+)/g;
2351
2457
  var CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/;
2352
2458
  function parseSignificantPrecision(str) {
2353
2459
  var result = {};
2460
+ if (str[str.length - 1] === 'r') {
2461
+ result.roundingPriority = 'morePrecision';
2462
+ }
2463
+ else if (str[str.length - 1] === 's') {
2464
+ result.roundingPriority = 'lessPrecision';
2465
+ }
2354
2466
  str.replace(SIGNIFICANT_PRECISION_REGEX, function (_, g1, g2) {
2355
2467
  // @@@ case
2356
2468
  if (typeof g2 !== 'string') {
@@ -2577,8 +2689,13 @@
2577
2689
  }
2578
2690
  return '';
2579
2691
  });
2580
- if (token.options.length) {
2581
- result = __assign(__assign({}, result), parseSignificantPrecision(token.options[0]));
2692
+ var opt = token.options[0];
2693
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
2694
+ if (opt === 'w') {
2695
+ result = __assign(__assign({}, result), { trailingZeroDisplay: 'stripIfInteger' });
2696
+ }
2697
+ else if (opt) {
2698
+ result = __assign(__assign({}, result), parseSignificantPrecision(opt));
2582
2699
  }
2583
2700
  continue;
2584
2701
  }
@@ -2599,9 +2716,1432 @@
2599
2716
  return result;
2600
2717
  }
2601
2718
 
2719
+ // @generated from time-data-gen.ts
2720
+ // prettier-ignore
2721
+ var timeData = {
2722
+ "AX": [
2723
+ "H"
2724
+ ],
2725
+ "BQ": [
2726
+ "H"
2727
+ ],
2728
+ "CP": [
2729
+ "H"
2730
+ ],
2731
+ "CZ": [
2732
+ "H"
2733
+ ],
2734
+ "DK": [
2735
+ "H"
2736
+ ],
2737
+ "FI": [
2738
+ "H"
2739
+ ],
2740
+ "ID": [
2741
+ "H"
2742
+ ],
2743
+ "IS": [
2744
+ "H"
2745
+ ],
2746
+ "ML": [
2747
+ "H"
2748
+ ],
2749
+ "NE": [
2750
+ "H"
2751
+ ],
2752
+ "RU": [
2753
+ "H"
2754
+ ],
2755
+ "SE": [
2756
+ "H"
2757
+ ],
2758
+ "SJ": [
2759
+ "H"
2760
+ ],
2761
+ "SK": [
2762
+ "H"
2763
+ ],
2764
+ "AS": [
2765
+ "h",
2766
+ "H"
2767
+ ],
2768
+ "BT": [
2769
+ "h",
2770
+ "H"
2771
+ ],
2772
+ "DJ": [
2773
+ "h",
2774
+ "H"
2775
+ ],
2776
+ "ER": [
2777
+ "h",
2778
+ "H"
2779
+ ],
2780
+ "GH": [
2781
+ "h",
2782
+ "H"
2783
+ ],
2784
+ "IN": [
2785
+ "h",
2786
+ "H"
2787
+ ],
2788
+ "LS": [
2789
+ "h",
2790
+ "H"
2791
+ ],
2792
+ "PG": [
2793
+ "h",
2794
+ "H"
2795
+ ],
2796
+ "PW": [
2797
+ "h",
2798
+ "H"
2799
+ ],
2800
+ "SO": [
2801
+ "h",
2802
+ "H"
2803
+ ],
2804
+ "TO": [
2805
+ "h",
2806
+ "H"
2807
+ ],
2808
+ "VU": [
2809
+ "h",
2810
+ "H"
2811
+ ],
2812
+ "WS": [
2813
+ "h",
2814
+ "H"
2815
+ ],
2816
+ "001": [
2817
+ "H",
2818
+ "h"
2819
+ ],
2820
+ "AL": [
2821
+ "h",
2822
+ "H",
2823
+ "hB"
2824
+ ],
2825
+ "TD": [
2826
+ "h",
2827
+ "H",
2828
+ "hB"
2829
+ ],
2830
+ "ca-ES": [
2831
+ "H",
2832
+ "h",
2833
+ "hB"
2834
+ ],
2835
+ "CF": [
2836
+ "H",
2837
+ "h",
2838
+ "hB"
2839
+ ],
2840
+ "CM": [
2841
+ "H",
2842
+ "h",
2843
+ "hB"
2844
+ ],
2845
+ "fr-CA": [
2846
+ "H",
2847
+ "h",
2848
+ "hB"
2849
+ ],
2850
+ "gl-ES": [
2851
+ "H",
2852
+ "h",
2853
+ "hB"
2854
+ ],
2855
+ "it-CH": [
2856
+ "H",
2857
+ "h",
2858
+ "hB"
2859
+ ],
2860
+ "it-IT": [
2861
+ "H",
2862
+ "h",
2863
+ "hB"
2864
+ ],
2865
+ "LU": [
2866
+ "H",
2867
+ "h",
2868
+ "hB"
2869
+ ],
2870
+ "NP": [
2871
+ "H",
2872
+ "h",
2873
+ "hB"
2874
+ ],
2875
+ "PF": [
2876
+ "H",
2877
+ "h",
2878
+ "hB"
2879
+ ],
2880
+ "SC": [
2881
+ "H",
2882
+ "h",
2883
+ "hB"
2884
+ ],
2885
+ "SM": [
2886
+ "H",
2887
+ "h",
2888
+ "hB"
2889
+ ],
2890
+ "SN": [
2891
+ "H",
2892
+ "h",
2893
+ "hB"
2894
+ ],
2895
+ "TF": [
2896
+ "H",
2897
+ "h",
2898
+ "hB"
2899
+ ],
2900
+ "VA": [
2901
+ "H",
2902
+ "h",
2903
+ "hB"
2904
+ ],
2905
+ "CY": [
2906
+ "h",
2907
+ "H",
2908
+ "hb",
2909
+ "hB"
2910
+ ],
2911
+ "GR": [
2912
+ "h",
2913
+ "H",
2914
+ "hb",
2915
+ "hB"
2916
+ ],
2917
+ "CO": [
2918
+ "h",
2919
+ "H",
2920
+ "hB",
2921
+ "hb"
2922
+ ],
2923
+ "DO": [
2924
+ "h",
2925
+ "H",
2926
+ "hB",
2927
+ "hb"
2928
+ ],
2929
+ "KP": [
2930
+ "h",
2931
+ "H",
2932
+ "hB",
2933
+ "hb"
2934
+ ],
2935
+ "KR": [
2936
+ "h",
2937
+ "H",
2938
+ "hB",
2939
+ "hb"
2940
+ ],
2941
+ "NA": [
2942
+ "h",
2943
+ "H",
2944
+ "hB",
2945
+ "hb"
2946
+ ],
2947
+ "PA": [
2948
+ "h",
2949
+ "H",
2950
+ "hB",
2951
+ "hb"
2952
+ ],
2953
+ "PR": [
2954
+ "h",
2955
+ "H",
2956
+ "hB",
2957
+ "hb"
2958
+ ],
2959
+ "VE": [
2960
+ "h",
2961
+ "H",
2962
+ "hB",
2963
+ "hb"
2964
+ ],
2965
+ "AC": [
2966
+ "H",
2967
+ "h",
2968
+ "hb",
2969
+ "hB"
2970
+ ],
2971
+ "AI": [
2972
+ "H",
2973
+ "h",
2974
+ "hb",
2975
+ "hB"
2976
+ ],
2977
+ "BW": [
2978
+ "H",
2979
+ "h",
2980
+ "hb",
2981
+ "hB"
2982
+ ],
2983
+ "BZ": [
2984
+ "H",
2985
+ "h",
2986
+ "hb",
2987
+ "hB"
2988
+ ],
2989
+ "CC": [
2990
+ "H",
2991
+ "h",
2992
+ "hb",
2993
+ "hB"
2994
+ ],
2995
+ "CK": [
2996
+ "H",
2997
+ "h",
2998
+ "hb",
2999
+ "hB"
3000
+ ],
3001
+ "CX": [
3002
+ "H",
3003
+ "h",
3004
+ "hb",
3005
+ "hB"
3006
+ ],
3007
+ "DG": [
3008
+ "H",
3009
+ "h",
3010
+ "hb",
3011
+ "hB"
3012
+ ],
3013
+ "FK": [
3014
+ "H",
3015
+ "h",
3016
+ "hb",
3017
+ "hB"
3018
+ ],
3019
+ "GB": [
3020
+ "H",
3021
+ "h",
3022
+ "hb",
3023
+ "hB"
3024
+ ],
3025
+ "GG": [
3026
+ "H",
3027
+ "h",
3028
+ "hb",
3029
+ "hB"
3030
+ ],
3031
+ "GI": [
3032
+ "H",
3033
+ "h",
3034
+ "hb",
3035
+ "hB"
3036
+ ],
3037
+ "IE": [
3038
+ "H",
3039
+ "h",
3040
+ "hb",
3041
+ "hB"
3042
+ ],
3043
+ "IM": [
3044
+ "H",
3045
+ "h",
3046
+ "hb",
3047
+ "hB"
3048
+ ],
3049
+ "IO": [
3050
+ "H",
3051
+ "h",
3052
+ "hb",
3053
+ "hB"
3054
+ ],
3055
+ "JE": [
3056
+ "H",
3057
+ "h",
3058
+ "hb",
3059
+ "hB"
3060
+ ],
3061
+ "LT": [
3062
+ "H",
3063
+ "h",
3064
+ "hb",
3065
+ "hB"
3066
+ ],
3067
+ "MK": [
3068
+ "H",
3069
+ "h",
3070
+ "hb",
3071
+ "hB"
3072
+ ],
3073
+ "MN": [
3074
+ "H",
3075
+ "h",
3076
+ "hb",
3077
+ "hB"
3078
+ ],
3079
+ "MS": [
3080
+ "H",
3081
+ "h",
3082
+ "hb",
3083
+ "hB"
3084
+ ],
3085
+ "NF": [
3086
+ "H",
3087
+ "h",
3088
+ "hb",
3089
+ "hB"
3090
+ ],
3091
+ "NG": [
3092
+ "H",
3093
+ "h",
3094
+ "hb",
3095
+ "hB"
3096
+ ],
3097
+ "NR": [
3098
+ "H",
3099
+ "h",
3100
+ "hb",
3101
+ "hB"
3102
+ ],
3103
+ "NU": [
3104
+ "H",
3105
+ "h",
3106
+ "hb",
3107
+ "hB"
3108
+ ],
3109
+ "PN": [
3110
+ "H",
3111
+ "h",
3112
+ "hb",
3113
+ "hB"
3114
+ ],
3115
+ "SH": [
3116
+ "H",
3117
+ "h",
3118
+ "hb",
3119
+ "hB"
3120
+ ],
3121
+ "SX": [
3122
+ "H",
3123
+ "h",
3124
+ "hb",
3125
+ "hB"
3126
+ ],
3127
+ "TA": [
3128
+ "H",
3129
+ "h",
3130
+ "hb",
3131
+ "hB"
3132
+ ],
3133
+ "ZA": [
3134
+ "H",
3135
+ "h",
3136
+ "hb",
3137
+ "hB"
3138
+ ],
3139
+ "af-ZA": [
3140
+ "H",
3141
+ "h",
3142
+ "hB",
3143
+ "hb"
3144
+ ],
3145
+ "AR": [
3146
+ "H",
3147
+ "h",
3148
+ "hB",
3149
+ "hb"
3150
+ ],
3151
+ "CL": [
3152
+ "H",
3153
+ "h",
3154
+ "hB",
3155
+ "hb"
3156
+ ],
3157
+ "CR": [
3158
+ "H",
3159
+ "h",
3160
+ "hB",
3161
+ "hb"
3162
+ ],
3163
+ "CU": [
3164
+ "H",
3165
+ "h",
3166
+ "hB",
3167
+ "hb"
3168
+ ],
3169
+ "EA": [
3170
+ "H",
3171
+ "h",
3172
+ "hB",
3173
+ "hb"
3174
+ ],
3175
+ "es-BO": [
3176
+ "H",
3177
+ "h",
3178
+ "hB",
3179
+ "hb"
3180
+ ],
3181
+ "es-BR": [
3182
+ "H",
3183
+ "h",
3184
+ "hB",
3185
+ "hb"
3186
+ ],
3187
+ "es-EC": [
3188
+ "H",
3189
+ "h",
3190
+ "hB",
3191
+ "hb"
3192
+ ],
3193
+ "es-ES": [
3194
+ "H",
3195
+ "h",
3196
+ "hB",
3197
+ "hb"
3198
+ ],
3199
+ "es-GQ": [
3200
+ "H",
3201
+ "h",
3202
+ "hB",
3203
+ "hb"
3204
+ ],
3205
+ "es-PE": [
3206
+ "H",
3207
+ "h",
3208
+ "hB",
3209
+ "hb"
3210
+ ],
3211
+ "GT": [
3212
+ "H",
3213
+ "h",
3214
+ "hB",
3215
+ "hb"
3216
+ ],
3217
+ "HN": [
3218
+ "H",
3219
+ "h",
3220
+ "hB",
3221
+ "hb"
3222
+ ],
3223
+ "IC": [
3224
+ "H",
3225
+ "h",
3226
+ "hB",
3227
+ "hb"
3228
+ ],
3229
+ "KG": [
3230
+ "H",
3231
+ "h",
3232
+ "hB",
3233
+ "hb"
3234
+ ],
3235
+ "KM": [
3236
+ "H",
3237
+ "h",
3238
+ "hB",
3239
+ "hb"
3240
+ ],
3241
+ "LK": [
3242
+ "H",
3243
+ "h",
3244
+ "hB",
3245
+ "hb"
3246
+ ],
3247
+ "MA": [
3248
+ "H",
3249
+ "h",
3250
+ "hB",
3251
+ "hb"
3252
+ ],
3253
+ "MX": [
3254
+ "H",
3255
+ "h",
3256
+ "hB",
3257
+ "hb"
3258
+ ],
3259
+ "NI": [
3260
+ "H",
3261
+ "h",
3262
+ "hB",
3263
+ "hb"
3264
+ ],
3265
+ "PY": [
3266
+ "H",
3267
+ "h",
3268
+ "hB",
3269
+ "hb"
3270
+ ],
3271
+ "SV": [
3272
+ "H",
3273
+ "h",
3274
+ "hB",
3275
+ "hb"
3276
+ ],
3277
+ "UY": [
3278
+ "H",
3279
+ "h",
3280
+ "hB",
3281
+ "hb"
3282
+ ],
3283
+ "JP": [
3284
+ "H",
3285
+ "h",
3286
+ "K"
3287
+ ],
3288
+ "AD": [
3289
+ "H",
3290
+ "hB"
3291
+ ],
3292
+ "AM": [
3293
+ "H",
3294
+ "hB"
3295
+ ],
3296
+ "AO": [
3297
+ "H",
3298
+ "hB"
3299
+ ],
3300
+ "AT": [
3301
+ "H",
3302
+ "hB"
3303
+ ],
3304
+ "AW": [
3305
+ "H",
3306
+ "hB"
3307
+ ],
3308
+ "BE": [
3309
+ "H",
3310
+ "hB"
3311
+ ],
3312
+ "BF": [
3313
+ "H",
3314
+ "hB"
3315
+ ],
3316
+ "BJ": [
3317
+ "H",
3318
+ "hB"
3319
+ ],
3320
+ "BL": [
3321
+ "H",
3322
+ "hB"
3323
+ ],
3324
+ "BR": [
3325
+ "H",
3326
+ "hB"
3327
+ ],
3328
+ "CG": [
3329
+ "H",
3330
+ "hB"
3331
+ ],
3332
+ "CI": [
3333
+ "H",
3334
+ "hB"
3335
+ ],
3336
+ "CV": [
3337
+ "H",
3338
+ "hB"
3339
+ ],
3340
+ "DE": [
3341
+ "H",
3342
+ "hB"
3343
+ ],
3344
+ "EE": [
3345
+ "H",
3346
+ "hB"
3347
+ ],
3348
+ "FR": [
3349
+ "H",
3350
+ "hB"
3351
+ ],
3352
+ "GA": [
3353
+ "H",
3354
+ "hB"
3355
+ ],
3356
+ "GF": [
3357
+ "H",
3358
+ "hB"
3359
+ ],
3360
+ "GN": [
3361
+ "H",
3362
+ "hB"
3363
+ ],
3364
+ "GP": [
3365
+ "H",
3366
+ "hB"
3367
+ ],
3368
+ "GW": [
3369
+ "H",
3370
+ "hB"
3371
+ ],
3372
+ "HR": [
3373
+ "H",
3374
+ "hB"
3375
+ ],
3376
+ "IL": [
3377
+ "H",
3378
+ "hB"
3379
+ ],
3380
+ "IT": [
3381
+ "H",
3382
+ "hB"
3383
+ ],
3384
+ "KZ": [
3385
+ "H",
3386
+ "hB"
3387
+ ],
3388
+ "MC": [
3389
+ "H",
3390
+ "hB"
3391
+ ],
3392
+ "MD": [
3393
+ "H",
3394
+ "hB"
3395
+ ],
3396
+ "MF": [
3397
+ "H",
3398
+ "hB"
3399
+ ],
3400
+ "MQ": [
3401
+ "H",
3402
+ "hB"
3403
+ ],
3404
+ "MZ": [
3405
+ "H",
3406
+ "hB"
3407
+ ],
3408
+ "NC": [
3409
+ "H",
3410
+ "hB"
3411
+ ],
3412
+ "NL": [
3413
+ "H",
3414
+ "hB"
3415
+ ],
3416
+ "PM": [
3417
+ "H",
3418
+ "hB"
3419
+ ],
3420
+ "PT": [
3421
+ "H",
3422
+ "hB"
3423
+ ],
3424
+ "RE": [
3425
+ "H",
3426
+ "hB"
3427
+ ],
3428
+ "RO": [
3429
+ "H",
3430
+ "hB"
3431
+ ],
3432
+ "SI": [
3433
+ "H",
3434
+ "hB"
3435
+ ],
3436
+ "SR": [
3437
+ "H",
3438
+ "hB"
3439
+ ],
3440
+ "ST": [
3441
+ "H",
3442
+ "hB"
3443
+ ],
3444
+ "TG": [
3445
+ "H",
3446
+ "hB"
3447
+ ],
3448
+ "TR": [
3449
+ "H",
3450
+ "hB"
3451
+ ],
3452
+ "WF": [
3453
+ "H",
3454
+ "hB"
3455
+ ],
3456
+ "YT": [
3457
+ "H",
3458
+ "hB"
3459
+ ],
3460
+ "BD": [
3461
+ "h",
3462
+ "hB",
3463
+ "H"
3464
+ ],
3465
+ "PK": [
3466
+ "h",
3467
+ "hB",
3468
+ "H"
3469
+ ],
3470
+ "AZ": [
3471
+ "H",
3472
+ "hB",
3473
+ "h"
3474
+ ],
3475
+ "BA": [
3476
+ "H",
3477
+ "hB",
3478
+ "h"
3479
+ ],
3480
+ "BG": [
3481
+ "H",
3482
+ "hB",
3483
+ "h"
3484
+ ],
3485
+ "CH": [
3486
+ "H",
3487
+ "hB",
3488
+ "h"
3489
+ ],
3490
+ "GE": [
3491
+ "H",
3492
+ "hB",
3493
+ "h"
3494
+ ],
3495
+ "LI": [
3496
+ "H",
3497
+ "hB",
3498
+ "h"
3499
+ ],
3500
+ "ME": [
3501
+ "H",
3502
+ "hB",
3503
+ "h"
3504
+ ],
3505
+ "RS": [
3506
+ "H",
3507
+ "hB",
3508
+ "h"
3509
+ ],
3510
+ "UA": [
3511
+ "H",
3512
+ "hB",
3513
+ "h"
3514
+ ],
3515
+ "UZ": [
3516
+ "H",
3517
+ "hB",
3518
+ "h"
3519
+ ],
3520
+ "XK": [
3521
+ "H",
3522
+ "hB",
3523
+ "h"
3524
+ ],
3525
+ "AG": [
3526
+ "h",
3527
+ "hb",
3528
+ "H",
3529
+ "hB"
3530
+ ],
3531
+ "AU": [
3532
+ "h",
3533
+ "hb",
3534
+ "H",
3535
+ "hB"
3536
+ ],
3537
+ "BB": [
3538
+ "h",
3539
+ "hb",
3540
+ "H",
3541
+ "hB"
3542
+ ],
3543
+ "BM": [
3544
+ "h",
3545
+ "hb",
3546
+ "H",
3547
+ "hB"
3548
+ ],
3549
+ "BS": [
3550
+ "h",
3551
+ "hb",
3552
+ "H",
3553
+ "hB"
3554
+ ],
3555
+ "CA": [
3556
+ "h",
3557
+ "hb",
3558
+ "H",
3559
+ "hB"
3560
+ ],
3561
+ "DM": [
3562
+ "h",
3563
+ "hb",
3564
+ "H",
3565
+ "hB"
3566
+ ],
3567
+ "en-001": [
3568
+ "h",
3569
+ "hb",
3570
+ "H",
3571
+ "hB"
3572
+ ],
3573
+ "FJ": [
3574
+ "h",
3575
+ "hb",
3576
+ "H",
3577
+ "hB"
3578
+ ],
3579
+ "FM": [
3580
+ "h",
3581
+ "hb",
3582
+ "H",
3583
+ "hB"
3584
+ ],
3585
+ "GD": [
3586
+ "h",
3587
+ "hb",
3588
+ "H",
3589
+ "hB"
3590
+ ],
3591
+ "GM": [
3592
+ "h",
3593
+ "hb",
3594
+ "H",
3595
+ "hB"
3596
+ ],
3597
+ "GU": [
3598
+ "h",
3599
+ "hb",
3600
+ "H",
3601
+ "hB"
3602
+ ],
3603
+ "GY": [
3604
+ "h",
3605
+ "hb",
3606
+ "H",
3607
+ "hB"
3608
+ ],
3609
+ "JM": [
3610
+ "h",
3611
+ "hb",
3612
+ "H",
3613
+ "hB"
3614
+ ],
3615
+ "KI": [
3616
+ "h",
3617
+ "hb",
3618
+ "H",
3619
+ "hB"
3620
+ ],
3621
+ "KN": [
3622
+ "h",
3623
+ "hb",
3624
+ "H",
3625
+ "hB"
3626
+ ],
3627
+ "KY": [
3628
+ "h",
3629
+ "hb",
3630
+ "H",
3631
+ "hB"
3632
+ ],
3633
+ "LC": [
3634
+ "h",
3635
+ "hb",
3636
+ "H",
3637
+ "hB"
3638
+ ],
3639
+ "LR": [
3640
+ "h",
3641
+ "hb",
3642
+ "H",
3643
+ "hB"
3644
+ ],
3645
+ "MH": [
3646
+ "h",
3647
+ "hb",
3648
+ "H",
3649
+ "hB"
3650
+ ],
3651
+ "MP": [
3652
+ "h",
3653
+ "hb",
3654
+ "H",
3655
+ "hB"
3656
+ ],
3657
+ "MW": [
3658
+ "h",
3659
+ "hb",
3660
+ "H",
3661
+ "hB"
3662
+ ],
3663
+ "NZ": [
3664
+ "h",
3665
+ "hb",
3666
+ "H",
3667
+ "hB"
3668
+ ],
3669
+ "SB": [
3670
+ "h",
3671
+ "hb",
3672
+ "H",
3673
+ "hB"
3674
+ ],
3675
+ "SG": [
3676
+ "h",
3677
+ "hb",
3678
+ "H",
3679
+ "hB"
3680
+ ],
3681
+ "SL": [
3682
+ "h",
3683
+ "hb",
3684
+ "H",
3685
+ "hB"
3686
+ ],
3687
+ "SS": [
3688
+ "h",
3689
+ "hb",
3690
+ "H",
3691
+ "hB"
3692
+ ],
3693
+ "SZ": [
3694
+ "h",
3695
+ "hb",
3696
+ "H",
3697
+ "hB"
3698
+ ],
3699
+ "TC": [
3700
+ "h",
3701
+ "hb",
3702
+ "H",
3703
+ "hB"
3704
+ ],
3705
+ "TT": [
3706
+ "h",
3707
+ "hb",
3708
+ "H",
3709
+ "hB"
3710
+ ],
3711
+ "UM": [
3712
+ "h",
3713
+ "hb",
3714
+ "H",
3715
+ "hB"
3716
+ ],
3717
+ "US": [
3718
+ "h",
3719
+ "hb",
3720
+ "H",
3721
+ "hB"
3722
+ ],
3723
+ "VC": [
3724
+ "h",
3725
+ "hb",
3726
+ "H",
3727
+ "hB"
3728
+ ],
3729
+ "VG": [
3730
+ "h",
3731
+ "hb",
3732
+ "H",
3733
+ "hB"
3734
+ ],
3735
+ "VI": [
3736
+ "h",
3737
+ "hb",
3738
+ "H",
3739
+ "hB"
3740
+ ],
3741
+ "ZM": [
3742
+ "h",
3743
+ "hb",
3744
+ "H",
3745
+ "hB"
3746
+ ],
3747
+ "BO": [
3748
+ "H",
3749
+ "hB",
3750
+ "h",
3751
+ "hb"
3752
+ ],
3753
+ "EC": [
3754
+ "H",
3755
+ "hB",
3756
+ "h",
3757
+ "hb"
3758
+ ],
3759
+ "ES": [
3760
+ "H",
3761
+ "hB",
3762
+ "h",
3763
+ "hb"
3764
+ ],
3765
+ "GQ": [
3766
+ "H",
3767
+ "hB",
3768
+ "h",
3769
+ "hb"
3770
+ ],
3771
+ "PE": [
3772
+ "H",
3773
+ "hB",
3774
+ "h",
3775
+ "hb"
3776
+ ],
3777
+ "AE": [
3778
+ "h",
3779
+ "hB",
3780
+ "hb",
3781
+ "H"
3782
+ ],
3783
+ "ar-001": [
3784
+ "h",
3785
+ "hB",
3786
+ "hb",
3787
+ "H"
3788
+ ],
3789
+ "BH": [
3790
+ "h",
3791
+ "hB",
3792
+ "hb",
3793
+ "H"
3794
+ ],
3795
+ "DZ": [
3796
+ "h",
3797
+ "hB",
3798
+ "hb",
3799
+ "H"
3800
+ ],
3801
+ "EG": [
3802
+ "h",
3803
+ "hB",
3804
+ "hb",
3805
+ "H"
3806
+ ],
3807
+ "EH": [
3808
+ "h",
3809
+ "hB",
3810
+ "hb",
3811
+ "H"
3812
+ ],
3813
+ "HK": [
3814
+ "h",
3815
+ "hB",
3816
+ "hb",
3817
+ "H"
3818
+ ],
3819
+ "IQ": [
3820
+ "h",
3821
+ "hB",
3822
+ "hb",
3823
+ "H"
3824
+ ],
3825
+ "JO": [
3826
+ "h",
3827
+ "hB",
3828
+ "hb",
3829
+ "H"
3830
+ ],
3831
+ "KW": [
3832
+ "h",
3833
+ "hB",
3834
+ "hb",
3835
+ "H"
3836
+ ],
3837
+ "LB": [
3838
+ "h",
3839
+ "hB",
3840
+ "hb",
3841
+ "H"
3842
+ ],
3843
+ "LY": [
3844
+ "h",
3845
+ "hB",
3846
+ "hb",
3847
+ "H"
3848
+ ],
3849
+ "MO": [
3850
+ "h",
3851
+ "hB",
3852
+ "hb",
3853
+ "H"
3854
+ ],
3855
+ "MR": [
3856
+ "h",
3857
+ "hB",
3858
+ "hb",
3859
+ "H"
3860
+ ],
3861
+ "OM": [
3862
+ "h",
3863
+ "hB",
3864
+ "hb",
3865
+ "H"
3866
+ ],
3867
+ "PH": [
3868
+ "h",
3869
+ "hB",
3870
+ "hb",
3871
+ "H"
3872
+ ],
3873
+ "PS": [
3874
+ "h",
3875
+ "hB",
3876
+ "hb",
3877
+ "H"
3878
+ ],
3879
+ "QA": [
3880
+ "h",
3881
+ "hB",
3882
+ "hb",
3883
+ "H"
3884
+ ],
3885
+ "SA": [
3886
+ "h",
3887
+ "hB",
3888
+ "hb",
3889
+ "H"
3890
+ ],
3891
+ "SD": [
3892
+ "h",
3893
+ "hB",
3894
+ "hb",
3895
+ "H"
3896
+ ],
3897
+ "SY": [
3898
+ "h",
3899
+ "hB",
3900
+ "hb",
3901
+ "H"
3902
+ ],
3903
+ "TN": [
3904
+ "h",
3905
+ "hB",
3906
+ "hb",
3907
+ "H"
3908
+ ],
3909
+ "YE": [
3910
+ "h",
3911
+ "hB",
3912
+ "hb",
3913
+ "H"
3914
+ ],
3915
+ "AF": [
3916
+ "H",
3917
+ "hb",
3918
+ "hB",
3919
+ "h"
3920
+ ],
3921
+ "LA": [
3922
+ "H",
3923
+ "hb",
3924
+ "hB",
3925
+ "h"
3926
+ ],
3927
+ "CN": [
3928
+ "H",
3929
+ "hB",
3930
+ "hb",
3931
+ "h"
3932
+ ],
3933
+ "LV": [
3934
+ "H",
3935
+ "hB",
3936
+ "hb",
3937
+ "h"
3938
+ ],
3939
+ "TL": [
3940
+ "H",
3941
+ "hB",
3942
+ "hb",
3943
+ "h"
3944
+ ],
3945
+ "zu-ZA": [
3946
+ "H",
3947
+ "hB",
3948
+ "hb",
3949
+ "h"
3950
+ ],
3951
+ "CD": [
3952
+ "hB",
3953
+ "H"
3954
+ ],
3955
+ "IR": [
3956
+ "hB",
3957
+ "H"
3958
+ ],
3959
+ "hi-IN": [
3960
+ "hB",
3961
+ "h",
3962
+ "H"
3963
+ ],
3964
+ "kn-IN": [
3965
+ "hB",
3966
+ "h",
3967
+ "H"
3968
+ ],
3969
+ "ml-IN": [
3970
+ "hB",
3971
+ "h",
3972
+ "H"
3973
+ ],
3974
+ "te-IN": [
3975
+ "hB",
3976
+ "h",
3977
+ "H"
3978
+ ],
3979
+ "KH": [
3980
+ "hB",
3981
+ "h",
3982
+ "H",
3983
+ "hb"
3984
+ ],
3985
+ "ta-IN": [
3986
+ "hB",
3987
+ "h",
3988
+ "hb",
3989
+ "H"
3990
+ ],
3991
+ "BN": [
3992
+ "hb",
3993
+ "hB",
3994
+ "h",
3995
+ "H"
3996
+ ],
3997
+ "MY": [
3998
+ "hb",
3999
+ "hB",
4000
+ "h",
4001
+ "H"
4002
+ ],
4003
+ "ET": [
4004
+ "hB",
4005
+ "hb",
4006
+ "h",
4007
+ "H"
4008
+ ],
4009
+ "gu-IN": [
4010
+ "hB",
4011
+ "hb",
4012
+ "h",
4013
+ "H"
4014
+ ],
4015
+ "mr-IN": [
4016
+ "hB",
4017
+ "hb",
4018
+ "h",
4019
+ "H"
4020
+ ],
4021
+ "pa-IN": [
4022
+ "hB",
4023
+ "hb",
4024
+ "h",
4025
+ "H"
4026
+ ],
4027
+ "TW": [
4028
+ "hB",
4029
+ "hb",
4030
+ "h",
4031
+ "H"
4032
+ ],
4033
+ "KE": [
4034
+ "hB",
4035
+ "hb",
4036
+ "H",
4037
+ "h"
4038
+ ],
4039
+ "MM": [
4040
+ "hB",
4041
+ "hb",
4042
+ "H",
4043
+ "h"
4044
+ ],
4045
+ "TZ": [
4046
+ "hB",
4047
+ "hb",
4048
+ "H",
4049
+ "h"
4050
+ ],
4051
+ "UG": [
4052
+ "hB",
4053
+ "hb",
4054
+ "H",
4055
+ "h"
4056
+ ]
4057
+ };
4058
+
4059
+ /**
4060
+ * Returns the best matching date time pattern if a date time skeleton
4061
+ * pattern is provided with a locale. Follows the Unicode specification:
4062
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns
4063
+ * @param skeleton date time skeleton pattern that possibly includes j, J or C
4064
+ * @param locale
4065
+ */
4066
+ function getBestPattern(skeleton, locale) {
4067
+ var skeletonCopy = '';
4068
+ for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
4069
+ var patternChar = skeleton.charAt(patternPos);
4070
+ if (patternChar === 'j') {
4071
+ var extraLength = 0;
4072
+ while (patternPos + 1 < skeleton.length &&
4073
+ skeleton.charAt(patternPos + 1) === patternChar) {
4074
+ extraLength++;
4075
+ patternPos++;
4076
+ }
4077
+ var hourLen = 1 + (extraLength & 1);
4078
+ var dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1);
4079
+ var dayPeriodChar = 'a';
4080
+ var hourChar = getDefaultHourSymbolFromLocale(locale);
4081
+ if (hourChar == 'H' || hourChar == 'k') {
4082
+ dayPeriodLen = 0;
4083
+ }
4084
+ while (dayPeriodLen-- > 0) {
4085
+ skeletonCopy += dayPeriodChar;
4086
+ }
4087
+ while (hourLen-- > 0) {
4088
+ skeletonCopy = hourChar + skeletonCopy;
4089
+ }
4090
+ }
4091
+ else if (patternChar === 'J') {
4092
+ skeletonCopy += 'H';
4093
+ }
4094
+ else {
4095
+ skeletonCopy += patternChar;
4096
+ }
4097
+ }
4098
+ return skeletonCopy;
4099
+ }
4100
+ /**
4101
+ * Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)
4102
+ * of the given `locale` to the corresponding time pattern.
4103
+ * @param locale
4104
+ */
4105
+ function getDefaultHourSymbolFromLocale(locale) {
4106
+ var hourCycle = locale.hourCycle;
4107
+ if (hourCycle === undefined &&
4108
+ // @ts-ignore hourCycle(s) is not identified yet
4109
+ locale.hourCycles &&
4110
+ // @ts-ignore
4111
+ locale.hourCycles.length) {
4112
+ // @ts-ignore
4113
+ hourCycle = locale.hourCycles[0];
4114
+ }
4115
+ if (hourCycle) {
4116
+ switch (hourCycle) {
4117
+ case 'h24':
4118
+ return 'k';
4119
+ case 'h23':
4120
+ return 'H';
4121
+ case 'h12':
4122
+ return 'h';
4123
+ case 'h11':
4124
+ return 'K';
4125
+ default:
4126
+ throw new Error('Invalid hourCycle');
4127
+ }
4128
+ }
4129
+ // TODO: Once hourCycle is fully supported remove the following with data generation
4130
+ var languageTag = locale.language;
4131
+ var regionTag;
4132
+ if (languageTag !== 'root') {
4133
+ regionTag = locale.maximize().region;
4134
+ }
4135
+ var hourCycles = timeData[regionTag || ''] ||
4136
+ timeData[languageTag || ''] ||
4137
+ timeData["".concat(languageTag, "-001")] ||
4138
+ timeData['001'];
4139
+ return hourCycles[0];
4140
+ }
4141
+
2602
4142
  var _a;
2603
- var SPACE_SEPARATOR_START_REGEX = new RegExp("^" + SPACE_SEPARATOR_REGEX.source + "*");
2604
- var SPACE_SEPARATOR_END_REGEX = new RegExp(SPACE_SEPARATOR_REGEX.source + "*$");
4143
+ var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
4144
+ var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
2605
4145
  function createLocation(start, end) {
2606
4146
  return { start: start, end: end };
2607
4147
  }
@@ -2758,6 +4298,7 @@
2758
4298
  this.message = message;
2759
4299
  this.position = { offset: 0, line: 1, column: 1 };
2760
4300
  this.ignoreTag = !!options.ignoreTag;
4301
+ this.locale = options.locale;
2761
4302
  this.requiresOtherClause = !!options.requiresOtherClause;
2762
4303
  this.shouldParseSkeletons = !!options.shouldParseSkeletons;
2763
4304
  }
@@ -2848,7 +4389,7 @@
2848
4389
  return {
2849
4390
  val: {
2850
4391
  type: TYPE.literal,
2851
- value: "<" + tagName + "/>",
4392
+ value: "<".concat(tagName, "/>"),
2852
4393
  location: createLocation(startPosition, this.clonePosition()),
2853
4394
  },
2854
4395
  err: null,
@@ -3133,12 +4674,19 @@
3133
4674
  if (skeleton.length === 0) {
3134
4675
  return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);
3135
4676
  }
4677
+ var dateTimePattern = skeleton;
4678
+ // Get "best match" pattern only if locale is passed, if not, let it
4679
+ // pass as-is where `parseDateTimeSkeleton()` will throw an error
4680
+ // for unsupported patterns.
4681
+ if (this.locale) {
4682
+ dateTimePattern = getBestPattern(skeleton, this.locale);
4683
+ }
3136
4684
  var style = {
3137
4685
  type: SKELETON_TYPE.dateTime,
3138
- pattern: skeleton,
4686
+ pattern: dateTimePattern,
3139
4687
  location: styleAndLocation.styleLocation,
3140
4688
  parsedOptions: this.shouldParseSkeletons
3141
- ? parseDateTimeSkeleton(skeleton)
4689
+ ? parseDateTimeSkeleton(dateTimePattern)
3142
4690
  : {},
3143
4691
  };
3144
4692
  var type = argType === 'date' ? TYPE.date : TYPE.time;
@@ -3453,7 +5001,7 @@
3453
5001
  }
3454
5002
  var code = codePointAt(this.message, offset);
3455
5003
  if (code === undefined) {
3456
- throw Error("Offset " + offset + " is at invalid UTF-16 code unit boundary");
5004
+ throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
3457
5005
  }
3458
5006
  return code;
3459
5007
  };
@@ -3521,7 +5069,7 @@
3521
5069
  */
3522
5070
  Parser.prototype.bumpTo = function (targetOffset) {
3523
5071
  if (this.offset() > targetOffset) {
3524
- throw Error("targetOffset " + targetOffset + " must be greater than or equal to the current offset " + this.offset());
5072
+ throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
3525
5073
  }
3526
5074
  targetOffset = Math.min(targetOffset, this.message.length);
3527
5075
  while (true) {
@@ -3530,7 +5078,7 @@
3530
5078
  break;
3531
5079
  }
3532
5080
  if (offset > targetOffset) {
3533
- throw Error("targetOffset " + targetOffset + " is at invalid UTF-16 code unit boundary");
5081
+ throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
3534
5082
  }
3535
5083
  this.bump();
3536
5084
  if (this.isEOF()) {
@@ -3961,9 +5509,6 @@
3961
5509
  function ObjectWithoutPrototypeCache() {
3962
5510
  this.cache = Object.create(null);
3963
5511
  }
3964
- ObjectWithoutPrototypeCache.prototype.has = function (key) {
3965
- return key in this.cache;
3966
- };
3967
5512
  ObjectWithoutPrototypeCache.prototype.get = function (key) {
3968
5513
  return this.cache[key];
3969
5514
  };
@@ -3999,28 +5544,28 @@
3999
5544
  return _this;
4000
5545
  }
4001
5546
  FormatError.prototype.toString = function () {
4002
- return "[formatjs Error: " + this.code + "] " + this.message;
5547
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
4003
5548
  };
4004
5549
  return FormatError;
4005
5550
  }(Error));
4006
5551
  var InvalidValueError = /** @class */ (function (_super) {
4007
5552
  __extends(InvalidValueError, _super);
4008
5553
  function InvalidValueError(variableId, value, options, originalMessage) {
4009
- return _super.call(this, "Invalid values for \"" + variableId + "\": \"" + value + "\". Options are \"" + Object.keys(options).join('", "') + "\"", ErrorCode.INVALID_VALUE, originalMessage) || this;
5554
+ return _super.call(this, "Invalid values for \"".concat(variableId, "\": \"").concat(value, "\". Options are \"").concat(Object.keys(options).join('", "'), "\""), ErrorCode.INVALID_VALUE, originalMessage) || this;
4010
5555
  }
4011
5556
  return InvalidValueError;
4012
5557
  }(FormatError));
4013
5558
  var InvalidValueTypeError = /** @class */ (function (_super) {
4014
5559
  __extends(InvalidValueTypeError, _super);
4015
5560
  function InvalidValueTypeError(value, type, originalMessage) {
4016
- return _super.call(this, "Value for \"" + value + "\" must be of type " + type, ErrorCode.INVALID_VALUE, originalMessage) || this;
5561
+ return _super.call(this, "Value for \"".concat(value, "\" must be of type ").concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;
4017
5562
  }
4018
5563
  return InvalidValueTypeError;
4019
5564
  }(FormatError));
4020
5565
  var MissingValueError = /** @class */ (function (_super) {
4021
5566
  __extends(MissingValueError, _super);
4022
5567
  function MissingValueError(variableId, originalMessage) {
4023
- return _super.call(this, "The intl string context variable \"" + variableId + "\" was not provided to the string \"" + originalMessage + "\"", ErrorCode.MISSING_VALUE, originalMessage) || this;
5568
+ return _super.call(this, "The intl string context variable \"".concat(variableId, "\" was not provided to the string \"").concat(originalMessage, "\""), ErrorCode.MISSING_VALUE, originalMessage) || this;
4024
5569
  }
4025
5570
  return MissingValueError;
4026
5571
  }(FormatError));
@@ -4126,7 +5671,7 @@
4126
5671
  ? formats.time[el.style]
4127
5672
  : isDateTimeSkeleton(el.style)
4128
5673
  ? el.style.parsedOptions
4129
- : undefined;
5674
+ : formats.time.medium;
4130
5675
  result.push({
4131
5676
  type: PART_TYPE.literal,
4132
5677
  value: formatters
@@ -4181,7 +5726,7 @@
4181
5726
  continue;
4182
5727
  }
4183
5728
  if (isPluralElement(el)) {
4184
- var opt = el.options["=" + value];
5729
+ var opt = el.options["=".concat(value)];
4185
5730
  if (!opt) {
4186
5731
  if (!Intl.PluralRules) {
4187
5732
  throw new FormatError("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", ErrorCode.MISSING_INTL_API, originalMessage);
@@ -4229,9 +5774,6 @@
4229
5774
  return {
4230
5775
  create: function () {
4231
5776
  return {
4232
- has: function (key) {
4233
- return key in store;
4234
- },
4235
5777
  get: function (key) {
4236
5778
  return store[key];
4237
5779
  },
@@ -4255,7 +5797,7 @@
4255
5797
  for (var _i = 0; _i < arguments.length; _i++) {
4256
5798
  args[_i] = arguments[_i];
4257
5799
  }
4258
- return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray([void 0], args)))();
5800
+ return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
4259
5801
  }, {
4260
5802
  cache: createFastMemoizeCache(cache.number),
4261
5803
  strategy: strategies.variadic,
@@ -4266,7 +5808,7 @@
4266
5808
  for (var _i = 0; _i < arguments.length; _i++) {
4267
5809
  args[_i] = arguments[_i];
4268
5810
  }
4269
- return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray([void 0], args)))();
5811
+ return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
4270
5812
  }, {
4271
5813
  cache: createFastMemoizeCache(cache.dateTime),
4272
5814
  strategy: strategies.variadic,
@@ -4277,7 +5819,7 @@
4277
5819
  for (var _i = 0; _i < arguments.length; _i++) {
4278
5820
  args[_i] = arguments[_i];
4279
5821
  }
4280
- return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray([void 0], args)))();
5822
+ return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray([void 0], args, false)))();
4281
5823
  }, {
4282
5824
  cache: createFastMemoizeCache(cache.pluralRules),
4283
5825
  strategy: strategies.variadic,
@@ -4319,9 +5861,12 @@
4319
5861
  return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, undefined, _this.message);
4320
5862
  };
4321
5863
  this.resolvedOptions = function () { return ({
4322
- locale: Intl.NumberFormat.supportedLocalesOf(_this.locales)[0],
5864
+ locale: _this.resolvedLocale.toString(),
4323
5865
  }); };
4324
5866
  this.getAst = function () { return _this.ast; };
5867
+ // Defined first because it's used to build the format pattern.
5868
+ this.locales = locales;
5869
+ this.resolvedLocale = IntlMessageFormat.resolveLocale(locales);
4325
5870
  if (typeof message === 'string') {
4326
5871
  this.message = message;
4327
5872
  if (!IntlMessageFormat.__parse) {
@@ -4330,6 +5875,7 @@
4330
5875
  // Parse string messages into an AST.
4331
5876
  this.ast = IntlMessageFormat.__parse(message, {
4332
5877
  ignoreTag: opts === null || opts === void 0 ? void 0 : opts.ignoreTag,
5878
+ locale: this.resolvedLocale,
4333
5879
  });
4334
5880
  }
4335
5881
  else {
@@ -4341,8 +5887,6 @@
4341
5887
  // Creates a new object with the specified `formats` merged with the default
4342
5888
  // formats.
4343
5889
  this.formats = mergeConfigs(IntlMessageFormat.formats, overrideFormats);
4344
- // Defined first because it's used to build the format pattern.
4345
- this.locales = locales;
4346
5890
  this.formatters =
4347
5891
  (opts && opts.formatters) || createDefaultFormatters(this.formatterCache);
4348
5892
  }
@@ -4358,6 +5902,13 @@
4358
5902
  configurable: true
4359
5903
  });
4360
5904
  IntlMessageFormat.memoizedDefaultLocale = null;
5905
+ IntlMessageFormat.resolveLocale = function (locales) {
5906
+ var supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales);
5907
+ if (supportedLocales.length > 0) {
5908
+ return new Intl.Locale(supportedLocales[0]);
5909
+ }
5910
+ return new Intl.Locale(typeof locales === 'string' ? locales : locales[0]);
5911
+ };
4361
5912
  IntlMessageFormat.__parse = parse;
4362
5913
  // Default format options used as the prototype of the `formats` provided to the
4363
5914
  // constructor. These are used when constructing the internal Intl.NumberFormat
@@ -4424,7 +5975,14 @@
4424
5975
  return IntlMessageFormat;
4425
5976
  }());
4426
5977
 
4427
- const r={},i=(e,n,t)=>t?(n in r||(r[n]={}),e in r[n]||(r[n][e]=t),t):t,a=(e,n)=>{if(null==n)return;if(n in r&&e in r[n])return r[n][e];const t=E(n);for(let o=0;o<t.length;o++){const r=c(t[o],e);if(r)return i(e,n,r)}};let l;const s=writable({});function u(e){return e in l}function c(e,n){if(!u(e))return null;return function(e,n){if(n in e)return e[n];const t=n.split(".");let o=e;for(let e=0;e<t.length;e++)if("object"==typeof o){if(e>0){const n=t.slice(e,t.length).join(".");if(n in o){o=o[n];break}}o=o[t[e]];}else o=void 0;return o}(function(e){return l[e]||null}(e),n)}function m(e,...n){delete r[e],s.update((o=>(o[e]=cjs.all([o[e]||{},...n]),o)));}derived([s],(([e])=>Object.keys(e)));s.subscribe((e=>l=e));const d={};function g(e){return d[e]}function w(e){return E(e).some((e=>{var n;return null===(n=g(e))||void 0===n?void 0:n.size}))}function h(e,n){return Promise.all(n.map((n=>(function(e,n){d[e].delete(n),0===d[e].size&&delete d[e];}(e,n),n().then((e=>e.default||e)))))).then((n=>m(e,...n)))}const p={};function b(e){if(!w(e))return e in p?p[e]:void 0;const n=function(e){return E(e).map((e=>{const n=g(e);return [e,n?[...n]:[]]})).filter((([,e])=>e.length>0))}(e);return p[e]=Promise.all(n.map((([e,n])=>h(e,n)))).then((()=>{if(w(e))return b(e);delete p[e];})),p[e]}/*! *****************************************************************************
5978
+ /*
5979
+ Copyright (c) 2014, Yahoo! Inc. All rights reserved.
5980
+ Copyrights licensed under the New BSD License.
5981
+ See the accompanying LICENSE file for terms.
5982
+ */
5983
+ var o = IntlMessageFormat;
5984
+
5985
+ const r={},i=(e,n,t)=>t?(n in r||(r[n]={}),e in r[n]||(r[n][e]=t),t):t,l=(e,n)=>{if(null==n)return;if(n in r&&e in r[n])return r[n][e];const t=E(n);for(let o=0;o<t.length;o++){const r=c(t[o],e);if(r)return i(e,n,r)}};let a;const s=writable({});function u(e){return e in a}function c(e,n){if(!u(e))return null;const t=function(e){return a[e]||null}(e);return function(e,n){if(null==n)return;if(n in e)return e[n];const t=n.split(".");let o=e;for(let e=0;e<t.length;e++)if("object"==typeof o){if(e>0){const n=t.slice(e,t.length).join(".");if(n in o){o=o[n];break}}o=o[t[e]];}else o=void 0;return o}(t,n)}function m(e,...n){delete r[e],s.update((o=>(o[e]=cjs.all([o[e]||{},...n]),o)));}derived([s],(([e])=>Object.keys(e)));s.subscribe((e=>a=e));const d={};function g(e){return d[e]}function h(e){return null!=e&&E(e).some((e=>{var n;return null===(n=g(e))||void 0===n?void 0:n.size}))}function w(e,n){const t=Promise.all(n.map((n=>(function(e,n){d[e].delete(n),0===d[e].size&&delete d[e];}(e,n),n().then((e=>e.default||e))))));return t.then((n=>m(e,...n)))}const p={};function b(e){if(!h(e))return e in p?p[e]:Promise.resolve();const n=function(e){return E(e).map((e=>{const n=g(e);return [e,n?[...n]:[]]})).filter((([,e])=>e.length>0))}(e);return p[e]=Promise.all(n.map((([e,n])=>w(e,n)))).then((()=>{if(h(e))return b(e);delete p[e];})),p[e]}/*! *****************************************************************************
4428
5986
  Copyright (c) Microsoft Corporation.
4429
5987
 
4430
5988
  Permission to use, copy, modify, and/or distribute this software for any
@@ -4437,10 +5995,47 @@
4437
5995
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4438
5996
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4439
5997
  PERFORMANCE OF THIS SOFTWARE.
4440
- ***************************************************************************** */function v(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);}return t}const O={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};function j(){return O}const k=writable(!1);let L;const T=writable(null);function x(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=x(e);return n?[...new Set([...t,...x(n)])]:t}function D(){return L}T.subscribe((e=>{L=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e);}));const M=T.set;T.set=e=>{if(function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&w(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>k.set(!0)),n):k.set(!0),b(e).then((()=>{M(e);})).finally((()=>{clearTimeout(t),k.set(!1);}))}return M(e)},T.update=e=>M(e(L));const Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(o=C("number",t)),new Intl.NumberFormat(n,o)})),J=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?o=C("date",t):0===Object.keys(o).length&&(o=C("date","short")),new Intl.DateTimeFormat(n,o)})),U=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?o=C("time",t):0===Object.keys(o).length&&(o=C("time","short")),new Intl.DateTimeFormat(n,o)})),_=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return G(Object.assign({locale:n},t))},q=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return J(Object.assign({locale:n},t))},B=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return U(Object.assign({locale:n},t))},H=Z(((e,n=D())=>new IntlMessageFormat(e,n,j().formats,{ignoreTag:j().ignoreTag}))),K=(e,n={})=>{"object"==typeof e&&(e=(n=e).id);const{values:t,locale:o=D(),default:r}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=a(e,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else j().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${E(o).join('", "')}".${w(D())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=r||e;if(!t)return i;let l=i;try{l=H(i,o).format(t);}catch(n){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return l},Q=(e,n)=>B(n).format(e),R=(e,n)=>q(n).format(e),V=(e,n)=>_(n).format(e),W=(e,n=D())=>a(e,n),X=derived([T,s],(()=>K));derived([T],(()=>Q));derived([T],(()=>R));derived([T],(()=>V));derived([T,s],(()=>W));
5998
+ ***************************************************************************** */function v(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);}return t}const j={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function M(){return j}const k=writable(!1);let T;const L=writable(null);function x(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=M().fallbackLocale){const t=x(e);return n?[...new Set([...t,...x(n)])]:t}function P(){return null!=T?T:void 0}L.subscribe((e=>{T=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e);}));const D=Object.assign(Object.assign({},L),{set:e=>{if(e&&function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&h(e)){const{loadingDelay:n}=M();let t;return "undefined"!=typeof window&&null!=P()&&n?t=window.setTimeout((()=>k.set(!0)),n):k.set(!0),b(e).then((()=>{L.set(e);})).finally((()=>{clearTimeout(t),k.set(!1);}))}return L.set(e)}}),C=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},G=(e,n)=>{const{formats:t}=M();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},J=C((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(o=G("number",t)),new Intl.NumberFormat(n,o)})),U=C((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?o=G("date",t):0===Object.keys(o).length&&(o=G("date","short")),new Intl.DateTimeFormat(n,o)})),V=C((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?o=G("time",t):0===Object.keys(o).length&&(o=G("time","short")),new Intl.DateTimeFormat(n,o)})),_=(e={})=>{var{locale:n=P()}=e,t=v(e,["locale"]);return J(Object.assign({locale:n},t))},q=(e={})=>{var{locale:n=P()}=e,t=v(e,["locale"]);return U(Object.assign({locale:n},t))},B=(e={})=>{var{locale:n=P()}=e,t=v(e,["locale"]);return V(Object.assign({locale:n},t))},H=C(((e,n=P())=>new o(e,n,M().formats,{ignoreTag:M().ignoreTag}))),K=(e,n={})=>{var t,o,r,i;let a=n;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:u=P(),default:c}=a;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let m=l(e,u);if(m){if("string"!=typeof m)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof m}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),m}else m=null!==(i=null!==(r=null===(o=(t=M()).handleMissingMessage)||void 0===o?void 0:o.call(t,{locale:u,id:e,defaultValue:c}))&&void 0!==r?r:c)&&void 0!==i?i:e;if(!s)return m;let f=m;try{f=H(m,u).format(s);}catch(n){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return f},Q=(e,n)=>B(n).format(e),R=(e,n)=>q(n).format(e),W=(e,n)=>_(n).format(e),X=(e,n=P())=>l(e,n),Y=derived([D,s],(()=>K));derived([D],(()=>Q));derived([D],(()=>R));derived([D],(()=>W));derived([D,s],(()=>X));
4441
5999
 
4442
6000
  window.emWidgets = { topic };
4443
6001
 
6002
+ /**
6003
+ * @name isMobile
6004
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
6005
+ * @param {String} userAgent window.navigator.userAgent
6006
+ * @returns {Boolean} true or false
6007
+ */
6008
+ const isMobile = (userAgent) => {
6009
+ return !!(
6010
+ userAgent.toLowerCase().match(/android/i) ||
6011
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
6012
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
6013
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)
6014
+ );
6015
+ };
6016
+
6017
+ /**
6018
+ * @name getDevice
6019
+ * @description A method that returns the type of the device
6020
+ * @param {String} userAgent window.navigator.userAgent
6021
+ * @returns {String} Android/iPhone/iPad/PC
6022
+ */
6023
+ const getDevice = (userAgent) => {
6024
+ if (userAgent.toLowerCase().match(/android/i)) {
6025
+ return 'Android';
6026
+ }
6027
+
6028
+ if (userAgent.toLowerCase().match(/iphone/i)) {
6029
+ return 'iPhone';
6030
+ }
6031
+
6032
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
6033
+ return 'iPad';
6034
+ }
6035
+
6036
+ return 'PC';
6037
+ };
6038
+
4444
6039
  function checkSession(endpoint, session) {
4445
6040
  return new Promise((resolve, reject) => {
4446
6041
  let reqHeaders = new Headers();
@@ -4460,10 +6055,10 @@
4460
6055
  }
4461
6056
 
4462
6057
  function setupI18n({ withLocale: _locale, translations }) {
4463
- T.subscribe((data) => {
6058
+ D.subscribe((data) => {
4464
6059
  if (data == null) {
4465
6060
  s.set(translations);
4466
- T.set(_locale);
6061
+ D.set(_locale);
4467
6062
  }
4468
6063
  }); // maybe we will need this to make sure that the i18n is set up only once
4469
6064
  /*dictionary.set(translations);
@@ -4475,7 +6070,7 @@
4475
6070
  }
4476
6071
 
4477
6072
  function setLocale(_locale) {
4478
- T.set(_locale);
6073
+ D.set(_locale);
4479
6074
  }
4480
6075
 
4481
6076
  const IntegratedGamePageTranslations = {
@@ -4486,8 +6081,7 @@
4486
6081
  deposit: 'Deposit',
4487
6082
  playForFun: 'Play for fun',
4488
6083
  playNow: 'Start now!',
4489
- break: 'Take 1 day break from playing',
4490
- breakButton: '24-hour Cool Off',
6084
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4491
6085
  }
4492
6086
  },
4493
6087
  de: {
@@ -4497,8 +6091,7 @@
4497
6091
  deposit: 'Einzahlung',
4498
6092
  playForFun: 'Play for fun',
4499
6093
  playNow: 'Jetzt starten!',
4500
- break: 'Mach mal einen Tag Pause!',
4501
- breakButton: '24 Stunden Auszeit',
6094
+ breakButton: 'Für 24 Std. Games Sofortpause, 3 Sekunden drücken',
4502
6095
  }
4503
6096
  },
4504
6097
  it: {
@@ -4508,8 +6101,7 @@
4508
6101
  deposit: 'Deposito',
4509
6102
  playForFun: 'Play for fun',
4510
6103
  playNow: 'Inizia ora!',
4511
- break: 'Take 1 day break from playing',
4512
- breakButton: '24-hour Cool Off',
6104
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4513
6105
  }
4514
6106
  },
4515
6107
  fr: {
@@ -4519,7 +6111,6 @@
4519
6111
  deposit: 'Dépôt',
4520
6112
  playForFun: 'Jouer pour le plaisir',
4521
6113
  playNow: 'Commencez maintenant',
4522
- break: 'Faire une pause d\'un jour dans le jeu ',
4523
6114
  breakButton: 'Refroidissement de 24 heures',
4524
6115
  }
4525
6116
  },
@@ -4530,7 +6121,6 @@
4530
6121
  deposit: 'Depósito',
4531
6122
  playForFun: 'Juega por diversión',
4532
6123
  playNow: 'Empezar ahora!',
4533
- break: 'Tómate un descanso de 1 día del juego.',
4534
6124
  breakButton: 'Tómese un descanso de 24 horas del juego',
4535
6125
  }
4536
6126
  },
@@ -4541,8 +6131,7 @@
4541
6131
  deposit: 'DEPOZİTO',
4542
6132
  playForFun: 'EĞLENCE İÇİN OYNA',
4543
6133
  playNow: 'ŞİMDİ OYNA',
4544
- break: 'Take 1 day break from playing',
4545
- breakButton: '24-hour Cool Off',
6134
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4546
6135
  }
4547
6136
  },
4548
6137
  ru: {
@@ -4552,8 +6141,7 @@
4552
6141
  deposit: 'ДЕПОЗИТ',
4553
6142
  playForFun: 'ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ',
4554
6143
  playNow: 'ИГРАТЬ СЕЙЧАС',
4555
- break: 'Take 1 day break from playing',
4556
- breakButton: '24-hour Cool Off',
6144
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4557
6145
  }
4558
6146
  },
4559
6147
  ro: {
@@ -4563,8 +6151,7 @@
4563
6151
  deposit: 'DEPOZITEAZA',
4564
6152
  playForFun: 'JOACĂ PENTRU DISTRACTIE',
4565
6153
  playNow: 'JOACĂ ACUM',
4566
- break: 'Take 1 day break from playing',
4567
- breakButton: '24-hour Cool Off',
6154
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4568
6155
  }
4569
6156
  },
4570
6157
  hr: {
@@ -4574,8 +6161,7 @@
4574
6161
  deposit: 'Uplata',
4575
6162
  playForFun: 'Igraj za zabavu',
4576
6163
  playNow: 'Započnite sada!',
4577
- break: 'Take 1 day break from playing',
4578
- breakButton: '24-hour Cool Off',
6164
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4579
6165
  }
4580
6166
  },
4581
6167
  hu: {
@@ -4585,8 +6171,7 @@
4585
6171
  deposit: 'Befizetés',
4586
6172
  playForFun: 'Play for fun',
4587
6173
  playNow: 'Játsszon most!',
4588
- break: 'Take 1 day break from playing',
4589
- breakButton: '24-hour Cool Off',
6174
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4590
6175
  }
4591
6176
  },
4592
6177
  pl: {
@@ -4596,8 +6181,7 @@
4596
6181
  deposit: 'Wpłata',
4597
6182
  playForFun: 'Graj dla zabawy',
4598
6183
  playNow: 'Rozpocznij teraz!',
4599
- break: 'Take 1 day break from playing',
4600
- breakButton: '24-hour Cool Off',
6184
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4601
6185
  }
4602
6186
  },
4603
6187
  pt: {
@@ -4607,8 +6191,7 @@
4607
6191
  deposit: 'Depósito',
4608
6192
  playForFun: 'Jogue por diversão',
4609
6193
  playNow: 'Jogue agora!',
4610
- break: 'Faça uma pausa de 1 dia no jogo',
4611
- breakButton: 'Faça uma pausa de 24 horas no jogo',
6194
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4612
6195
  }
4613
6196
  },
4614
6197
  sl: {
@@ -4618,8 +6201,7 @@
4618
6201
  deposit: 'Vplačilo',
4619
6202
  playForFun: 'Igrajte za zabavo',
4620
6203
  playNow: 'Začnite zdaj!',
4621
- break: 'Take 1 day break from playing',
4622
- breakButton: '24-hour Cool Off',
6204
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4623
6205
  }
4624
6206
  },
4625
6207
  sr: {
@@ -4629,8 +6211,7 @@
4629
6211
  deposit: 'Uplata',
4630
6212
  playForFun: 'Igraj za zabavu',
4631
6213
  playNow: 'Započnite sada!',
4632
- break: 'Take 1 day break from playing',
4633
- breakButton: '24-hour Cool Off',
6214
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
4634
6215
  }
4635
6216
  }
4636
6217
  };
@@ -4688,7 +6269,7 @@
4688
6269
 
4689
6270
  function getBridge() {
4690
6271
  try {
4691
- return require$$0__default['default'].readFileSync(`${__dirname}/bridge.js`, 'utf8');
6272
+ return require$$0__default["default"].readFileSync(`${__dirname}/bridge.js`, 'utf8');
4692
6273
  } catch(e) {
4693
6274
  console.error('Cannot load bridge script:', e);
4694
6275
  return '';
@@ -4800,8 +6381,9 @@
4800
6381
 
4801
6382
  function map(arr, fn) {
4802
6383
  var res = [],
4803
- i;
4804
- for (i = 0; i < arr.length; ++i) {
6384
+ i,
6385
+ arrLen = arr.length;
6386
+ for (i = 0; i < arrLen; ++i) {
4805
6387
  res.push(fn(arr[i], i));
4806
6388
  }
4807
6389
  return res;
@@ -4930,7 +6512,10 @@
4930
6512
  updateInProgress = false;
4931
6513
 
4932
6514
  function copyConfig(to, from) {
4933
- var i, prop, val;
6515
+ var i,
6516
+ prop,
6517
+ val,
6518
+ momentPropertiesLen = momentProperties.length;
4934
6519
 
4935
6520
  if (!isUndefined(from._isAMomentObject)) {
4936
6521
  to._isAMomentObject = from._isAMomentObject;
@@ -4963,8 +6548,8 @@
4963
6548
  to._locale = from._locale;
4964
6549
  }
4965
6550
 
4966
- if (momentProperties.length > 0) {
4967
- for (i = 0; i < momentProperties.length; i++) {
6551
+ if (momentPropertiesLen > 0) {
6552
+ for (i = 0; i < momentPropertiesLen; i++) {
4968
6553
  prop = momentProperties[i];
4969
6554
  val = from[prop];
4970
6555
  if (!isUndefined(val)) {
@@ -5019,8 +6604,9 @@
5019
6604
  var args = [],
5020
6605
  arg,
5021
6606
  i,
5022
- key;
5023
- for (i = 0; i < arguments.length; i++) {
6607
+ key,
6608
+ argLen = arguments.length;
6609
+ for (i = 0; i < argLen; i++) {
5024
6610
  arg = '';
5025
6611
  if (typeof arguments[i] === 'object') {
5026
6612
  arg += '\n[' + i + '] ';
@@ -5170,7 +6756,8 @@
5170
6756
  );
5171
6757
  }
5172
6758
 
5173
- var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
6759
+ var formattingTokens =
6760
+ /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
5174
6761
  localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
5175
6762
  formatFunctions = {},
5176
6763
  formatTokenFunctions = {};
@@ -5474,8 +7061,9 @@
5474
7061
  if (typeof units === 'object') {
5475
7062
  units = normalizeObjectUnits(units);
5476
7063
  var prioritized = getPrioritizedUnits(units),
5477
- i;
5478
- for (i = 0; i < prioritized.length; i++) {
7064
+ i,
7065
+ prioritizedLen = prioritized.length;
7066
+ for (i = 0; i < prioritizedLen; i++) {
5479
7067
  this[prioritized[i].unit](units[prioritized[i].unit]);
5480
7068
  }
5481
7069
  } else {
@@ -5505,7 +7093,8 @@
5505
7093
  matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
5506
7094
  // any word (or two) characters or numbers including two/three word month in arabic.
5507
7095
  // includes scottish gaelic two word and hyphenated months
5508
- matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
7096
+ matchWord =
7097
+ /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
5509
7098
  regexes;
5510
7099
 
5511
7100
  regexes = {};
@@ -5531,15 +7120,12 @@
5531
7120
  return regexEscape(
5532
7121
  s
5533
7122
  .replace('\\', '')
5534
- .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
5535
- matched,
5536
- p1,
5537
- p2,
5538
- p3,
5539
- p4
5540
- ) {
5541
- return p1 || p2 || p3 || p4;
5542
- })
7123
+ .replace(
7124
+ /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
7125
+ function (matched, p1, p2, p3, p4) {
7126
+ return p1 || p2 || p3 || p4;
7127
+ }
7128
+ )
5543
7129
  );
5544
7130
  }
5545
7131
 
@@ -5551,7 +7137,8 @@
5551
7137
 
5552
7138
  function addParseToken(token, callback) {
5553
7139
  var i,
5554
- func = callback;
7140
+ func = callback,
7141
+ tokenLen;
5555
7142
  if (typeof token === 'string') {
5556
7143
  token = [token];
5557
7144
  }
@@ -5560,7 +7147,8 @@
5560
7147
  array[callback] = toInt(input);
5561
7148
  };
5562
7149
  }
5563
- for (i = 0; i < token.length; i++) {
7150
+ tokenLen = token.length;
7151
+ for (i = 0; i < tokenLen; i++) {
5564
7152
  tokens[token[i]] = func;
5565
7153
  }
5566
7154
  }
@@ -5671,12 +7259,12 @@
5671
7259
 
5672
7260
  // LOCALES
5673
7261
 
5674
- var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
5675
- '_'
5676
- ),
5677
- defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
5678
- '_'
5679
- ),
7262
+ var defaultLocaleMonths =
7263
+ 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
7264
+ '_'
7265
+ ),
7266
+ defaultLocaleMonthsShort =
7267
+ 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
5680
7268
  MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
5681
7269
  defaultMonthsShortRegex = matchWord,
5682
7270
  defaultMonthsRegex = matchWord;
@@ -6118,14 +7706,12 @@
6118
7706
  addRegexToken('W', match1to2);
6119
7707
  addRegexToken('WW', match1to2, match2);
6120
7708
 
6121
- addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
6122
- input,
6123
- week,
6124
- config,
6125
- token
6126
- ) {
6127
- week[token.substr(0, 1)] = toInt(input);
6128
- });
7709
+ addWeekParseToken(
7710
+ ['w', 'ww', 'W', 'WW'],
7711
+ function (input, week, config, token) {
7712
+ week[token.substr(0, 1)] = toInt(input);
7713
+ }
7714
+ );
6129
7715
 
6130
7716
  // HELPERS
6131
7717
 
@@ -6250,9 +7836,8 @@
6250
7836
  return ws.slice(n, 7).concat(ws.slice(0, n));
6251
7837
  }
6252
7838
 
6253
- var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
6254
- '_'
6255
- ),
7839
+ var defaultLocaleWeekdays =
7840
+ 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6256
7841
  defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
6257
7842
  defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
6258
7843
  defaultWeekdaysRegex = matchWord,
@@ -6800,6 +8385,11 @@
6800
8385
  return globalLocale;
6801
8386
  }
6802
8387
 
8388
+ function isLocaleNameSane(name) {
8389
+ // Prevent names that look like filesystem paths, i.e contain '/' or '\'
8390
+ return name.match('^[^/\\\\]*$') != null;
8391
+ }
8392
+
6803
8393
  function loadLocale(name) {
6804
8394
  var oldLocale = null,
6805
8395
  aliasedRequire;
@@ -6808,7 +8398,8 @@
6808
8398
  locales[name] === undefined &&
6809
8399
  'object' !== 'undefined' &&
6810
8400
  module &&
6811
- module.exports
8401
+ module.exports &&
8402
+ isLocaleNameSane(name)
6812
8403
  ) {
6813
8404
  try {
6814
8405
  oldLocale = globalLocale._abbr;
@@ -7025,8 +8616,10 @@
7025
8616
 
7026
8617
  // iso 8601 regex
7027
8618
  // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
7028
- var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
7029
- basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
8619
+ var extendedIsoRegex =
8620
+ /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
8621
+ basicIsoRegex =
8622
+ /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
7030
8623
  tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
7031
8624
  isoDates = [
7032
8625
  ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
@@ -7057,7 +8650,8 @@
7057
8650
  ],
7058
8651
  aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
7059
8652
  // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
7060
- rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
8653
+ rfc2822 =
8654
+ /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
7061
8655
  obsOffsets = {
7062
8656
  UT: 0,
7063
8657
  GMT: 0,
@@ -7080,12 +8674,13 @@
7080
8674
  allowTime,
7081
8675
  dateFormat,
7082
8676
  timeFormat,
7083
- tzFormat;
8677
+ tzFormat,
8678
+ isoDatesLen = isoDates.length,
8679
+ isoTimesLen = isoTimes.length;
7084
8680
 
7085
8681
  if (match) {
7086
8682
  getParsingFlags(config).iso = true;
7087
-
7088
- for (i = 0, l = isoDates.length; i < l; i++) {
8683
+ for (i = 0, l = isoDatesLen; i < l; i++) {
7089
8684
  if (isoDates[i][1].exec(match[1])) {
7090
8685
  dateFormat = isoDates[i][0];
7091
8686
  allowTime = isoDates[i][2] !== false;
@@ -7097,7 +8692,7 @@
7097
8692
  return;
7098
8693
  }
7099
8694
  if (match[3]) {
7100
- for (i = 0, l = isoTimes.length; i < l; i++) {
8695
+ for (i = 0, l = isoTimesLen; i < l; i++) {
7101
8696
  if (isoTimes[i][1].exec(match[3])) {
7102
8697
  // match[2] should be 'T' or space
7103
8698
  timeFormat = (match[2] || ' ') + isoTimes[i][0];
@@ -7477,12 +9072,13 @@
7477
9072
  skipped,
7478
9073
  stringLength = string.length,
7479
9074
  totalParsedInputLength = 0,
7480
- era;
9075
+ era,
9076
+ tokenLen;
7481
9077
 
7482
9078
  tokens =
7483
9079
  expandFormat(config._f, config._locale).match(formattingTokens) || [];
7484
-
7485
- for (i = 0; i < tokens.length; i++) {
9080
+ tokenLen = tokens.length;
9081
+ for (i = 0; i < tokenLen; i++) {
7486
9082
  token = tokens[i];
7487
9083
  parsedInput = (string.match(getParseRegexForToken(token, config)) ||
7488
9084
  [])[0];
@@ -7577,15 +9173,16 @@
7577
9173
  i,
7578
9174
  currentScore,
7579
9175
  validFormatFound,
7580
- bestFormatIsValid = false;
9176
+ bestFormatIsValid = false,
9177
+ configfLen = config._f.length;
7581
9178
 
7582
- if (config._f.length === 0) {
9179
+ if (configfLen === 0) {
7583
9180
  getParsingFlags(config).invalidFormat = true;
7584
9181
  config._d = new Date(NaN);
7585
9182
  return;
7586
9183
  }
7587
9184
 
7588
- for (i = 0; i < config._f.length; i++) {
9185
+ for (i = 0; i < configfLen; i++) {
7589
9186
  currentScore = 0;
7590
9187
  validFormatFound = false;
7591
9188
  tempConfig = copyConfig({}, config);
@@ -7826,7 +9423,8 @@
7826
9423
  function isDurationValid(m) {
7827
9424
  var key,
7828
9425
  unitHasDecimal = false,
7829
- i;
9426
+ i,
9427
+ orderLen = ordering.length;
7830
9428
  for (key in m) {
7831
9429
  if (
7832
9430
  hasOwnProp(m, key) &&
@@ -7839,7 +9437,7 @@
7839
9437
  }
7840
9438
  }
7841
9439
 
7842
- for (i = 0; i < ordering.length; ++i) {
9440
+ for (i = 0; i < orderLen; ++i) {
7843
9441
  if (m[ordering[i]]) {
7844
9442
  if (unitHasDecimal) {
7845
9443
  return false; // only allow non-integers for smallest unit
@@ -8164,7 +9762,8 @@
8164
9762
  // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
8165
9763
  // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
8166
9764
  // and further modified to allow for strings containing both week and day
8167
- isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
9765
+ isoRegex =
9766
+ /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
8168
9767
 
8169
9768
  function createDuration(input, key) {
8170
9769
  var duration = input,
@@ -8385,9 +9984,10 @@
8385
9984
  'ms',
8386
9985
  ],
8387
9986
  i,
8388
- property;
9987
+ property,
9988
+ propertyLen = properties.length;
8389
9989
 
8390
- for (i = 0; i < properties.length; i += 1) {
9990
+ for (i = 0; i < propertyLen; i += 1) {
8391
9991
  property = properties[i];
8392
9992
  propertyTest = propertyTest || hasOwnProp(input, property);
8393
9993
  }
@@ -9010,19 +10610,17 @@
9010
10610
  addRegexToken('NNNN', matchEraName);
9011
10611
  addRegexToken('NNNNN', matchEraNarrow);
9012
10612
 
9013
- addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
9014
- input,
9015
- array,
9016
- config,
9017
- token
9018
- ) {
9019
- var era = config._locale.erasParse(input, token, config._strict);
9020
- if (era) {
9021
- getParsingFlags(config).era = era;
9022
- } else {
9023
- getParsingFlags(config).invalidEra = input;
10613
+ addParseToken(
10614
+ ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
10615
+ function (input, array, config, token) {
10616
+ var era = config._locale.erasParse(input, token, config._strict);
10617
+ if (era) {
10618
+ getParsingFlags(config).era = era;
10619
+ } else {
10620
+ getParsingFlags(config).invalidEra = input;
10621
+ }
9024
10622
  }
9025
- });
10623
+ );
9026
10624
 
9027
10625
  addRegexToken('y', matchUnsigned);
9028
10626
  addRegexToken('yy', matchUnsigned);
@@ -9314,14 +10912,12 @@
9314
10912
  addRegexToken('GGGGG', match1to6, match6);
9315
10913
  addRegexToken('ggggg', match1to6, match6);
9316
10914
 
9317
- addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
9318
- input,
9319
- week,
9320
- config,
9321
- token
9322
- ) {
9323
- week[token.substr(0, 2)] = toInt(input);
9324
- });
10915
+ addWeekParseToken(
10916
+ ['gggg', 'ggggg', 'GGGG', 'GGGGG'],
10917
+ function (input, week, config, token) {
10918
+ week[token.substr(0, 2)] = toInt(input);
10919
+ }
10920
+ );
9325
10921
 
9326
10922
  addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
9327
10923
  week[token] = hooks.parseTwoDigitYear(input);
@@ -10344,7 +11940,7 @@
10344
11940
 
10345
11941
  //! moment.js
10346
11942
 
10347
- hooks.version = '2.29.1';
11943
+ hooks.version = '2.29.3';
10348
11944
 
10349
11945
  setHookCallback(createLocal);
10350
11946
 
@@ -10394,17 +11990,17 @@
10394
11990
  })));
10395
11991
  });
10396
11992
 
10397
- /* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.37.0 */
11993
+ /* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.48.0 */
10398
11994
 
10399
11995
  const { Object: Object_1, console: console_1 } = globals;
10400
11996
  const file = "src/CasinoIntegratedGamePage.svelte";
10401
11997
 
10402
- // (320:2) {:else}
11998
+ // (327:2) {:else}
10403
11999
  function create_else_block(ctx) {
10404
12000
  let div;
10405
12001
 
10406
12002
  function select_block_type_1(ctx, dirty) {
10407
- if (/*isLoggedIn*/ ctx[4]) return create_if_block_2;
12003
+ if (/*isLoggedIn*/ ctx[5]) return create_if_block_2;
10408
12004
  if (/*funMode*/ ctx[10]) return create_if_block_6;
10409
12005
  }
10410
12006
 
@@ -10417,12 +12013,12 @@
10417
12013
  if (if_block) if_block.c();
10418
12014
  attr_dev(div, "class", "CasinoIntegratedGamePage");
10419
12015
  attr_dev(div, "part", "CasinoIntegratedGamePage");
10420
- add_location(div, file, 320, 4, 11630);
12016
+ add_location(div, file, 327, 4, 11745);
10421
12017
  },
10422
12018
  m: function mount(target, anchor) {
10423
12019
  insert_dev(target, div, anchor);
10424
12020
  if (if_block) if_block.m(div, null);
10425
- /*div_binding*/ ctx[67](div);
12021
+ /*div_binding*/ ctx[66](div);
10426
12022
  },
10427
12023
  p: function update(ctx, dirty) {
10428
12024
  if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) {
@@ -10444,7 +12040,7 @@
10444
12040
  if_block.d();
10445
12041
  }
10446
12042
 
10447
- /*div_binding*/ ctx[67](null);
12043
+ /*div_binding*/ ctx[66](null);
10448
12044
  }
10449
12045
  };
10450
12046
 
@@ -10452,14 +12048,14 @@
10452
12048
  block,
10453
12049
  id: create_else_block.name,
10454
12050
  type: "else",
10455
- source: "(320:2) {:else}",
12051
+ source: "(327:2) {:else}",
10456
12052
  ctx
10457
12053
  });
10458
12054
 
10459
12055
  return block;
10460
12056
  }
10461
12057
 
10462
- // (318:2) {#if hasErrors}
12058
+ // (325:2) {#if hasErrors}
10463
12059
  function create_if_block_1(ctx) {
10464
12060
  let p;
10465
12061
 
@@ -10469,7 +12065,7 @@
10469
12065
  p.textContent = "500 Error - Internal Server Error.";
10470
12066
  attr_dev(p, "class", "SearchLoading");
10471
12067
  attr_dev(p, "part", "SearchLoading");
10472
- add_location(p, file, 318, 4, 11531);
12068
+ add_location(p, file, 325, 4, 11646);
10473
12069
  },
10474
12070
  m: function mount(target, anchor) {
10475
12071
  insert_dev(target, p, anchor);
@@ -10484,14 +12080,14 @@
10484
12080
  block,
10485
12081
  id: create_if_block_1.name,
10486
12082
  type: "if",
10487
- source: "(318:2) {#if hasErrors}",
12083
+ source: "(325:2) {#if hasErrors}",
10488
12084
  ctx
10489
12085
  });
10490
12086
 
10491
12087
  return block;
10492
12088
  }
10493
12089
 
10494
- // (315:0) {#if isLoading}
12090
+ // (322:0) {#if isLoading}
10495
12091
  function create_if_block(ctx) {
10496
12092
  let p;
10497
12093
 
@@ -10501,7 +12097,7 @@
10501
12097
  p.textContent = "Loading, please wait ...";
10502
12098
  attr_dev(p, "class", "SearchLoading");
10503
12099
  attr_dev(p, "part", "SearchLoading");
10504
- add_location(p, file, 315, 2, 11426);
12100
+ add_location(p, file, 322, 2, 11541);
10505
12101
  },
10506
12102
  m: function mount(target, anchor) {
10507
12103
  insert_dev(target, p, anchor);
@@ -10516,14 +12112,14 @@
10516
12112
  block,
10517
12113
  id: create_if_block.name,
10518
12114
  type: "if",
10519
- source: "(315:0) {#if isLoading}",
12115
+ source: "(322:0) {#if isLoading}",
10520
12116
  ctx
10521
12117
  });
10522
12118
 
10523
12119
  return block;
10524
12120
  }
10525
12121
 
10526
- // (359:8) {#if funMode}
12122
+ // (364:8) {#if funMode}
10527
12123
  function create_if_block_6(ctx) {
10528
12124
  let div1;
10529
12125
  let button0;
@@ -10547,11 +12143,11 @@
10547
12143
  let div3;
10548
12144
  let div2;
10549
12145
  let button1;
10550
- let t6_value = /*$_*/ ctx[22]("gamePage.signIn") + "";
12146
+ let t6_value = /*$_*/ ctx[22]('gamePage.signIn') + "";
10551
12147
  let t6;
10552
12148
  let t7;
10553
12149
  let button2;
10554
- let t8_value = /*$_*/ ctx[22]("gamePage.register") + "";
12150
+ let t8_value = /*$_*/ ctx[22]('gamePage.register') + "";
10555
12151
  let t8;
10556
12152
  let t9;
10557
12153
  let t10;
@@ -10565,7 +12161,7 @@
10565
12161
 
10566
12162
  let current_block_type = select_block_type_3(ctx);
10567
12163
  let if_block0 = current_block_type(ctx);
10568
- let if_block1 = /*gamebanneractive*/ ctx[1] == "true" && !/*isFullscreen*/ ctx[16] && create_if_block_7(ctx);
12164
+ let if_block1 = /*gamebanneractive*/ ctx[1] == 'true' && !/*isFullscreen*/ ctx[16] && create_if_block_7(ctx);
10569
12165
 
10570
12166
  const block = {
10571
12167
  c: function create() {
@@ -10579,7 +12175,7 @@
10579
12175
  t1 = space();
10580
12176
  p = element("p");
10581
12177
  span = element("span");
10582
- t2 = text(/*time*/ ctx[2]);
12178
+ t2 = text(/*time*/ ctx[3]);
10583
12179
  t3 = space();
10584
12180
  div0 = element("div");
10585
12181
  t4 = space();
@@ -10598,72 +12194,72 @@
10598
12194
  if_block0.c();
10599
12195
  t10 = space();
10600
12196
  if (if_block1) if_block1.c();
10601
- add_location(style, file, 361, 80, 15925);
10602
- add_location(defs, file, 361, 74, 15919);
12197
+ add_location(style, file, 366, 80, 15785);
12198
+ add_location(defs, file, 366, 74, 15779);
10603
12199
  attr_dev(path, "class", "a");
10604
12200
  attr_dev(path, "d", "M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z");
10605
12201
  attr_dev(path, "transform", "translate(24 24) rotate(180)");
10606
- add_location(path, file, 361, 148, 15993);
12202
+ add_location(path, file, 366, 148, 15853);
10607
12203
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
10608
12204
  attr_dev(svg, "viewBox", "0 0 24 24");
10609
- add_location(svg, file, 361, 14, 15859);
12205
+ add_location(svg, file, 366, 14, 15719);
10610
12206
  attr_dev(button0, "class", "backButton");
10611
12207
  attr_dev(button0, "part", "backButton");
10612
- add_location(button0, file, 360, 12, 15767);
10613
- add_location(span, file, 363, 66, 16217);
12208
+ add_location(button0, file, 365, 12, 15627);
12209
+ add_location(span, file, 368, 66, 16077);
10614
12210
  attr_dev(p, "class", "Time");
10615
12211
  attr_dev(p, "part", "Time");
10616
- add_location(p, file, 363, 12, 16163);
10617
- add_location(div0, file, 364, 12, 16253);
12212
+ add_location(p, file, 368, 12, 16023);
12213
+ add_location(div0, file, 369, 12, 16113);
10618
12214
  attr_dev(div1, "class", "GamePageIntegratedTopSection");
10619
12215
  attr_dev(div1, "part", "GamePageIntegratedTopSection");
10620
- add_location(div1, file, 359, 10, 15676);
12216
+ add_location(div1, file, 364, 10, 15536);
10621
12217
  attr_dev(iframe_1, "title", "Games");
10622
12218
  attr_dev(iframe_1, "class", "GamesContainer");
10623
12219
  attr_dev(iframe_1, "part", "GamesContainer");
10624
12220
  attr_dev(iframe_1, "aria-hidden", "false");
10625
- if (iframe_1.src !== (iframe_1_src_value = /*game*/ ctx[9].launchUrl)) attr_dev(iframe_1, "src", iframe_1_src_value);
10626
- add_location(iframe_1, file, 368, 14, 16942);
12221
+ if (!src_url_equal(iframe_1.src, iframe_1_src_value = /*game*/ ctx[9].launchUrl)) attr_dev(iframe_1, "src", iframe_1_src_value);
12222
+ add_location(iframe_1, file, 373, 14, 16802);
10627
12223
  attr_dev(button1, "class", "LoginButton");
10628
12224
  attr_dev(button1, "part", "LoginButton");
10629
- add_location(button1, file, 371, 18, 17294);
12225
+ add_location(button1, file, 376, 18, 17154);
10630
12226
  attr_dev(button2, "class", "RegisterButton");
10631
12227
  attr_dev(button2, "part", "RegisterButton");
10632
- add_location(button2, file, 372, 18, 17423);
12228
+ add_location(button2, file, 377, 18, 17283);
10633
12229
  attr_dev(div2, "class", "ButtonsContainer ButtonsContainerFunMode");
10634
12230
  attr_dev(div2, "part", "ButtonsContainer ButtonsContainerFunMode");
10635
- add_location(div2, file, 370, 16, 17173);
12231
+ add_location(div2, file, 375, 16, 17033);
10636
12232
  attr_dev(div3, "class", "BottomGame");
10637
12233
  attr_dev(div3, "part", "BottomGame");
10638
- add_location(div3, file, 369, 14, 17085);
12234
+ add_location(div3, file, 374, 14, 16945);
10639
12235
  attr_dev(div4, "id", "IframeGame");
10640
12236
  attr_dev(div4, "part", "IframeGame");
10641
12237
 
10642
12238
  set_style(div4, "width", /*isFullscreen*/ ctx[16]
10643
- ? "100%"
12239
+ ? '100%'
10644
12240
  : /*definitiveIframeWidth*/ ctx[17]);
10645
12241
 
10646
12242
  set_style(div4, "height", /*isFullscreen*/ ctx[16]
10647
- ? "100%"
12243
+ ? '100%'
10648
12244
  : /*definitiveIframeHeight*/ ctx[18]);
10649
12245
 
10650
12246
  set_style(div4, "max-width", /*isFullscreen*/ ctx[16] || !/*isModal*/ ctx[11]
10651
- ? "none"
12247
+ ? 'none'
10652
12248
  : /*game*/ ctx[9].width
10653
- ? Math.floor(/*game*/ ctx[9].width) + "px"
10654
- : "1280px");
12249
+ ? Math.floor(/*game*/ ctx[9].width) + 'px'
12250
+ : '1280px');
10655
12251
 
10656
12252
  set_style(div4, "max-height", /*isFullscreen*/ ctx[16] || !/*isModal*/ ctx[11]
10657
- ? "none"
12253
+ ? 'none'
10658
12254
  : /*game*/ ctx[9].height
10659
- ? Math.floor(/*game*/ ctx[9].height) + 100 + "px"
10660
- : "720px");
12255
+ ? Math.floor(/*game*/ ctx[9].height) + 100 + 'px'
12256
+ : '720px');
10661
12257
 
10662
- add_location(div4, file, 367, 12, 16514);
12258
+ add_location(div4, file, 372, 12, 16374);
10663
12259
  attr_dev(div5, "id", "IframeContainer");
10664
12260
  attr_dev(div5, "part", "IframeContainer");
10665
12261
  toggle_class(div5, "FullsScreenLayout", /*isFullscreen*/ ctx[16]);
10666
- add_location(div5, file, 366, 10, 16382);
12262
+ add_location(div5, file, 371, 10, 16242);
10667
12263
  },
10668
12264
  m: function mount(target, anchor) {
10669
12265
  insert_dev(target, div1, anchor);
@@ -10677,14 +12273,14 @@
10677
12273
  append_dev(div1, p);
10678
12274
  append_dev(p, span);
10679
12275
  append_dev(span, t2);
10680
- /*p_binding_1*/ ctx[58](p);
12276
+ /*p_binding_1*/ ctx[57](p);
10681
12277
  append_dev(div1, t3);
10682
12278
  append_dev(div1, div0);
10683
12279
  insert_dev(target, t4, anchor);
10684
12280
  insert_dev(target, div5, anchor);
10685
12281
  append_dev(div5, div4);
10686
12282
  append_dev(div4, iframe_1);
10687
- /*iframe_1_binding_1*/ ctx[59](iframe_1);
12283
+ /*iframe_1_binding_1*/ ctx[58](iframe_1);
10688
12284
  append_dev(div4, t5);
10689
12285
  append_dev(div4, div3);
10690
12286
  append_dev(div3, div2);
@@ -10695,31 +12291,31 @@
10695
12291
  append_dev(button2, t8);
10696
12292
  append_dev(div3, t9);
10697
12293
  if_block0.m(div3, null);
10698
- /*div3_binding_1*/ ctx[64](div3);
10699
- /*div4_binding*/ ctx[65](div4);
12294
+ /*div3_binding_1*/ ctx[63](div3);
12295
+ /*div4_binding*/ ctx[64](div4);
10700
12296
  append_dev(div5, t10);
10701
12297
  if (if_block1) if_block1.m(div5, null);
10702
- /*div5_binding*/ ctx[66](div5);
12298
+ /*div5_binding*/ ctx[65](div5);
10703
12299
 
10704
12300
  if (!mounted) {
10705
12301
  dispose = [
10706
- listen_dev(button0, "click", /*click_handler_5*/ ctx[57], false, false, false),
10707
- listen_dev(button1, "click", /*click_handler_6*/ ctx[60], false, false, false),
10708
- listen_dev(button2, "click", /*click_handler_7*/ ctx[61], false, false, false)
12302
+ listen_dev(button0, "click", /*click_handler_4*/ ctx[56], false, false, false),
12303
+ listen_dev(button1, "click", /*click_handler_5*/ ctx[59], false, false, false),
12304
+ listen_dev(button2, "click", /*click_handler_6*/ ctx[60], false, false, false)
10709
12305
  ];
10710
12306
 
10711
12307
  mounted = true;
10712
12308
  }
10713
12309
  },
10714
12310
  p: function update(ctx, dirty) {
10715
- if (dirty[0] & /*time*/ 4) set_data_dev(t2, /*time*/ ctx[2]);
12311
+ if (dirty[0] & /*time*/ 8) set_data_dev(t2, /*time*/ ctx[3]);
10716
12312
 
10717
- if (dirty[0] & /*game*/ 512 && iframe_1.src !== (iframe_1_src_value = /*game*/ ctx[9].launchUrl)) {
12313
+ if (dirty[0] & /*game*/ 512 && !src_url_equal(iframe_1.src, iframe_1_src_value = /*game*/ ctx[9].launchUrl)) {
10718
12314
  attr_dev(iframe_1, "src", iframe_1_src_value);
10719
12315
  }
10720
12316
 
10721
- if (dirty[0] & /*$_*/ 4194304 && t6_value !== (t6_value = /*$_*/ ctx[22]("gamePage.signIn") + "")) set_data_dev(t6, t6_value);
10722
- if (dirty[0] & /*$_*/ 4194304 && t8_value !== (t8_value = /*$_*/ ctx[22]("gamePage.register") + "")) set_data_dev(t8, t8_value);
12317
+ if (dirty[0] & /*$_*/ 4194304 && t6_value !== (t6_value = /*$_*/ ctx[22]('gamePage.signIn') + "")) set_data_dev(t6, t6_value);
12318
+ if (dirty[0] & /*$_*/ 4194304 && t8_value !== (t8_value = /*$_*/ ctx[22]('gamePage.register') + "")) set_data_dev(t8, t8_value);
10723
12319
 
10724
12320
  if (current_block_type === (current_block_type = select_block_type_3(ctx)) && if_block0) {
10725
12321
  if_block0.p(ctx, dirty);
@@ -10735,33 +12331,33 @@
10735
12331
 
10736
12332
  if (dirty[0] & /*isFullscreen, definitiveIframeWidth*/ 196608) {
10737
12333
  set_style(div4, "width", /*isFullscreen*/ ctx[16]
10738
- ? "100%"
12334
+ ? '100%'
10739
12335
  : /*definitiveIframeWidth*/ ctx[17]);
10740
12336
  }
10741
12337
 
10742
12338
  if (dirty[0] & /*isFullscreen, definitiveIframeHeight*/ 327680) {
10743
12339
  set_style(div4, "height", /*isFullscreen*/ ctx[16]
10744
- ? "100%"
12340
+ ? '100%'
10745
12341
  : /*definitiveIframeHeight*/ ctx[18]);
10746
12342
  }
10747
12343
 
10748
12344
  if (dirty[0] & /*isFullscreen, isModal, game*/ 68096) {
10749
12345
  set_style(div4, "max-width", /*isFullscreen*/ ctx[16] || !/*isModal*/ ctx[11]
10750
- ? "none"
12346
+ ? 'none'
10751
12347
  : /*game*/ ctx[9].width
10752
- ? Math.floor(/*game*/ ctx[9].width) + "px"
10753
- : "1280px");
12348
+ ? Math.floor(/*game*/ ctx[9].width) + 'px'
12349
+ : '1280px');
10754
12350
  }
10755
12351
 
10756
12352
  if (dirty[0] & /*isFullscreen, isModal, game*/ 68096) {
10757
12353
  set_style(div4, "max-height", /*isFullscreen*/ ctx[16] || !/*isModal*/ ctx[11]
10758
- ? "none"
12354
+ ? 'none'
10759
12355
  : /*game*/ ctx[9].height
10760
- ? Math.floor(/*game*/ ctx[9].height) + 100 + "px"
10761
- : "720px");
12356
+ ? Math.floor(/*game*/ ctx[9].height) + 100 + 'px'
12357
+ : '720px');
10762
12358
  }
10763
12359
 
10764
- if (/*gamebanneractive*/ ctx[1] == "true" && !/*isFullscreen*/ ctx[16]) {
12360
+ if (/*gamebanneractive*/ ctx[1] == 'true' && !/*isFullscreen*/ ctx[16]) {
10765
12361
  if (if_block1) ; else {
10766
12362
  if_block1 = create_if_block_7(ctx);
10767
12363
  if_block1.c();
@@ -10778,15 +12374,15 @@
10778
12374
  },
10779
12375
  d: function destroy(detaching) {
10780
12376
  if (detaching) detach_dev(div1);
10781
- /*p_binding_1*/ ctx[58](null);
12377
+ /*p_binding_1*/ ctx[57](null);
10782
12378
  if (detaching) detach_dev(t4);
10783
12379
  if (detaching) detach_dev(div5);
10784
- /*iframe_1_binding_1*/ ctx[59](null);
12380
+ /*iframe_1_binding_1*/ ctx[58](null);
10785
12381
  if_block0.d();
10786
- /*div3_binding_1*/ ctx[64](null);
10787
- /*div4_binding*/ ctx[65](null);
12382
+ /*div3_binding_1*/ ctx[63](null);
12383
+ /*div4_binding*/ ctx[64](null);
10788
12384
  if (if_block1) if_block1.d();
10789
- /*div5_binding*/ ctx[66](null);
12385
+ /*div5_binding*/ ctx[65](null);
10790
12386
  mounted = false;
10791
12387
  run_all(dispose);
10792
12388
  }
@@ -10796,14 +12392,14 @@
10796
12392
  block,
10797
12393
  id: create_if_block_6.name,
10798
12394
  type: "if",
10799
- source: "(359:8) {#if funMode}",
12395
+ source: "(364:8) {#if funMode}",
10800
12396
  ctx
10801
12397
  });
10802
12398
 
10803
12399
  return block;
10804
12400
  }
10805
12401
 
10806
- // (322:6) {#if isLoggedIn}
12402
+ // (329:6) {#if isLoggedIn}
10807
12403
  function create_if_block_2(ctx) {
10808
12404
  let div0;
10809
12405
  let button0;
@@ -10818,7 +12414,7 @@
10818
12414
  let t2;
10819
12415
  let t3;
10820
12416
  let button1;
10821
- let t4_value = /*$_*/ ctx[22]("gamePage.deposit") + "";
12417
+ let t4_value = /*$_*/ ctx[22]('gamePage.deposit') + "";
10822
12418
  let t4;
10823
12419
  let t5;
10824
12420
  let div3;
@@ -10842,7 +12438,7 @@
10842
12438
 
10843
12439
  let current_block_type = select_block_type_2(ctx);
10844
12440
  let if_block1 = current_block_type(ctx);
10845
- let if_block2 = /*gamebanneractive*/ ctx[1] == "true" && !/*isFullscreen*/ ctx[16] && create_if_block_3(ctx);
12441
+ let if_block2 = /*gamebanneractive*/ ctx[1] == 'true' && !/*isFullscreen*/ ctx[16] && create_if_block_3(ctx);
10846
12442
 
10847
12443
  const block = {
10848
12444
  c: function create() {
@@ -10856,7 +12452,7 @@
10856
12452
  t1 = space();
10857
12453
  p = element("p");
10858
12454
  span = element("span");
10859
- t2 = text(/*time*/ ctx[2]);
12455
+ t2 = text(/*time*/ ctx[3]);
10860
12456
  t3 = space();
10861
12457
  button1 = element("button");
10862
12458
  t4 = text(t4_value);
@@ -10871,68 +12467,68 @@
10871
12467
  if_block1.c();
10872
12468
  t8 = space();
10873
12469
  if (if_block2) if_block2.c();
10874
- add_location(style, file, 324, 78, 12012);
10875
- add_location(defs, file, 324, 72, 12006);
12470
+ add_location(style, file, 331, 78, 12127);
12471
+ add_location(defs, file, 331, 72, 12121);
10876
12472
  attr_dev(path, "class", "a");
10877
12473
  attr_dev(path, "d", "M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z");
10878
12474
  attr_dev(path, "transform", "translate(24 24) rotate(180)");
10879
- add_location(path, file, 324, 143, 12077);
12475
+ add_location(path, file, 331, 143, 12192);
10880
12476
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
10881
12477
  attr_dev(svg, "viewBox", "0 0 24 24");
10882
- add_location(svg, file, 324, 12, 11946);
12478
+ add_location(svg, file, 331, 12, 12061);
10883
12479
  attr_dev(button0, "class", "backButton");
10884
12480
  attr_dev(button0, "part", "backButton");
10885
- add_location(button0, file, 323, 10, 11856);
10886
- add_location(span, file, 326, 64, 12297);
12481
+ add_location(button0, file, 330, 10, 11971);
12482
+ add_location(span, file, 333, 64, 12412);
10887
12483
  attr_dev(p, "class", "Time");
10888
12484
  attr_dev(p, "part", "Time");
10889
- add_location(p, file, 326, 10, 12243);
12485
+ add_location(p, file, 333, 10, 12358);
10890
12486
  attr_dev(button1, "class", "DepositButton");
10891
12487
  attr_dev(button1, "part", "DepositButton");
10892
- add_location(button1, file, 327, 10, 12331);
12488
+ add_location(button1, file, 334, 10, 12446);
10893
12489
  attr_dev(div0, "class", "GamePageIntegratedTopSection");
10894
12490
  attr_dev(div0, "part", "GamePageIntegratedTopSection");
10895
- add_location(div0, file, 322, 8, 11767);
12491
+ add_location(div0, file, 329, 8, 11882);
10896
12492
  attr_dev(iframe_1, "title", "Games");
10897
12493
  attr_dev(iframe_1, "id", "IframeGame");
10898
12494
  attr_dev(iframe_1, "class", "GamesContainer");
10899
12495
  attr_dev(iframe_1, "part", "GamesContainer");
10900
12496
  attr_dev(iframe_1, "aria-hidden", "false");
10901
- if (iframe_1.src !== (iframe_1_src_value = /*game*/ ctx[9].launchUrl)) attr_dev(iframe_1, "src", iframe_1_src_value);
10902
- attr_dev(iframe_1, "width", iframe_1_width_value = /*gameContainerWidth*/ ctx[13] + "px");
10903
- attr_dev(iframe_1, "height", iframe_1_height_value = /*gameContainerHeight*/ ctx[14] + "px");
10904
- add_location(iframe_1, file, 331, 12, 12992);
12497
+ if (!src_url_equal(iframe_1.src, iframe_1_src_value = /*game*/ ctx[9].launchUrl)) attr_dev(iframe_1, "src", iframe_1_src_value);
12498
+ attr_dev(iframe_1, "width", iframe_1_width_value = /*gameContainerWidth*/ ctx[13] + 'px');
12499
+ attr_dev(iframe_1, "height", iframe_1_height_value = /*gameContainerHeight*/ ctx[14] + 'px');
12500
+ add_location(iframe_1, file, 338, 12, 13107);
10905
12501
  attr_dev(div1, "class", "BottomGame BottomGameLoggedin");
10906
12502
  attr_dev(div1, "part", "BottomGame BottomGameLoggedin");
10907
- add_location(div1, file, 332, 12, 13220);
12503
+ add_location(div1, file, 339, 12, 13335);
10908
12504
  attr_dev(div2, "id", "IframeGame");
10909
12505
  attr_dev(div2, "part", "IframeGame");
10910
12506
 
10911
12507
  set_style(div2, "width", /*isFullscreen*/ ctx[16]
10912
- ? "100%"
12508
+ ? '100%'
10913
12509
  : /*definitiveIframeWidth*/ ctx[17]);
10914
12510
 
10915
12511
  set_style(div2, "height", /*isFullscreen*/ ctx[16]
10916
- ? "100%"
12512
+ ? '100%'
10917
12513
  : /*definitiveIframeHeight*/ ctx[18]);
10918
12514
 
10919
12515
  set_style(div2, "max-width", /*isFullscreen*/ ctx[16]
10920
- ? "none"
12516
+ ? 'none'
10921
12517
  : /*game*/ ctx[9].width
10922
- ? /*game*/ ctx[9].width + "px"
10923
- : "1280px");
12518
+ ? /*game*/ ctx[9].width + 'px'
12519
+ : '1280px');
10924
12520
 
10925
12521
  set_style(div2, "max-height", /*isFullscreen*/ ctx[16]
10926
- ? "none"
12522
+ ? 'none'
10927
12523
  : /*game*/ ctx[9].height
10928
- ? Math.floor(/*game*/ ctx[9].height) + 100 + "px"
10929
- : "720px");
12524
+ ? Math.floor(/*game*/ ctx[9].height) + 100 + 'px'
12525
+ : '720px');
10930
12526
 
10931
- add_location(div2, file, 330, 10, 12602);
12527
+ add_location(div2, file, 337, 10, 12717);
10932
12528
  attr_dev(div3, "id", "IframeContainer");
10933
12529
  attr_dev(div3, "part", "IframeContainer");
10934
12530
  toggle_class(div3, "FullsScreenLayout", /*isFullscreen*/ ctx[16]);
10935
- add_location(div3, file, 329, 8, 12472);
12531
+ add_location(div3, file, 336, 8, 12587);
10936
12532
  },
10937
12533
  m: function mount(target, anchor) {
10938
12534
  insert_dev(target, div0, anchor);
@@ -10960,11 +12556,11 @@
10960
12556
  if (if_block0) if_block0.m(div1, null);
10961
12557
  append_dev(div1, t7);
10962
12558
  if_block1.m(div1, null);
10963
- /*div1_binding*/ ctx[54](div1);
10964
- /*div2_binding*/ ctx[55](div2);
12559
+ /*div1_binding*/ ctx[53](div1);
12560
+ /*div2_binding*/ ctx[54](div2);
10965
12561
  append_dev(div3, t8);
10966
12562
  if (if_block2) if_block2.m(div3, null);
10967
- /*div3_binding*/ ctx[56](div3);
12563
+ /*div3_binding*/ ctx[55](div3);
10968
12564
 
10969
12565
  if (!mounted) {
10970
12566
  dispose = [
@@ -10976,18 +12572,18 @@
10976
12572
  }
10977
12573
  },
10978
12574
  p: function update(ctx, dirty) {
10979
- if (dirty[0] & /*time*/ 4) set_data_dev(t2, /*time*/ ctx[2]);
10980
- if (dirty[0] & /*$_*/ 4194304 && t4_value !== (t4_value = /*$_*/ ctx[22]("gamePage.deposit") + "")) set_data_dev(t4, t4_value);
12575
+ if (dirty[0] & /*time*/ 8) set_data_dev(t2, /*time*/ ctx[3]);
12576
+ if (dirty[0] & /*$_*/ 4194304 && t4_value !== (t4_value = /*$_*/ ctx[22]('gamePage.deposit') + "")) set_data_dev(t4, t4_value);
10981
12577
 
10982
- if (dirty[0] & /*game*/ 512 && iframe_1.src !== (iframe_1_src_value = /*game*/ ctx[9].launchUrl)) {
12578
+ if (dirty[0] & /*game*/ 512 && !src_url_equal(iframe_1.src, iframe_1_src_value = /*game*/ ctx[9].launchUrl)) {
10983
12579
  attr_dev(iframe_1, "src", iframe_1_src_value);
10984
12580
  }
10985
12581
 
10986
- if (dirty[0] & /*gameContainerWidth*/ 8192 && iframe_1_width_value !== (iframe_1_width_value = /*gameContainerWidth*/ ctx[13] + "px")) {
12582
+ if (dirty[0] & /*gameContainerWidth*/ 8192 && iframe_1_width_value !== (iframe_1_width_value = /*gameContainerWidth*/ ctx[13] + 'px')) {
10987
12583
  attr_dev(iframe_1, "width", iframe_1_width_value);
10988
12584
  }
10989
12585
 
10990
- if (dirty[0] & /*gameContainerHeight*/ 16384 && iframe_1_height_value !== (iframe_1_height_value = /*gameContainerHeight*/ ctx[14] + "px")) {
12586
+ if (dirty[0] & /*gameContainerHeight*/ 16384 && iframe_1_height_value !== (iframe_1_height_value = /*gameContainerHeight*/ ctx[14] + 'px')) {
10991
12587
  attr_dev(iframe_1, "height", iframe_1_height_value);
10992
12588
  }
10993
12589
 
@@ -11018,33 +12614,33 @@
11018
12614
 
11019
12615
  if (dirty[0] & /*isFullscreen, definitiveIframeWidth*/ 196608) {
11020
12616
  set_style(div2, "width", /*isFullscreen*/ ctx[16]
11021
- ? "100%"
12617
+ ? '100%'
11022
12618
  : /*definitiveIframeWidth*/ ctx[17]);
11023
12619
  }
11024
12620
 
11025
12621
  if (dirty[0] & /*isFullscreen, definitiveIframeHeight*/ 327680) {
11026
12622
  set_style(div2, "height", /*isFullscreen*/ ctx[16]
11027
- ? "100%"
12623
+ ? '100%'
11028
12624
  : /*definitiveIframeHeight*/ ctx[18]);
11029
12625
  }
11030
12626
 
11031
12627
  if (dirty[0] & /*isFullscreen, game*/ 66048) {
11032
12628
  set_style(div2, "max-width", /*isFullscreen*/ ctx[16]
11033
- ? "none"
12629
+ ? 'none'
11034
12630
  : /*game*/ ctx[9].width
11035
- ? /*game*/ ctx[9].width + "px"
11036
- : "1280px");
12631
+ ? /*game*/ ctx[9].width + 'px'
12632
+ : '1280px');
11037
12633
  }
11038
12634
 
11039
12635
  if (dirty[0] & /*isFullscreen, game*/ 66048) {
11040
12636
  set_style(div2, "max-height", /*isFullscreen*/ ctx[16]
11041
- ? "none"
12637
+ ? 'none'
11042
12638
  : /*game*/ ctx[9].height
11043
- ? Math.floor(/*game*/ ctx[9].height) + 100 + "px"
11044
- : "720px");
12639
+ ? Math.floor(/*game*/ ctx[9].height) + 100 + 'px'
12640
+ : '720px');
11045
12641
  }
11046
12642
 
11047
- if (/*gamebanneractive*/ ctx[1] == "true" && !/*isFullscreen*/ ctx[16]) {
12643
+ if (/*gamebanneractive*/ ctx[1] == 'true' && !/*isFullscreen*/ ctx[16]) {
11048
12644
  if (if_block2) ; else {
11049
12645
  if_block2 = create_if_block_3(ctx);
11050
12646
  if_block2.c();
@@ -11067,10 +12663,10 @@
11067
12663
  /*iframe_1_binding*/ ctx[49](null);
11068
12664
  if (if_block0) if_block0.d();
11069
12665
  if_block1.d();
11070
- /*div1_binding*/ ctx[54](null);
11071
- /*div2_binding*/ ctx[55](null);
12666
+ /*div1_binding*/ ctx[53](null);
12667
+ /*div2_binding*/ ctx[54](null);
11072
12668
  if (if_block2) if_block2.d();
11073
- /*div3_binding*/ ctx[56](null);
12669
+ /*div3_binding*/ ctx[55](null);
11074
12670
  mounted = false;
11075
12671
  run_all(dispose);
11076
12672
  }
@@ -11080,14 +12676,14 @@
11080
12676
  block,
11081
12677
  id: create_if_block_2.name,
11082
12678
  type: "if",
11083
- source: "(322:6) {#if isLoggedIn}",
12679
+ source: "(329:6) {#if isLoggedIn}",
11084
12680
  ctx
11085
12681
  });
11086
12682
 
11087
12683
  return block;
11088
12684
  }
11089
12685
 
11090
- // (379:16) {:else}
12686
+ // (384:16) {:else}
11091
12687
  function create_else_block_2(ctx) {
11092
12688
  let button;
11093
12689
  let svg;
@@ -11101,15 +12697,15 @@
11101
12697
  svg = svg_element("svg");
11102
12698
  path = svg_element("path");
11103
12699
  attr_dev(path, "d", "M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z");
11104
- add_location(path, file, 380, 103, 18485);
12700
+ add_location(path, file, 385, 103, 18345);
11105
12701
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
11106
12702
  attr_dev(svg, "width", "24");
11107
12703
  attr_dev(svg, "height", "24");
11108
12704
  attr_dev(svg, "viewBox", "0 0 24 24");
11109
- add_location(svg, file, 380, 20, 18402);
12705
+ add_location(svg, file, 385, 20, 18262);
11110
12706
  attr_dev(button, "class", "FullscreenButton");
11111
12707
  attr_dev(button, "part", "FullscreenButton");
11112
- add_location(button, file, 379, 18, 18288);
12708
+ add_location(button, file, 384, 18, 18148);
11113
12709
  },
11114
12710
  m: function mount(target, anchor) {
11115
12711
  insert_dev(target, button, anchor);
@@ -11117,7 +12713,7 @@
11117
12713
  append_dev(svg, path);
11118
12714
 
11119
12715
  if (!mounted) {
11120
- dispose = listen_dev(button, "click", /*click_handler_9*/ ctx[63], false, false, false);
12716
+ dispose = listen_dev(button, "click", /*click_handler_8*/ ctx[62], false, false, false);
11121
12717
  mounted = true;
11122
12718
  }
11123
12719
  },
@@ -11133,14 +12729,14 @@
11133
12729
  block,
11134
12730
  id: create_else_block_2.name,
11135
12731
  type: "else",
11136
- source: "(379:16) {:else}",
12732
+ source: "(384:16) {:else}",
11137
12733
  ctx
11138
12734
  });
11139
12735
 
11140
12736
  return block;
11141
12737
  }
11142
12738
 
11143
- // (375:16) {#if isFullscreen}
12739
+ // (380:16) {#if isFullscreen}
11144
12740
  function create_if_block_8(ctx) {
11145
12741
  let button;
11146
12742
  let svg;
@@ -11161,23 +12757,23 @@
11161
12757
  polygon3 = svg_element("polygon");
11162
12758
  set_style(polygon0, "fill", "#fff");
11163
12759
  attr_dev(polygon0, "points", "24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t");
11164
- add_location(polygon0, file, 376, 68, 17783);
12760
+ add_location(polygon0, file, 381, 68, 17643);
11165
12761
  set_style(polygon1, "fill", "#fff");
11166
12762
  attr_dev(polygon1, "points", "0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t");
11167
- add_location(polygon1, file, 376, 176, 17891);
12763
+ add_location(polygon1, file, 381, 176, 17751);
11168
12764
  set_style(polygon2, "fill", "#fff");
11169
12765
  attr_dev(polygon2, "points", "0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t");
11170
- add_location(polygon2, file, 376, 282, 17997);
12766
+ add_location(polygon2, file, 381, 282, 17857);
11171
12767
  set_style(polygon3, "fill", "#fff");
11172
12768
  attr_dev(polygon3, "points", "20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t");
11173
- add_location(polygon3, file, 376, 385, 18100);
12769
+ add_location(polygon3, file, 381, 385, 17960);
11174
12770
  attr_dev(svg, "width", "24");
11175
12771
  attr_dev(svg, "height", "24");
11176
12772
  attr_dev(svg, "viewBox", "0 0 31 31");
11177
- add_location(svg, file, 376, 20, 17735);
12773
+ add_location(svg, file, 381, 20, 17595);
11178
12774
  attr_dev(button, "class", "FullscreenButton");
11179
12775
  attr_dev(button, "part", "FullscreenButton");
11180
- add_location(button, file, 375, 18, 17621);
12776
+ add_location(button, file, 380, 18, 17481);
11181
12777
  },
11182
12778
  m: function mount(target, anchor) {
11183
12779
  insert_dev(target, button, anchor);
@@ -11188,7 +12784,7 @@
11188
12784
  append_dev(svg, polygon3);
11189
12785
 
11190
12786
  if (!mounted) {
11191
- dispose = listen_dev(button, "click", /*click_handler_8*/ ctx[62], false, false, false);
12787
+ dispose = listen_dev(button, "click", /*click_handler_7*/ ctx[61], false, false, false);
11192
12788
  mounted = true;
11193
12789
  }
11194
12790
  },
@@ -11204,14 +12800,14 @@
11204
12800
  block,
11205
12801
  id: create_if_block_8.name,
11206
12802
  type: "if",
11207
- source: "(375:16) {#if isFullscreen}",
12803
+ source: "(380:16) {#if isFullscreen}",
11208
12804
  ctx
11209
12805
  });
11210
12806
 
11211
12807
  return block;
11212
12808
  }
11213
12809
 
11214
- // (386:12) {#if gamebanneractive == 'true' && !isFullscreen}
12810
+ // (391:12) {#if gamebanneractive == 'true' && !isFullscreen}
11215
12811
  function create_if_block_7(ctx) {
11216
12812
  let div;
11217
12813
  let h3;
@@ -11221,10 +12817,10 @@
11221
12817
  div = element("div");
11222
12818
  h3 = element("h3");
11223
12819
  h3.textContent = "Your banner here";
11224
- add_location(h3, file, 387, 16, 19044);
12820
+ add_location(h3, file, 392, 16, 18904);
11225
12821
  attr_dev(div, "class", "BannerSection");
11226
12822
  attr_dev(div, "part", "BannerSection");
11227
- add_location(div, file, 386, 14, 18979);
12823
+ add_location(div, file, 391, 14, 18839);
11228
12824
  },
11229
12825
  m: function mount(target, anchor) {
11230
12826
  insert_dev(target, div, anchor);
@@ -11239,83 +12835,48 @@
11239
12835
  block,
11240
12836
  id: create_if_block_7.name,
11241
12837
  type: "if",
11242
- source: "(386:12) {#if gamebanneractive == 'true' && !isFullscreen}",
12838
+ source: "(391:12) {#if gamebanneractive == 'true' && !isFullscreen}",
11243
12839
  ctx
11244
12840
  });
11245
12841
 
11246
12842
  return block;
11247
12843
  }
11248
12844
 
11249
- // (334:14) {#if haspanicbutton === "true"}
12845
+ // (341:14) {#if haspanicbutton === "true"}
11250
12846
  function create_if_block_5(ctx) {
11251
12847
  let div;
11252
- let svg;
11253
- let path;
11254
- let t0;
11255
- let p;
11256
- let t1_value = /*$_*/ ctx[22]("gamePage.break") + "";
11257
- let t1;
11258
- let t2;
11259
12848
  let button;
11260
- let t3_value = /*$_*/ ctx[22]("casinoPage.breakButton") + "";
11261
- let t3;
11262
- let mounted;
11263
- let dispose;
12849
+ let t_value = /*$_*/ ctx[22]('gamePage.breakButton') + "";
12850
+ let t;
11264
12851
 
11265
12852
  const block = {
11266
12853
  c: function create() {
11267
12854
  div = element("div");
11268
- svg = svg_element("svg");
11269
- path = svg_element("path");
11270
- t0 = space();
11271
- p = element("p");
11272
- t1 = text(t1_value);
11273
- t2 = space();
11274
12855
  button = element("button");
11275
- t3 = text(t3_value);
11276
- attr_dev(path, "stroke-linecap", "round");
11277
- attr_dev(path, "stroke-linejoin", "round");
11278
- attr_dev(path, "stroke-width", "2");
11279
- attr_dev(path, "d", "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z");
11280
- add_location(path, file, 335, 163, 13602);
11281
- attr_dev(svg, "class", "w-1 h-1");
11282
- attr_dev(svg, "part", "w-1 h-1");
11283
- attr_dev(svg, "fill", "none");
11284
- attr_dev(svg, "stroke", "white");
11285
- attr_dev(svg, "width", "34px");
11286
- attr_dev(svg, "height", "34px");
11287
- attr_dev(svg, "viewBox", "0 0 24 24");
11288
- attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
11289
- add_location(svg, file, 335, 18, 13457);
11290
- add_location(p, file, 336, 18, 13752);
11291
- attr_dev(button, "class", "PanicButton");
11292
- attr_dev(button, "part", "PanicButton");
12856
+ t = text(t_value);
12857
+
12858
+ attr_dev(button, "class", "PanicButton " + (getDevice(/*userAgent*/ ctx[23]) !== 'PC'
12859
+ ? 'PanicButtonMobile'
12860
+ : ''));
12861
+
12862
+ attr_dev(button, "part", "PanicButton " + (getDevice(/*userAgent*/ ctx[23]) !== 'PC'
12863
+ ? 'PanicButtonMobile'
12864
+ : ''));
12865
+
11293
12866
  toggle_class(button, "PanicButtonAnimation", /*panicLoading*/ ctx[8]);
11294
- add_location(button, file, 337, 18, 13800);
12867
+ add_location(button, file, 342, 18, 13572);
11295
12868
  attr_dev(div, "class", "PanicSection");
11296
12869
  attr_dev(div, "part", "PanicSection");
11297
- add_location(div, file, 334, 16, 13392);
12870
+ add_location(div, file, 341, 16, 13507);
11298
12871
  },
11299
12872
  m: function mount(target, anchor) {
11300
12873
  insert_dev(target, div, anchor);
11301
- append_dev(div, svg);
11302
- append_dev(svg, path);
11303
- append_dev(div, t0);
11304
- append_dev(div, p);
11305
- append_dev(p, t1);
11306
- append_dev(div, t2);
11307
12874
  append_dev(div, button);
11308
- append_dev(button, t3);
12875
+ append_dev(button, t);
11309
12876
  /*button_binding*/ ctx[50](button);
11310
-
11311
- if (!mounted) {
11312
- dispose = listen_dev(button, "click", /*click_handler_2*/ ctx[51], false, false, false);
11313
- mounted = true;
11314
- }
11315
12877
  },
11316
12878
  p: function update(ctx, dirty) {
11317
- if (dirty[0] & /*$_*/ 4194304 && t1_value !== (t1_value = /*$_*/ ctx[22]("gamePage.break") + "")) set_data_dev(t1, t1_value);
11318
- if (dirty[0] & /*$_*/ 4194304 && t3_value !== (t3_value = /*$_*/ ctx[22]("casinoPage.breakButton") + "")) set_data_dev(t3, t3_value);
12879
+ if (dirty[0] & /*$_*/ 4194304 && t_value !== (t_value = /*$_*/ ctx[22]('gamePage.breakButton') + "")) set_data_dev(t, t_value);
11319
12880
 
11320
12881
  if (dirty[0] & /*panicLoading*/ 256) {
11321
12882
  toggle_class(button, "PanicButtonAnimation", /*panicLoading*/ ctx[8]);
@@ -11324,8 +12885,6 @@
11324
12885
  d: function destroy(detaching) {
11325
12886
  if (detaching) detach_dev(div);
11326
12887
  /*button_binding*/ ctx[50](null);
11327
- mounted = false;
11328
- dispose();
11329
12888
  }
11330
12889
  };
11331
12890
 
@@ -11333,14 +12892,14 @@
11333
12892
  block,
11334
12893
  id: create_if_block_5.name,
11335
12894
  type: "if",
11336
- source: "(334:14) {#if haspanicbutton === \\\"true\\\"}",
12895
+ source: "(341:14) {#if haspanicbutton === \\\"true\\\"}",
11337
12896
  ctx
11338
12897
  });
11339
12898
 
11340
12899
  return block;
11341
12900
  }
11342
12901
 
11343
- // (345:14) {:else}
12902
+ // (350:14) {:else}
11344
12903
  function create_else_block_1(ctx) {
11345
12904
  let button;
11346
12905
  let svg;
@@ -11354,15 +12913,15 @@
11354
12913
  svg = svg_element("svg");
11355
12914
  path = svg_element("path");
11356
12915
  attr_dev(path, "d", "M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z");
11357
- add_location(path, file, 346, 101, 15009);
12916
+ add_location(path, file, 351, 101, 14869);
11358
12917
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
11359
12918
  attr_dev(svg, "width", "24");
11360
12919
  attr_dev(svg, "height", "24");
11361
12920
  attr_dev(svg, "viewBox", "0 0 24 24");
11362
- add_location(svg, file, 346, 18, 14926);
12921
+ add_location(svg, file, 351, 18, 14786);
11363
12922
  attr_dev(button, "class", "FullscreenButton");
11364
12923
  attr_dev(button, "part", "FullscreenButton");
11365
- add_location(button, file, 345, 16, 14814);
12924
+ add_location(button, file, 350, 16, 14674);
11366
12925
  },
11367
12926
  m: function mount(target, anchor) {
11368
12927
  insert_dev(target, button, anchor);
@@ -11370,7 +12929,7 @@
11370
12929
  append_dev(svg, path);
11371
12930
 
11372
12931
  if (!mounted) {
11373
- dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[53], false, false, false);
12932
+ dispose = listen_dev(button, "click", /*click_handler_3*/ ctx[52], false, false, false);
11374
12933
  mounted = true;
11375
12934
  }
11376
12935
  },
@@ -11386,14 +12945,14 @@
11386
12945
  block,
11387
12946
  id: create_else_block_1.name,
11388
12947
  type: "else",
11389
- source: "(345:14) {:else}",
12948
+ source: "(350:14) {:else}",
11390
12949
  ctx
11391
12950
  });
11392
12951
 
11393
12952
  return block;
11394
12953
  }
11395
12954
 
11396
- // (341:14) {#if isFullscreen}
12955
+ // (346:14) {#if isFullscreen}
11397
12956
  function create_if_block_4(ctx) {
11398
12957
  let button;
11399
12958
  let svg;
@@ -11414,25 +12973,25 @@
11414
12973
  polygon3 = svg_element("polygon");
11415
12974
  set_style(polygon0, "fill", "#fff");
11416
12975
  attr_dev(polygon0, "points", "24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t");
11417
- add_location(polygon0, file, 342, 144, 14315);
12976
+ add_location(polygon0, file, 347, 144, 14175);
11418
12977
  set_style(polygon1, "fill", "#fff");
11419
12978
  attr_dev(polygon1, "points", "0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t");
11420
- add_location(polygon1, file, 342, 252, 14423);
12979
+ add_location(polygon1, file, 347, 252, 14283);
11421
12980
  set_style(polygon2, "fill", "#fff");
11422
12981
  attr_dev(polygon2, "points", "0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t");
11423
- add_location(polygon2, file, 342, 358, 14529);
12982
+ add_location(polygon2, file, 347, 358, 14389);
11424
12983
  set_style(polygon3, "fill", "#fff");
11425
12984
  attr_dev(polygon3, "points", "20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t");
11426
- add_location(polygon3, file, 342, 461, 14632);
12985
+ add_location(polygon3, file, 347, 461, 14492);
11427
12986
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
11428
12987
  attr_dev(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
11429
12988
  attr_dev(svg, "width", "24");
11430
12989
  attr_dev(svg, "height", "24");
11431
12990
  attr_dev(svg, "viewBox", "0 0 31 31");
11432
- add_location(svg, file, 342, 18, 14189);
12991
+ add_location(svg, file, 347, 18, 14049);
11433
12992
  attr_dev(button, "class", "FullscreenButton");
11434
12993
  attr_dev(button, "part", "FullscreenButton");
11435
- add_location(button, file, 341, 16, 14077);
12994
+ add_location(button, file, 346, 16, 13937);
11436
12995
  },
11437
12996
  m: function mount(target, anchor) {
11438
12997
  insert_dev(target, button, anchor);
@@ -11443,7 +13002,7 @@
11443
13002
  append_dev(svg, polygon3);
11444
13003
 
11445
13004
  if (!mounted) {
11446
- dispose = listen_dev(button, "click", /*click_handler_3*/ ctx[52], false, false, false);
13005
+ dispose = listen_dev(button, "click", /*click_handler_2*/ ctx[51], false, false, false);
11447
13006
  mounted = true;
11448
13007
  }
11449
13008
  },
@@ -11459,14 +13018,14 @@
11459
13018
  block,
11460
13019
  id: create_if_block_4.name,
11461
13020
  type: "if",
11462
- source: "(341:14) {#if isFullscreen}",
13021
+ source: "(346:14) {#if isFullscreen}",
11463
13022
  ctx
11464
13023
  });
11465
13024
 
11466
13025
  return block;
11467
13026
  }
11468
13027
 
11469
- // (352:10) {#if gamebanneractive == 'true' && !isFullscreen}
13028
+ // (357:10) {#if gamebanneractive == 'true' && !isFullscreen}
11470
13029
  function create_if_block_3(ctx) {
11471
13030
  let div;
11472
13031
  let h3;
@@ -11476,10 +13035,10 @@
11476
13035
  div = element("div");
11477
13036
  h3 = element("h3");
11478
13037
  h3.textContent = "Your banner here";
11479
- add_location(h3, file, 353, 14, 15554);
13038
+ add_location(h3, file, 358, 14, 15414);
11480
13039
  attr_dev(div, "class", "BannerSection");
11481
13040
  attr_dev(div, "part", "BannerSection");
11482
- add_location(div, file, 352, 12, 15491);
13041
+ add_location(div, file, 357, 12, 15351);
11483
13042
  },
11484
13043
  m: function mount(target, anchor) {
11485
13044
  insert_dev(target, div, anchor);
@@ -11494,7 +13053,7 @@
11494
13053
  block,
11495
13054
  id: create_if_block_3.name,
11496
13055
  type: "if",
11497
- source: "(352:10) {#if gamebanneractive == 'true' && !isFullscreen}",
13056
+ source: "(357:10) {#if gamebanneractive == 'true' && !isFullscreen}",
11498
13057
  ctx
11499
13058
  });
11500
13059
 
@@ -11505,8 +13064,8 @@
11505
13064
  let if_block_anchor;
11506
13065
 
11507
13066
  function select_block_type(ctx, dirty) {
11508
- if (/*isLoading*/ ctx[6]) return create_if_block;
11509
- if (/*hasErrors*/ ctx[5]) return create_if_block_1;
13067
+ if (/*isLoading*/ ctx[7]) return create_if_block;
13068
+ if (/*hasErrors*/ ctx[6]) return create_if_block_1;
11510
13069
  return create_else_block;
11511
13070
  }
11512
13071
 
@@ -11560,29 +13119,29 @@
11560
13119
 
11561
13120
  function instance($$self, $$props, $$invalidate) {
11562
13121
  let $_;
11563
- validate_store(X, "_");
11564
- component_subscribe($$self, X, $$value => $$invalidate(22, $_ = $$value));
13122
+ validate_store(Y, '_');
13123
+ component_subscribe($$self, Y, $$value => $$invalidate(22, $_ = $$value));
11565
13124
  let { $$slots: slots = {}, $$scope } = $$props;
11566
- validate_slots("undefined", slots, []);
11567
- let { endpoint = "" } = $$props;
11568
- let { lang = "" } = $$props; // Language
11569
- let { session = "" } = $$props; // Value for sessionID
11570
- let { userid = "" } = $$props; // Value for UserID;
11571
- let { clientstyling = "" } = $$props;
11572
- let { clientstylingurl = "" } = $$props;
11573
- let { loginurl = "" } = $$props;
11574
- let { registerurl = "" } = $$props;
11575
- let { depositurl = "" } = $$props;
11576
- let { loginevent = "" } = $$props;
11577
- let { registerevent = "" } = $$props;
11578
- let { depositevent = "" } = $$props;
11579
- let { clockformat = "" } = $$props;
11580
- let { haspanicbutton = "false" } = $$props;
11581
- let { playforfun = "true" } = $$props;
11582
- let { checksession = "true" } = $$props;
11583
- let { integratedgameframe = "false" } = $$props;
11584
- let { gamebanneractive = "false" } = $$props;
11585
- let { gameid = "" } = $$props;
13125
+ validate_slots('undefined', slots, []);
13126
+ let { endpoint = '' } = $$props;
13127
+ let { lang = '' } = $$props;
13128
+ let { session = '' } = $$props;
13129
+ let { userid = '' } = $$props;
13130
+ let { clientstyling = '' } = $$props;
13131
+ let { clientstylingurl = '' } = $$props;
13132
+ let { loginurl = '' } = $$props;
13133
+ let { registerurl = '' } = $$props;
13134
+ let { depositurl = '' } = $$props;
13135
+ let { loginevent = '' } = $$props;
13136
+ let { registerevent = '' } = $$props;
13137
+ let { depositevent = '' } = $$props;
13138
+ let { clockformat = '' } = $$props;
13139
+ let { haspanicbutton = 'false' } = $$props;
13140
+ let { playforfun = 'true' } = $$props;
13141
+ let { checksession = 'true' } = $$props;
13142
+ let { integratedgameframe = 'false' } = $$props;
13143
+ let { gamebanneractive = 'false' } = $$props;
13144
+ let { gameid = '' } = $$props;
11586
13145
  let time;
11587
13146
  let iframe;
11588
13147
  let isLoggedIn = false;
@@ -11610,11 +13169,12 @@
11610
13169
  let definitiveIframeWidth;
11611
13170
  let definitiveIframeHeight;
11612
13171
  let userAgent = window.navigator.userAgent;
13172
+ let mobileView = false;
11613
13173
  let customStylingContainer;
11614
13174
  let buttonsContainer;
11615
13175
  let timeContainer;
11616
13176
  let isOnNative = false;
11617
- setupI18n({ withLocale: "en", translations: {} });
13177
+ setupI18n({ withLocale: 'en', translations: {} });
11618
13178
 
11619
13179
  Object.keys(IntegratedGamePageTranslations).forEach(item => {
11620
13180
  addNewMessages(item, IntegratedGamePageTranslations[item]);
@@ -11623,14 +13183,14 @@
11623
13183
  // @TODO game typescript model type
11624
13184
  const formatGameLaunchUrl = game => {
11625
13185
  let url = new URL(game.launchUrl);
11626
- url.searchParams.append("language", lang);
13186
+ url.searchParams.append('language', lang);
11627
13187
 
11628
13188
  // @TODO wtf? session check or go home
11629
13189
  // Maybe we should check if the session is valid, somehow?
11630
13190
  if (sessionID && sessionID.length > 0) {
11631
- $$invalidate(4, isLoggedIn = true);
11632
- url.searchParams.append("_sid", sessionID);
11633
- url.searchParams.append("funMode", "false");
13191
+ $$invalidate(5, isLoggedIn = true);
13192
+ url.searchParams.append('_sid', sessionID);
13193
+ url.searchParams.append('funMode', 'false');
11634
13194
  }
11635
13195
 
11636
13196
  game.launchUrl = url;
@@ -11640,8 +13200,8 @@
11640
13200
 
11641
13201
  const createGameURL = (gameId, modal) => {
11642
13202
  let url = new URL(`${endpoint}/casino/games/${gameId}`);
11643
- url.searchParams.append("language", lang);
11644
- url.searchParams.append("expand", "vendor");
13203
+ url.searchParams.append('language', lang);
13204
+ url.searchParams.append('expand', 'vendor');
11645
13205
  $$invalidate(11, isModal = modal || false);
11646
13206
 
11647
13207
  fetch(url.href).then(res => res.json()).then(
@@ -11650,13 +13210,13 @@
11650
13210
 
11651
13211
  if (game.launchUrl) {
11652
13212
  detailsObtained = true;
11653
- $$invalidate(10, funMode = playforfun == "true" ? game.hasFunMode : false);
11654
- anonymousFunMode = playforfun == "true" ? game.hasAnonymousFunMode : false;
13213
+ $$invalidate(10, funMode = playforfun == 'true' ? game.hasFunMode : false);
13214
+ anonymousFunMode = playforfun == 'true' ? game.hasAnonymousFunMode : false;
11655
13215
  }
11656
13216
  },
11657
13217
  err => {
11658
- console.error("There was an error", err);
11659
- $$invalidate(5, hasErrors = true);
13218
+ console.error('There was an error', err);
13219
+ $$invalidate(6, hasErrors = true);
11660
13220
  }
11661
13221
  ).then(() => {
11662
13222
  if (gameFrameContainer) {
@@ -11708,7 +13268,7 @@
11708
13268
  // sent to modal component a flag (detailsObtained) by witch to determine if a game is open
11709
13269
  window.postMessage(
11710
13270
  {
11711
- type: "GameStateOnResize",
13271
+ type: 'GameStateOnResize',
11712
13272
  detailsObtained
11713
13273
  },
11714
13274
  window.location.href
@@ -11725,8 +13285,8 @@
11725
13285
  // End section: keep aspect ratio for iframe on resize
11726
13286
  const toggleLogin = () => {
11727
13287
  if (loginevent) {
11728
- window.postMessage({ type: loginevent, transition: "Login" }, window.location.href);
11729
- window.postMessage({ type: "ModalClosed" }, window.location.href);
13288
+ window.postMessage({ type: loginevent, transition: 'Login' }, window.location.href);
13289
+ window.postMessage({ type: 'ModalClosed' }, window.location.href);
11730
13290
  }
11731
13291
 
11732
13292
  if (loginurl) {
@@ -11740,12 +13300,12 @@
11740
13300
  window.postMessage(
11741
13301
  {
11742
13302
  type: registerevent,
11743
- transition: "Register"
13303
+ transition: 'Register'
11744
13304
  },
11745
13305
  window.location.href
11746
13306
  );
11747
13307
 
11748
- window.postMessage({ type: "ModalClosed" }, window.location.href);
13308
+ window.postMessage({ type: 'ModalClosed' }, window.location.href);
11749
13309
  }
11750
13310
 
11751
13311
  if (registerurl) {
@@ -11757,7 +13317,7 @@
11757
13317
  const toggleDeposit = () => {
11758
13318
  if (depositevent) {
11759
13319
  window.postMessage({ type: depositevent }, window.location.href);
11760
- window.postMessage({ type: "ModalClosed" }, window.location.href);
13320
+ window.postMessage({ type: 'ModalClosed' }, window.location.href);
11761
13321
  }
11762
13322
 
11763
13323
  if (depositurl) {
@@ -11767,10 +13327,10 @@
11767
13327
  };
11768
13328
 
11769
13329
  if (document.addEventListener) {
11770
- document.addEventListener("webkitfullscreenchange", exitHandler, false);
11771
- document.addEventListener("mozfullscreenchange", exitHandler, false);
11772
- document.addEventListener("fullscreenchange", exitHandler, false);
11773
- document.addEventListener("MSFullscreenChange", exitHandler, false);
13330
+ document.addEventListener('webkitfullscreenchange', exitHandler, false);
13331
+ document.addEventListener('mozfullscreenchange', exitHandler, false);
13332
+ document.addEventListener('fullscreenchange', exitHandler, false);
13333
+ document.addEventListener('MSFullscreenChange', exitHandler, false);
11774
13334
  }
11775
13335
 
11776
13336
  function exitHandler() {
@@ -11807,15 +13367,11 @@
11807
13367
  }
11808
13368
  };
11809
13369
 
11810
- const panicAction = () => {
11811
- window.postMessage({ type: "PanicButtonClicked" }, window.location.href);
11812
- };
11813
-
11814
13370
  const refreshTime = () => {
11815
13371
  if (clockformat) {
11816
- $$invalidate(2, time = moment().format(clockformat));
13372
+ $$invalidate(3, time = moment().format(clockformat));
11817
13373
  } else {
11818
- $$invalidate(2, time = moment().format("LTS"));
13374
+ $$invalidate(3, time = moment().format('LTS'));
11819
13375
  }
11820
13376
  };
11821
13377
 
@@ -11828,20 +13384,21 @@
11828
13384
 
11829
13385
  const setActiveLanguage = () => {
11830
13386
  setLocale(lang);
11831
- $$invalidate(6, isLoading = false);
13387
+ mobileView = isMobile(userAgent);
13388
+ $$invalidate(7, isLoading = false);
11832
13389
  };
11833
13390
 
11834
13391
  const setSession = () => {
11835
- if (checksession == "true") {
13392
+ if (checksession == 'true') {
11836
13393
  checkSession(endpoint, session).then(
11837
13394
  res => {
11838
13395
  sessionID = res.Guid;
11839
13396
  playerID = res.UserID;
11840
- $$invalidate(4, isLoggedIn = true);
13397
+ $$invalidate(5, isLoggedIn = true);
11841
13398
  },
11842
13399
  err => {
11843
- $$invalidate(4, isLoggedIn = false);
11844
- console.error("err on session", err);
13400
+ $$invalidate(5, isLoggedIn = false);
13401
+ console.error('err on session', err);
11845
13402
  }
11846
13403
  );
11847
13404
  } else {
@@ -11851,13 +13408,13 @@
11851
13408
  };
11852
13409
 
11853
13410
  const setClientStyling = () => {
11854
- let sheet = document.createElement("style");
13411
+ let sheet = document.createElement('style');
11855
13412
  sheet.innerHTML = clientstyling;
11856
13413
  customStylingContainer.appendChild(sheet);
11857
13414
  };
11858
13415
 
11859
13416
  const setClientStylingURL = () => {
11860
- let cssFile = document.createElement("style");
13417
+ let cssFile = document.createElement('style');
11861
13418
 
11862
13419
  if (clientstylingurl) {
11863
13420
  let url = new URL(clientstylingurl);
@@ -11878,8 +13435,8 @@
11878
13435
  };
11879
13436
 
11880
13437
  const previousPage = () => {
11881
- window.postMessage({ type: "GoToPreviousRoute" }, window.location.href);
11882
- window.postMessage({ type: "DisableIntegratedGamePage" }, window.location.href);
13438
+ window.postMessage({ type: 'GoToPreviousRoute' }, window.location.href);
13439
+ window.postMessage({ type: 'DisableIntegratedGamePage' }, window.location.href);
11883
13440
  };
11884
13441
 
11885
13442
  const startInterval = e => {
@@ -11906,17 +13463,14 @@
11906
13463
  clearInterval(timerInterval);
11907
13464
  };
11908
13465
 
11909
- onMount(() => {
11910
- window.addEventListener("resize", resizeHandler, false);
11911
- isOnNative = !!jsNativeBridge.isNative(userAgent);
11912
-
13466
+ const addEventsToDisplayedElements = () => {
11913
13467
  panicButton === null || panicButton === void 0
11914
13468
  ? void 0
11915
13469
  : panicButton.addEventListener("mousedown", startInterval, false);
11916
13470
 
11917
13471
  panicButton === null || panicButton === void 0
11918
13472
  ? void 0
11919
- : panicButton.addEventListener("touchstart", startInterval, false);
13473
+ : panicButton.addEventListener('touchstart', startInterval, false);
11920
13474
 
11921
13475
  // on mouseup stop interval count
11922
13476
  panicButton === null || panicButton === void 0
@@ -11926,60 +13480,70 @@
11926
13480
  panicButton === null || panicButton === void 0
11927
13481
  ? void 0
11928
13482
  : panicButton.addEventListener("touchend", endInterval, false);
13483
+ };
11929
13484
 
11930
- return () => {
11931
- window.removeEventListener("resize", resizeHandler);
11932
- clearInterval(timeInterval);
13485
+ const removeEventsToDisplayedElements = () => {
13486
+ $$invalidate(8, panicLoading = false);
11933
13487
 
11934
- panicButton === null || panicButton === void 0
11935
- ? void 0
11936
- : panicButton.removeEventListener("mousedown", startInterval);
13488
+ panicButton === null || panicButton === void 0
13489
+ ? void 0
13490
+ : panicButton.removeEventListener("mousedown", startInterval);
13491
+
13492
+ panicButton === null || panicButton === void 0
13493
+ ? void 0
13494
+ : panicButton.removeEventListener('touchstart', startInterval);
11937
13495
 
11938
- panicButton === null || panicButton === void 0
11939
- ? void 0
11940
- : panicButton.removeEventListener("touchstart", startInterval);
13496
+ // on mouseup stop interval count
13497
+ panicButton === null || panicButton === void 0
13498
+ ? void 0
13499
+ : panicButton.removeEventListener("mouseup", endInterval);
11941
13500
 
11942
- // on mouseup stop interval count
11943
- panicButton === null || panicButton === void 0
11944
- ? void 0
11945
- : panicButton.removeEventListener("mouseup", endInterval);
13501
+ panicButton === null || panicButton === void 0
13502
+ ? void 0
13503
+ : panicButton.removeEventListener("touchend", endInterval);
13504
+ };
11946
13505
 
11947
- panicButton === null || panicButton === void 0
11948
- ? void 0
11949
- : panicButton.removeEventListener("touchend", endInterval);
13506
+ onMount(() => {
13507
+ window.addEventListener('resize', resizeHandler, false);
13508
+ isOnNative = !!jsNativeBridge.isNative(userAgent);
13509
+
13510
+ return () => {
13511
+ removeEventsToDisplayedElements();
13512
+ window.removeEventListener('resize', resizeHandler);
13513
+ clearInterval(timeInterval);
11950
13514
  };
11951
13515
  });
11952
13516
 
11953
13517
  const writable_props = [
11954
- "endpoint",
11955
- "lang",
11956
- "session",
11957
- "userid",
11958
- "clientstyling",
11959
- "clientstylingurl",
11960
- "loginurl",
11961
- "registerurl",
11962
- "depositurl",
11963
- "loginevent",
11964
- "registerevent",
11965
- "depositevent",
11966
- "clockformat",
11967
- "haspanicbutton",
11968
- "playforfun",
11969
- "checksession",
11970
- "integratedgameframe",
11971
- "gamebanneractive",
11972
- "gameid"
13518
+ 'endpoint',
13519
+ 'lang',
13520
+ 'session',
13521
+ 'userid',
13522
+ 'clientstyling',
13523
+ 'clientstylingurl',
13524
+ 'loginurl',
13525
+ 'registerurl',
13526
+ 'depositurl',
13527
+ 'loginevent',
13528
+ 'registerevent',
13529
+ 'depositevent',
13530
+ 'clockformat',
13531
+ 'haspanicbutton',
13532
+ 'playforfun',
13533
+ 'checksession',
13534
+ 'integratedgameframe',
13535
+ 'gamebanneractive',
13536
+ 'gameid'
11973
13537
  ];
11974
13538
 
11975
13539
  Object_1.keys($$props).forEach(key => {
11976
- if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<undefined> was created with unknown prop '${key}'`);
13540
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1.warn(`<undefined> was created with unknown prop '${key}'`);
11977
13541
  });
11978
13542
 
11979
13543
  const click_handler = () => previousPage();
11980
13544
 
11981
13545
  function p_binding($$value) {
11982
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13546
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
11983
13547
  timeContainer = $$value;
11984
13548
  $$invalidate(21, timeContainer);
11985
13549
  });
@@ -11988,126 +13552,125 @@
11988
13552
  const click_handler_1 = () => toggleDeposit();
11989
13553
 
11990
13554
  function iframe_1_binding($$value) {
11991
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13555
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
11992
13556
  iframe = $$value;
11993
- $$invalidate(3, iframe);
13557
+ $$invalidate(4, iframe);
11994
13558
  });
11995
13559
  }
11996
13560
 
11997
13561
  function button_binding($$value) {
11998
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13562
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
11999
13563
  panicButton = $$value;
12000
- $$invalidate(7, panicButton);
13564
+ $$invalidate(2, panicButton);
12001
13565
  });
12002
13566
  }
12003
13567
 
12004
- const click_handler_2 = () => panicAction();
13568
+ const click_handler_2 = () => handleIframeSize();
12005
13569
  const click_handler_3 = () => handleIframeSize();
12006
- const click_handler_4 = () => handleIframeSize();
12007
13570
 
12008
13571
  function div1_binding($$value) {
12009
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13572
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12010
13573
  buttonsContainer = $$value;
12011
13574
  $$invalidate(20, buttonsContainer);
12012
13575
  });
12013
13576
  }
12014
13577
 
12015
13578
  function div2_binding($$value) {
12016
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13579
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12017
13580
  gameInnerContainer = $$value;
12018
13581
  $$invalidate(15, gameInnerContainer);
12019
13582
  });
12020
13583
  }
12021
13584
 
12022
13585
  function div3_binding($$value) {
12023
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13586
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12024
13587
  gameFrameContainer = $$value;
12025
13588
  $$invalidate(12, gameFrameContainer);
12026
13589
  });
12027
13590
  }
12028
13591
 
12029
- const click_handler_5 = () => previousPage();
13592
+ const click_handler_4 = () => previousPage();
12030
13593
 
12031
13594
  function p_binding_1($$value) {
12032
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13595
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12033
13596
  timeContainer = $$value;
12034
13597
  $$invalidate(21, timeContainer);
12035
13598
  });
12036
13599
  }
12037
13600
 
12038
13601
  function iframe_1_binding_1($$value) {
12039
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13602
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12040
13603
  iframe = $$value;
12041
- $$invalidate(3, iframe);
13604
+ $$invalidate(4, iframe);
12042
13605
  });
12043
13606
  }
12044
13607
 
12045
- const click_handler_6 = () => toggleLogin();
12046
- const click_handler_7 = () => toggleRegister();
13608
+ const click_handler_5 = () => toggleLogin();
13609
+ const click_handler_6 = () => toggleRegister();
13610
+ const click_handler_7 = () => handleIframeSize();
12047
13611
  const click_handler_8 = () => handleIframeSize();
12048
- const click_handler_9 = () => handleIframeSize();
12049
13612
 
12050
13613
  function div3_binding_1($$value) {
12051
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13614
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12052
13615
  buttonsContainer = $$value;
12053
13616
  $$invalidate(20, buttonsContainer);
12054
13617
  });
12055
13618
  }
12056
13619
 
12057
13620
  function div4_binding($$value) {
12058
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13621
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12059
13622
  gameInnerContainer = $$value;
12060
13623
  $$invalidate(15, gameInnerContainer);
12061
13624
  });
12062
13625
  }
12063
13626
 
12064
13627
  function div5_binding($$value) {
12065
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13628
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12066
13629
  gameFrameContainer = $$value;
12067
13630
  $$invalidate(12, gameFrameContainer);
12068
13631
  });
12069
13632
  }
12070
13633
 
12071
13634
  function div_binding($$value) {
12072
- binding_callbacks[$$value ? "unshift" : "push"](() => {
13635
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12073
13636
  customStylingContainer = $$value;
12074
13637
  $$invalidate(19, customStylingContainer);
12075
13638
  });
12076
13639
  }
12077
13640
 
12078
13641
  $$self.$$set = $$props => {
12079
- if ("endpoint" in $$props) $$invalidate(29, endpoint = $$props.endpoint);
12080
- if ("lang" in $$props) $$invalidate(30, lang = $$props.lang);
12081
- if ("session" in $$props) $$invalidate(31, session = $$props.session);
12082
- if ("userid" in $$props) $$invalidate(32, userid = $$props.userid);
12083
- if ("clientstyling" in $$props) $$invalidate(33, clientstyling = $$props.clientstyling);
12084
- if ("clientstylingurl" in $$props) $$invalidate(34, clientstylingurl = $$props.clientstylingurl);
12085
- if ("loginurl" in $$props) $$invalidate(35, loginurl = $$props.loginurl);
12086
- if ("registerurl" in $$props) $$invalidate(36, registerurl = $$props.registerurl);
12087
- if ("depositurl" in $$props) $$invalidate(37, depositurl = $$props.depositurl);
12088
- if ("loginevent" in $$props) $$invalidate(38, loginevent = $$props.loginevent);
12089
- if ("registerevent" in $$props) $$invalidate(39, registerevent = $$props.registerevent);
12090
- if ("depositevent" in $$props) $$invalidate(40, depositevent = $$props.depositevent);
12091
- if ("clockformat" in $$props) $$invalidate(41, clockformat = $$props.clockformat);
12092
- if ("haspanicbutton" in $$props) $$invalidate(0, haspanicbutton = $$props.haspanicbutton);
12093
- if ("playforfun" in $$props) $$invalidate(42, playforfun = $$props.playforfun);
12094
- if ("checksession" in $$props) $$invalidate(43, checksession = $$props.checksession);
12095
- if ("integratedgameframe" in $$props) $$invalidate(44, integratedgameframe = $$props.integratedgameframe);
12096
- if ("gamebanneractive" in $$props) $$invalidate(1, gamebanneractive = $$props.gamebanneractive);
12097
- if ("gameid" in $$props) $$invalidate(45, gameid = $$props.gameid);
13642
+ if ('endpoint' in $$props) $$invalidate(29, endpoint = $$props.endpoint);
13643
+ if ('lang' in $$props) $$invalidate(30, lang = $$props.lang);
13644
+ if ('session' in $$props) $$invalidate(31, session = $$props.session);
13645
+ if ('userid' in $$props) $$invalidate(32, userid = $$props.userid);
13646
+ if ('clientstyling' in $$props) $$invalidate(33, clientstyling = $$props.clientstyling);
13647
+ if ('clientstylingurl' in $$props) $$invalidate(34, clientstylingurl = $$props.clientstylingurl);
13648
+ if ('loginurl' in $$props) $$invalidate(35, loginurl = $$props.loginurl);
13649
+ if ('registerurl' in $$props) $$invalidate(36, registerurl = $$props.registerurl);
13650
+ if ('depositurl' in $$props) $$invalidate(37, depositurl = $$props.depositurl);
13651
+ if ('loginevent' in $$props) $$invalidate(38, loginevent = $$props.loginevent);
13652
+ if ('registerevent' in $$props) $$invalidate(39, registerevent = $$props.registerevent);
13653
+ if ('depositevent' in $$props) $$invalidate(40, depositevent = $$props.depositevent);
13654
+ if ('clockformat' in $$props) $$invalidate(41, clockformat = $$props.clockformat);
13655
+ if ('haspanicbutton' in $$props) $$invalidate(0, haspanicbutton = $$props.haspanicbutton);
13656
+ if ('playforfun' in $$props) $$invalidate(42, playforfun = $$props.playforfun);
13657
+ if ('checksession' in $$props) $$invalidate(43, checksession = $$props.checksession);
13658
+ if ('integratedgameframe' in $$props) $$invalidate(44, integratedgameframe = $$props.integratedgameframe);
13659
+ if ('gamebanneractive' in $$props) $$invalidate(1, gamebanneractive = $$props.gamebanneractive);
13660
+ if ('gameid' in $$props) $$invalidate(45, gameid = $$props.gameid);
12098
13661
  };
12099
13662
 
12100
13663
  $$self.$capture_state = () => ({
12101
13664
  onMount,
13665
+ isMobile,
12102
13666
  checkSession,
12103
- _: X,
13667
+ getDevice,
13668
+ _: Y,
12104
13669
  addNewMessages,
12105
13670
  setLocale,
12106
13671
  setupI18n,
12107
13672
  IntegratedGamePageTranslations,
12108
13673
  isNative: jsNativeBridge.isNative,
12109
- callNative: jsNativeBridge.call,
12110
- registerNativeEventListener: jsNativeBridge.registerEventListener,
12111
13674
  moment,
12112
13675
  endpoint,
12113
13676
  lang,
@@ -12155,6 +13718,7 @@
12155
13718
  definitiveIframeWidth,
12156
13719
  definitiveIframeHeight,
12157
13720
  userAgent,
13721
+ mobileView,
12158
13722
  customStylingContainer,
12159
13723
  buttonsContainer,
12160
13724
  timeContainer,
@@ -12169,7 +13733,6 @@
12169
13733
  toggleDeposit,
12170
13734
  exitHandler,
12171
13735
  handleIframeSize,
12172
- panicAction,
12173
13736
  refreshTime,
12174
13737
  timeInterval,
12175
13738
  setActiveLanguage,
@@ -12179,60 +13742,63 @@
12179
13742
  previousPage,
12180
13743
  startInterval,
12181
13744
  endInterval,
13745
+ addEventsToDisplayedElements,
13746
+ removeEventsToDisplayedElements,
12182
13747
  $_
12183
13748
  });
12184
13749
 
12185
13750
  $$self.$inject_state = $$props => {
12186
- if ("endpoint" in $$props) $$invalidate(29, endpoint = $$props.endpoint);
12187
- if ("lang" in $$props) $$invalidate(30, lang = $$props.lang);
12188
- if ("session" in $$props) $$invalidate(31, session = $$props.session);
12189
- if ("userid" in $$props) $$invalidate(32, userid = $$props.userid);
12190
- if ("clientstyling" in $$props) $$invalidate(33, clientstyling = $$props.clientstyling);
12191
- if ("clientstylingurl" in $$props) $$invalidate(34, clientstylingurl = $$props.clientstylingurl);
12192
- if ("loginurl" in $$props) $$invalidate(35, loginurl = $$props.loginurl);
12193
- if ("registerurl" in $$props) $$invalidate(36, registerurl = $$props.registerurl);
12194
- if ("depositurl" in $$props) $$invalidate(37, depositurl = $$props.depositurl);
12195
- if ("loginevent" in $$props) $$invalidate(38, loginevent = $$props.loginevent);
12196
- if ("registerevent" in $$props) $$invalidate(39, registerevent = $$props.registerevent);
12197
- if ("depositevent" in $$props) $$invalidate(40, depositevent = $$props.depositevent);
12198
- if ("clockformat" in $$props) $$invalidate(41, clockformat = $$props.clockformat);
12199
- if ("haspanicbutton" in $$props) $$invalidate(0, haspanicbutton = $$props.haspanicbutton);
12200
- if ("playforfun" in $$props) $$invalidate(42, playforfun = $$props.playforfun);
12201
- if ("checksession" in $$props) $$invalidate(43, checksession = $$props.checksession);
12202
- if ("integratedgameframe" in $$props) $$invalidate(44, integratedgameframe = $$props.integratedgameframe);
12203
- if ("gamebanneractive" in $$props) $$invalidate(1, gamebanneractive = $$props.gamebanneractive);
12204
- if ("gameid" in $$props) $$invalidate(45, gameid = $$props.gameid);
12205
- if ("time" in $$props) $$invalidate(2, time = $$props.time);
12206
- if ("iframe" in $$props) $$invalidate(3, iframe = $$props.iframe);
12207
- if ("isLoggedIn" in $$props) $$invalidate(4, isLoggedIn = $$props.isLoggedIn);
12208
- if ("hasErrors" in $$props) $$invalidate(5, hasErrors = $$props.hasErrors);
12209
- if ("isLoading" in $$props) $$invalidate(6, isLoading = $$props.isLoading);
12210
- if ("playerID" in $$props) playerID = $$props.playerID;
12211
- if ("sessionID" in $$props) sessionID = $$props.sessionID;
12212
- if ("panicButton" in $$props) $$invalidate(7, panicButton = $$props.panicButton);
12213
- if ("panicLoading" in $$props) $$invalidate(8, panicLoading = $$props.panicLoading);
12214
- if ("timer" in $$props) timer = $$props.timer;
12215
- if ("timerInterval" in $$props) timerInterval = $$props.timerInterval;
12216
- if ("game" in $$props) $$invalidate(9, game = $$props.game);
12217
- if ("detailsObtained" in $$props) detailsObtained = $$props.detailsObtained;
12218
- if ("funMode" in $$props) $$invalidate(10, funMode = $$props.funMode);
12219
- if ("anonymousFunMode" in $$props) anonymousFunMode = $$props.anonymousFunMode;
12220
- if ("isModal" in $$props) $$invalidate(11, isModal = $$props.isModal);
12221
- if ("gameFrameContainer" in $$props) $$invalidate(12, gameFrameContainer = $$props.gameFrameContainer);
12222
- if ("gameContainerWidth" in $$props) $$invalidate(13, gameContainerWidth = $$props.gameContainerWidth);
12223
- if ("gameContainerHeight" in $$props) $$invalidate(14, gameContainerHeight = $$props.gameContainerHeight);
12224
- if ("gameInnerContainer" in $$props) $$invalidate(15, gameInnerContainer = $$props.gameInnerContainer);
12225
- if ("isFullscreen" in $$props) $$invalidate(16, isFullscreen = $$props.isFullscreen);
12226
- if ("modalFrameHeight" in $$props) modalFrameHeight = $$props.modalFrameHeight;
12227
- if ("gameFrameWidth" in $$props) gameFrameWidth = $$props.gameFrameWidth;
12228
- if ("gameFrameHeight" in $$props) gameFrameHeight = $$props.gameFrameHeight;
12229
- if ("definitiveIframeWidth" in $$props) $$invalidate(17, definitiveIframeWidth = $$props.definitiveIframeWidth);
12230
- if ("definitiveIframeHeight" in $$props) $$invalidate(18, definitiveIframeHeight = $$props.definitiveIframeHeight);
12231
- if ("userAgent" in $$props) userAgent = $$props.userAgent;
12232
- if ("customStylingContainer" in $$props) $$invalidate(19, customStylingContainer = $$props.customStylingContainer);
12233
- if ("buttonsContainer" in $$props) $$invalidate(20, buttonsContainer = $$props.buttonsContainer);
12234
- if ("timeContainer" in $$props) $$invalidate(21, timeContainer = $$props.timeContainer);
12235
- if ("isOnNative" in $$props) isOnNative = $$props.isOnNative;
13751
+ if ('endpoint' in $$props) $$invalidate(29, endpoint = $$props.endpoint);
13752
+ if ('lang' in $$props) $$invalidate(30, lang = $$props.lang);
13753
+ if ('session' in $$props) $$invalidate(31, session = $$props.session);
13754
+ if ('userid' in $$props) $$invalidate(32, userid = $$props.userid);
13755
+ if ('clientstyling' in $$props) $$invalidate(33, clientstyling = $$props.clientstyling);
13756
+ if ('clientstylingurl' in $$props) $$invalidate(34, clientstylingurl = $$props.clientstylingurl);
13757
+ if ('loginurl' in $$props) $$invalidate(35, loginurl = $$props.loginurl);
13758
+ if ('registerurl' in $$props) $$invalidate(36, registerurl = $$props.registerurl);
13759
+ if ('depositurl' in $$props) $$invalidate(37, depositurl = $$props.depositurl);
13760
+ if ('loginevent' in $$props) $$invalidate(38, loginevent = $$props.loginevent);
13761
+ if ('registerevent' in $$props) $$invalidate(39, registerevent = $$props.registerevent);
13762
+ if ('depositevent' in $$props) $$invalidate(40, depositevent = $$props.depositevent);
13763
+ if ('clockformat' in $$props) $$invalidate(41, clockformat = $$props.clockformat);
13764
+ if ('haspanicbutton' in $$props) $$invalidate(0, haspanicbutton = $$props.haspanicbutton);
13765
+ if ('playforfun' in $$props) $$invalidate(42, playforfun = $$props.playforfun);
13766
+ if ('checksession' in $$props) $$invalidate(43, checksession = $$props.checksession);
13767
+ if ('integratedgameframe' in $$props) $$invalidate(44, integratedgameframe = $$props.integratedgameframe);
13768
+ if ('gamebanneractive' in $$props) $$invalidate(1, gamebanneractive = $$props.gamebanneractive);
13769
+ if ('gameid' in $$props) $$invalidate(45, gameid = $$props.gameid);
13770
+ if ('time' in $$props) $$invalidate(3, time = $$props.time);
13771
+ if ('iframe' in $$props) $$invalidate(4, iframe = $$props.iframe);
13772
+ if ('isLoggedIn' in $$props) $$invalidate(5, isLoggedIn = $$props.isLoggedIn);
13773
+ if ('hasErrors' in $$props) $$invalidate(6, hasErrors = $$props.hasErrors);
13774
+ if ('isLoading' in $$props) $$invalidate(7, isLoading = $$props.isLoading);
13775
+ if ('playerID' in $$props) playerID = $$props.playerID;
13776
+ if ('sessionID' in $$props) sessionID = $$props.sessionID;
13777
+ if ('panicButton' in $$props) $$invalidate(2, panicButton = $$props.panicButton);
13778
+ if ('panicLoading' in $$props) $$invalidate(8, panicLoading = $$props.panicLoading);
13779
+ if ('timer' in $$props) timer = $$props.timer;
13780
+ if ('timerInterval' in $$props) timerInterval = $$props.timerInterval;
13781
+ if ('game' in $$props) $$invalidate(9, game = $$props.game);
13782
+ if ('detailsObtained' in $$props) detailsObtained = $$props.detailsObtained;
13783
+ if ('funMode' in $$props) $$invalidate(10, funMode = $$props.funMode);
13784
+ if ('anonymousFunMode' in $$props) anonymousFunMode = $$props.anonymousFunMode;
13785
+ if ('isModal' in $$props) $$invalidate(11, isModal = $$props.isModal);
13786
+ if ('gameFrameContainer' in $$props) $$invalidate(12, gameFrameContainer = $$props.gameFrameContainer);
13787
+ if ('gameContainerWidth' in $$props) $$invalidate(13, gameContainerWidth = $$props.gameContainerWidth);
13788
+ if ('gameContainerHeight' in $$props) $$invalidate(14, gameContainerHeight = $$props.gameContainerHeight);
13789
+ if ('gameInnerContainer' in $$props) $$invalidate(15, gameInnerContainer = $$props.gameInnerContainer);
13790
+ if ('isFullscreen' in $$props) $$invalidate(16, isFullscreen = $$props.isFullscreen);
13791
+ if ('modalFrameHeight' in $$props) modalFrameHeight = $$props.modalFrameHeight;
13792
+ if ('gameFrameWidth' in $$props) gameFrameWidth = $$props.gameFrameWidth;
13793
+ if ('gameFrameHeight' in $$props) gameFrameHeight = $$props.gameFrameHeight;
13794
+ if ('definitiveIframeWidth' in $$props) $$invalidate(17, definitiveIframeWidth = $$props.definitiveIframeWidth);
13795
+ if ('definitiveIframeHeight' in $$props) $$invalidate(18, definitiveIframeHeight = $$props.definitiveIframeHeight);
13796
+ if ('userAgent' in $$props) $$invalidate(23, userAgent = $$props.userAgent);
13797
+ if ('mobileView' in $$props) mobileView = $$props.mobileView;
13798
+ if ('customStylingContainer' in $$props) $$invalidate(19, customStylingContainer = $$props.customStylingContainer);
13799
+ if ('buttonsContainer' in $$props) $$invalidate(20, buttonsContainer = $$props.buttonsContainer);
13800
+ if ('timeContainer' in $$props) $$invalidate(21, timeContainer = $$props.timeContainer);
13801
+ if ('isOnNative' in $$props) isOnNative = $$props.isOnNative;
12236
13802
  };
12237
13803
 
12238
13804
  if ($$props && "$$inject" in $$props) {
@@ -12259,17 +13825,21 @@
12259
13825
  if ($$self.$$.dirty[1] & /*clientstylingurl*/ 8) {
12260
13826
  clientstylingurl && setClientStylingURL();
12261
13827
  }
13828
+
13829
+ if ($$self.$$.dirty[0] & /*panicButton*/ 4) {
13830
+ panicButton && addEventsToDisplayedElements();
13831
+ }
12262
13832
  };
12263
13833
 
12264
13834
  return [
12265
13835
  haspanicbutton,
12266
13836
  gamebanneractive,
13837
+ panicButton,
12267
13838
  time,
12268
13839
  iframe,
12269
13840
  isLoggedIn,
12270
13841
  hasErrors,
12271
13842
  isLoading,
12272
- panicButton,
12273
13843
  panicLoading,
12274
13844
  game,
12275
13845
  funMode,
@@ -12285,11 +13855,11 @@
12285
13855
  buttonsContainer,
12286
13856
  timeContainer,
12287
13857
  $_,
13858
+ userAgent,
12288
13859
  toggleLogin,
12289
13860
  toggleRegister,
12290
13861
  toggleDeposit,
12291
13862
  handleIframeSize,
12292
- panicAction,
12293
13863
  previousPage,
12294
13864
  endpoint,
12295
13865
  lang,
@@ -12315,17 +13885,16 @@
12315
13885
  button_binding,
12316
13886
  click_handler_2,
12317
13887
  click_handler_3,
12318
- click_handler_4,
12319
13888
  div1_binding,
12320
13889
  div2_binding,
12321
13890
  div3_binding,
12322
- click_handler_5,
13891
+ click_handler_4,
12323
13892
  p_binding_1,
12324
13893
  iframe_1_binding_1,
13894
+ click_handler_5,
12325
13895
  click_handler_6,
12326
13896
  click_handler_7,
12327
13897
  click_handler_8,
12328
- click_handler_9,
12329
13898
  div3_binding_1,
12330
13899
  div4_binding,
12331
13900
  div5_binding,
@@ -12336,7 +13905,7 @@
12336
13905
  class CasinoIntegratedGamePage extends SvelteElement {
12337
13906
  constructor(options) {
12338
13907
  super();
12339
- this.shadowRoot.innerHTML = `<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-color-primary, #FFF)}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-color-contrast, #07072A);display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.BottomGame.BottomGameLoggedin{justify-content:right}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-color-green, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-color-primary, #D0046C);float:right}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.RegisterButton{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-color-primary, #D0046C);border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-color-white, #FFFFFF)}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection svg{fill:none}.PanicSection p{font-size:16px;color:var(--emfe-w-color-white, #FFFFFF)}.PanicButtonAnimation{transition:all 3000ms ease-in;background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:#fff}</style>`;
13908
+ this.shadowRoot.innerHTML = `<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-color-contrast, #07072A);height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-color-primary, #FFF)}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-color-contrast, #07072A);display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-color-green, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-color-primary, #D0046C);float:right}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.RegisterButton{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-color-primary, #D0046C);border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-color-white, #FFFFFF)}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:#fff}</style>`;
12340
13909
 
12341
13910
  init(
12342
13911
  this,
@@ -12369,7 +13938,8 @@
12369
13938
  gamebanneractive: 1,
12370
13939
  gameid: 45
12371
13940
  },
12372
- [-1, -1, -1]
13941
+ null,
13942
+ [-1, -1, -1, -1]
12373
13943
  );
12374
13944
 
12375
13945
  if (options) {
@@ -12413,7 +13983,7 @@
12413
13983
  }
12414
13984
 
12415
13985
  set endpoint(endpoint) {
12416
- this.$set({ endpoint });
13986
+ this.$$set({ endpoint });
12417
13987
  flush();
12418
13988
  }
12419
13989
 
@@ -12422,7 +13992,7 @@
12422
13992
  }
12423
13993
 
12424
13994
  set lang(lang) {
12425
- this.$set({ lang });
13995
+ this.$$set({ lang });
12426
13996
  flush();
12427
13997
  }
12428
13998
 
@@ -12431,7 +14001,7 @@
12431
14001
  }
12432
14002
 
12433
14003
  set session(session) {
12434
- this.$set({ session });
14004
+ this.$$set({ session });
12435
14005
  flush();
12436
14006
  }
12437
14007
 
@@ -12440,7 +14010,7 @@
12440
14010
  }
12441
14011
 
12442
14012
  set userid(userid) {
12443
- this.$set({ userid });
14013
+ this.$$set({ userid });
12444
14014
  flush();
12445
14015
  }
12446
14016
 
@@ -12449,7 +14019,7 @@
12449
14019
  }
12450
14020
 
12451
14021
  set clientstyling(clientstyling) {
12452
- this.$set({ clientstyling });
14022
+ this.$$set({ clientstyling });
12453
14023
  flush();
12454
14024
  }
12455
14025
 
@@ -12458,7 +14028,7 @@
12458
14028
  }
12459
14029
 
12460
14030
  set clientstylingurl(clientstylingurl) {
12461
- this.$set({ clientstylingurl });
14031
+ this.$$set({ clientstylingurl });
12462
14032
  flush();
12463
14033
  }
12464
14034
 
@@ -12467,7 +14037,7 @@
12467
14037
  }
12468
14038
 
12469
14039
  set loginurl(loginurl) {
12470
- this.$set({ loginurl });
14040
+ this.$$set({ loginurl });
12471
14041
  flush();
12472
14042
  }
12473
14043
 
@@ -12476,7 +14046,7 @@
12476
14046
  }
12477
14047
 
12478
14048
  set registerurl(registerurl) {
12479
- this.$set({ registerurl });
14049
+ this.$$set({ registerurl });
12480
14050
  flush();
12481
14051
  }
12482
14052
 
@@ -12485,7 +14055,7 @@
12485
14055
  }
12486
14056
 
12487
14057
  set depositurl(depositurl) {
12488
- this.$set({ depositurl });
14058
+ this.$$set({ depositurl });
12489
14059
  flush();
12490
14060
  }
12491
14061
 
@@ -12494,7 +14064,7 @@
12494
14064
  }
12495
14065
 
12496
14066
  set loginevent(loginevent) {
12497
- this.$set({ loginevent });
14067
+ this.$$set({ loginevent });
12498
14068
  flush();
12499
14069
  }
12500
14070
 
@@ -12503,7 +14073,7 @@
12503
14073
  }
12504
14074
 
12505
14075
  set registerevent(registerevent) {
12506
- this.$set({ registerevent });
14076
+ this.$$set({ registerevent });
12507
14077
  flush();
12508
14078
  }
12509
14079
 
@@ -12512,7 +14082,7 @@
12512
14082
  }
12513
14083
 
12514
14084
  set depositevent(depositevent) {
12515
- this.$set({ depositevent });
14085
+ this.$$set({ depositevent });
12516
14086
  flush();
12517
14087
  }
12518
14088
 
@@ -12521,7 +14091,7 @@
12521
14091
  }
12522
14092
 
12523
14093
  set clockformat(clockformat) {
12524
- this.$set({ clockformat });
14094
+ this.$$set({ clockformat });
12525
14095
  flush();
12526
14096
  }
12527
14097
 
@@ -12530,7 +14100,7 @@
12530
14100
  }
12531
14101
 
12532
14102
  set haspanicbutton(haspanicbutton) {
12533
- this.$set({ haspanicbutton });
14103
+ this.$$set({ haspanicbutton });
12534
14104
  flush();
12535
14105
  }
12536
14106
 
@@ -12539,7 +14109,7 @@
12539
14109
  }
12540
14110
 
12541
14111
  set playforfun(playforfun) {
12542
- this.$set({ playforfun });
14112
+ this.$$set({ playforfun });
12543
14113
  flush();
12544
14114
  }
12545
14115
 
@@ -12548,7 +14118,7 @@
12548
14118
  }
12549
14119
 
12550
14120
  set checksession(checksession) {
12551
- this.$set({ checksession });
14121
+ this.$$set({ checksession });
12552
14122
  flush();
12553
14123
  }
12554
14124
 
@@ -12557,7 +14127,7 @@
12557
14127
  }
12558
14128
 
12559
14129
  set integratedgameframe(integratedgameframe) {
12560
- this.$set({ integratedgameframe });
14130
+ this.$$set({ integratedgameframe });
12561
14131
  flush();
12562
14132
  }
12563
14133
 
@@ -12566,7 +14136,7 @@
12566
14136
  }
12567
14137
 
12568
14138
  set gamebanneractive(gamebanneractive) {
12569
- this.$set({ gamebanneractive });
14139
+ this.$$set({ gamebanneractive });
12570
14140
  flush();
12571
14141
  }
12572
14142
 
@@ -12575,7 +14145,7 @@
12575
14145
  }
12576
14146
 
12577
14147
  set gameid(gameid) {
12578
- this.$set({ gameid });
14148
+ this.$$set({ gameid });
12579
14149
  flush();
12580
14150
  }
12581
14151
  }
@@ -12584,5 +14154,5 @@
12584
14154
 
12585
14155
  return CasinoIntegratedGamePage;
12586
14156
 
12587
- })));
14157
+ }));
12588
14158
  //# sourceMappingURL=casino-integrated-game-page.js.map