@amazon-devices/kepler-epg-sync-scheduler 1.2.94 → 1.2.124

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.
@@ -1,1263 +0,0 @@
1
- var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production";
2
- (function (global) {
3
- /**
4
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- *
9
- * @polyfill
10
- * @nolint
11
- * @format
12
- */
13
-
14
- /* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */
15
-
16
- /**
17
- * This pipes all of our console logging functions to native logging so that
18
- * JavaScript errors in required modules show up in Xcode via NSLog.
19
- */
20
- var inspect = function () {
21
- // Copyright Joyent, Inc. and other Node contributors.
22
- //
23
- // Permission is hereby granted, free of charge, to any person obtaining a
24
- // copy of this software and associated documentation files (the
25
- // "Software"), to deal in the Software without restriction, including
26
- // without limitation the rights to use, copy, modify, merge, publish,
27
- // distribute, sublicense, and/or sell copies of the Software, and to permit
28
- // persons to whom the Software is furnished to do so, subject to the
29
- // following conditions:
30
- //
31
- // The above copyright notice and this permission notice shall be included
32
- // in all copies or substantial portions of the Software.
33
- //
34
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
35
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
37
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
38
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
39
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
40
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
41
- //
42
- // https://github.com/joyent/node/blob/master/lib/util.js
43
-
44
- function inspect(obj, opts) {
45
- var ctx = {
46
- seen: [],
47
- formatValueCalls: 0,
48
- stylize: stylizeNoColor
49
- };
50
- return formatValue(ctx, obj, opts.depth);
51
- }
52
- function stylizeNoColor(str, styleType) {
53
- return str;
54
- }
55
- function arrayToHash(array) {
56
- var hash = {};
57
- array.forEach(function (val, idx) {
58
- hash[val] = true;
59
- });
60
- return hash;
61
- }
62
- function formatValue(ctx, value, recurseTimes) {
63
- ctx.formatValueCalls++;
64
- if (ctx.formatValueCalls > 200) {
65
- return `[TOO BIG formatValueCalls ${ctx.formatValueCalls} exceeded limit of 200]`;
66
- }
67
-
68
- // Primitive types cannot have properties
69
- var primitive = formatPrimitive(ctx, value);
70
- if (primitive) {
71
- return primitive;
72
- }
73
-
74
- // Look up the keys of the object.
75
- var keys = Object.keys(value);
76
- var visibleKeys = arrayToHash(keys);
77
-
78
- // IE doesn't make error fields non-enumerable
79
- // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
80
- if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
81
- return formatError(value);
82
- }
83
-
84
- // Some type of object without properties can be shortcutted.
85
- if (keys.length === 0) {
86
- if (isFunction(value)) {
87
- var name = value.name ? ': ' + value.name : '';
88
- return ctx.stylize('[Function' + name + ']', 'special');
89
- }
90
- if (isRegExp(value)) {
91
- return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
92
- }
93
- if (isDate(value)) {
94
- return ctx.stylize(Date.prototype.toString.call(value), 'date');
95
- }
96
- if (isError(value)) {
97
- return formatError(value);
98
- }
99
- }
100
- var base = '',
101
- array = false,
102
- braces = ['{', '}'];
103
-
104
- // Make Array say that they are Array
105
- if (isArray(value)) {
106
- array = true;
107
- braces = ['[', ']'];
108
- }
109
-
110
- // Make functions say that they are functions
111
- if (isFunction(value)) {
112
- var n = value.name ? ': ' + value.name : '';
113
- base = ' [Function' + n + ']';
114
- }
115
-
116
- // Make RegExps say that they are RegExps
117
- if (isRegExp(value)) {
118
- base = ' ' + RegExp.prototype.toString.call(value);
119
- }
120
-
121
- // Make dates with properties first say the date
122
- if (isDate(value)) {
123
- base = ' ' + Date.prototype.toUTCString.call(value);
124
- }
125
-
126
- // Make error with message first say the error
127
- if (isError(value)) {
128
- base = ' ' + formatError(value);
129
- }
130
- if (keys.length === 0 && (!array || value.length == 0)) {
131
- return braces[0] + base + braces[1];
132
- }
133
- if (recurseTimes < 0) {
134
- if (isRegExp(value)) {
135
- return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
136
- } else {
137
- return ctx.stylize('[Object]', 'special');
138
- }
139
- }
140
- ctx.seen.push(value);
141
- var output;
142
- if (array) {
143
- output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
144
- } else {
145
- output = keys.map(function (key) {
146
- return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
147
- });
148
- }
149
- ctx.seen.pop();
150
- return reduceToSingleString(output, base, braces);
151
- }
152
- function formatPrimitive(ctx, value) {
153
- if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');
154
- if (isString(value)) {
155
- var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
156
- return ctx.stylize(simple, 'string');
157
- }
158
- if (isNumber(value)) return ctx.stylize('' + value, 'number');
159
- if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');
160
- // For some reason typeof null is "object", so special case here.
161
- if (isNull(value)) return ctx.stylize('null', 'null');
162
- }
163
- function formatError(value) {
164
- return '[' + Error.prototype.toString.call(value) + ']';
165
- }
166
- function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
167
- var output = [];
168
- for (var i = 0, l = value.length; i < l; ++i) {
169
- if (hasOwnProperty(value, String(i))) {
170
- output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
171
- } else {
172
- output.push('');
173
- }
174
- }
175
- keys.forEach(function (key) {
176
- if (!key.match(/^\d+$/)) {
177
- output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
178
- }
179
- });
180
- return output;
181
- }
182
- function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
183
- var name, str, desc;
184
- desc = Object.getOwnPropertyDescriptor(value, key) || {
185
- value: value[key]
186
- };
187
- if (desc.get) {
188
- if (desc.set) {
189
- str = ctx.stylize('[Getter/Setter]', 'special');
190
- } else {
191
- str = ctx.stylize('[Getter]', 'special');
192
- }
193
- } else {
194
- if (desc.set) {
195
- str = ctx.stylize('[Setter]', 'special');
196
- }
197
- }
198
- if (!hasOwnProperty(visibleKeys, key)) {
199
- name = '[' + key + ']';
200
- }
201
- if (!str) {
202
- if (ctx.seen.indexOf(desc.value) < 0) {
203
- if (isNull(recurseTimes)) {
204
- str = formatValue(ctx, desc.value, null);
205
- } else {
206
- str = formatValue(ctx, desc.value, recurseTimes - 1);
207
- }
208
- if (str.indexOf('\n') > -1) {
209
- if (array) {
210
- str = str.split('\n').map(function (line) {
211
- return ' ' + line;
212
- }).join('\n').substr(2);
213
- } else {
214
- str = '\n' + str.split('\n').map(function (line) {
215
- return ' ' + line;
216
- }).join('\n');
217
- }
218
- }
219
- } else {
220
- str = ctx.stylize('[Circular]', 'special');
221
- }
222
- }
223
- if (isUndefined(name)) {
224
- if (array && key.match(/^\d+$/)) {
225
- return str;
226
- }
227
- name = JSON.stringify('' + key);
228
- if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
229
- name = name.substr(1, name.length - 2);
230
- name = ctx.stylize(name, 'name');
231
- } else {
232
- name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
233
- name = ctx.stylize(name, 'string');
234
- }
235
- }
236
- return name + ': ' + str;
237
- }
238
- function reduceToSingleString(output, base, braces) {
239
- var numLinesEst = 0;
240
- var length = output.reduce(function (prev, cur) {
241
- numLinesEst++;
242
- if (cur.indexOf('\n') >= 0) numLinesEst++;
243
- return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
244
- }, 0);
245
- if (length > 60) {
246
- return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1];
247
- }
248
- return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
249
- }
250
-
251
- // NOTE: These type checking functions intentionally don't use `instanceof`
252
- // because it is fragile and can be easily faked with `Object.create()`.
253
- function isArray(ar) {
254
- return Array.isArray(ar);
255
- }
256
- function isBoolean(arg) {
257
- return typeof arg === 'boolean';
258
- }
259
- function isNull(arg) {
260
- return arg === null;
261
- }
262
- function isNumber(arg) {
263
- return typeof arg === 'number';
264
- }
265
- function isString(arg) {
266
- return typeof arg === 'string';
267
- }
268
- function isUndefined(arg) {
269
- return arg === undefined;
270
- }
271
- function isRegExp(re) {
272
- return isObject(re) && objectToString(re) === '[object RegExp]';
273
- }
274
- function isObject(arg) {
275
- return typeof arg === 'object' && arg !== null;
276
- }
277
- function isDate(d) {
278
- return isObject(d) && objectToString(d) === '[object Date]';
279
- }
280
- function isError(e) {
281
- return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);
282
- }
283
- function isFunction(arg) {
284
- return typeof arg === 'function';
285
- }
286
- function objectToString(o) {
287
- return Object.prototype.toString.call(o);
288
- }
289
- function hasOwnProperty(obj, prop) {
290
- return Object.prototype.hasOwnProperty.call(obj, prop);
291
- }
292
- return inspect;
293
- }();
294
- var OBJECT_COLUMN_NAME = '(index)';
295
- var LOG_LEVELS = {
296
- trace: 0,
297
- info: 1,
298
- warn: 2,
299
- error: 3
300
- };
301
- var INSPECTOR_LEVELS = [];
302
- INSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug';
303
- INSPECTOR_LEVELS[LOG_LEVELS.info] = 'log';
304
- INSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning';
305
- INSPECTOR_LEVELS[LOG_LEVELS.error] = 'error';
306
-
307
- // Strip the inner function in getNativeLogFunction(), if in dev also
308
- // strip method printing to originalConsole.
309
- var INSPECTOR_FRAMES_TO_SKIP = 1;
310
- function getNativeLogFunction(level) {
311
- return function () {
312
- var str;
313
- if (arguments.length === 1 && typeof arguments[0] === 'string') {
314
- str = arguments[0];
315
- } else {
316
- str = Array.prototype.map.call(arguments, function (arg) {
317
- return inspect(arg, {
318
- depth: 10
319
- });
320
- }).join(', ');
321
- }
322
-
323
- // TRICKY
324
- // If more than one argument is provided, the code above collapses them all
325
- // into a single formatted string. This transform wraps string arguments in
326
- // single quotes (e.g. "foo" -> "'foo'") which then breaks the "Warning:"
327
- // check below. So it's important that we look at the first argument, rather
328
- // than the formatted argument string.
329
- var firstArg = arguments[0];
330
- var logLevel = level;
331
- if (typeof firstArg === 'string' && firstArg.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) {
332
- // React warnings use console.error so that a stack trace is shown,
333
- // but we don't (currently) want these to show a redbox
334
- // (Note: Logic duplicated in ExceptionsManager.js.)
335
- logLevel = LOG_LEVELS.warn;
336
- }
337
- if (global.__inspectorLog) {
338
- global.__inspectorLog(INSPECTOR_LEVELS[logLevel], str, [].slice.call(arguments), INSPECTOR_FRAMES_TO_SKIP);
339
- }
340
- if (groupStack.length) {
341
- str = groupFormat('', str);
342
- }
343
- global.nativeLoggingHook(str, logLevel);
344
- };
345
- }
346
- function repeat(element, n) {
347
- return Array.apply(null, Array(n)).map(function () {
348
- return element;
349
- });
350
- }
351
- function consoleTablePolyfill(rows) {
352
- // convert object -> array
353
- if (!Array.isArray(rows)) {
354
- var data = rows;
355
- rows = [];
356
- for (var key in data) {
357
- if (data.hasOwnProperty(key)) {
358
- var row = data[key];
359
- row[OBJECT_COLUMN_NAME] = key;
360
- rows.push(row);
361
- }
362
- }
363
- }
364
- if (rows.length === 0) {
365
- global.nativeLoggingHook('', LOG_LEVELS.info);
366
- return;
367
- }
368
- var columns = Object.keys(rows[0]).sort();
369
- var stringRows = [];
370
- var columnWidths = [];
371
-
372
- // Convert each cell to a string. Also
373
- // figure out max cell width for each column
374
- columns.forEach(function (k, i) {
375
- columnWidths[i] = k.length;
376
- for (var j = 0; j < rows.length; j++) {
377
- var cellStr = (rows[j][k] || '?').toString();
378
- stringRows[j] = stringRows[j] || [];
379
- stringRows[j][i] = cellStr;
380
- columnWidths[i] = Math.max(columnWidths[i], cellStr.length);
381
- }
382
- });
383
-
384
- // Join all elements in the row into a single string with | separators
385
- // (appends extra spaces to each cell to make separators | aligned)
386
- function joinRow(row, space) {
387
- var cells = row.map(function (cell, i) {
388
- var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join('');
389
- return cell + extraSpaces;
390
- });
391
- space = space || ' ';
392
- return cells.join(space + '|' + space);
393
- }
394
- var separators = columnWidths.map(function (columnWidth) {
395
- return repeat('-', columnWidth).join('');
396
- });
397
- var separatorRow = joinRow(separators, '-');
398
- var header = joinRow(columns);
399
- var table = [header, separatorRow];
400
- for (var i = 0; i < rows.length; i++) {
401
- table.push(joinRow(stringRows[i]));
402
- }
403
-
404
- // Notice extra empty line at the beginning.
405
- // Native logging hook adds "RCTLog >" at the front of every
406
- // logged string, which would shift the header and screw up
407
- // the table
408
- global.nativeLoggingHook('\n' + table.join('\n'), LOG_LEVELS.info);
409
- }
410
- var GROUP_PAD = "\u2502"; // Box light vertical
411
- var GROUP_OPEN = "\u2510"; // Box light down+left
412
- var GROUP_CLOSE = "\u2518"; // Box light up+left
413
-
414
- var groupStack = [];
415
- function groupFormat(prefix, msg) {
416
- // Insert group formatting before the console message
417
- return groupStack.join('') + prefix + ' ' + (msg || '');
418
- }
419
- function consoleGroupPolyfill(label) {
420
- global.nativeLoggingHook(groupFormat(GROUP_OPEN, label), LOG_LEVELS.info);
421
- groupStack.push(GROUP_PAD);
422
- }
423
- function consoleGroupCollapsedPolyfill(label) {
424
- global.nativeLoggingHook(groupFormat(GROUP_CLOSE, label), LOG_LEVELS.info);
425
- groupStack.push(GROUP_PAD);
426
- }
427
- function consoleGroupEndPolyfill() {
428
- groupStack.pop();
429
- global.nativeLoggingHook(groupFormat(GROUP_CLOSE), LOG_LEVELS.info);
430
- }
431
- function consoleAssertPolyfill(expression, label) {
432
- if (!expression) {
433
- global.nativeLoggingHook('Assertion failed: ' + label, LOG_LEVELS.error);
434
- }
435
- }
436
- if (global.nativeLoggingHook) {
437
- var originalConsole = global.console;
438
- // Preserve the original `console` as `originalConsole`
439
-
440
- global.console = {
441
- error: getNativeLogFunction(LOG_LEVELS.error),
442
- info: getNativeLogFunction(LOG_LEVELS.info),
443
- log: getNativeLogFunction(LOG_LEVELS.info),
444
- warn: getNativeLogFunction(LOG_LEVELS.warn),
445
- trace: getNativeLogFunction(LOG_LEVELS.trace),
446
- debug: getNativeLogFunction(LOG_LEVELS.trace),
447
- table: consoleTablePolyfill,
448
- group: consoleGroupPolyfill,
449
- groupEnd: consoleGroupEndPolyfill,
450
- groupCollapsed: consoleGroupCollapsedPolyfill,
451
- assert: consoleAssertPolyfill
452
- };
453
- Object.defineProperty(console, '_isPolyfilled', {
454
- value: true,
455
- enumerable: false
456
- });
457
-
458
- // If available, also call the original `console` method since that is
459
- // sometimes useful. Ex: on OS X, this will let you see rich output in
460
- // the Safari Web Inspector console.
461
- } else if (!global.console) {
462
- var stub = function stub() {};
463
- var log = global.print || stub;
464
- global.console = {
465
- debug: log,
466
- error: log,
467
- info: log,
468
- log: log,
469
- trace: log,
470
- warn: log,
471
- assert: function assert(expression, label) {
472
- if (!expression) {
473
- log('Assertion failed: ' + label);
474
- }
475
- },
476
- clear: stub,
477
- dir: stub,
478
- dirxml: stub,
479
- group: stub,
480
- groupCollapsed: stub,
481
- groupEnd: stub,
482
- profile: stub,
483
- profileEnd: stub,
484
- table: stub
485
- };
486
- Object.defineProperty(console, '_isPolyfilled', {
487
- value: true,
488
- enumerable: false
489
- });
490
- }
491
- })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
492
- (function (global) {
493
- /**
494
- * Copyright (c) Meta Platforms, Inc. and affiliates.
495
- *
496
- * This source code is licensed under the MIT license found in the
497
- * LICENSE file in the root directory of this source tree.
498
- *
499
- * @format
500
- *
501
- * @polyfill
502
- */
503
-
504
- var _inGuard = 0;
505
- /**
506
- * This is the error handler that is called when we encounter an exception
507
- * when loading a module. This will report any errors encountered before
508
- * ExceptionsManager is configured.
509
- */
510
- var _globalHandler = function onError(e, isFatal) {
511
- throw e;
512
- };
513
-
514
- /**
515
- * The particular require runtime that we are using looks for a global
516
- * `ErrorUtils` object and if it exists, then it requires modules with the
517
- * error handler specified via ErrorUtils.setGlobalHandler by calling the
518
- * require function with applyWithGuard. Since the require module is loaded
519
- * before any of the modules, this ErrorUtils must be defined (and the handler
520
- * set) globally before requiring anything.
521
- */
522
- var ErrorUtils = {
523
- setGlobalHandler: function setGlobalHandler(fun) {
524
- _globalHandler = fun;
525
- },
526
- getGlobalHandler: function getGlobalHandler() {
527
- return _globalHandler;
528
- },
529
- reportError: function reportError(error) {
530
- _globalHandler && _globalHandler(error, false);
531
- },
532
- reportFatalError: function reportFatalError(error) {
533
- // NOTE: This has an untyped call site in Metro.
534
- _globalHandler && _globalHandler(error, true);
535
- },
536
- applyWithGuard: function applyWithGuard(fun, context, args,
537
- // Unused, but some code synced from www sets it to null.
538
- unused_onError,
539
- // Some callers pass a name here, which we ignore.
540
- unused_name) {
541
- try {
542
- _inGuard++;
543
- /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,
544
- * null) is fine. (2) array -> rest array should work */
545
- /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,
546
- * null) is fine. (2) array -> rest array should work */
547
- return fun.apply(context, args);
548
- } catch (e) {
549
- ErrorUtils.reportError(e);
550
- } finally {
551
- _inGuard--;
552
- }
553
- return null;
554
- },
555
- applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) {
556
- if (ErrorUtils.inGuard()) {
557
- /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,
558
- * null) is fine. (2) array -> rest array should work */
559
- /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,
560
- * null) is fine. (2) array -> rest array should work */
561
- return fun.apply(context, args);
562
- } else {
563
- ErrorUtils.applyWithGuard(fun, context, args);
564
- }
565
- return null;
566
- },
567
- inGuard: function inGuard() {
568
- return !!_inGuard;
569
- },
570
- guard: function guard(fun, name, context) {
571
- var _ref;
572
- // TODO: (moti) T48204753 Make sure this warning is never hit and remove it - types
573
- // should be sufficient.
574
- if (typeof fun !== 'function') {
575
- console.warn('A function must be passed to ErrorUtils.guard, got ', fun);
576
- return null;
577
- }
578
- var guardName = (_ref = name != null ? name : fun.name) != null ? _ref : '<generated guard>';
579
- /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by
580
- * Flow's LTI update could not be added via codemod */
581
- function guarded() {
582
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
583
- args[_key] = arguments[_key];
584
- }
585
- return ErrorUtils.applyWithGuard(fun, context != null ? context : this, args, null, guardName);
586
- }
587
- return guarded;
588
- }
589
- };
590
- global.ErrorUtils = ErrorUtils;
591
- })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
592
- (function (global) {
593
- /**
594
- * Copyright (c) Meta Platforms, Inc. and affiliates.
595
- *
596
- * This source code is licensed under the MIT license found in the
597
- * LICENSE file in the root directory of this source tree.
598
- *
599
- * @format
600
- * @polyfill
601
- * @nolint
602
- */
603
-
604
- (function () {
605
- 'use strict';
606
-
607
- var hasOwnProperty = Object.prototype.hasOwnProperty;
608
-
609
- /**
610
- * Returns an array of the given object's own enumerable entries.
611
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
612
- */
613
- if (typeof Object.entries !== 'function') {
614
- Object.entries = function (object) {
615
- // `null` and `undefined` values are not allowed.
616
- if (object == null) {
617
- throw new TypeError('Object.entries called on non-object');
618
- }
619
- var entries = [];
620
- for (var key in object) {
621
- if (hasOwnProperty.call(object, key)) {
622
- entries.push([key, object[key]]);
623
- }
624
- }
625
- return entries;
626
- };
627
- }
628
-
629
- /**
630
- * Returns an array of the given object's own enumerable entries.
631
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values
632
- */
633
- if (typeof Object.values !== 'function') {
634
- Object.values = function (object) {
635
- // `null` and `undefined` values are not allowed.
636
- if (object == null) {
637
- throw new TypeError('Object.values called on non-object');
638
- }
639
- var values = [];
640
- for (var key in object) {
641
- if (hasOwnProperty.call(object, key)) {
642
- values.push(object[key]);
643
- }
644
- }
645
- return values;
646
- };
647
- }
648
- })();
649
- })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
650
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
651
- "use strict";
652
-
653
- var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
654
- if (k2 === undefined) k2 = k;
655
- var desc = Object.getOwnPropertyDescriptor(m, k);
656
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
657
- desc = {
658
- enumerable: true,
659
- get: function get() {
660
- return m[k];
661
- }
662
- };
663
- }
664
- Object.defineProperty(o, k2, desc);
665
- } : function (o, m, k, k2) {
666
- if (k2 === undefined) k2 = k;
667
- o[k2] = m[k];
668
- });
669
- var __exportStar = this && this.__exportStar || function (m, exports) {
670
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
671
- };
672
- var __importDefault = this && this.__importDefault || function (mod) {
673
- return mod && mod.__esModule ? mod : {
674
- "default": mod
675
- };
676
- };
677
- Object.defineProperty(exports, "__esModule", {
678
- value: true
679
- });
680
- exports.EpgSyncTaskScheduler = undefined;
681
- __exportStar(_$$_REQUIRE(_dependencyMap[0]), exports);
682
- __exportStar(_$$_REQUIRE(_dependencyMap[1]), exports);
683
- Object.defineProperty(exports, "EpgSyncTaskScheduler", {
684
- enumerable: true,
685
- get: function get() {
686
- return __importDefault(_$$_REQUIRE(_dependencyMap[2])).default;
687
- }
688
- });
689
- },"302f3f55dddc5b164b22",["1fcde0793d27c4addb37","59fdc5cc55d808f2e797","24b30d76209a76a618db"]);
690
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
691
- "use strict";
692
-
693
- function _callSuper(t, o, e) { return o = _$$_REQUIRE(_dependencyMap[0])(o), _$$_REQUIRE(_dependencyMap[1])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _$$_REQUIRE(_dependencyMap[0])(t).constructor) : o.apply(t, e)); }
694
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
695
- Object.defineProperty(exports, "__esModule", {
696
- value: true
697
- });
698
- exports.IllegalStateError = exports.InvalidArgumentError = exports.InternalError = undefined;
699
- /**
700
- * A custom Error type to indicate that something went wrong when scheduling the EPG Sync Task.
701
- */
702
- var InternalError = /*#__PURE__*/function (_Error) {
703
- function InternalError() {
704
- _$$_REQUIRE(_dependencyMap[2])(this, InternalError);
705
- return _callSuper(this, InternalError, arguments);
706
- }
707
- _$$_REQUIRE(_dependencyMap[3])(InternalError, _Error);
708
- return _$$_REQUIRE(_dependencyMap[4])(InternalError);
709
- }(/*#__PURE__*/_$$_REQUIRE(_dependencyMap[5])(Error));
710
- exports.InternalError = InternalError;
711
- /**
712
- * Exception thrown when there is a failure in creating a new object.
713
- */
714
- var InvalidArgumentError = /*#__PURE__*/function (_Error2) {
715
- function InvalidArgumentError() {
716
- _$$_REQUIRE(_dependencyMap[2])(this, InvalidArgumentError);
717
- return _callSuper(this, InvalidArgumentError, arguments);
718
- }
719
- _$$_REQUIRE(_dependencyMap[3])(InvalidArgumentError, _Error2);
720
- return _$$_REQUIRE(_dependencyMap[4])(InvalidArgumentError);
721
- }(/*#__PURE__*/_$$_REQUIRE(_dependencyMap[5])(Error));
722
- exports.InvalidArgumentError = InvalidArgumentError;
723
- /**
724
- * Exception thrown when functions of a builder are called after it has already been used to build an object.
725
- */
726
- var IllegalStateError = /*#__PURE__*/function (_Error3) {
727
- function IllegalStateError() {
728
- _$$_REQUIRE(_dependencyMap[2])(this, IllegalStateError);
729
- return _callSuper(this, IllegalStateError, arguments);
730
- }
731
- _$$_REQUIRE(_dependencyMap[3])(IllegalStateError, _Error3);
732
- return _$$_REQUIRE(_dependencyMap[4])(IllegalStateError);
733
- }(/*#__PURE__*/_$$_REQUIRE(_dependencyMap[5])(Error));
734
- exports.IllegalStateError = IllegalStateError;
735
- },"1fcde0793d27c4addb37",["d018a06406fb653018ec","8d15d050b4d790a1aafb","cf3c049ea50efe649bfc","d90d32cd032c9fb2b028","be8a01356f5723930509","cfaac85b4aaa78164d9f"]);
736
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
737
- function _getPrototypeOf(t) {
738
- return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
739
- return t.__proto__ || Object.getPrototypeOf(t);
740
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
741
- }
742
- module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
743
- },"d018a06406fb653018ec",[]);
744
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
745
- function _possibleConstructorReturn(t, e) {
746
- if (e && ("object" == _$$_REQUIRE(_dependencyMap[0])["default"](e) || "function" == typeof e)) return e;
747
- if (undefined !== e) throw new TypeError("Derived constructors may only return object or undefined");
748
- return _$$_REQUIRE(_dependencyMap[1])(t);
749
- }
750
- module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
751
- },"8d15d050b4d790a1aafb",["70afbc33bc38afcbc4d8","459dc80bb7a15f9ad551"]);
752
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
753
- function _typeof(o) {
754
- "@babel/helpers - typeof";
755
-
756
- return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
757
- return typeof o;
758
- } : function (o) {
759
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
760
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
761
- }
762
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
763
- },"70afbc33bc38afcbc4d8",[]);
764
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
765
- function _assertThisInitialized(e) {
766
- if (undefined === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
767
- return e;
768
- }
769
- module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
770
- },"459dc80bb7a15f9ad551",[]);
771
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
772
- function _classCallCheck(a, n) {
773
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
774
- }
775
- module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
776
- },"cf3c049ea50efe649bfc",[]);
777
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
778
- function _inherits(t, e) {
779
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
780
- t.prototype = Object.create(e && e.prototype, {
781
- constructor: {
782
- value: t,
783
- writable: true,
784
- configurable: true
785
- }
786
- }), Object.defineProperty(t, "prototype", {
787
- writable: false
788
- }), e && _$$_REQUIRE(_dependencyMap[0])(t, e);
789
- }
790
- module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
791
- },"d90d32cd032c9fb2b028",["f2e515bee49ab75b9bbb"]);
792
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
793
- function _setPrototypeOf(t, e) {
794
- return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
795
- return t.__proto__ = e, t;
796
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
797
- }
798
- module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
799
- },"f2e515bee49ab75b9bbb",[]);
800
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
801
- function _defineProperties(e, r) {
802
- for (var t = 0; t < r.length; t++) {
803
- var o = r[t];
804
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _$$_REQUIRE(_dependencyMap[0])(o.key), o);
805
- }
806
- }
807
- function _createClass(e, r, t) {
808
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
809
- writable: false
810
- }), e;
811
- }
812
- module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
813
- },"be8a01356f5723930509",["3b6f25861377925d8169"]);
814
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
815
- function toPropertyKey(t) {
816
- var i = _$$_REQUIRE(_dependencyMap[0])(t, "string");
817
- return "symbol" == _$$_REQUIRE(_dependencyMap[1])["default"](i) ? i : i + "";
818
- }
819
- module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
820
- },"3b6f25861377925d8169",["735506462487c8d6a161","70afbc33bc38afcbc4d8"]);
821
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
822
- function toPrimitive(t, r) {
823
- if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](t) || !t) return t;
824
- var e = t[Symbol.toPrimitive];
825
- if (undefined !== e) {
826
- var i = e.call(t, r || "default");
827
- if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](i)) return i;
828
- throw new TypeError("@@toPrimitive must return a primitive value.");
829
- }
830
- return ("string" === r ? String : Number)(t);
831
- }
832
- module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
833
- },"735506462487c8d6a161",["70afbc33bc38afcbc4d8"]);
834
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
835
- function _wrapNativeSuper(t) {
836
- var r = "function" == typeof Map ? new Map() : undefined;
837
- return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
838
- if (null === t || !_$$_REQUIRE(_dependencyMap[0])(t)) return t;
839
- if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
840
- if (undefined !== r) {
841
- if (r.has(t)) return r.get(t);
842
- r.set(t, Wrapper);
843
- }
844
- function Wrapper() {
845
- return _$$_REQUIRE(_dependencyMap[1])(t, arguments, _$$_REQUIRE(_dependencyMap[2])(this).constructor);
846
- }
847
- return Wrapper.prototype = Object.create(t.prototype, {
848
- constructor: {
849
- value: Wrapper,
850
- enumerable: false,
851
- writable: true,
852
- configurable: true
853
- }
854
- }), _$$_REQUIRE(_dependencyMap[3])(Wrapper, t);
855
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
856
- }
857
- module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
858
- },"cfaac85b4aaa78164d9f",["8cdebd4f05c2e144e95d","f11bd3d33e154ae44336","d018a06406fb653018ec","f2e515bee49ab75b9bbb"]);
859
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
860
- function _isNativeFunction(t) {
861
- try {
862
- return -1 !== Function.toString.call(t).indexOf("[native code]");
863
- } catch (n) {
864
- return "function" == typeof t;
865
- }
866
- }
867
- module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
868
- },"8cdebd4f05c2e144e95d",[]);
869
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
870
- function _construct(t, e, r) {
871
- if (_$$_REQUIRE(_dependencyMap[0])()) return Reflect.construct.apply(null, arguments);
872
- var o = [null];
873
- o.push.apply(o, e);
874
- var p = new (t.bind.apply(t, o))();
875
- return r && _$$_REQUIRE(_dependencyMap[1])(p, r.prototype), p;
876
- }
877
- module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
878
- },"f11bd3d33e154ae44336",["b0f10121503a487469fc","f2e515bee49ab75b9bbb"]);
879
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
880
- function _isNativeReflectConstruct() {
881
- try {
882
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
883
- } catch (t) {}
884
- return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
885
- return !!t;
886
- }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
887
- }
888
- module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
889
- },"b0f10121503a487469fc",[]);
890
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
891
- "use strict";
892
-
893
- function _callSuper(t, o, e) { return o = _$$_REQUIRE(_dependencyMap[0])(o), _$$_REQUIRE(_dependencyMap[1])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _$$_REQUIRE(_dependencyMap[0])(t).constructor) : o.apply(t, e)); }
894
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
895
- Object.defineProperty(exports, "__esModule", {
896
- value: true
897
- });
898
- exports.UtcTimePropertiesBuilder = undefined;
899
- /**
900
- * Class object representing a Time Struct.
901
- * This object should be built using `TimePropertiesBuilder`.
902
- */
903
- var TimeProperties = /*#__PURE__*/_$$_REQUIRE(_dependencyMap[2])(
904
- /**
905
- * Constructor function called for initialization of a `TimeProperties` object.
906
- */
907
- function TimeProperties(startHour, startMinute, startSecond) {
908
- var executionWindow = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 60;
909
- var localTime = arguments.length > 4 ? arguments[4] : undefined;
910
- _$$_REQUIRE(_dependencyMap[3])(this, TimeProperties);
911
- this._startHour = startHour;
912
- this._startMinute = startMinute;
913
- this._startSecond = startSecond;
914
- this._executionWindow = executionWindow;
915
- this._localTime = localTime;
916
- });
917
- /**
918
- * Builder that creates an instance of the `TimeProperties` object.
919
- * The `UtcTimePropertiesBuilder` allows callers to create an instance
920
- * `ITimeProperties` in UTC. The constraint is a combination of a start time
921
- * and an execution window. For instance, if we want the EPG sync task
922
- * to be executed between 2AM and 4AM UTC, then the timeProperties can be built as
923
- * `UtcTimePropertiesBuilder.startHour(2).startMinute(0).startSecond(0).executionWindowInMinutes(120).build();`
924
- */
925
- var UtcTimePropertiesBuilder = /*#__PURE__*/function (_Builder_1$Builder) {
926
- function UtcTimePropertiesBuilder() {
927
- var _this;
928
- _$$_REQUIRE(_dependencyMap[3])(this, UtcTimePropertiesBuilder);
929
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
930
- args[_key] = arguments[_key];
931
- }
932
- _this = _callSuper(this, UtcTimePropertiesBuilder, [].concat(args));
933
- _this._className = 'UtcTimePropertiesBuilder';
934
- return _this;
935
- }
936
- _$$_REQUIRE(_dependencyMap[4])(UtcTimePropertiesBuilder, _Builder_1$Builder);
937
- return _$$_REQUIRE(_dependencyMap[2])(UtcTimePropertiesBuilder, [{
938
- key: "startHour",
939
- value:
940
- /**
941
- * Sets the start hour in the `TimeProperties`.
942
- *
943
- * @details This field is required for the time properties.
944
- * @param {number} hour Represents Hour (0-23).
945
- * @returns {UtcTimePropertiesBuilder} The `UtcTimePropertiesBuilder` object with the start hour set.
946
- * @throws `IllegalStateError` if the function is called after this builder instance
947
- * has already built an object once.
948
- * @throws `InvalidArgumentError` if the number of hour is not in the range between 0 and 23.
949
- */
950
- function startHour(hour) {
951
- this.throwErrorIfBuilderAlreadyUsed();
952
- if (hour < 0 || hour > 23) {
953
- throw new (_$$_REQUIRE(_dependencyMap[5]).InvalidArgumentError)('InvalidArgumentError - hour value is invalid');
954
- }
955
- this._startHour = hour;
956
- return this;
957
- }
958
- /**
959
- * Sets the start minute in the `TimeProperties`.
960
- *
961
- * @details This field is required for the time properties.
962
- * @param {number} minute Represents Minute (0-59).
963
- * @returns {UtcTimePropertiesBuilder} The `UtcTimePropertiesBuilder` object with the start minute set.
964
- * @throws `IllegalStateError` if the function is called after this builder instance
965
- * has already built an object once.
966
- * @throws `InvalidArgumentError` if the number of minute is not in the range between 0 and 59.
967
- */
968
- }, {
969
- key: "startMinute",
970
- value: function startMinute(minute) {
971
- this.throwErrorIfBuilderAlreadyUsed();
972
- if (minute < 0 || minute > 59) {
973
- throw new (_$$_REQUIRE(_dependencyMap[5]).InvalidArgumentError)('InvalidArgumentError - minute value is invalid');
974
- }
975
- this._startMinute = minute;
976
- return this;
977
- }
978
- /**
979
- * Sets the start second in the `TimeProperties`.
980
- *
981
- * @details This field is required for the time properties.
982
- * @param {number} second Represents Second (0-59).
983
- * @returns {UtcTimePropertiesBuilder} The `UtcTimePropertiesBuilder` object with the start second set.
984
- * @throws `IllegalStateError` if the function is called after this builder instance
985
- * has already built an object once.
986
- * @throws `InvalidArgumentError` if the number of second is not in the range between 0 and 59.
987
- */
988
- }, {
989
- key: "startSecond",
990
- value: function startSecond(second) {
991
- this.throwErrorIfBuilderAlreadyUsed();
992
- if (second < 0 || second > 59) {
993
- throw new (_$$_REQUIRE(_dependencyMap[5]).InvalidArgumentError)('InvalidArgumentError - second value is invalid');
994
- }
995
- this._startSecond = second;
996
- return this;
997
- }
998
- /**
999
- * Sets the length of the execution time window in the `TimeProperties`.
1000
- *
1001
- * @details This field is optional for the time properties. The default value is 60 mins.
1002
- * @param {number} window The length of the execution time window in mins.
1003
- * @returns {UtcTimePropertiesBuilder} The `UtcTimePropertiesBuilder` object with the execution window set.
1004
- * @throws `IllegalStateError` if the function is called after this builder instance
1005
- * has already built an object once.
1006
- * @throws `InvalidArgumentError` if the execution window is smaller than 1 hour.
1007
- */
1008
- }, {
1009
- key: "executionWindowInMinutes",
1010
- value: function executionWindowInMinutes(window) {
1011
- this.throwErrorIfBuilderAlreadyUsed();
1012
- if (window < 60) {
1013
- throw new (_$$_REQUIRE(_dependencyMap[5]).InvalidArgumentError)('InvalidArgumentError - Execution window must be at least 1 hour');
1014
- }
1015
- this._executionWindow = window;
1016
- return this;
1017
- }
1018
- /**
1019
- * Builds the `TimeProperties` object based on the parameters provided.
1020
- *
1021
- * @returns {ITimeProperties} The built `TimeProperties` object.
1022
- * @throws `InvalidArgumentError` if one or more of the required fields are missing.
1023
- * @throws `IllegalStateError` if the function is called after this builder instance
1024
- * has already built an object once.
1025
- */
1026
- }, {
1027
- key: "build",
1028
- value: function build() {
1029
- this.throwErrorIfBuilderAlreadyUsed();
1030
- if (this._startHour === undefined) {
1031
- throw new (_$$_REQUIRE(_dependencyMap[5]).InvalidArgumentError)('InvalidArgumentError - hour is undefined');
1032
- }
1033
- if (this._startMinute === undefined) {
1034
- throw new (_$$_REQUIRE(_dependencyMap[5]).InvalidArgumentError)('InvalidArgumentError - minute is undefined');
1035
- }
1036
- if (this._startSecond === undefined) {
1037
- throw new (_$$_REQUIRE(_dependencyMap[5]).InvalidArgumentError)('InvalidArgumentError - second is undefined');
1038
- }
1039
- var timeProperties = new TimeProperties(this._startHour, this._startMinute, this._startSecond, this._executionWindow, false);
1040
- this.markBuilderAsUsed();
1041
- return timeProperties;
1042
- }
1043
- }]);
1044
- }(_$$_REQUIRE(_dependencyMap[6]).Builder);
1045
- exports.UtcTimePropertiesBuilder = UtcTimePropertiesBuilder;
1046
- },"59fdc5cc55d808f2e797",["d018a06406fb653018ec","8d15d050b4d790a1aafb","be8a01356f5723930509","cf3c049ea50efe649bfc","d90d32cd032c9fb2b028","1fcde0793d27c4addb37","54256c54ac983598a426"]);
1047
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1048
- "use strict";
1049
-
1050
- Object.defineProperty(exports, "__esModule", {
1051
- value: true
1052
- });
1053
- exports.Builder = undefined;
1054
- var Builder = /*#__PURE__*/function () {
1055
- function Builder() {
1056
- _$$_REQUIRE(_dependencyMap[0])(this, Builder);
1057
- this._hasAlreadyBeenBuilt = false;
1058
- }
1059
- return _$$_REQUIRE(_dependencyMap[1])(Builder, [{
1060
- key: "throwErrorIfBuilderAlreadyUsed",
1061
- value: function throwErrorIfBuilderAlreadyUsed() {
1062
- if (this._hasAlreadyBeenBuilt) {
1063
- throw new (_$$_REQUIRE(_dependencyMap[2]).IllegalStateError)(`${this._className} cannot be reused after it has been used to build an object.`);
1064
- }
1065
- }
1066
- }, {
1067
- key: "markBuilderAsUsed",
1068
- value: function markBuilderAsUsed() {
1069
- this._hasAlreadyBeenBuilt = true;
1070
- }
1071
- }]);
1072
- }();
1073
- exports.Builder = Builder;
1074
- },"54256c54ac983598a426",["cf3c049ea50efe649bfc","be8a01356f5723930509","1fcde0793d27c4addb37"]);
1075
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1076
- "use strict";
1077
-
1078
- var __importDefault = this && this.__importDefault || function (mod) {
1079
- return mod && mod.__esModule ? mod : {
1080
- "default": mod
1081
- };
1082
- };
1083
- Object.defineProperty(exports, "__esModule", {
1084
- value: true
1085
- });
1086
- var NativeEpgSyncTaskScheduler_1 = __importDefault(_$$_REQUIRE(_dependencyMap[0]));
1087
- /**
1088
- * @copydoc IEpgSyncTaskScheduler
1089
- */
1090
- var EpgSyncTaskScheduler = /*#__PURE__*/function () {
1091
- function EpgSyncTaskScheduler() {
1092
- _$$_REQUIRE(_dependencyMap[1])(this, EpgSyncTaskScheduler);
1093
- }
1094
- return _$$_REQUIRE(_dependencyMap[2])(EpgSyncTaskScheduler, [{
1095
- key: "scheduleTask",
1096
- value:
1097
- /**
1098
- * @copydoc IEpgSyncTaskScheduler::scheduleTask
1099
- */
1100
- function scheduleTask(componentId, interval) {
1101
- return new Promise(function (resolve, reject) {
1102
- NativeEpgSyncTaskScheduler_1.default.scheduleTask(componentId, interval).catch(function (_) {
1103
- reject(new (_$$_REQUIRE(_dependencyMap[3]).InternalError)('Schedule task failed due to internal error'));
1104
- }).then(function () {
1105
- resolve();
1106
- });
1107
- });
1108
- }
1109
- /**
1110
- * @copydoc IEpgSyncTaskScheduler::scheduleTaskWithExecutionWindow
1111
- */
1112
- }, {
1113
- key: "scheduleTaskWithExecutionWindow",
1114
- value: function scheduleTaskWithExecutionWindow(componentId, timeProperties) {
1115
- return new Promise(function (resolve, reject) {
1116
- NativeEpgSyncTaskScheduler_1.default.scheduleTaskWithExecutionWindow(componentId, timeProperties).catch(function (_) {
1117
- reject(new (_$$_REQUIRE(_dependencyMap[3]).InternalError)('Schedule task with execution window failed due to internal error'));
1118
- }).then(function () {
1119
- resolve();
1120
- });
1121
- });
1122
- }
1123
- /**
1124
- * @copydoc IEpgSyncTaskScheduler::cancelScheduledTask
1125
- */
1126
- }, {
1127
- key: "cancelScheduledTasks",
1128
- value: function cancelScheduledTasks() {
1129
- return new Promise(function (resolve, reject) {
1130
- NativeEpgSyncTaskScheduler_1.default.cancelScheduledTasks().catch(function (_) {
1131
- reject(new (_$$_REQUIRE(_dependencyMap[3]).InternalError)('Cancel task failed due to internal error'));
1132
- }).then(function () {
1133
- resolve();
1134
- });
1135
- });
1136
- }
1137
- }]);
1138
- }();
1139
- exports.default = new EpgSyncTaskScheduler();
1140
- },"24b30d76209a76a618db",["d1927d6e5c36b63b4da6","cf3c049ea50efe649bfc","be8a01356f5723930509","1fcde0793d27c4addb37"]);
1141
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1142
- "use strict";
1143
-
1144
- Object.defineProperty(exports, "__esModule", {
1145
- value: true
1146
- });
1147
- //@ts-ignore
1148
-
1149
- /* // tslint:disable-next-line */
1150
- exports.default = _$$_REQUIRE(_dependencyMap[0]).TurboModuleRegistry.getEnforcing('NativeEpgSyncTaskScheduler');
1151
- },"d1927d6e5c36b63b4da6",["8a35a86b7946c72e0207"]);
1152
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1153
- "use strict";
1154
-
1155
- /**
1156
- * Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1157
- *
1158
- * PROPRIETARY/CONFIDENTIAL
1159
- *
1160
- * Use is subject to license terms.
1161
- *
1162
- */
1163
- Object.defineProperty(exports, "__esModule", {
1164
- value: true
1165
- });
1166
- exports.TurboModuleRegistry = undefined;
1167
- exports.TurboModuleRegistry = _$$_REQUIRE(_dependencyMap[0]);
1168
- },"8a35a86b7946c72e0207",["33d6b98d6e39f6b0a8f9"]);
1169
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1170
- "use strict";
1171
-
1172
- /**
1173
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1174
- *
1175
- * This source code is licensed under the MIT license found in the
1176
- * LICENSE file in the root directory of this source tree.
1177
- *
1178
- * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its
1179
- * affiliates. All rights reserved.
1180
- *
1181
- * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO
1182
- * LICENSE TERMS.
1183
- *
1184
- * Amazon modifications are indicated by [amznmod_* comments].
1185
- */
1186
- Object.defineProperty(exports, "__esModule", {
1187
- value: true
1188
- });
1189
- exports.getEnforcing = exports.get = undefined;
1190
- var turboModuleProxy = global.__turboModuleProxy;
1191
- function requireModule(name) {
1192
- if (turboModuleProxy != null) {
1193
- return turboModuleProxy(name);
1194
- }
1195
- return null;
1196
- }
1197
- function get(name) {
1198
- return requireModule(name);
1199
- }
1200
- exports.get = get;
1201
- function getEnforcing(name) {
1202
- var module = requireModule(name);
1203
- (0, _$$_REQUIRE(_dependencyMap[0]).default)(module != null, `TurboModuleRegistry.getEnforcing(...): '${name}' could not be found. ` + 'Verify that a module by this name is registered in the native binary.');
1204
- return module;
1205
- }
1206
- exports.getEnforcing = getEnforcing;
1207
- },"33d6b98d6e39f6b0a8f9",["8d9475a2cb77b53e450d"]);
1208
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1209
- /**
1210
- * Copyright (c) 2013-present, Facebook, Inc.
1211
- *
1212
- * This source code is licensed under the MIT license found in the
1213
- * LICENSE file in the root directory of this source tree.
1214
- *
1215
- * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its
1216
- * affiliates. All rights reserved.
1217
- *
1218
- * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO
1219
- * LICENSE TERMS.
1220
- *
1221
- * Amazon modifications are indicated by [amznmod_* comments].
1222
- */
1223
- /**
1224
- * amznmod_tmapi: Migrated to typescript
1225
- */
1226
- 'use strict';
1227
-
1228
- Object.defineProperty(exports, "__esModule", {
1229
- value: true
1230
- });
1231
- /**
1232
- * Use invariant() to assert state which your program assumes to be true.
1233
- *
1234
- * Provide sprintf-style format (only %s is supported) and arguments
1235
- * to provide information about what broke and what you were
1236
- * expecting.
1237
- *
1238
- * The invariant message will be stripped in production, but the invariant
1239
- * will remain to ensure logic does not differ in production.
1240
- */
1241
- var NODE_ENV = "production";
1242
- var invariant = function invariant(condition, format) {
1243
- for (var _len = arguments.length, extraArgs = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1244
- extraArgs[_key - 2] = arguments[_key];
1245
- }
1246
- if (!condition) {
1247
- var error;
1248
- if (format === undefined) {
1249
- error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
1250
- } else {
1251
- var argIndex = 0;
1252
- error = new Error(format.replace(/%s/g, function () {
1253
- return extraArgs[argIndex++];
1254
- }));
1255
- error.name = 'Invariant Violation';
1256
- }
1257
- // @ts-ignore `framesToPop` is not part of Error type but something Meta (and maybe RN) uses.
1258
- error.framesToPop = 1; // we don't care about invariant's own frame
1259
- throw error;
1260
- }
1261
- };
1262
- exports.default = invariant;
1263
- },"8d9475a2cb77b53e450d",[]);